:root {
    --silver-50: #f8fafc;
    --silver-100: #f1f5f9;
    --silver-200: #e2e8f0;
    --silver-300: #cbd5e1;
    --silver-500: #64748b;
    --silver-600: #475569;
    --silver-700: #334155;
    --silver-800: #1e293b;
    --silver-900: #0f172a;
    --frost-50: #f0f9ff;
    --frost-100: #e0f2fe;
    --frost-500: #0ea5e9;
    --frost-600: #0284c7;
    --frost-700: #0369a1;
    --frost-800: #075985;
    --frost-950: #082f49;
    --ice-400: #22d3ee;
    --ice-500: #06b6d4;
    --ice-600: #0891b2;
    --white: #ffffff;
    --black: #000000;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 60px rgba(3, 105, 161, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--silver-50), var(--white));
    color: var(--silver-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--silver-900), var(--frost-950));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.24);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ice-400), var(--frost-600));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--ice-400), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--white);
}

.nav-link.is-active {
    color: var(--ice-400);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-link {
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    height: min(80vh, 760px);
    min-height: 560px;
    overflow: hidden;
    background: var(--silver-900);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
    color: var(--white);
    transform: translateY(14px);
}

.hero-kicker,
.detail-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker span {
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(2, 132, 199, 0.70);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.hero-kicker .muted,
.detail-kicker .muted {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 0 24px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.72;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(2, 132, 199, 0.10);
    color: var(--frost-700);
    font-size: 13px;
    font-weight: 700;
}

.hero .tag-pill {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.90);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    color: var(--white);
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.32);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    box-shadow: 0 20px 46px rgba(6, 182, 212, 0.42);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    color: var(--white);
    font-size: 26px;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.70);
}

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-shell,
.section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}

.section-alt {
    background: linear-gradient(135deg, var(--frost-50), #ecfeff);
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--silver-900);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.02em;
}

.section-heading p {
    max-width: 690px;
    margin: 8px 0 0;
    color: var(--silver-600);
    line-height: 1.72;
}

.section-link {
    color: var(--frost-700);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.30);
    box-shadow: var(--shadow-hover);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--silver-800), var(--frost-950));
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    right: 12px;
    background: var(--frost-600);
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-shade span {
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

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

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

.movie-card-body h2 {
    min-height: 52px;
    margin: 0 0 10px;
    color: var(--silver-900);
    font-size: 18px;
    line-height: 1.45;
}

.movie-card-body h2 a:hover,
.ranking-content h2 a:hover,
.detail-related h2 a:hover {
    color: var(--frost-700);
}

.movie-meta {
    margin: 0 0 10px;
    color: var(--silver-500);
    font-size: 13px;
    line-height: 1.5;
}

.movie-one-line {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--silver-600);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

.category-card {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-xl);
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--silver-600);
    line-height: 1.7;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.filter-input {
    flex: 1 1 280px;
    min-height: 48px;
    border: 1px solid var(--silver-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--silver-900);
    background: var(--white);
    outline: none;
}

.filter-input:focus {
    border-color: var(--frost-600);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.filter-empty {
    display: none;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--silver-100);
    color: var(--silver-600);
    text-align: center;
}

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

.is-filter-hidden {
    display: none !important;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 82px 48px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid var(--silver-200);
    border-radius: var(--radius-xl);
    padding: 14px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.ranking-cover {
    overflow: hidden;
    width: 82px;
    aspect-ratio: 2 / 3;
    border-radius: 13px;
    background: var(--silver-800);
}

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

.ranking-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    color: var(--white);
    font-weight: 900;
}

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-content p {
    margin: 0 0 10px;
    color: var(--silver-600);
    line-height: 1.7;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--frost-50);
    color: var(--frost-700);
    font-size: 12px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--silver-900);
    color: var(--white);
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.52;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 54px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
    background: var(--silver-800);
}

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

.breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.82;
}

.player-section {
    padding: 64px 0;
    background: var(--silver-900);
}

.player-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.player-title {
    margin: 0 0 22px;
    color: var(--white);
    font-size: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--black);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(0, 0, 0, 0.52));
    color: var(--white);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 18px 50px rgba(6, 182, 212, 0.34);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-main {
    padding: 70px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.content-card,
.side-card {
    border: 1px solid var(--silver-200);
    border-radius: 24px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card + .content-card {
    margin-top: 22px;
}

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

.content-card p {
    margin: 0;
    color: var(--silver-700);
    line-height: 1.9;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--silver-100);
    padding-bottom: 10px;
    color: var(--silver-600);
}

.info-list strong {
    color: var(--silver-900);
}

.detail-related {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 66px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: var(--silver-800);
}

.related-item h2 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.45;
}

.related-item p {
    margin: 0;
    color: var(--silver-500);
    font-size: 12px;
}

.site-footer {
    background: linear-gradient(180deg, var(--silver-900), var(--frost-950));
    color: var(--silver-300);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 54px 0;
}

.footer-brand p {
    max-width: 460px;
    color: var(--silver-300);
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 15px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a:hover {
    color: var(--ice-400);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0 28px;
    color: var(--silver-500);
    font-size: 14px;
}

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

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

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

    .detail-hero-inner {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

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

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

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

    .hero {
        height: auto;
        min-height: 660px;
    }

    .hero-content {
        align-items: flex-end;
        padding: 92px 0 94px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.88));
    }

    .hero-arrow {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .movie-card-body h2 {
        min-height: 46px;
        font-size: 16px;
    }

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

    .ranking-item {
        grid-template-columns: 68px 38px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-cover {
        width: 68px;
    }

    .ranking-number {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .ranking-content h2 {
        font-size: 17px;
    }

    .ranking-content p {
        display: none;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-poster {
        width: min(230px, 70vw);
    }

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

@media (max-width: 480px) {
    .header-inner,
    .mobile-nav,
    .page-shell,
    .section-inner,
    .player-shell,
    .detail-hero-inner,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

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

    .button-row {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}
