:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: #e5e7eb;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --cyan-soft: #ecfeff;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.brand-text {
    font-size: 21px;
    line-height: 1;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-links a {
    color: #334155;
    font-weight: 650;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
    color: var(--teal);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: 240px;
}

.nav-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-search input {
    padding: 9px 42px 9px 16px;
}

.nav-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: 0;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    cursor: pointer;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #f1f5f9;
    border-radius: 12px;
    color: #0f172a;
    padding: 8px 12px;
    cursor: pointer;
}

.main-content {
    min-height: 68vh;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 34%), linear-gradient(135deg, #0f172a 0%, #0f766e 56%, #0891b2 100%);
    color: #ffffff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -260px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.22);
    filter: blur(42px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.06);
}

.hero-layout {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 610px;
    margin: 0 auto;
    padding: 88px 20px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 42px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(204, 251, 241, 0.24);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero h1 span {
    color: #99f6e4;
}

.hero-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ecfeff;
    font-weight: 650;
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 15px 26px rgba(8, 145, 178, 0.28);
}

.btn-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn-ghost {
    color: var(--teal-dark);
    background: #ecfeff;
    border-color: #bae6fd;
}

.hero-card {
    position: relative;
    border-radius: 32px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

.hero-card-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.84));
}

.hero-card-caption strong {
    display: block;
    font-size: 20px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

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

.section {
    padding: 64px 0;
}

.section.compact {
    padding: 38px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 28px;
}

.section-eyebrow {
    margin: 0 0 8px;
    color: var(--teal-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 184, 166, 0.38);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0d9488);
}

.card-cover.tall {
    aspect-ratio: 3 / 4;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.18s ease;
}

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

.card-year,
.card-type {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.card-year {
    right: 12px;
}

.card-type {
    left: 12px;
    background: rgba(13, 148, 136, 0.86);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.card-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 750;
}

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

.card-title a:hover {
    color: var(--teal-dark);
}

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

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

.category-card {
    display: block;
    padding: 22px;
    min-height: 190px;
    border-radius: 24px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 42%), linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: 0 18px 38px rgba(8, 145, 178, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(8, 145, 178, 0.25);
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.rank-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

.rank-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-title a:hover {
    color: var(--teal-dark);
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
}

.heat-bar {
    height: 7px;
    margin-top: 11px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.heat-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
    gap: 12px;
}

.filter-input,
.filter-select {
    height: 46px;
    padding: 0 16px;
}

.page-hero {
    background: linear-gradient(135deg, #0f172a, #0f766e 58%, #0891b2);
    color: #ffffff;
    padding: 70px 0;
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 16px 0 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    padding: 18px 0;
}

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

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

.player-panel,
.detail-panel,
.side-panel {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.68));
    cursor: pointer;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.player-box.is-playing .play-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    padding: 16px 24px;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(8, 145, 178, 0.38);
    cursor: pointer;
}

.player-copy {
    padding: 22px;
}

.player-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.detail-panel {
    padding: 26px;
    margin-top: 24px;
}

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

.detail-panel p {
    margin: 0 0 18px;
    color: #334155;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.info-cell {
    padding: 13px 15px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.info-cell span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-cell strong {
    color: #0f172a;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 750;
    font-size: 13px;
}

.side-panel {
    padding: 18px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.18s ease;
}

.side-link:hover {
    background: #f1f5f9;
}

.side-link img {
    width: 82px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.side-link strong {
    display: block;
    line-height: 1.35;
}

.side-link span {
    color: #64748b;
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    border-radius: 24px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

.cta-band {
    border-radius: 32px;
    padding: 40px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 36%), linear-gradient(135deg, #0f172a, #0d9488 58%, #0891b2);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
}

.cta-band h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
}

.cta-band p {
    margin: 0 0 24px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 850;
}

.footer-shell p,
.footer-shell a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-shell a:hover {
    color: #5eead4;
}

.footer-links {
    display: grid;
    gap: 8px;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
    }

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

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

    .nav-search {
        width: 100%;
    }

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

    .hero-layout {
        padding-top: 70px;
    }

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .nav-shell {
        min-height: 62px;
        padding: 0 14px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-layout {
        min-height: auto;
        padding: 48px 16px 72px;
        gap: 28px;
    }

    .hero-card {
        border-radius: 24px;
    }

    .section {
        padding: 44px 0;
    }

    .section-header {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

    .movie-grid,
    .category-grid,
    .filter-panel,
    .info-table,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 86px minmax(0, 1fr);
    }

    .footer-shell {
        gap: 18px;
    }
}
