:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --orange: #f97316;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

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

.brand-copy strong,
.footer-brand strong {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--red), #ef4444);
    -webkit-background-clip: text;
    color: transparent;
}

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

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--red);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px 14px;
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: #7f1d1d;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 680px;
}

.hero-slide.active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.32));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 680px;
    margin: 0 auto;
    padding: 88px 20px 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 52px;
    color: white;
}

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

.eyebrow,
.section-title span,
.page-hero span,
.wide-category span,
.spotlight-card span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--red);
    background: #fee2e2;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 13px;
}

.hero-copy .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 24px 0 10px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 850;
}

.hero-copy p,
.page-hero p,
.section-title p,
.detail-copy .lead {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.card-tags span,
.inline-meta span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.16);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.card-tags span,
.inline-meta span {
    color: var(--red-dark);
    background: #fee2e2;
}

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.pill-link {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 15px 28px;
    color: var(--red);
    background: white;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.secondary-btn,
.ghost-btn {
    padding: 14px 24px;
    color: white;
    background: rgba(153, 27, 27, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-btn {
    color: var(--red);
    background: #fff;
    border: 1px solid #fecaca;
}

.pill-link {
    padding: 9px 16px;
    color: white;
    background: var(--red);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.pill-link:hover,
.movie-card:hover,
.category-card:hover,
.wide-category:hover,
.spotlight-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    height: 470px;
    border: 8px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 9px 14px;
    color: white;
    background: rgba(220, 38, 38, 0.88);
    font-weight: 800;
}

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

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

.hero-dot.active {
    width: 34px;
    background: white;
}

.stat-strip {
    max-width: 1160px;
    margin: -48px auto 0;
    position: relative;
    z-index: 8;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-strip div {
    border-radius: 24px;
    padding: 26px;
    background: white;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-strip strong {
    display: block;
    color: var(--red);
    font-size: 25px;
    margin-bottom: 6px;
}

.stat-strip span {
    color: var(--muted);
}

.section-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 76px 20px;
}

.soft-bg {
    max-width: none;
    background: linear-gradient(180deg, #fff7f7, #ffffff);
    padding-left: max(20px, calc((100vw - 1220px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1220px) / 2 + 20px));
}

.section-title {
    max-width: 760px;
    margin-bottom: 34px;
}

.split-title {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-title h2,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-title p {
    color: var(--muted);
}

.category-grid,
.movie-grid,
.spotlight-grid,
.wide-category-grid {
    display: grid;
    gap: 24px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    border-radius: 26px;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow);
    background: #111827;
    transition: transform 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(127, 29, 29, 0.78));
}

.category-card span,
.category-card strong {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-card span {
    bottom: 72px;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    bottom: 18px;
    font-size: 13px;
    line-height: 1.6;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: white;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.poster-badge,
.poster-play {
    position: absolute;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(220, 38, 38, 0.88);
}

.poster-play {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    padding: 12px 18px;
    background: rgba(17, 24, 39, 0.82);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-body h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.35;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
    flex: 1;
}

.card-actions {
    margin-top: 4px;
    align-items: center;
    justify-content: space-between;
}

.text-link {
    color: var(--red);
    font-weight: 800;
}

.ranking-panel {
    background: #111827;
    color: white;
    border-radius: 36px;
    margin-top: 40px;
}

.ranking-panel .section-title p,
.ranking-panel .inline-meta span {
    color: rgba(255, 255, 255, 0.72);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

.ranking-panel .ranking-row {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.rank-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--red);
    text-align: center;
}

.rank-cover {
    width: 86px;
    height: 112px;
    border-radius: 16px;
    overflow: hidden;
    background: #fee2e2;
}

.rank-main h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 850;
}

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

.ranking-panel .rank-main p {
    color: rgba(255, 255, 255, 0.74);
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--red);
    font-size: 22px;
}

.rank-score span {
    color: var(--muted);
}

.page-hero {
    padding: 86px 20px;
    text-align: center;
    color: white;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.72), transparent 38%), linear-gradient(135deg, #7f1d1d, #dc2626 58%, #f97316);
}

.page-hero p {
    max-width: 780px;
    margin: 0 auto;
}

.page-actions {
    justify-content: center;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
}

.filter-bar label {
    color: var(--red);
    font-weight: 850;
    white-space: nowrap;
}

.filter-bar input {
    width: 100%;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 13px 18px;
    outline: none;
}

.filter-bar input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

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

.wide-category {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 18px;
    background: white;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease;
}

.wide-cover {
    height: 210px;
    border-radius: 22px;
    overflow: hidden;
    background: #fee2e2;
}

.wide-category h2 {
    margin: 14px 0 10px;
    font-size: 28px;
    font-weight: 900;
}

.wide-category p {
    color: var(--muted);
    line-height: 1.75;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mini-links a {
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--red);
    background: #fee2e2;
    font-weight: 700;
    font-size: 13px;
}

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

.spotlight-card {
    position: relative;
    min-height: 380px;
    border-radius: 30px;
    overflow: hidden;
    color: white;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    background: #111827;
}

.spotlight-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(17, 24, 39, 0.86));
}

.spotlight-card span,
.spotlight-card h2,
.spotlight-card p {
    position: relative;
    z-index: 2;
}

.spotlight-card h2 {
    margin: 16px 0 10px;
    font-size: 28px;
    font-weight: 900;
}

.spotlight-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-layout {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 20px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-cover {
    height: 430px;
    border-radius: 30px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    background: #fee2e2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.detail-copy .lead {
    max-width: 820px;
}

.player-section {
    padding-top: 46px;
}

.player-shell {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(127, 29, 29, 0.72));
    border: 0;
    cursor: pointer;
    text-align: center;
}

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

.player-overlay span {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.35);
    font-size: 30px;
}

.player-overlay strong {
    max-width: 820px;
    padding: 0 24px;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 900;
}

.player-overlay em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: white;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.meta-card div {
    border-radius: 18px;
    padding: 18px;
    background: #f9fafb;
}

.meta-card dt {
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 6px;
}

.meta-card dd {
    margin: 0;
    font-weight: 850;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 56px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 18px;
}

.footer-grid p,
.footer-grid li {
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid a:hover {
    color: #fca5a5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    text-align: center;
    color: #9ca3af;
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

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

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

    .hero-shell,
    .hero-slide,
    .hero-content {
        min-height: 620px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid,
    .movie-grid,
    .large-grid,
    .wide-category-grid,
    .spotlight-grid,
    .footer-grid,
    .detail-text,
    .meta-card dl {
        grid-template-columns: 1fr;
    }

    .wide-category,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 320px;
    }

    .split-title {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 46px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / -1;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        padding: 12px 16px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .hero-content {
        padding: 70px 18px;
    }

    .hero-copy p,
    .page-hero p,
    .section-title p,
    .detail-copy .lead {
        font-size: 16px;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .section-wrap {
        padding: 54px 16px;
    }

    .poster {
        height: 240px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .rank-cover {
        width: 100%;
        height: 240px;
    }
}
