:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --rose-600: #e11d48;
    --amber-500: #f59e0b;
    --blue-600: #2563eb;
    --emerald-600: #059669;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--slate-50);
    color: var(--slate-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -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;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--slate-900), var(--rose-600));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

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

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

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    background: var(--slate-900);
    color: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--slate-100);
    padding: 11px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--slate-900);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
}

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

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--slate-950);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 32%, rgba(225, 29, 72, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 56px;
    align-items: end;
    padding-top: 96px;
    padding-bottom: 96px;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-meta span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
    margin-top: 24px;
}

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

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

.primary-button {
    background: #ffffff;
    color: var(--slate-950);
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.22);
}

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

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.ghost-button.dark {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: var(--slate-900);
}

.primary-button.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

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

.hero-poster span,
.play-dot,
.player-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--slate-950);
    transform: translate(-50%, -50%);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.22);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.search-panel {
    position: relative;
    z-index: 5;
    margin-top: -38px;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-panel h2 {
    margin: 2px 0 0;
    font-size: 22px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    background: var(--slate-50);
    color: var(--slate-900);
    padding: 0 14px;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--slate-900);
    background: #ffffff;
}

.section-block {
    padding: 72px 0;
}

.inline-section {
    padding: 28px 0 0;
}

.section-white {
    background: #ffffff;
}

.section-gradient {
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: var(--slate-900);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.section-heading h2,
.page-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--slate-600);
}

.section-more {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--slate-900);
    color: #ffffff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card,
.category-card,
.panel-card,
.sidebar-card,
.hot-board,
.detail-content-card,
.player-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.movie-card {
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--slate-200);
}

.movie-thumb-horizontal {
    aspect-ratio: auto;
}

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

.movie-card:hover .movie-thumb img,
.category-card:hover img,
.hero-poster:hover img {
    transform: scale(1.08);
}

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.08));
}

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--slate-900);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-body h3,
.ranking-card h3,
.category-card h3,
.sidebar-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body p,
.ranking-card p,
.category-card p,
.sidebar-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 13px;
}

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

.movie-card .tag-chip,
.detail-tags .tag-chip {
    background: var(--slate-100);
    color: var(--slate-600);
    backdrop-filter: none;
}

.movie-card-horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .movie-thumb {
    height: 100%;
    min-height: 128px;
}

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

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

.category-card a {
    position: relative;
    display: block;
    min-height: 260px;
    color: #ffffff;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 20px;
}

.category-card span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.category-card h3 {
    margin-top: 10px;
    color: #ffffff;
    font-size: 24px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.82);
}

.category-card strong {
    display: inline-block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 14px;
}

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

.hot-board,
.panel-card,
.sidebar-card {
    padding: 22px;
}

.hot-board h2,
.sidebar-card h2 {
    margin: 0;
    font-size: 24px;
}

.hot-board p {
    color: var(--slate-600);
}

.hot-board-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.ranking-card {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ranking-card-link {
    display: grid;
    grid-template-columns: 40px 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.ranking-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--slate-900);
    color: #ffffff;
    font-weight: 900;
}

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

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

.two-column-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 78% 30%, rgba(225, 29, 72, 0.26), transparent 34%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
    color: #ffffff;
    padding: 96px 0 76px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.compact-page-hero,
.category-page-hero,
.ranking-hero {
    min-height: 320px;
    display: flex;
    align-items: end;
}

.page-actions {
    margin-top: 24px;
}

.detail-wrap {
    padding: 34px 0 72px;
}

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

.breadcrumb a:hover {
    color: var(--slate-900);
}

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

.detail-main {
    min-width: 0;
}

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

.movie-player,
.player-card video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    border: 0;
    background: #000000;
    padding: 0;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-play-button {
    width: 76px;
    height: 76px;
    font-size: 28px;
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: none;
    max-width: 80%;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    padding: 12px 16px;
    text-align: center;
    transform: translate(-50%, -50%);
}

.player-message.is-visible {
    display: block;
}

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

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-title-row p {
    margin: 12px 0 0;
    color: var(--slate-600);
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-600);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.detail-content-card h2 {
    margin: 28px 0 10px;
    font-size: 24px;
}

.detail-content-card p {
    color: var(--slate-700);
    font-size: 16px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
}

.poster-card img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-card h2 {
    margin-top: 16px;
}

.hot-board-list.compact .ranking-card-link {
    grid-template-columns: 32px 64px 1fr;
    gap: 10px;
}

.hot-board-list.compact .ranking-index {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.hot-board-list.compact img {
    width: 64px;
    height: 48px;
}

.site-footer {
    background: var(--slate-950);
    color: #ffffff;
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: var(--slate-300);
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    margin-top: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px;
    color: var(--slate-300);
    text-align: center;
    font-size: 14px;
}

[data-movie-card].is-hidden {
    display: none;
}

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

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

    .hero-poster {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slider,
    .hero-image,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 82px;
    }

    .hero-control {
        display: none;
    }

    .search-panel {
        margin-top: 0;
        padding-top: 16px;
    }

    .search-panel-inner,
    .filter-controls,
    .two-column-panels,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .three-cols,
    .four-cols,
    .ranking-list,
    .large-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-title-row {
        display: block;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .three-cols,
    .four-cols,
    .category-grid,
    .ranking-list,
    .large-category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-link,
    .ranking-card-link {
        grid-template-columns: 96px 1fr;
    }

    .movie-card-horizontal .movie-thumb {
        min-height: 112px;
    }

    .ranking-card-link .ranking-index {
        position: absolute;
        margin: 8px;
    }

    .ranking-card-link img {
        width: 96px;
        height: 72px;
    }

    .section-block {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }
}
