:root {
    --page-bg: #f8fbff;
    --page-bg-2: #eef7ff;
    --text-main: #111827;
    --text-muted: #667085;
    --text-soft: #94a3b8;
    --white: #ffffff;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #0891b2;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --line: #e5edf7;
    --shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    padding: 10px 14px;
    color: #334155;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--blue);
    background: #eff6ff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--dark);
    border-radius: 12px;
    background: #eff6ff;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, #172554, #1e40af, #164e63);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12) 100%),
        radial-gradient(circle at 18% 42%, rgba(37, 99, 235, 0.35), transparent 32%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-box {
    max-width: 650px;
}

.hero-badge,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 620px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta,
.movie-meta,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #eff6ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.pill.light {
    color: var(--blue-dark);
    background: #eff6ff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--blue-dark);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.34);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.btn.small {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 14px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.main {
    padding: 54px 0 70px;
}

.page-hero {
    padding: 64px 0 38px;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88)),
        radial-gradient(circle at 85% 12%, rgba(14, 165, 233, 0.6), transparent 28%);
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.75;
}

.section {
    margin-bottom: 58px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--text-main);
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.8px;
}

.section-title .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border-radius: 14px;
    background: #dbeafe;
}

.section-desc {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.poster.wide {
    aspect-ratio: 16 / 9;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(15, 23, 42, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
}

.play-circle {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-line {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: var(--text-soft);
    font-size: 13px;
}

.feature-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow);
}

.feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
}

.feature-body {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.feature-body h3 {
    margin: 14px 0 10px;
    font-size: 25px;
}

.feature-body p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #e5e7eb;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(140px, 180px));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.input,
.select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    color: var(--text-main);
    background: var(--white);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-tile::before {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    position: relative;
    margin: 0 0 18px;
    color: #dbeafe;
    line-height: 1.7;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

.rank-thumb {
    width: 92px;
    height: 58px;
    overflow: hidden;
    border-radius: 14px;
    background: #dbeafe;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 850;
}

.rank-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.34);
    cursor: pointer;
    z-index: 2;
}

.player-cover.hidden {
    display: none;
}

.player-button {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.95);
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
    transform: scale(1.07);
    background: var(--blue-dark);
}

.player-title {
    padding: 20px 24px;
}

.player-title h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.tag {
    padding: 7px 12px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.side-card {
    padding: 18px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.side-item:hover {
    background: #eff6ff;
}

.side-item img {
    width: 80px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: #dbeafe;
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
}

.side-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #bfdbfe;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 42px 0;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
}

.footer-inner p,
.footer-inner li {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-inner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-inner a:hover {
    color: #60a5fa;
}

.copyright {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 28px;
    border: 1px dashed #bfdbfe;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

@media (max-width: 980px) {
    .grid,
    .grid.three,
    .grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        border-radius: 14px;
    }

    .hero {
        height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .hero p {
        font-size: 17px;
    }

    .grid,
    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .rank-num {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .rank-thumb {
        width: 74px;
        height: 52px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
