:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --white: #ffffff;
    --accent: #334155;
    --accent-light: #475569;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    color: var(--white);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.25);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #475569, #0f172a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 14px;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: #334155;
    color: var(--white);
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button,
.primary-button,
.ghost-button,
.section-more {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.primary-button {
    background: linear-gradient(135deg, #475569, #0f172a);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.dark-ghost {
    color: var(--text);
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #1e293b;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-panel a {
    color: #cbd5e1;
    font-weight: 700;
}

.mobile-panel form {
    display: grid;
    gap: 10px;
}

.mobile-panel input,
.mobile-panel button {
    width: 100%;
    border-radius: 12px;
    border: 0;
    padding: 10px 12px;
}

.hero-slider {
    position: relative;
    min-height: 500px;
    height: 70vh;
    overflow: hidden;
    background: #0f172a;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #64748b;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc,
.detail-one-line {
    margin: 18px 0 0;
    color: #e2e8f0;
    font-size: 18px;
    max-width: 680px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

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

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

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

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

.quick-categories {
    margin-top: -28px;
    position: relative;
    z-index: 4;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row a {
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
    color: #334155;
    box-shadow: var(--shadow);
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.chip-row a:hover {
    transform: translateY(-2px);
    background: #e2e8f0;
}

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

.muted-section {
    background: var(--bg-soft);
}

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

.inline-head {
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-more {
    background: #ffffff;
    color: #334155;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    opacity: 0.88;
}

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%) scale(0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-summary {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    -webkit-line-clamp: 1;
}

.card-summary {
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-thumbs,
.overview-posters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img,
.overview-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile h3,
.category-overview-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.overview-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 900;
}

.overview-title em {
    font-style: normal;
    color: #64748b;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 72px minmax(0, 1fr) 64px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
}

.rank-cover img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.rank-content p {
    margin: 5px 0;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-content span {
    color: #94a3b8;
    font-size: 13px;
}

.rank-score {
    color: #0f172a;
    font-size: 22px;
}

.page-hero {
    padding: 90px 0 70px;
    background: radial-gradient(circle at top left, #475569, #0f172a 55%);
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #dbe4ee;
    font-size: 18px;
}

.compact-actions {
    margin-top: 26px;
}

.local-chips {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 150px 170px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
    color: #334155;
    outline: 0;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.04);
    opacity: 0.48;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.42));
}

.detail-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 58px 0;
    color: #ffffff;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb em {
    font-style: normal;
    color: #ffffff;
}

.detail-tags span {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card,
.content-card,
.side-info-card {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
}

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

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.play-cover strong {
    font-size: 20px;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.side-info-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.side-info-card dl:last-child {
    border-bottom: 0;
}

.side-info-card dt {
    color: #94a3b8;
    font-weight: 800;
}

.side-info-card dd {
    margin: 0;
    color: #334155;
}

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

.related-list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-weight: 800;
}

.related-list img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.related-list span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 42px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-inner p {
    max-width: 620px;
    margin: 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 13px;
}

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

@media (max-width: 1180px) {
    .grid-six {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-button {
        display: block;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.96));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 82px;
    }

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

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

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

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

    .footer-inner,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .logo {
        font-size: 19px;
    }

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

    .hero-desc,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .grid-six,
    .category-grid,
    .category-overview-grid,
    .side-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-summary,
    .tag-row {
        display: none;
    }

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

    .rank-score {
        display: none;
    }

    .rank-cover img {
        width: 58px;
        height: 78px;
    }

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

    .player-card,
    .content-card,
    .side-info-card {
        padding: 18px;
        border-radius: 18px;
    }
}
