:root {
    --ice-50: #f0f9ff;
    --ice-100: #e0f2fe;
    --ice-500: #0ea5e9;
    --ice-600: #0284c7;
    --ice-700: #0369a1;
    --snow-50: #fafafa;
    --snow-100: #f4f4f5;
    --snow-200: #e4e4e7;
    --snow-500: #71717a;
    --snow-700: #3f3f46;
    --snow-900: #18181b;
    --ink: #0f172a;
    --card: #ffffff;
    --radius-xl: 24px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--snow-900);
    background: linear-gradient(180deg, var(--ice-50), #ffffff 38%, var(--snow-50));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--snow-900);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ice-600), #22d3ee);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--snow-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--ice-700);
    background: var(--ice-100);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--ice-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 20px;
    background: var(--ice-700);
}

.mobile-nav {
    display: none;
    padding: 0 22px 16px;
    border-top: 1px solid var(--snow-200);
    background: #ffffff;
}

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

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--ink);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.75s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

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

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 22%, rgba(56, 189, 248, 0.35), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72) 52%, rgba(2, 132, 199, 0.32));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 86px 22px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ice-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow,
.ranking-hero .eyebrow {
    color: #7dd3fc;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags {
    margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
}

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

.hero-actions.centered {
    justify-content: center;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--ice-600), #06b6d4);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-reset:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.ghost-btn.dark {
    color: var(--ice-700);
    background: var(--ice-100);
    border-color: var(--ice-100);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
    transform: perspective(1000px) rotateY(-4deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

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

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 22px;
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 8px 0 0;
    color: var(--snow-900);
    letter-spacing: -0.035em;
}

.intro-strip h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-strip p,
.page-hero p,
.category-main span,
.content-card p,
.detail-one-line {
    color: var(--snow-500);
    line-height: 1.85;
}

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

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

.section-heading > a {
    color: var(--ice-700);
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--snow-700);
    font-weight: 800;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--snow-200);
    border-radius: 16px;
    background: #ffffff;
    color: var(--snow-900);
    padding: 0 16px;
    outline: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.search-box input:focus,
.filter-select:focus {
    border-color: var(--ice-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.filter-reset {
    border: 0;
    color: var(--ice-700);
    background: var(--ice-100);
}

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.32);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.movie-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--snow-100);
}

.movie-card-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.52), transparent 48%);
    opacity: 0.86;
}

.movie-card-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ice-700);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

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

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ice-700);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3 a:hover {
    color: var(--ice-700);
}

.movie-card p {
    min-height: 52px;
    color: var(--snow-500);
    font-size: 14px;
    line-height: 1.75;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span,
.detail-meta span {
    color: var(--ice-700);
    background: var(--ice-100);
}

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

.category-tile,
.category-overview-card,
.content-card,
.spotlight-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.category-tile {
    padding: 22px;
}

.category-main {
    display: grid;
    gap: 10px;
}

.category-main strong {
    font-size: 24px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-samples a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--snow-700);
    background: var(--snow-100);
    font-size: 13px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 64px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--snow-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.rank-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--ice-600);
}

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

.rank-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small {
    overflow: hidden;
    color: var(--snow-500);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotlight-card {
    padding: 32px;
    display: grid;
    align-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 42%),
        #ffffff;
}

.spotlight-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.045em;
}

.spotlight-card p {
    color: var(--snow-500);
    line-height: 1.9;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 96px 22px 88px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.34), transparent 34%),
        linear-gradient(135deg, #020617, #075985 58%, #0f172a);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 7vw, 72px);
}

.page-hero p {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.78);
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 26px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 22px 42px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

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

.detail-info {
    align-self: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--snow-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--ice-700);
    font-weight: 800;
}

.detail-info h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
}

.detail-one-line {
    margin: 18px 0;
    font-size: 18px;
}

.detail-meta {
    margin: 20px 0;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
    cursor: pointer;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.22));
}

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

.play-ring {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ice-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.player-message {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 5;
    color: #ffffff;
    font-weight: 700;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.content-card p {
    font-size: 17px;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: 1fr 300px;
    }

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-slider,
    .hero-content {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 62px;
        gap: 34px;
    }

    .hero-poster {
        max-width: 280px;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .intro-strip,
    .section-heading,
    .category-overview-head,
    .filter-panel {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .filter-actions {
        flex-direction: column;
    }

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

@media (max-width: 560px) {
    .nav-wrap,
    .section-wrap,
    .detail-hero,
    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo {
        font-size: 18px;
    }

    .movie-grid,
    .movie-grid.small-grid,
    .category-grid,
    .rank-list.wide {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

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

    .rank-item img {
        width: 58px;
        height: 74px;
    }
}
