:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --orange: #f97316;
    --amber: #f59e0b;
    --green-dark: #14532d;
    --green-mid: #166534;
    --ink: #101827;
    --muted: #5f6876;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 18%, #f8fafc 100%);
    line-height: 1.65;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
    font-size: 25px;
}

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

.brand-text strong {
    font-size: 20px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

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

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

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

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

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 11px;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-shell {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    padding-top: 72px;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 72px 0 0;
    min-height: 688px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.42), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.94), transparent 42%);
}

.hero-bg img {
    filter: saturate(1.1) contrast(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 380px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    color: #fff;
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: #fff1f2;
    color: var(--red);
}

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

.hero-one-line {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    color: #ffedd5;
    font-weight: 700;
}

.hero-summary {
    margin: 18px 0 0;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
}

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    background: #fff7ed;
    color: #b45309;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.3);
}

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

.btn-light {
    color: var(--red);
    background: #fff;
}

.hero-poster {
    position: relative;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: inherit;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    padding: 0;
    transition: 0.24s ease;
}

.hero-dot.active {
    width: 30px;
    background: #fff;
}

.hero-search-card {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(1040px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    color: #fff;
}

.hero-search-card strong {
    display: block;
    margin-bottom: 10px;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
}

.movie-search,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    min-width: 150px;
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-cats a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

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

.section-narrow {
    padding-top: 92px;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
}

.section-heading a {
    color: var(--red);
    font-weight: 800;
}

.light-heading {
    color: #fff;
}

.light-heading a {
    color: #ffedd5;
}

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

.category-tile,
.overview-card {
    position: relative;
    min-height: 158px;
    border-radius: 24px;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(249, 115, 22, 0.22));
}

.category-tile:hover,
.overview-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.category-tile strong,
.overview-card strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.category-tile span,
.overview-card span {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

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

.poster-link img {
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 55%);
    opacity: 0;
    transition: 0.22s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    transform: translateY(12px);
    opacity: 0;
    transition: 0.22s ease;
}

.movie-card:hover .play-chip {
    transform: translateY(0);
    opacity: 1;
}

.movie-card-body {
    padding: 16px;
}

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

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

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

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

.movie-card-compact .movie-card-body {
    padding: 13px;
}

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

.movie-card-compact p {
    font-size: 13px;
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.26);
}

.ranking-strip {
    width: 100%;
    margin-top: 80px;
    padding: 78px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}

.page-main,
.detail-main {
    padding-top: 72px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 44px;
    text-align: center;
}

.page-hero h1 {
    margin: 18px auto 14px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
}

.soft-hero,
.category-hero {
    border-radius: 0 0 36px 36px;
}

.ranking-hero {
    width: 100%;
    padding: 110px max(16px, calc((100% - 1180px) / 2)) 70px;
    color: #fff;
    background: radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.42), transparent 26%), linear-gradient(135deg, #991b1b, #ea580c);
}

.ranking-hero p {
    color: #ffedd5;
}

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

.overview-card {
    min-height: 260px;
}

.overview-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    height: 148px;
    margin-bottom: 18px;
}

.overview-covers img {
    border-radius: 16px;
}

.lead-ranking {
    margin-bottom: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.66)), linear-gradient(0deg, rgba(15, 23, 42, 0.96), transparent 48%);
}

.detail-bg img {
    filter: blur(8px) scale(1.04) saturate(1.05);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    color: #fff;
}

.detail-poster {
    height: 488px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 0 0 20px;
    max-width: 760px;
    color: #ffedd5;
    font-size: 20px;
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
}

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

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -84px auto 0;
    position: relative;
    z-index: 4;
}

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

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

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

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 44px rgba(220, 38, 38, 0.36);
    font-size: 34px;
    padding-left: 5px;
}

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

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

.story-card {
    border-radius: 26px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #374151;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.site-footer {
    margin-top: 90px;
    background: linear-gradient(135deg, #14532d, #166534);
    color: #fff;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    font-size: 20px;
}

.footer-brand p,
.copyright {
    margin: 4px 0 0;
    color: #dcfce7;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;
    color: #dcfce7;
    font-weight: 800;
}

.is-filtered-out {
    display: none;
}

@media (max-width: 1060px) {
    .hero-content,
    .detail-wrap {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 0 150px;
    }

    .hero-poster,
    .detail-poster {
        display: none;
    }

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

    .overview-grid,
    .lead-ranking,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .brand-text small {
        display: none;
    }

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

    .hero-slide {
        min-height: 648px;
    }

    .hero-content {
        min-height: 600px;
        padding-bottom: 190px;
    }

    .hero-search-card {
        bottom: 16px;
    }

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

    .filter-actions {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .overview-covers {
        height: 118px;
    }

    .detail-wrap {
        padding: 40px 0 130px;
        min-height: 560px;
    }

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

    .story-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .nav-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .brand-text strong {
        font-size: 17px;
    }

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

    .movie-card-compact {
        display: grid;
        grid-template-columns: 112px 1fr;
    }

    .movie-card-compact .poster-link {
        aspect-ratio: 2 / 3;
        height: 100%;
    }

    .hero-copy h1,
    .detail-info h1 {
        letter-spacing: -0.03em;
    }

    .hero-search-card {
        padding: 14px;
    }
}
