:root {
    --site-red: #dc2626;
    --site-orange: #f97316;
    --site-dark: #0f172a;
    --site-muted: #64748b;
    --site-bg: #f8fafc;
    --site-card: #ffffff;
    --site-border: rgba(148, 163, 184, 0.22);
    --site-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: #1e293b;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 23px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--site-muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--site-red);
    background: rgba(248, 113, 113, 0.12);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

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

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 48px;
    padding: 78px max(24px, calc((100vw - 1180px) / 2)) 90px;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(127, 29, 29, 0.78), rgba(15, 23, 42, 0.62)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.55s ease;
}

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

.hero-content {
    max-width: 740px;
    color: #ffffff;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.detail-copy .breadcrumb,
.movie-meta-line {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.95;
    font-weight: 950;
}

.hero-content p {
    margin: 22px 0 0;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.detail-meta span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-copy .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.text-btn,
.global-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(220, 38, 38, 0.36);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    width: min(100%, 390px);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    justify-self: end;
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-dot {
    width: 36px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--site-shadow);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #0f172a;
}

.search-panel p {
    margin: 0;
    color: var(--site-muted);
}

.global-search,
.local-search {
    display: flex;
    gap: 12px;
}

.global-search input,
.local-search input {
    width: 100%;
    border: 1px solid var(--site-border);
    background: #f8fafc;
    border-radius: 18px;
    padding: 15px 18px;
    outline: none;
    color: #0f172a;
    font-size: 15px;
}

.global-search input:focus,
.local-search input:focus {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

.global-search button {
    border: 0;
    min-width: 92px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    cursor: pointer;
}

.section-block {
    margin-top: 72px;
}

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

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

.section-heading span,
.page-hero span {
    color: var(--site-red);
    font-size: 13px;
    font-weight: 900;
}

.section-heading h2,
.page-hero h1 {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 950;
}

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

.section-heading a,
.text-btn {
    color: var(--site-red);
    font-weight: 900;
}

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

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

.movie-card {
    background: var(--site-card);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
}

.movie-poster {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    background: #111827;
    overflow: hidden;
}

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

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

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    gap: 10px;
    color: var(--site-red);
    font-size: 12px;
    font-weight: 900;
}

.movie-info h3 {
    min-height: 52px;
    margin: 8px 0 10px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h3 a:hover {
    color: var(--site-red);
}

.movie-info p {
    min-height: 72px;
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.65;
    font-size: 14px;
}

.movie-info .tag-list span {
    background: #fff1f2;
    color: #be123c;
}

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

.category-tile {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(127, 29, 29, 0.92)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--site-shadow);
    transition: 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    margin-top: 10px;
    color: #fee2e2;
    font-size: 14px;
    line-height: 1.6;
}

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

.rank-panel {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fff7ed);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.sticky-panel {
    position: sticky;
    top: 104px;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.rank-link {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    transition: 0.2s ease;
}

.rank-link:hover {
    background: #ffffff;
    transform: translateX(4px);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    font-weight: 950;
}

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

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

.rank-text strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #0f172a;
}

.rank-text em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    padding: 88px 0;
    color: #0f172a;
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.22), transparent 34%), linear-gradient(135deg, #fff7ed, #ffffff 55%, #ffe4e6);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    padding: 26px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

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

.category-overview-head span {
    color: var(--site-red);
    font-weight: 950;
}

.category-overview-head h2 {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.45;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--site-border);
}

.toolbar-wide {
    grid-template-columns: 1fr;
}

.local-search {
    display: grid;
    gap: 8px;
}

.local-search span {
    color: #334155;
    font-weight: 900;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    border: 0;
    padding: 11px 15px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-weight: 800;
    transition: 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
}

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

.detail-hero {
    position: relative;
    padding: 84px 0;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.82), rgba(15, 23, 42, 0.72)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 300px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #fecaca;
    font-size: 13px;
    font-weight: 900;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 950;
}

.detail-one-line {
    max-width: 850px;
    margin: 20px 0 0;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin-top: 22px;
}

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

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

.scroll-play {
    margin-top: 30px;
}

.player-section {
    margin-top: 56px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.36);
}

.player-overlay strong {
    font-size: 22px;
}

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

.story-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
}

.story-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 86px;
    background: linear-gradient(135deg, #0f172a, #7f1d1d 52%, #111827);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fecaca;
    font-size: 18px;
}

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

    .sticky-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 78px;
        display: none;
        padding: 16px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--site-shadow);
        flex-direction: column;
        align-items: stretch;
    }

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

    .nav-link {
        text-align: center;
    }

    .hero-slider,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 52px 18px 80px;
    }

    .hero-poster {
        width: min(76vw, 310px);
        justify-self: start;
    }

    .search-panel,
    .toolbar,
    .detail-hero-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        width: min(78vw, 300px);
    }
}

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 19px;
    }

    .brand-copy small {
        display: none;
    }

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

    .global-search {
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .mini-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .category-overview-head {
        align-items: start;
        flex-direction: column;
    }

    .player-shell {
        border-radius: 20px;
    }
}
