:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --panel: #1a1a1a;
    --panel-2: #252525;
    --line: #262626;
    --text: #ffffff;
    --muted: #a3a3a3;
    --muted-2: #737373;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --gold: #eab308;
    --radius: 18px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 34rem), var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1320px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.38);
    font-size: 14px;
}

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

.nav-link {
    color: #d4d4d4;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(220, 38, 38, 0.16);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--text);
    background: var(--panel-2);
    border-radius: 999px;
    padding: 9px 14px;
}

.quick-strip {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 22px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted-2);
    font-size: 13px;
    overflow-x: auto;
}

.quick-strip a {
    color: #d4d4d4;
    white-space: nowrap;
}

.quick-strip a:hover {
    color: var(--red);
}

.hero-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 22px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 28px;
    padding: 58px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.70), rgba(10, 10, 10, 0.88)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.15);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.26), transparent 30rem);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.detail-kicker {
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    margin: 16px 0 22px;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    color: #d4d4d4;
    font-size: 17px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

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

.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 14px 36px rgba(220, 38, 38, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-small {
    padding: 9px 14px;
    font-size: 13px;
    background: var(--red);
}

.hero-poster {
    align-self: stretch;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--red);
}

.hero-rank {
    border-radius: 30px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(18, 18, 18, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-rank h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
    margin: 0;
}

.hero-rank p,
.section-head p,
.page-hero p,
.category-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-rank a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.hero-rank a:last-child {
    border-bottom: 0;
}

.hero-rank span,
.rank-number {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: var(--text);
    background: var(--red);
    font-weight: 900;
}

.hero-rank strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-rank em {
    color: var(--muted-2);
    font-style: normal;
    font-size: 12px;
}

.search-band,
.content-section,
.page-hero,
.filter-panel,
.rank-list,
.detail-body-wrap {
    max-width: 1320px;
    margin: 22px auto 0;
    padding-left: 22px;
    padding-right: 22px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
    border-radius: 24px;
    background: rgba(26, 26, 26, 0.84);
    border: 1px solid var(--line);
}

.search-band h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 40px);
}

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

.search-form,
.filter-panel {
    display: flex;
    gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #121212;
    color: var(--text);
    padding: 0 16px;
    outline: none;
}

.search-form input,
.filter-panel input {
    flex: 1;
}

.search-form button {
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: var(--text);
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
}

.content-section {
    padding-top: 28px;
}

.first-section {
    padding-top: 8px;
}

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

.section-head h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.section-more {
    color: #fca5a5;
    font-weight: 700;
}

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

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

.movie-card {
    min-width: 0;
    background: rgba(26, 26, 26, 0.90);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.55);
    background: rgba(37, 37, 37, 0.95);
}

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

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.76));
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold);
    color: #111111;
    font-weight: 900;
}

.card-body {
    padding: 13px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-2);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-main h2 a:hover,
.category-panel h2 a:hover {
    color: #f87171;
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 11px;
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    border-radius: 20px;
    padding: 18px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.88)), var(--tile-image);
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    transition: transform 0.3s ease;
}

.category-tile:hover::before {
    transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    color: #d4d4d4;
    font-size: 12px;
    line-height: 1.55;
}

.small-hero {
    padding-top: 52px;
    padding-bottom: 26px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted-2);
    margin-bottom: 16px;
    font-size: 14px;
}

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

.category-panels {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.category-panel {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(26, 26, 26, 0.90);
    border: 1px solid var(--line);
}

.category-cover {
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
}

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

.category-panel h2 {
    margin: 0;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.category-preview a {
    color: #d4d4d4;
    background: var(--panel-2);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
}

.filter-panel {
    padding-top: 10px;
    padding-bottom: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 50px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.90);
}

.rank-thumb {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.rank-thumb img {
    height: 100%;
    object-fit: cover;
}

.rank-main h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-main p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.detail-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 22px 0;
}

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

.player-card {
    position: relative;
    min-height: 460px;
    border-radius: 28px;
    overflow: hidden;
    background: #000000;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.66));
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.35);
    font-size: 32px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-copy {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(18, 18, 18, 0.96));
    border: 1px solid var(--line);
}

.detail-copy h1 {
    margin-top: 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one {
    color: #d4d4d4;
    line-height: 1.8;
    font-size: 17px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: var(--panel-2);
}

.detail-meta dt {
    color: var(--muted-2);
    font-size: 12px;
}

.detail-meta dd {
    margin: 5px 0 0;
    color: var(--text);
    font-weight: 800;
}

.detail-body-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    padding-top: 26px;
}

.detail-article,
.detail-side {
    border-radius: 24px;
    background: rgba(26, 26, 26, 0.90);
    border: 1px solid var(--line);
    padding: 24px;
}

.detail-article h2 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-article p {
    color: #d4d4d4;
    line-height: 1.9;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 94px;
}

.side-rec {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.side-rec:last-child {
    border-bottom: 0;
}

.side-rec img {
    aspect-ratio: 2 / 3;
    height: 108px;
    object-fit: cover;
    border-radius: 12px;
}

.side-rec span {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.45;
    font-weight: 800;
}

.side-rec em {
    color: var(--muted-2);
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: #080808;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 22px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 24px;
}

.footer-inner p {
    color: var(--muted);
    line-height: 1.7;
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
}

.footer-links a,
.footer-cats a {
    color: #d4d4d4;
    border-radius: 999px;
    background: var(--panel);
    padding: 8px 12px;
    font-size: 13px;
}

.footer-links a:hover,
.footer-cats a:hover {
    background: rgba(220, 38, 38, 0.18);
}

.footer-copy {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 22px 28px;
    color: var(--muted-2);
    font-size: 13px;
}

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

@media (max-width: 1120px) {
    .hero-wrap,
    .detail-grid,
    .detail-body-wrap {
        grid-template-columns: 1fr;
    }

    .hero-rank {
        display: none;
    }

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

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

@media (max-width: 780px) {
    .header-inner {
        height: auto;
        min-height: 62px;
        flex-wrap: wrap;
        padding-top: 14px;
        padding-bottom: 14px;
    }

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

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

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

    .quick-strip {
        padding-bottom: 10px;
    }

    .hero-wrap {
        padding-top: 18px;
    }

    .hero-slider {
        min-height: 680px;
        border-radius: 22px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 28px;
        align-content: center;
    }

    .hero-poster {
        max-height: 280px;
    }

    .hero-dots {
        left: 28px;
        bottom: 22px;
    }

    .search-band,
    .section-head,
    .footer-inner,
    .rank-row,
    .category-panel {
        grid-template-columns: 1fr;
    }

    .search-band,
    .section-head {
        display: block;
    }

    .search-form,
    .filter-panel {
        flex-direction: column;
    }

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

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

    .rank-row {
        align-items: start;
    }

    .rank-thumb {
        width: 96px;
    }

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

    .player-card,
    .movie-player {
        min-height: 260px;
    }

    .detail-side {
        position: static;
    }
}
