:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --amber: #f59e0b;
    --shadow: 0 20px 45px rgba(194, 65, 12, 0.14);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fffaf0 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 12px 35px rgba(124, 45, 18, 0.08);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-weight: 700;
    color: #374151;
}

.desktop-nav a {
    padding: 10px 2px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand-dark);
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.filter-panel button,
.play-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
    color: #fff;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fff;
    color: var(--brand-dark);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
}

.mobile-nav a:hover {
    color: var(--brand-dark);
    background: var(--surface-soft);
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.32), transparent 22rem),
        linear-gradient(135deg, #7c2d12 0%, #f97316 48%, #f59e0b 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.1)),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 18rem);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: 19px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.primary-button {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.secondary-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.secondary-button:hover,
.play-button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
}

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

.hero-quick-links a,
.tag-row span,
.detail-tags span,
.info-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-quick-links a {
    color: #fff;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(20px);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 520px;
    background: rgba(15, 23, 42, 0.35);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 120px 28px 28px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.hero-slide-content h2 {
    margin: 0 0 12px;
    font-size: 34px;
}

.hero-slide-content p {
    margin: 0 0 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.slider-dots {
    position: absolute;
    left: 28px;
    top: 28px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.slider-dots button.is-active {
    width: 28px;
    background: #fff;
}

.section {
    padding: 76px 0;
}

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

.section-title h2,
.section-title h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.section-title p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-kicker,
.detail-kicker {
    color: var(--brand-dark);
    border-color: var(--line);
    background: #fff7ed;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.75);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(124, 45, 18, 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(249, 115, 22, 0.45);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    min-height: 260px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.poster img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.poster.is-fallback img,
.rank-cover.is-fallback img,
.detail-poster.is-fallback img,
.hero-slide.is-fallback img {
    opacity: 0;
}

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.74));
}

.poster-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 900;
}

.poster-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.category-card:hover h3 {
    color: var(--brand-dark);
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

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

.tag-row span,
.detail-tags span {
    color: var(--brand-dark);
    background: #fff7ed;
    padding: 6px 10px;
    font-size: 13px;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.28), transparent 7rem),
        #fff;
    border: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.category-card span {
    color: var(--brand-dark);
    font-weight: 900;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(254, 215, 170, 0.85);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.07);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--amber));
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 96px;
    height: 128px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-item p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 14px 38px rgba(124, 45, 18, 0.1);
}

.side-panel h2,
.side-panel h3 {
    margin-top: 0;
}

.side-panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(254, 215, 170, 0.65);
    color: var(--brand-dark);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 110px;
    gap: 14px;
    margin: 0 0 30px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 13px;
    color: var(--text);
    background: #fffaf0;
}

.filter-panel button {
    align-self: end;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

.detail-hero {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.22), transparent 18rem),
        linear-gradient(180deg, #fff7ed, #fff);
}

.detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 32px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

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

.detail-info p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.info-chip {
    color: var(--brand-dark);
    background: #fff7ed;
    border: 1px solid var(--line);
    padding: 8px 12px;
}

.player-section {
    padding: 36px 0 72px;
}

.player-shell {
    overflow: hidden;
    border-radius: 32px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0f172a;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.32), rgba(15, 23, 42, 0.38));
    pointer-events: none;
}

.play-button {
    pointer-events: auto;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    font-size: 34px;
}

.play-layer.is-hidden {
    display: none;
}

.player-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.article-card {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: 0 14px 36px rgba(124, 45, 18, 0.08);
}

.article-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.article-card p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.95;
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--brand-dark);
}

.empty-tip {
    display: none;
    padding: 26px;
    border-radius: 20px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

.empty-tip.is-visible {
    display: block;
}

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

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
    padding: 52px 0;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: #d1d5db;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
    .hero-inner,
    .rank-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

    .side-panel {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

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

    .hero-slider,
    .hero-slide img {
        min-height: 420px;
    }

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

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

    .rank-item {
        grid-template-columns: auto 74px 1fr;
    }

    .rank-cover {
        width: 74px;
        height: 100px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 64px;
        gap: 12px;
    }

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

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

    .hero-slide-content {
        padding: 92px 20px 22px;
    }

    .hero-slide-content h2 {
        font-size: 26px;
    }

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

    .section {
        padding: 52px 0;
    }

    .section-header {
        display: block;
    }

    .poster,
    .poster img {
        min-height: 220px;
        height: 220px;
    }

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

    .rank-number {
        width: auto;
    }

    .rank-cover {
        width: 100%;
        height: 180px;
    }

    .detail-poster,
    .detail-poster img {
        min-height: 420px;
        height: 420px;
    }
}
