* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.22), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 32rem),
        #fffaf5;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(248, 113, 113, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 50px rgba(127, 29, 29, 0.06);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444, #f97316 55%, #f59e0b);
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 21px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #991b1b;
}

.brand-text small {
    color: #8b5a2b;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 10px 14px;
    color: #5b4636;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1e7;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #b91c1c;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #2b0b09;
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        radial-gradient(circle at 22% 20%, rgba(251, 191, 36, 0.48), transparent 27rem),
        radial-gradient(circle at 80% 14%, rgba(248, 113, 113, 0.45), transparent 30rem),
        linear-gradient(135deg, #450a0a 0%, #7f1d1d 35%, #c2410c 72%, #f59e0b 100%);
}

.hero::after {
    background:
        linear-gradient(90deg, rgba(20, 6, 6, 0.95) 0%, rgba(35, 9, 9, 0.78) 46%, rgba(60, 17, 8, 0.38) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.40), transparent 48%);
}

.hero-stage {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) 430px;
    align-items: center;
    gap: 52px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.hero-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 14px;
    margin-bottom: 24px;
    color: #ffedd5;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 26px;
    color: rgba(255, 247, 237, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions,
.detail-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316 58%, #f59e0b);
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
    transition: 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(239, 68, 68, 0.36);
}

.button.ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.button.light {
    color: #9a3412;
    background: #ffffff;
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px rgba(17, 10, 6, 0.45);
    backdrop-filter: blur(22px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
}

.hero-poster-card {
    position: absolute;
    right: -18px;
    bottom: 26px;
    left: 26px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: rgba(20, 8, 6, 0.78);
    backdrop-filter: blur(14px);
}

.hero-poster-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-poster-card span {
    color: #fed7aa;
    font-size: 14px;
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 58px;
    background: #ffffff;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 650px;
    padding: 8px;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    outline: 0;
    color: #3f2a18;
    background: #ffffff;
    font-size: 15px;
}

.section {
    padding: 70px 0 0;
}

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

.section-title h2,
.section-title h1 {
    margin: 0 0 8px;
    color: #21140f;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-title p {
    max-width: 720px;
    margin: 0;
    color: #76523d;
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 55px rgba(124, 45, 18, 0.09);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 68px rgba(124, 45, 18, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.45s ease;
}

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

.poster-type,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.92);
    backdrop-filter: blur(12px);
}

.poster-type {
    right: 12px;
}

.rank-badge {
    left: 12px;
    min-width: 34px;
    text-align: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-info {
    padding: 18px;
}

.movie-title {
    display: block;
    color: #24140e;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: #dc2626;
}

.movie-info p {
    min-height: 48px;
    margin: 10px 0 14px;
    color: #76523d;
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff2df;
}

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

.tag-row span {
    padding: 5px 9px;
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: #fffaf0;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 185px;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #991b1b, #ea580c 58%, #f59e0b);
    box-shadow: 0 24px 56px rgba(153, 27, 27, 0.18);
}

.category-card::after {
    position: absolute;
    content: "";
    right: -32px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: rgba(255, 247, 237, 0.88);
    line-height: 1.75;
}

.category-card span {
    position: relative;
    z-index: 2;
    font-weight: 900;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(124, 45, 18, 0.08);
}

.page-hero {
    padding: 78px 0 26px;
    background:
        radial-gradient(circle at 18% 10%, rgba(248, 113, 113, 0.30), transparent 25rem),
        radial-gradient(circle at 86% 4%, rgba(251, 191, 36, 0.26), transparent 28rem);
}

.page-hero .section-title {
    margin-bottom: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #3f0a0a, #7f1d1d 50%, #c2410c);
}

.detail-hero::after {
    position: absolute;
    content: "";
    inset: 0;
    background: radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.38), transparent 25rem);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    padding: 10px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 237, 213, 0.82);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 20px 0 24px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #110706;
    box-shadow: 0 28px 70px rgba(39, 12, 5, 0.24);
}

.stream-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090403;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(14, 5, 4, 0.72), rgba(14, 5, 4, 0.42)),
        radial-gradient(circle at center, rgba(251, 146, 60, 0.34), transparent 26rem);
    cursor: pointer;
    transition: 0.25s ease;
}

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

.play-circle {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 24px 52px rgba(239, 68, 68, 0.38);
    font-size: 34px;
    transform: translateZ(0);
}

.content-block {
    display: grid;
    gap: 22px;
    padding: 34px;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 58px rgba(124, 45, 18, 0.08);
}

.content-block h2,
.content-block h3 {
    margin: 0;
    color: #26150e;
}

.content-block p {
    margin: 0;
    color: #67432d;
    line-height: 1.9;
}

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

.empty-state {
    display: none;
    padding: 34px;
    color: #7c2d12;
    border-radius: 24px;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

.site-footer {
    margin-top: 82px;
    padding: 56px 0;
    color: #ffedd5;
    background: linear-gradient(135deg, #170605, #45100b 48%, #7c2d12);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 42px;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 237, 213, 0.78);
    line-height: 1.85;
}

.footer-logo .brand-text strong,
.footer-logo .brand-text small {
    color: #ffffff;
}

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

.footer-links h3 {
    margin: 0 0 6px;
    color: #ffffff;
}

.footer-links a {
    color: rgba(255, 237, 213, 0.76);
}

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

@media (max-width: 1080px) {
    .card-grid,
    .card-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 32px;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        right: 16px;
        left: 16px;
        display: none;
        padding: 16px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 28px 70px rgba(127, 29, 29, 0.15);
    }

    .site-nav.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 48px 0 74px;
    }

    .hero-poster {
        width: min(330px, 90%);
        margin: 0 auto;
    }

    .hero-poster-card {
        right: 10px;
        left: 10px;
        bottom: 18px;
    }

    .hero-search,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        width: min(320px, 100%);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .section,
    .footer-inner,
    .hero-stage,
    .detail-layout {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-text small {
        display: none;
    }

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

    .movie-info {
        padding: 14px;
    }

    .movie-title {
        font-size: 16px;
    }

    .movie-info p {
        min-height: auto;
        font-size: 13px;
    }

    .section-title {
        display: block;
    }

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

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

    .content-block {
        padding: 22px;
    }
}

.content-stack {
    display: grid;
    gap: 22px;
}

.content-block .tag-row a {
    padding: 6px 10px;
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: #fffaf0;
    font-size: 13px;
    font-weight: 800;
}
