:root {
    color-scheme: light;
    --bg: #fffaf0;
    --bg-soft: #fff7ed;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f59e0b;
    --primary-dark: #ea580c;
    --accent: #f97316;
    --red: #ef4444;
    --blue: #0ea5e9;
    --shadow: 0 18px 50px rgba(154, 88, 13, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-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, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.1);
    backdrop-filter: blur(14px);
}

.nav-shell,
.category-strip,
.footer-inner,
.footer-bottom,
.page-shell,
.hero-content,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
}

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

.brand-name {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff7ed;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #374151;
    border-radius: 999px;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 14px;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip a,
.mobile-category-grid a,
.chip-link {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(154, 88, 13, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-strip a:hover,
.mobile-category-grid a:hover,
.chip-link:hover {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 12px 16px 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    width: min(520px, 100%);
    margin: 0 auto;
}

.mobile-nav-link {
    padding: 13px 16px;
    border-radius: 16px;
    color: #374151;
    font-weight: 700;
    background: #fff7ed;
}

.mobile-nav-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: min(520px, 100%);
    margin: 12px auto 0;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.18));
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 72px 0;
    color: #fff;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.26);
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero h2 a {
    color: #fff;
}

.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button-primary,
.button-soft,
.button-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

.button-soft {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.button-dark {
    color: #fff;
    background: #111827;
}

.button-primary:hover,
.button-soft:hover,
.button-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.18);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-shell {
    padding: 54px 0 72px;
}

.section {
    margin-bottom: 66px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.22);
}

.section h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.more-link {
    color: #d97706;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 34px rgba(154, 88, 13, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fdba74;
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-body {
    padding: 16px;
}

.movie-meta {
    gap: 7px;
    margin-bottom: 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    background: #fffbeb;
}

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

.movie-card h3 a:hover {
    color: #d97706;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-list span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.feature-band {
    border-radius: 30px;
    padding: clamp(24px, 4vw, 38px);
    background: linear-gradient(120deg, #eff6ff, #ecfeff);
    box-shadow: var(--shadow);
}

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

.category-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(254, 215, 170, 0.78);
    border-radius: 24px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(154, 88, 13, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    font-size: 22px;
    color: #111827;
}

.category-card p {
    margin: 10px 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    color: #d97706;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 66px 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(154, 88, 13, 0.08);
}

.rank-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-item img {
    width: 66px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    background: #fed7aa;
}

.rank-copy {
    display: grid;
    gap: 6px;
}

.rank-copy strong {
    color: #111827;
    font-size: 17px;
}

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

.page-title {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: clamp(28px, 5vw, 52px);
    margin-bottom: 34px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316 46%, #7c2d12);
    box-shadow: var(--shadow);
}

.page-title h1,
.page-title p {
    position: relative;
    color: #fff;
}

.page-title p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
}

.page-title::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px;
    gap: 12px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    outline: none;
    padding: 13px 14px;
    color: #374151;
    background: #fffaf0;
}

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

.empty-state {
    display: none;
    border-radius: 24px;
    padding: 26px;
    text-align: center;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.empty-state.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 22px;
    color: #92400e;
    font-weight: 700;
}

.detail-shell {
    padding: 38px 0 72px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 44px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.24);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

.player-card.is-playing .player-overlay,
.player-overlay[hidden] {
    display: none;
}

.play-button-core {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 38px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
}

.player-label {
    display: inline-flex;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.detail-copy {
    border: 1px solid #fed7aa;
    border-radius: 28px;
    padding: clamp(22px, 4vw, 32px);
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin-bottom: 16px;
}

.detail-copy .detail-meta span {
    color: #92400e;
    background: #fffbeb;
}

.detail-copy p {
    color: #4b5563;
    line-height: 1.9;
}

.detail-section {
    border-radius: 26px;
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: 0 12px 34px rgba(154, 88, 13, 0.08);
}

.detail-section h2 {
    margin: 0 0 15px;
    font-size: 26px;
}

.detail-section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.next-prev {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.next-prev a {
    flex: 1;
    border-radius: 20px;
    padding: 16px 18px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-weight: 800;
}

.site-footer {
    background: linear-gradient(135deg, #111827, #000000);
    color: rgba(255, 255, 255, 0.78);
    padding: 46px 0 22px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 560px;
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 10px 24px;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1024px) {
    .movie-grid,
    .category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .search-box {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .brand-name {
        font-size: 22px;
    }

    .category-strip {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-control {
        display: none;
    }

    .hero h1,
    .hero h2 {
        font-size: 40px;
    }

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

    .movie-grid,
    .movie-grid.compact,
    .category-cards,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

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