:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #059669;
    --brand-dark: #047857;
    --accent: #ea580c;
    --rose: #e11d48;
    --teal: #0d9488;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.26);
}

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

.site-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand-dark);
    background: #d1fae5;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface-soft);
    cursor: pointer;
}

.page-main {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 56px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 34px;
    background: radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.35), transparent 34%), linear-gradient(135deg, #0f172a, #064e3b 54%, #431407);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.78fr);
    gap: 34px;
    align-items: center;
    padding: clamp(30px, 5vw, 64px);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d1fae5;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 670px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(5, 150, 105, 0.28);
}

.btn.secondary {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.hero-slide:hover .hero-poster img {
    transform: scale(1.04);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
}

.hero-card-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    color: #ffffff;
}

.hero-card-info strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.hero-card-info span {
    color: rgba(255, 255, 255, 0.78);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: clamp(30px, 5vw, 64px);
    bottom: 28px;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    margin-top: 44px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--muted);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.search-panel input {
    width: 100%;
    border: 0;
    outline: none;
    border-radius: 16px;
    background: var(--surface-soft);
    padding: 13px 15px;
    color: var(--ink);
}

.search-panel .btn {
    min-width: 110px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #ecfdf5);
    border: 1px solid rgba(16, 185, 129, 0.18);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -28px;
    bottom: -28px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #d1fae5, #fef3c7);
}

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

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-meta,
.breadcrumb,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta span,
.detail-tag,
.rank-number,
.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #334155;
    font-weight: 700;
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 11px 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-dark);
    font-weight: 900;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    justify-content: center;
    min-height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--rose));
    font-size: 18px;
}

.rank-thumb {
    overflow: hidden;
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: var(--surface-soft);
}

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

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-card p {
    margin: 7px 0 0;
    color: var(--muted);
}

.page-hero {
    padding: clamp(30px, 5vw, 52px);
    border-radius: 30px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #064e3b);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-cover .play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.detail-card,
.content-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-summary {
    color: var(--muted);
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #334155;
}

.content-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: var(--surface);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #334155;
    font-weight: 700;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

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

    .hero-slider {
        min-height: 760px;
    }

    .hero-dots {
        bottom: 18px;
    }

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

    .rank-card {
        grid-template-columns: 46px 72px minmax(0, 1fr);
    }

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

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

    .footer-links {
        justify-content: start;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .page-main,
    .footer-inner {
        width: min(100% - 22px, 1200px);
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-slider {
        border-radius: 24px;
        min-height: 720px;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .search-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .rank-card {
        grid-template-columns: 42px 68px minmax(0, 1fr);
        gap: 12px;
    }
}
