@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
    --bg-top: #fffbeb;
    --bg-mid: #fff7ed;
    --bg-bottom: #fef2f2;
    --red-950: #450a0a;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-100: #fee2e2;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-100: #fef3c7;
    --white: #ffffff;
    --ink: #24120f;
    --muted: #7c4a3d;
    --line: rgba(153, 27, 27, 0.16);
    --shadow: 0 20px 45px rgba(69, 10, 10, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg-top), var(--bg-mid) 45%, var(--bg-bottom));
    font-family: 'Noto Serif SC', 'Microsoft YaHei', 'PingFang SC', serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.96));
    border-bottom: 2px solid rgba(153, 27, 27, 0.88);
    box-shadow: 0 12px 30px rgba(69, 10, 10, 0.12);
    backdrop-filter: blur(12px);
}

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

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

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--amber-100);
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red-700), var(--red-950));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 12px 24px rgba(127,29,29,0.22);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(6deg) scale(1.03);
}

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

.brand-copy strong {
    color: var(--red-900);
    font-size: 24px;
    letter-spacing: 0.03em;
}

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

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

.nav-link,
.mobile-link {
    color: var(--red-900);
    font-weight: 600;
    transition: color 0.25s ease;
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--red-900);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-100);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(254, 226, 226, 0.55);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--red-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 1.1s ease;
}

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

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.12), transparent 32%), linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.68));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100% - 32px));
    text-align: center;
    color: var(--white);
    padding: 78px 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red-700);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    color: var(--amber-300);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 1.04;
    text-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

.hero-content p {
    width: min(760px, 100%);
    margin: 22px auto 0;
    font-size: clamp(16px, 2.4vw, 22px);
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--amber-100);
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.26);
    backdrop-filter: blur(8px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--red-950));
    box-shadow: 0 16px 28px rgba(127, 29, 29, 0.26);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(127, 29, 29, 0.26);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.content-section {
    margin-top: 58px;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--red-950);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.section-heading p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--red-900);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
}

.search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 26px;
    align-items: stretch;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(254,226,226,0.74));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-hero h2 {
    margin: 0 0 12px;
    color: var(--red-950);
    font-size: clamp(28px, 4vw, 44px);
}

.search-hero p {
    color: var(--muted);
    line-height: 1.8;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.quick-links a,
.category-pill {
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--red-900);
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 700;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 26px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -140px 100px rgba(0,0,0,0.68);
}

.spotlight-card a {
    position: absolute;
    inset: auto 18px 18px;
    color: var(--white);
}

.spotlight-card strong {
    display: block;
    font-size: 24px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(153,27,27,0.12);
    box-shadow: 0 12px 26px rgba(69,10,10,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-900), var(--red-950));
}

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

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

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--red-900);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--red-950);
    background: var(--amber-300);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

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

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--red-700);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    min-height: 54px;
    margin: 10px 0 8px;
    color: var(--red-950);
    font-size: 18px;
    line-height: 1.5;
}

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

.tag-row {
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    color: var(--red-800);
    background: rgba(254, 226, 226, 0.72);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 26px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-700), var(--red-950));
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 26px;
}

.category-card p {
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 200px 180px;
    gap: 14px;
    align-items: end;
    margin: 24px 0 30px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(69,10,10,0.07);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--red-900);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    color: var(--red-950);
    background: var(--white);
    outline: none;
}

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

.breadcrumbs {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--red-700);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69,10,10,0.88), rgba(69,10,10,0.48)), radial-gradient(circle at 80% 20%, rgba(252,211,77,0.24), transparent 34%);
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 36px;
    color: var(--white);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.12;
}

.detail-info p {
    color: rgba(255,255,255,0.84);
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(255,255,255,0.16);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 36px;
}

.panel {
    border-radius: 28px;
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(69,10,10,0.08);
    padding: 24px;
}

.panel h2 {
    margin: 0 0 16px;
    color: var(--red-950);
    font-size: 28px;
}

.panel p {
    color: var(--muted);
    line-height: 1.9;
}

.player-panel {
    padding: 0;
    overflow: hidden;
}

.player-title {
    padding: 20px 24px;
    color: var(--red-950);
    font-size: 24px;
    font-weight: 700;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.58));
    cursor: pointer;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--red-900);
    background: rgba(255,255,255,0.92);
    font-size: 36px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
}

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

.side-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(254,242,242,0.78);
    transition: transform 0.22s ease, background 0.22s ease;
}

.side-item:hover {
    transform: translateX(4px);
    background: rgba(254,226,226,0.92);
}

.side-item img {
    width: 78px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.side-item strong {
    color: var(--red-950);
}

.side-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.hidden-card {
    display: none !important;
}

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

    .mobile-toggle {
        display: block;
    }

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

    .search-hero,
    .detail-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 100%);
    }

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

@media (max-width: 620px) {
    .nav-shell {
        width: min(100% - 24px, 1180px);
        height: 72px;
    }

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

    .brand-mark {
        width: 42px;
        height: 42px;
    }

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

    .hero-content {
        padding: 58px 0;
    }

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

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

    .page-main {
        width: min(100% - 24px, 1180px);
        padding-top: 36px;
    }

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

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

    .detail-inner {
        padding: 22px;
    }

    .panel {
        padding: 18px;
    }
}
