:root {
    --bg: #fff7ed;
    --soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --gold: #f59e0b;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(194, 65, 12, 0.16);
    --shadow-soft: 0 10px 30px rgba(124, 45, 18, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fef3c7 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.24);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

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

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

.brand-icon,
.footer-logo span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong,
.footer-logo strong {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #b45309, var(--brand));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a,
.mobile-nav a,
.header-search {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--brand);
}

.header-search {
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--brand-dark);
    font-weight: 800;
}

.header-search:hover {
    background: #ffedd5;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff7ed;
    color: var(--brand-dark);
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid #fed7aa;
    background: #fff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #4b5563;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--brand);
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #fb923c, #f59e0b);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(154, 52, 18, 0.92), rgba(249, 115, 22, 0.72), rgba(245, 158, 11, 0.58));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    color: #fff;
}

.hero-pill,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: #fef3c7;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    color: #fff7ed;
}

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

.hero-meta span,
.detail-meta span {
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-actions,
.pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-light {
    color: var(--brand);
    background: #fff;
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.2);
}

.btn-solid {
    color: #fff;
    background: var(--brand-dark);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.2);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

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

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

.feature-strip {
    background: #fff;
    border-bottom: 1px solid #fed7aa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 38px 0;
}

.feature-grid div {
    display: grid;
    gap: 6px;
    text-align: center;
}

.feature-grid b {
    font-size: 42px;
}

.feature-grid strong {
    color: #111827;
    font-size: 18px;
}

.feature-grid span {
    color: var(--muted);
    font-size: 14px;
}

.content-section {
    padding: 72px 0;
}

.soft-bg {
    background: rgba(255, 255, 255, 0.52);
}

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

.section-kicker {
    padding: 7px 12px;
    color: var(--brand);
    background: #ffedd5;
    backdrop-filter: none;
}

.section-head h2 {
    margin: 10px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    color: var(--brand);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.movie-card:hover .movie-cover img,
.related-card:hover img {
    transform: scale(1.08);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(249, 115, 22, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--brand));
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.28);
}

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

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

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

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-desc {
    margin-top: 10px;
    min-height: 42px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile,
.category-large {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 22px;
    border-radius: var(--radius);
    color: #7c2d12;
    background: linear-gradient(135deg, #fff, #ffedd5);
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile strong,
.category-large span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile span,
.category-large strong {
    color: #9a3412;
    font-size: 14px;
    line-height: 1.7;
}

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

.category-large {
    min-height: 150px;
}

.category-large.channel {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 78px 0;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 26%), linear-gradient(120deg, #f97316, #f59e0b);
}

.page-hero p {
    margin: 0 0 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffedd5;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.8;
}

.search-panel {
    margin-bottom: 30px;
}

.search-panel input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #fdba74;
    border-radius: 18px;
    outline: none;
    color: #7c2d12;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-panel.large input {
    height: 66px;
    border-radius: 22px;
    font-size: 18px;
}

.search-panel input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12), var(--shadow-soft);
}

.detail-main {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #7c2d12;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.1);
    opacity: 0.46;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(194, 65, 12, 0.74));
}

.detail-top {
    position: relative;
    z-index: 2;
    padding: 46px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: #ffedd5;
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.poster-card {
    overflow: hidden;
    border-radius: 30px;
    background: #fff7ed;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

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

.detail-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags span {
    color: #7c2d12;
    background: #ffedd5;
}

.player-section {
    padding: 44px 0 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: rgba(17, 24, 39, 0.42);
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.94);
    font-size: 34px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

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

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

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.prose-card,
.side-card,
.faq-grid details {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.prose-card p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.side-card dl {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px 16px;
    margin: 0 0 24px;
}

.side-card dt {
    color: #9a3412;
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #4b5563;
}

.pager-links a {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 900;
}

.pager-links a:hover {
    color: #fff;
    background: var(--brand);
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-card strong,
.related-card span {
    display: block;
    padding: 0 12px;
}

.related-card strong {
    margin-top: 12px;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
}

.related-card span {
    margin: 5px 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.faq-grid {
    display: grid;
    gap: 16px;
}

.faq-grid summary {
    cursor: pointer;
    color: #9a3412;
    font-weight: 900;
}

.faq-grid p {
    margin: 14px 0 0;
    color: #4b5563;
    line-height: 1.8;
}

.site-footer {
    border-top: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff, #fff7ed);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 50px 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand p,
.site-footer li,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #111827;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a:hover {
    color: var(--brand);
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid #fed7aa;
    font-size: 14px;
}

.is-hidden-by-search {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 28px;
    }

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

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

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 66px;
    }

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

    .brand-icon,
    .footer-logo span {
        width: 36px;
        height: 36px;
    }

    .header-search {
        display: none;
    }

    .hero {
        height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 28px 0 70px;
    }

    .hero-poster {
        width: min(260px, 76vw);
        margin: 0 auto;
    }

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

    .section-head {
        display: grid;
        align-items: start;
    }

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

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

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

    .movie-desc {
        display: none;
    }

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

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

    .poster-card {
        width: min(280px, 78vw);
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .detail-one-line {
        font-size: 17px;
    }

    .player-frame {
        border-radius: 18px;
    }

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

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