:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --pink-500: #ec4899;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d7b3;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 22px 65px rgba(146, 64, 14, 0.18);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #fff7ed 0%, #fffaf3 48%, #ffffff 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    object-fit: cover;
}

.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));
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 10px 35px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--amber-700);
    letter-spacing: -0.03em;
}

.brand-text {
    font-size: 26px;
    background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #6b3f13;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.local-search-wrap input {
    width: 220px;
    border: 1px solid #f3c681;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.local-search-wrap input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--amber-700);
}

.mobile-panel {
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
    background: rgba(255, 247, 237, 0.98);
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-search input {
    width: 100%;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 76px 22px 40px;
    color: #ffffff;
    background: linear-gradient(120deg, #92400e 0%, #d97706 42%, #f97316 72%, #b45309 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(60px);
    pointer-events: none;
}

.glow-a {
    width: 320px;
    height: 320px;
    left: 8%;
    top: 24px;
}

.glow-b {
    width: 420px;
    height: 420px;
    right: -6%;
    bottom: -140px;
}

.hero-slider {
    position: relative;
    max-width: 1280px;
    min-height: 520px;
    margin: 0 auto;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow,
.player-heading .eyebrow {
    color: #ffedd5;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.tag-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.tag-cloud a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 247, 237, 0.92);
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 750;
}

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

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

.primary-btn {
    background: #ffffff;
    color: var(--amber-700);
    box-shadow: 0 18px 38px rgba(146, 64, 14, 0.28);
}

.ghost-btn {
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(380px, 100%);
    justify-self: center;
    aspect-ratio: 2 / 3;
    border: 12px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(69, 26, 3, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--amber-700);
    font-weight: 850;
}

.hero-controls {
    position: relative;
    max-width: 1280px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(69, 26, 3, 0.18);
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.7;
}

.hero-dot.active {
    width: 32px;
    opacity: 1;
}

.metric-strip,
.split-section,
.section-block,
.category-overview-grid,
.breadcrumb,
.detail-hero,
.detail-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.metric-strip a,
.soft-panel,
.ranking-panel,
.tags-panel,
.category-overview-card,
.detail-content article,
.player-shell {
    background: var(--panel);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.metric-strip a {
    padding: 24px;
}

.metric-strip strong {
    display: block;
    color: var(--amber-700);
    font-size: 24px;
    margin-bottom: 8px;
}

.metric-strip span {
    color: var(--muted);
}

.section-block {
    padding-top: 66px;
}

.section-block.narrow {
    max-width: 980px;
}

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

.section-title.compact {
    align-items: center;
}

.section-title h2,
.tags-panel h2,
.page-hero h1,
.detail-copy h1,
.player-heading h2,
.detail-content h2 {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.section-title p,
.tags-panel p,
.page-hero p,
.detail-one-line,
.detail-content p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.section-title > a,
.text-link {
    color: var(--amber-700);
    font-weight: 850;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.38);
    box-shadow: 0 28px 65px rgba(146, 64, 14, 0.2);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(69, 26, 3, 0.74));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 850;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--amber-700);
}

.rank-badge {
    left: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
    color: #ffffff;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #2f210f;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
}

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

.tag-row span {
    padding: 5px 9px;
    background: #fff7ed;
    font-size: 12px;
}

.soft-panel {
    max-width: 1236px;
    margin-top: 66px;
    padding: 36px;
}

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

.category-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: 0 18px 42px rgba(146, 64, 14, 0.18);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.35s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.08), rgba(69, 26, 3, 0.82));
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card span,
.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
}

.category-card span {
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 850;
}

.category-card strong {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: #ffedd5;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    padding-top: 66px;
}

.ranking-panel,
.tags-panel {
    padding: 28px;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 12px;
    color: var(--ink);
    background: rgba(255, 247, 237, 0.76);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.ranking-num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    font-weight: 900;
}

.ranking-row img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
}

.ranking-copy {
    min-width: 0;
}

.ranking-copy strong,
.ranking-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy strong {
    font-weight: 850;
}

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

.ranking-action {
    color: var(--amber-700);
    font-weight: 850;
}

.tags-panel .tag-cloud {
    margin-top: 24px;
}

.page-hero {
    padding: 88px 22px;
    color: #ffffff;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(120deg, #92400e, #f97316 60%, #b45309);
}

.page-hero h1,
.page-hero p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-hero p {
    color: #ffedd5;
    font-size: 18px;
}

.local-search-wrap,
.search-page-form {
    margin: 28px auto 0;
    max-width: 720px;
}

.local-search-wrap input {
    width: 100%;
    min-height: 52px;
    padding-left: 20px;
    padding-right: 20px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 66px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-page-form input {
    width: 100%;
    min-height: 54px;
}

.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.search-tools button {
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--amber-700);
    background: #ffffff;
    font-weight: 780;
}

.search-tools button.active,
.search-tools button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
}

.empty-state {
    padding: 38px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 760;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

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

.detail-copy .eyebrow,
.player-heading .eyebrow {
    color: var(--amber-700);
}

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 64px);
}

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

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

.detail-meta span {
    border-radius: 16px;
    padding: 10px 14px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 760;
}

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

.player-section {
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 0 22px;
}

.player-heading {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 0;
    background: #1f1308;
}

.stream-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(31, 19, 8, 0.18), rgba(31, 19, 8, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.play-overlay span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 8px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid var(--amber-700);
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 58px;
}

.detail-content article {
    padding: 28px;
}

.related-block {
    padding-bottom: 26px;
}

.site-footer {
    margin-top: 78px;
    color: #ffedd5;
    background: linear-gradient(90deg, #78350f, #9a3412 55%, #7c2d12);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 850;
}

.site-footer p,
.site-footer a {
    display: block;
    color: #ffedd5;
    line-height: 1.75;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 237, 213, 0.22);
    padding: 18px 22px;
    text-align: center;
    color: #fed7aa;
}

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

    .split-section {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-actions,
    .hero-tags {
        justify-content: center;
    }

    .hero-poster {
        width: min(300px, 84vw);
        transform: rotate(0);
    }

    .metric-strip,
    .category-overview-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
        margin: 0 auto;
    }

    .ranking-list.wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 21px;
    }

    .hero-section {
        padding: 52px 16px 32px;
    }

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

    .metric-strip,
    .split-section,
    .section-block,
    .category-overview-grid,
    .breadcrumb,
    .detail-hero,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .movie-info {
        padding: 14px;
    }

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

    .movie-desc,
    .tag-row {
        display: none;
    }

    .page-hero {
        padding: 62px 16px;
    }

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

    .play-overlay span {
        width: 68px;
        height: 68px;
    }
}
