:root {
    --bg: #fff8ed;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --amber: #f59e0b;
    --deep: #7c2d12;
    --soft: #ffedd5;
    --shadow: 0 22px 60px rgba(154, 52, 18, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--deep);
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 35px rgba(249, 115, 22, 0.32);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #7c2d12;
    font-size: 15px;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: #ffedd5;
    color: #c2410c;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 34px;
    overflow: hidden;
    border-radius: 34px;
    background: radial-gradient(circle at 18% 22%, rgba(255, 237, 213, 0.96), transparent 34%), linear-gradient(135deg, #431407 0%, #9a3412 45%, #f59e0b 100%);
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.42;
}

.hero-glow-one {
    left: -120px;
    top: -90px;
    background: #fed7aa;
}

.hero-glow-two {
    right: -90px;
    bottom: -100px;
    background: #facc15;
}

.hero-slider {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 46px;
    align-items: center;
    padding: 62px;
    opacity: 0;
    transform: translateX(30px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-media {
    min-height: 480px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(-2deg);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #9a3412;
    background: #ffedd5;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
}

.btn-soft {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.88);
}

.hero-dots {
    position: absolute;
    left: 62px;
    bottom: 42px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: white;
}

.search-panel,
.content-section,
.filter-panel,
.category-grid,
.rank-page-list,
.text-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(154, 52, 18, 0.08);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 10px 0 0;
    color: #431407;
    line-height: 1.15;
}

.quick-search,
.filter-line {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-line input,
.filter-line select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    color: #7c2d12;
    background: white;
}

.quick-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-pills {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 54px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.category-pills a,
.category-card a {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 35px rgba(154, 52, 18, 0.08);
}

.category-pills strong,
.category-card span {
    display: block;
    color: #9a3412;
    font-size: 17px;
}

.category-pills span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-hero p,
.card-body p,
.category-card p,
.rank-card p,
.detail-text p,
.text-section p,
.site-footer p {
    color: var(--muted);
}

.section-link {
    color: #c2410c;
    font-weight: 800;
}

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

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

.movie-card,
.rank-card,
.category-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.9);
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 44px rgba(154, 52, 18, 0.08);
    transition: 0.25s ease;
}

.card-cover {
    display: block;
}

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    background: rgba(67, 20, 7, 0.72);
    backdrop-filter: blur(10px);
}

.poster-tone-1 { background: linear-gradient(135deg, #fed7aa, #fb923c); }
.poster-tone-2 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.poster-tone-3 { background: linear-gradient(135deg, #fdba74, #c2410c); }
.poster-tone-4 { background: linear-gradient(135deg, #fecaca, #f97316); }
.poster-tone-5 { background: linear-gradient(135deg, #fef3c7, #d97706); }
.poster-tone-6 { background: linear-gradient(135deg, #ffedd5, #ea580c); }
.poster-tone-7 { background: linear-gradient(135deg, #fed7aa, #7c2d12); }
.poster-tone-8 { background: linear-gradient(135deg, #fef9c3, #fb923c); }
.poster-tone-9 { background: linear-gradient(135deg, #fde68a, #92400e); }
.poster-tone-10 { background: linear-gradient(135deg, #fff7ed, #f97316); }
.poster-tone-11 { background: linear-gradient(135deg, #fcd34d, #9a3412); }
.poster-tone-12 { background: linear-gradient(135deg, #fed7aa, #431407); }

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.card-body h3 {
    margin: 8px 0 8px;
    color: #431407;
    font-size: 18px;
    line-height: 1.3;
}

.card-body p {
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.warm-section {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
}

.rank-list span,
.rank-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-list strong,
.rank-list em {
    display: block;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #ffedd5);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.compact-hero {
    padding: 46px;
}

.compact-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
    padding: 0;
}

.filter-line {
    margin-bottom: 22px;
}

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

.category-card a {
    min-height: 176px;
}

.category-card strong {
    display: block;
    margin: 10px 0;
    color: #431407;
    font-size: 28px;
}

.rank-page-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 70px 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
}

.rank-card h2 {
    margin: 0 0 8px;
    color: #431407;
}

.rank-poster .poster {
    border-radius: 18px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    padding: 34px;
}

.detail-cover .poster {
    min-height: 480px;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(154, 52, 18, 0.18);
}

.crumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: #c2410c;
    font-size: 14px;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 66px);
}

.lead {
    color: #7c2d12;
    font-size: 20px;
}

.detail-meta {
    margin: 20px 0;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section,
.detail-text {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 44px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-stage video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.watch-start {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 132px;
    height: 132px;
    border: 0;
    border-radius: 999px;
    color: white;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.4);
}

.player-stage.is-playing .watch-start {
    display: none;
}

.detail-text,
.text-section {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: 0 18px 50px rgba(154, 52, 18, 0.08);
}

.detail-text h2,
.text-section h2 {
    margin: 0 0 10px;
    color: #431407;
}

.detail-text p + h2,
.text-section p + h2 {
    margin-top: 28px;
}

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #431407, #9a3412);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand,
.site-footer h3 {
    color: white;
}

.site-footer a {
    display: block;
    margin: 6px 0;
}

@media (max-width: 980px) {
    .hero-slide,
    .detail-hero,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero-media {
        min-height: 320px;
    }

    .movie-grid,
    .library-grid,
    .category-pills,
    .category-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #fff7ed;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

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

    .hero-slide {
        padding: 24px;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .quick-search,
    .filter-line {
        flex-direction: column;
    }

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

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

    .compact-hero,
    .detail-hero,
    .warm-section,
    .detail-text,
    .text-section {
        padding: 24px;
    }
}
