:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 191, 36, 0.35);
    --amber: #f59e0b;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 18px 55px rgba(146, 64, 14, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 36rem),
        linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 42%, var(--bg) 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav a {
    white-space: nowrap;
    padding: 10px 13px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 0.94rem;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.2);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff3d6;
    color: #92400e;
    font-size: 1.15rem;
}

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

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 35%, rgba(251, 191, 36, 0.4), transparent 30rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.74) 44%, rgba(17, 24, 39, 0.22) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.1) 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(660px, 100%);
    color: #ffffff;
    padding-top: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f59e0b;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.category-chips a {
    display: inline-flex;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: rgba(255, 251, 235, 0.85);
    font-size: 0.82rem;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px;
    padding: 13px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.quick-search-panel {
    position: relative;
    z-index: 4;
    margin-top: -54px;
    padding: 22px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.home-search,
.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 15px;
    padding: 14px 16px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.filter-panel select {
    max-width: 190px;
}

.filter-panel span {
    white-space: nowrap;
    color: #92400e;
    font-weight: 800;
}

.category-chips {
    margin-top: 16px;
}

.category-chips a:hover,
.hero-tags span:hover,
.detail-tags span:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

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

.section-heading h2,
.glass-panel h2,
.content-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    letter-spacing: -0.04em;
}

.section-more {
    color: #c2410c;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 38px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.76rem;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

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

.movie-title {
    display: block;
    min-height: 2.6em;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
    color: #111827;
}

.movie-title:hover {
    color: #d97706;
}

.movie-card-body p {
    min-height: 4.2em;
    margin: 9px 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-compact .movie-card-body p {
    -webkit-line-clamp: 2;
    min-height: 3em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 800;
}

.tag-row {
    margin-top: 10px;
}

.tag-row span {
    padding: 5px 8px;
    font-size: 0.72rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 30px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

.rank-row:hover {
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-no {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-row img {
    width: 70px;
    height: 96px;
    border-radius: 13px;
    object-fit: cover;
}

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

.rank-info strong {
    font-size: 1rem;
    color: #111827;
}

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

.rank-views {
    color: #c2410c;
    font-weight: 900;
}

.glass-panel,
.content-panel,
.category-card {
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.glass-panel {
    position: sticky;
    top: 94px;
    padding: 28px;
}

.glass-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.side-category-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.side-category-list a {
    display: block;
    border-radius: 16px;
    padding: 14px;
    background: #fff7ed;
}

.side-category-list a span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    margin-top: 32px;
    padding: 46px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.26), transparent 22rem),
        linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    color: #111827;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 18px;
    align-items: center;
}

.category-cover-stack {
    position: relative;
    height: 142px;
}

.category-cover-stack img {
    position: absolute;
    width: 96px;
    height: 136px;
    border: 4px solid #ffffff;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 16px 26px rgba(146, 64, 14, 0.18);
}

.category-cover-stack img:nth-child(1) {
    left: 0;
    transform: rotate(-8deg);
}

.category-cover-stack img:nth-child(2) {
    left: 42px;
    z-index: 2;
}

.category-cover-stack img:nth-child(3) {
    left: 84px;
    transform: rotate(8deg);
}

.category-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.category-card p {
    color: var(--muted);
    line-height: 1.65;
}

.category-card span {
    color: #c2410c;
    font-weight: 900;
}

.wide-filter {
    margin-top: 24px;
}

.full-rank-list .rank-row {
    grid-template-columns: 54px 86px 1fr 120px;
}

.full-rank-list .rank-row img {
    width: 86px;
    height: 118px;
}

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

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

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.12);
    transform: scale(1.08);
    opacity: 0.65;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(251, 191, 36, 0.34), transparent 30rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.58));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 610px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: center;
    color: #ffffff;
}

.detail-poster img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

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

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.8;
}

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.detail-meta-grid span {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #fbbf24;
    font-size: 0.76rem;
}

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

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.26);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: #0f172a;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: auto;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 150px;
    height: 150px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(249, 115, 22, 0.95));
    box-shadow: 0 28px 58px rgba(249, 115, 22, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-overlay span {
    font-size: 2.7rem;
    line-height: 1;
}

.play-overlay:hover {
    transform: scale(1.05);
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.84rem;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-top: 34px;
}

.content-panel {
    padding: 28px;
}

.content-panel p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.9;
}

.info-panel dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.info-panel dt {
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 900;
}

.info-panel dd {
    margin: 3px 0 0;
    color: #111827;
    font-weight: 800;
}

.site-footer {
    margin-top: 76px;
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 251, 235, 0.9);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #92400e;
    font-weight: 800;
}

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

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

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

    .glass-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

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

    .quick-search-panel {
        margin-top: -34px;
    }

    .home-search,
    .filter-panel,
    .footer-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        max-width: none;
    }

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

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 34px 0;
    }

    .detail-poster {
        width: min(260px, 80%);
    }

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

    .full-rank-list .rank-row,
    .rank-row {
        grid-template-columns: 40px 64px 1fr;
    }

    .rank-views {
        display: none;
    }
}

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 2.35rem;
    }

    .page-hero {
        padding: 28px;
    }

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

    .poster-link {
        aspect-ratio: 16 / 12;
    }

    .play-overlay {
        width: 116px;
        height: 116px;
    }

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