:root {
    --bg: #fffbeb;
    --bg-soft: #fff7ed;
    --text: #292524;
    --muted: #78716c;
    --line: rgba(120, 113, 108, 0.18);
    --card: rgba(255, 255, 255, 0.86);
    --amber: #d97706;
    --orange: #ea580c;
    --red: #dc2626;
    --shadow: 0 22px 55px rgba(120, 53, 15, 0.16);
    --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", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(251, 191, 36, 0.24), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.18), transparent 30rem),
        linear-gradient(135deg, #fffbeb 0%, #ffffff 48%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(69, 26, 3, 0.78);
    backdrop-filter: blur(20px);
    color: #fff7ed;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c 55%, #b91c1c);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: rgba(255, 247, 237, 0.82);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #fff;
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    width: min(1320px, calc(100% - 32px));
    margin: 26px auto 0;
}

.hero-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: #1c1917;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 34px;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.72) 52%, rgba(28, 25, 23, 0.26)),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.3), transparent 22rem),
        radial-gradient(circle at 84% 12%, rgba(234, 88, 12, 0.28), transparent 26rem);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.page-title p,
.section-heading p {
    margin: 0 0 10px;
    color: #f59e0b;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 690px;
    margin: 22px 0 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.hero-search button {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.3);
}

.ghost-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    align-self: center;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.category-cover img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 38px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.active {
    background: #f59e0b;
}

.hero-side-panel {
    align-self: stretch;
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-side-panel h2,
.rank-list-section h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.rank-row:hover .rank-title {
    color: var(--orange);
}

.rank-no {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

.rank-heat {
    grid-column: 2 / -1;
    color: var(--muted);
    font-size: 13px;
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 0 8px;
}

.hero-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 12px 16px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
}

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

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #9a3412;
    font-weight: 900;
}

.light-heading h2,
.light-heading p,
.light-heading a {
    color: #fff7ed;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: #1c1917;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: saturate(1.1);
    transition: transform 0.35s ease;
}

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

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

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

.category-card span {
    margin-top: 110px;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    margin-top: 6px;
    color: #fcd34d;
}

.category-card em {
    margin-top: 10px;
    color: rgba(255, 247, 237, 0.78);
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.feature-band {
    padding: 58px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.28), transparent 22rem),
        linear-gradient(135deg, #451a03, #7c2d12 45%, #292524);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 16px 42px rgba(120, 53, 15, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 88, 12, 0.38);
    box-shadow: 0 24px 60px rgba(120, 53, 15, 0.18);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.78));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.3);
}

.card-content {
    padding: 16px;
}

.card-meta,
.card-foot,
.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.detail-meta-list span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f5f4;
}

.card-content h2 {
    min-height: 52px;
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

.card-content h2 a:hover {
    color: var(--orange);
}

.card-content p {
    min-height: 66px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.card-foot {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.card-foot strong {
    color: #b45309;
    font-size: 18px;
}

.page-hero-wrap {
    min-height: 70vh;
    padding-bottom: 48px;
}

.page-title {
    padding: 60px 0 28px;
}

.page-title span {
    display: block;
    max-width: 760px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
}

.category-cover {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 22px;
    background: #1c1917;
}

.category-overview-card p {
    margin: 4px 0 8px;
    color: #d97706;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card span {
    color: var(--muted);
    line-height: 1.8;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.listing-section {
    padding-bottom: 40px;
}

.listing-tools {
    position: sticky;
    top: 88px;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 160px;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 16px;
    background: #fafaf9;
}

.search-box span {
    color: var(--muted);
    font-size: 20px;
}

.search-box input,
.listing-tools select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.listing-tools select {
    padding: 0 12px;
    border-radius: 16px;
    background: #fafaf9;
}

.result-count {
    min-height: 24px;
    margin-bottom: 18px;
    color: var(--muted);
}

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

.rank-list-section {
    padding: 12px 0 56px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.detail-main {
    padding-bottom: 60px;
}

.detail-hero {
    padding: 36px 0 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.25), transparent 28rem),
        linear-gradient(135deg, rgba(69, 26, 3, 0.96), rgba(124, 45, 18, 0.9));
    color: #fff7ed;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

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

.detail-one-line {
    max-width: 820px;
    margin: 18px 0;
    color: rgba(255, 247, 237, 0.85);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta-list span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin: 22px 0 28px;
}

.player-section,
.detail-text {
    padding: 34px 0;
}

.player-section h2,
.detail-text h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #0c0a09;
    box-shadow: 0 26px 64px rgba(12, 10, 9, 0.34);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0c0a09;
}

.play-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.35);
    font-size: 30px;
}

.play-mask strong {
    font-size: 20px;
}

.detail-text {
    display: grid;
    gap: 12px;
    max-width: 980px;
}

.detail-text p {
    margin: 0 0 18px;
    color: #57534e;
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    padding: 46px 0 20px;
    color: #fed7aa;
    background: linear-gradient(135deg, #292524, #451a03);
}

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

.site-footer p {
    max-width: 520px;
    color: rgba(255, 237, 213, 0.78);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff7ed;
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 237, 213, 0.82);
}

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 237, 213, 0.14);
    color: rgba(255, 237, 213, 0.65);
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1180px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

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

    .hero-side-panel h2 {
        grid-column: 1 / -1;
    }

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

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(69, 26, 3, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .hero-poster {
        width: min(260px, 70%);
    }

    .quick-search,
    .detail-grid,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

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

    .listing-tools {
        grid-template-columns: 1fr;
        position: static;
    }
}

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

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

    .hero-shell {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 26px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

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

    .hero-search {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 46px;
    }

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

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

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

    .category-cover {
        max-width: 180px;
    }

    .rank-list {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .detail-grid {
        padding: 18px;
        border-radius: 26px;
    }

    .detail-poster {
        max-width: 240px;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .spotlight-grid,
    .listing-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .page-title h1,
    .section-heading h2 {
        font-size: 32px;
    }
}
