html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #e2e8f0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.16), transparent 28%), radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12), transparent 30%), linear-gradient(180deg, rgba(15, 23, 42, 0), #020617 70%);
    z-index: -1;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #04111d;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-nav a,
.nav-dropdown button {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown button:hover {
    color: #67e8f9;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 178px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.nav-menu a:hover {
    background: rgba(34, 211, 238, 0.1);
}

.header-search {
    width: min(280px, 24vw);
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 4px;
}

.header-search input,
.mobile-panel input,
.big-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: transparent;
}

.header-search input {
    padding: 8px 12px;
}

.header-search button,
.mobile-panel button,
.big-search button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #042f3a;
    background: #22d3ee;
    font-weight: 800;
}

.header-search button {
    padding: 8px 14px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.9);
}

.mobile-panel {
    display: none;
    padding: 0 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 16px 0;
}

.mobile-panel input {
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.92);
}

.mobile-panel button {
    padding: 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.62);
}

.hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.35) 72%, rgba(2, 6, 23, 0.78) 100%), linear-gradient(0deg, #020617 0%, transparent 35%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 50%;
    width: min(680px, calc(100% - 48px));
    transform: translateY(-45%);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    margin: 0 0 30px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
    color: #03131d;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    box-shadow: 0 14px 30px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.55);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: #22d3ee;
}

.section,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

.section-tight {
    padding-top: 34px;
}

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

.section-heading.center {
    display: grid;
    place-items: center;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2 {
    margin: 10px 0 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p {
    max-width: 780px;
    color: #94a3b8;
    line-height: 1.8;
}

.section-more {
    color: #67e8f9;
    font-weight: 900;
}

.big-search {
    width: min(760px, 100%);
    margin: 24px auto 0;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.big-search input {
    padding: 14px 18px;
    font-size: 16px;
}

.big-search button {
    min-width: 116px;
    padding: 0 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 28px 60px rgba(8, 145, 178, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.8));
}

.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);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    color: #05202a;
    background: #22d3ee;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #03131d;
    background: #22d3ee;
    font-weight: 900;
}

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

.card-meta {
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    color: #94a3b8;
    line-height: 1.65;
    font-size: 14px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.rank-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 20px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.compact-heading {
    margin-bottom: 18px;
}

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

.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateX(4px);
}

.mini-card img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: #f8fafc;
    line-height: 1.35;
}

.mini-card em {
    margin-top: 5px;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.mini-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #03131d;
    background: #22d3ee;
    font-size: 12px;
    font-weight: 900;
}

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

.category-tile,
.category-overview-card a {
    display: block;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(8, 47, 73, 0.88), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(34, 211, 238, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.5);
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.category-overview-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-overview-card span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.14);
    font-size: 12px;
}

.page-hero {
    margin-top: 34px;
    padding: 52px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(8, 47, 73, 0.9), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-search {
    margin-left: 0;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-controls button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    font-weight: 800;
}

.filter-controls button.is-active,
.filter-controls button:hover {
    color: #05202a;
    background: #22d3ee;
}

.rank-table {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.rank-row {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr) minmax(160px, 260px) 130px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-row:hover {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(8, 47, 73, 0.56);
}

.rank-row span {
    color: #67e8f9;
    font-size: 20px;
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row strong {
    color: #ffffff;
    font-size: 17px;
}

.rank-row em,
.rank-row b {
    color: #94a3b8;
    font-style: normal;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 26px 0;
    color: #94a3b8;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #04111d;
    background: #22d3ee;
    font-size: 28px;
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.35);
}

.player-overlay strong {
    display: block;
    font-size: 18px;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.detail-info .lead {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    color: #94a3b8;
}

.detail-meta a {
    color: #67e8f9;
}

.detail-copy {
    padding-top: 28px;
}

.detail-copy h2 {
    font-size: 28px;
    margin-top: 30px;
}

.detail-copy p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 2;
}

.search-status {
    min-height: 28px;
    margin-bottom: 22px;
    color: #94a3b8;
    font-weight: 800;
}

.site-footer {
    margin-top: 60px;
    background: rgba(15, 23, 42, 0.94);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #cbd5e1;
}

@media (max-width: 1080px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

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

    .hero {
        min-height: 560px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-dots {
        left: 18px;
        bottom: 28px;
    }

    .section,
    .page-main {
        padding: 38px 16px;
    }

    .page-hero {
        padding: 34px 22px;
        border-radius: 26px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-feature {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .big-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .big-search button {
        min-height: 44px;
    }

    .section-heading,
    .footer-inner {
        display: grid;
        align-items: start;
    }

    .rank-row {
        grid-template-columns: 42px 58px 1fr;
    }

    .rank-row em,
    .rank-row b {
        display: none;
    }

    .detail-main {
        padding-top: 10px;
    }

    .player-card {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-feature {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .card-body p {
        min-height: auto;
    }
}
