:root {
    --bg: #fffaf2;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(120, 53, 15, 0.14);
    --brand: #b45309;
    --brand-dark: #78350f;
    --brand-light: #f59e0b;
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffaf2 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    border-radius: 13px;
    box-shadow: 0 14px 24px rgba(194, 65, 12, 0.24);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--brand-dark);
    background: rgba(245, 158, 11, 0.13);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(245, 158, 11, 0.14);
    color: var(--brand-dark);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 24px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: white;
    background: #1c1917;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.06);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.72) 44%, rgba(28, 25, 23, 0.18));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 760px;
    padding-top: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: var(--brand);
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
    color: #fed7aa;
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(254, 215, 170, 0.25);
}

.hero-content h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 30px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 20px;
}

.hero-actions,
.detail-info .btn {
    margin-top: 10px;
}

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

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    box-shadow: 0 16px 30px rgba(194, 65, 12, 0.28);
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    margin-left: 10px;
    backdrop-filter: blur(12px);
}

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

.hero-dots button {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

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

.quick-search {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -44px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.feature-panel h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 8px 0 0;
    color: #111827;
    letter-spacing: -0.04em;
}

.search-jump {
    display: flex;
    gap: 10px;
    width: min(520px, 100%);
}

.search-jump input,
.filter-input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: #374151;
    background: #fffaf2;
    outline: none;
}

.search-jump input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-jump button {
    min-width: 96px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.section-block {
    padding: 68px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    font-size: clamp(30px, 4.5vw, 48px);
}

.section-heading > a,
.text-link {
    color: var(--brand);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 20px;
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.08), rgba(28, 25, 23, 0.86));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    margin-top: 105px;
    font-size: 24px;
    font-weight: 850;
}

.category-tile p {
    margin: 6px 0 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 14px;
}

.category-tile:hover img,
.movie-card:hover img {
    transform: scale(1.06);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 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(245, 158, 11, 0.45);
    box-shadow: var(--shadow);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(28, 25, 23, 0.72));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: white;
    background: rgba(180, 83, 9, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 6px;
    color: #111827;
    font-size: 17px;
    line-height: 1.28;
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.tag-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-list span,
.tag-cloud a,
.detail-meta span {
    color: #92400e;
    background: #ffedd5;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 40px 58px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(5px);
    border-color: rgba(245, 158, 11, 0.45);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    border-radius: 11px;
    font-weight: 850;
}

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

.ranking-info strong,
.ranking-info em {
    display: block;
}

.ranking-info em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.feature-panel,
.content-card,
.category-overview-card,
.player-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.feature-panel {
    padding: 36px;
    position: sticky;
    top: 92px;
}

.feature-panel p {
    color: var(--muted);
    margin-bottom: 24px;
}

.page-hero {
    color: white;
    background:
        radial-gradient(circle at 76% 16%, rgba(245, 158, 11, 0.28), transparent 26%),
        linear-gradient(135deg, #1c1917, #78350f 58%, #c2410c);
    padding: 86px 0;
}

.small-hero {
    padding: 78px 0;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 247, 237, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 247, 237, 0.86);
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-top: 30px;
}

.empty-state {
    padding: 24px;
    color: var(--muted);
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.category-overview-list {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    padding: 20px;
    align-items: center;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: #1c1917;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.15);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.32), transparent 30%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.74));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 58px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.one-line {
    max-width: 840px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 20px;
}

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

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #0c0a09;
    display: block;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    background: linear-gradient(135deg, #f59e0b, #c2410c);
    border-radius: 999px;
    box-shadow: 0 24px 45px rgba(194, 65, 12, 0.34);
    font-size: 34px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.content-card {
    padding: 28px;
}

.content-card p {
    color: #4b5563;
    font-size: 16px;
}

.site-footer {
    margin-top: 84px;
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #111827);
}

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

.footer-logo {
    color: #fbbf24;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
}

.site-footer h2 {
    color: white;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .quick-search,
    .section-heading,
    .two-column,
    .detail-content,
    .footer-grid,
    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

    .detail-poster {
        width: 210px;
    }
}

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

    .brand {
        font-size: 20px;
    }

    .hero-content p,
    .one-line {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        gap: 10px;
    }

    .btn-ghost {
        margin-left: 0;
    }

    .search-jump {
        flex-direction: column;
    }

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

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

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

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

    .movie-card p {
        min-height: auto;
    }
}
