:root {
    --page: #fff7ed;
    --panel: #ffffff;
    --panel-soft: #fffaf3;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f97316;
    --primary-dark: #ea580c;
    --amber: #f59e0b;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 36rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(254, 215, 170, 0.72);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.mobile-nav,
.main-wrap,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #9a3412;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #9a3412;
    background: #ffedd5;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffedd5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: #9a3412;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.main-wrap {
    padding: 36px 0 72px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b 55%, #facc15);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 22rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.2));
    z-index: 1;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(8px) saturate(1.15);
    transform: scale(1.05);
}

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

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 630px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #9a3412;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 32px 80px rgba(17, 24, 39, 0.32);
    backdrop-filter: blur(14px);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    height: min(520px, 68vh);
    object-fit: cover;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.hero-poster .poster-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.poster-caption strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.08rem;
}

.poster-caption span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.active {
    background: #ffffff;
}

.hero-search {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    padding: 20px;
    border: 1px solid rgba(254, 215, 170, 0.75);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    gap: 12px;
}

.search-control,
.select-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fffaf3;
    color: var(--ink);
    padding: 0 15px;
    outline: none;
    font: inherit;
}

.search-control:focus,
.select-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.section {
    margin-top: 58px;
}

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.category-card p,
.detail-lead {
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 24px 42px rgba(31, 41, 55, 0.14);
}

.poster-shell {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.poster-shell::before,
.hero-poster::before,
.rank-poster::before,
.detail-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 10rem),
        linear-gradient(135deg, #f97316, #facc15);
}

.poster-shell img {
    position: relative;
    aspect-ratio: 2 / 3;
    height: 280px;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

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

img.is-hidden {
    opacity: 0;
}

.poster-badge,
.poster-year {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.poster-badge {
    left: 12px;
}

.poster-year {
    right: 12px;
    background: rgba(17, 24, 39, 0.74);
}

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

.movie-card h3,
.rank-card h3,
.related-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.related-card h3 a:hover {
    color: var(--primary-dark);
}

.movie-meta,
.movie-intro,
.rank-card p,
.related-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.movie-intro {
    min-height: 44px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 16px 32px rgba(31, 41, 55, 0.08);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.15);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 950;
}

.category-card p,
.category-card a {
    position: relative;
    z-index: 1;
}

.category-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary-dark);
    font-weight: 900;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.08);
}

.rank-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-poster img {
    position: relative;
    height: 144px;
    object-fit: cover;
}

.rank-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 950;
}

.page-title {
    padding: 40px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #9a3412 55%, #f97316);
    box-shadow: var(--shadow);
}

.page-title h1,
.page-title p {
    color: #ffffff;
}

.filter-bar {
    margin: 26px 0;
    padding: 18px;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
    display: grid;
    grid-template-columns: 1fr 170px 170px 140px;
    gap: 12px;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #fdba74;
    border-radius: 22px;
    background: #fff7ed;
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #7c2d12;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
    gap: 30px;
    align-items: stretch;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: var(--shadow);
}

.detail-cover img {
    position: relative;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.detail-title {
    padding: 32px;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.1);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.detail-section {
    margin-top: 36px;
    padding: 30px;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    font-weight: 950;
}

.detail-section p {
    color: #4b5563;
    font-size: 1.03rem;
    line-height: 1.9;
}

.player-card {
    overflow: hidden;
    margin-top: 36px;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    background: #020617;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.76)),
        var(--poster-bg, transparent);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font: inherit;
    font-weight: 950;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #9a3412;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.25);
    font-size: 2rem;
}

.player-card.is-playing .play-overlay {
    display: none;
}

.player-caption {
    padding: 22px 24px;
    color: rgba(255, 255, 255, 0.76);
}

.player-caption h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 950;
}

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

.related-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: 20px;
    background: #ffffff;
}

.related-card img {
    aspect-ratio: 2 / 3;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.related-card div {
    padding: 12px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 0.75fr;
    gap: 34px;
    padding: 46px 0 32px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 1rem;
    font-weight: 950;
}

.footer-grid p {
    line-height: 1.75;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 8px 0;
}

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

.footer-brand {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-nav.open {
        display: flex;
    }

    .hero,
    .hero-slider {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 20px;
        align-content: center;
        padding-bottom: 58px;
    }

    .hero-poster img {
        height: 330px;
    }

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

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

    .movie-grid,
    .rank-grid,
    .related-grid,
    .category-grid,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 560px) {
    .nav-wrap,
    .mobile-nav,
    .main-wrap,
    .footer-grid,
    .footer-bottom,
    .hero-slider,
    .hero-search {
        width: min(100% - 20px, 1180px);
    }

    .brand {
        font-size: 0.95rem;
    }

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

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

    .hero h1,
    .hero h2 {
        font-size: 2.4rem;
    }

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

    .poster-shell img {
        height: 360px;
    }

    .rank-card {
        grid-template-columns: 96px 1fr;
    }

    .page-title,
    .detail-title,
    .detail-section {
        padding: 24px;
    }
}
