:root {
    --bg: #0d1117;
    --bg-soft: #111827;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.24);
    --brand: #dc2626;
    --brand-2: #f97316;
    --gold: #facc15;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #f6f7fb;
    line-height: 1.65;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.96), rgba(249, 115, 22, 0.96));
    box-shadow: 0 16px 36px rgba(127, 29, 29, 0.24);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #dc2626;
    background: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.25);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
}

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

.main-nav a {
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at top left, #7f1d1d, #111827 42%, #030712 100%);
}

.hero-shell {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.2)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 140px 0 110px;
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #facc15;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 950;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.detail-meta span,
.feature-list span,
.genre-line span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

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

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

.ghost-button.dark {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.12);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.active {
    background: #fff;
}

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

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.story-panel h2,
.info-panel h2,
.player-section h2 {
    margin: 8px 0 10px;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
}

.section-heading p,
.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.compact-heading h2 {
    color: #fff;
}

.search-banner,
.notice-panel,
.rank-panel,
.story-panel,
.info-panel,
.filter-panel {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.search-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    margin-top: -52px;
    position: relative;
    z-index: 5;
}

.search-banner h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.15;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    border-radius: var(--radius);
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(3, 7, 18, 0.9)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

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

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.category-samples span {
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.poster {
    position: absolute;
    inset: 0;
    display: block;
    background-image: linear-gradient(180deg, rgba(3, 7, 18, 0.04), rgba(3, 7, 18, 0.62)), var(--poster-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

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

.play-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 24px rgba(127, 29, 29, 0.28);
}

.rank-number {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(250, 204, 21, 0.96);
    color: #7f1d1d;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
}

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

.movie-card p {
    margin: 0;
    min-height: 70px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

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

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

.compact-card h3 {
    font-size: 17px;
}

.compact-card p {
    min-height: 56px;
    font-size: 13px;
}

.two-column-zone {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
}

.rank-panel {
    padding: 28px;
    color: #fff;
    background: linear-gradient(145deg, #111827, #7f1d1d 62%, #f97316);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.rank-index {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #7f1d1d;
    background: #facc15;
    font-weight: 950;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-year {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.notice-panel {
    padding: 36px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.94), rgba(127, 29, 29, 0.96) 46%, #111827);
}

.notice-panel h2 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.notice-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px max(16px, calc((100vw - 1180px) / 2)) 74px;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.92), rgba(127, 29, 29, 0.84)), var(--page-image);
    background-size: cover;
    background-position: center;
}

.small-hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.9), rgba(127, 29, 29, 0.96) 45%, #111827);
}

.page-hero h1 {
    color: #fff;
    margin-top: 10px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 18px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
}

.search-box span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 15px;
    color: #111827;
    background: #f9fafb;
    outline: none;
}

.search-box input {
    padding: 0 16px 0 58px;
}

.filter-panel select {
    padding: 0 14px;
}

.search-box input:focus,
.filter-panel select:focus {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-empty {
    display: none;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

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

.detail-hero {
    position: relative;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(17, 24, 39, 0.84), rgba(127, 29, 29, 0.35)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: center;
    gap: 42px;
    padding: 72px 0;
}

.detail-poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    background-image: linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.58)), var(--poster-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 950;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.large-tags span {
    color: #fff;
    background: rgba(249, 115, 22, 0.22);
    border: 1px solid rgba(249, 115, 22, 0.34);
}

.player-section {
    padding-bottom: 24px;
}

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

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.45);
    font-size: 34px;
}

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

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.story-panel,
.info-panel {
    padding: 30px;
}

.story-panel p {
    color: #374151;
    font-size: 17px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 18px;
    margin: 20px 0 0;
}

.info-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    color: #111827;
}

.info-panel a {
    color: #dc2626;
    font-weight: 800;
}

.detail-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.detail-nav-links a {
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 900;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.72);
    background: #0b1120;
}

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

.footer-brand {
    color: #fff;
    font-size: 26px;
    font-weight: 950;
}

.footer-inner p {
    max-width: 520px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.28);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

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

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

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

    .main-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }

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

    .main-nav a {
        background: rgba(255, 255, 255, 0.12);
    }

    .hero-shell {
        min-height: 560px;
    }

    .hero-content {
        padding: 104px 0 96px;
    }

    .search-banner,
    .split-heading,
    .two-column-zone,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .search-banner {
        display: grid;
    }

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

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 42px 0 58px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-content h1,
    .hero-content h2,
    .detail-copy h1 {
        font-size: 40px;
    }

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

    .hero-actions,
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .story-panel,
    .info-panel,
    .notice-panel,
    .rank-panel {
        padding: 22px;
    }
}
