:root {
    --amber: #f59e0b;
    --orange: #f97316;
    --deep: #111827;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3e8d5;
    --soft: #fff7ed;
    --card: #ffffff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 20px 55px rgba(124, 45, 18, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber), var(--orange), var(--amber));
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.26);
}

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

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--orange);
    box-shadow: inset 0 0 0 5px rgba(249, 115, 22, 0.08);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(8deg);
}

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

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    padding: 25px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 18px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--ink);
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--orange);
    background: var(--soft);
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--deep);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px) saturate(1.12);
    opacity: 0.62;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(251, 191, 36, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.74) 48%, rgba(17, 24, 39, 0.38) 100%);
}

.hero-content {
    position: relative;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 92px;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #fde68a;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.hero-line {
    max-width: 680px;
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.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;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

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

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

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

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

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: inherit;
    z-index: 1;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.page-stack {
    display: grid;
    gap: 56px;
    padding: 54px 0 72px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px 130px;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.filter-panel input,
.filter-panel select,
.filter-clear {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fffaf0;
    color: var(--ink);
    outline: none;
}

.filter-panel input {
    padding: 0 16px;
}

.filter-panel select {
    padding: 0 12px;
}

.filter-clear {
    color: #ffffff;
    border: 0;
    font-weight: 900;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

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

.category-chip {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    color: var(--ink);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
    box-shadow: 0 14px 35px rgba(249, 115, 22, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.18);
}

.category-chip strong {
    font-size: 20px;
}

.category-chip span {
    color: var(--muted);
    font-size: 14px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--orange);
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 38px rgba(124, 45, 18, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, var(--orange));
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

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

.movie-desc {
    min-height: 58px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 30px;
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.rank-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

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

.rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.small-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
    font-size: 12px;
}

.empty-state {
    display: none;
    margin: 26px 0 0;
    padding: 24px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed #fdba74;
}

.sub-hero {
    padding: 76px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.24), transparent 25%),
        linear-gradient(100deg, #ea580c, #f59e0b);
}

.sub-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.sub-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

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

.category-card-large {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large a {
    display: grid;
    grid-template-columns: 46% 1fr;
    min-height: 240px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 8px;
    background: #fff7ed;
}

.category-covers img {
    width: 100%;
    height: 100%;
    min-height: 108px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.category-info p {
    margin: 0 0 10px;
    color: var(--orange);
    font-weight: 900;
}

.category-info h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.category-info span {
    color: var(--muted);
    line-height: 1.7;
}

.detail-page {
    padding: 42px 0 76px;
}

.detail-layout {
    display: grid;
    gap: 28px;
}

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

.breadcrumb a {
    color: var(--orange);
    font-weight: 800;
}

.detail-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: stretch;
}

.player-card,
.detail-side,
.detail-content,
.related-section,
.static-content section {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    padding: 16px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.video-play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(245, 158, 11, 0.94));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    z-index: 3;
}

.video-shell.is-playing .video-play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-side {
    padding: 18px;
}

.detail-cover {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.block-btn {
    width: 100%;
}

.detail-side .ghost-btn {
    color: var(--orange);
    border-color: #fdba74;
    background: #fff7ed;
}

.detail-content {
    padding: clamp(24px, 4vw, 44px);
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.detail-one-line {
    margin: 18px 0 24px;
    color: #9a3412;
    font-size: 20px;
    line-height: 1.8;
}

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

.movie-facts div {
    padding: 16px;
    border-radius: 18px;
    background: #fff7ed;
}

.movie-facts dt {
    color: var(--muted);
    font-size: 13px;
}

.movie-facts dd {
    margin: 6px 0 0;
    font-weight: 900;
}

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

.detail-content section {
    margin-top: 34px;
}

.detail-content h2,
.static-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-content p,
.static-content p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.related-section {
    padding: 26px;
}

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

.wide-rank {
    position: static;
}

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

.static-content {
    display: grid;
    gap: 24px;
    padding: 54px 0 76px;
}

.static-content section {
    padding: clamp(24px, 4vw, 42px);
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(180deg, #1f2937, #111827);
}

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

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

.site-footer p {
    color: #cbd5e1;
    line-height: 1.8;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 22px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

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

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

    .home-rank-layout,
    .detail-hero-card {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 720px;
    }

    .hero-poster {
        width: min(270px, 72vw);
        transform: none;
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid-large,
    .footer-grid,
    .multi-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .header-inner {
        height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

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

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

    .hero-line {
        font-size: 17px;
    }

    .category-strip,
    .movie-grid,
    .compact-grid,
    .category-grid-large,
    .footer-grid,
    .multi-column {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
    }
}
