:root {
    --bg: #fffaf0;
    --bg-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.16);
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-light: #fbbf24;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand-dark);
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.logo-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    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(251, 191, 36, 0.18);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.18);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--brand-dark);
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 48%, #f97316 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
        radial-gradient(circle at 84% 24%, rgba(255, 247, 237, 0.32), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.04));
}

.hero-track {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 610px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    gap: 48px;
    align-items: center;
    padding: 64px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.12);
}

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

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1.75;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

.button-primary {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(120, 53, 15, 0.18);
}

.button-secondary {
    color: #ffffff;
    background: rgba(146, 64, 14, 0.72);
    box-shadow: 0 18px 35px rgba(120, 53, 15, 0.18);
}

.hero-poster {
    position: relative;
    min-height: 440px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(120, 53, 15, 0.28);
    backdrop-filter: blur(16px);
}

.hero-poster img {
    width: 100%;
    height: 404px;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

.hero-poster-card {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 18px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

.hero-poster-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-poster-card span {
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

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

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(254, 243, 199, 0.72));
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    color: #111827;
    letter-spacing: -0.03em;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 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(217, 119, 6, 0.32);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

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

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

.card-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(146, 64, 14, 0.82);
    backdrop-filter: blur(10px);
}

.card-play {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
}

.rank-badge {
    top: 12px;
    left: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
}

.card-body {
    padding: 17px;
}

.card-meta,
.card-footer,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-meta span,
.detail-meta span {
    padding: 4px 9px;
    color: var(--brand-dark);
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-card h2 a:hover {
    color: var(--brand);
}

.card-body p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.tag-row span {
    padding: 4px 8px;
    color: #7c2d12;
    background: rgba(254, 215, 170, 0.72);
    border-radius: 999px;
    font-size: 12px;
}

.card-footer {
    justify-content: space-between;
    margin-top: 14px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    min-height: 184px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 16px;
    font-weight: 900;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) 92px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 15px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-meta span {
    color: #9a3412;
    font-size: 13px;
}

.rank-score {
    text-align: center;
    color: var(--brand-dark);
}

.rank-score strong {
    display: block;
    font-size: 26px;
}

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

.page-hero {
    padding: 72px 0 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: #fff7ed;
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 16px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.empty-state {
    display: none;
    padding: 38px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

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

.detail-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, #ffedd5, #fff7ed 52%, #ffffff);
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-info .lead {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.85;
}

.detail-score {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 22px 0;
    padding: 12px 18px;
    color: var(--brand-dark);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.1);
}

.detail-score strong {
    font-size: 32px;
}

.player-section {
    padding: 58px 0 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #111827;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.44), rgba(146, 64, 14, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    font-size: 34px;
    font-weight: 900;
}

.player-status {
    margin-top: 14px;
    color: #fed7aa;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.article-panel,
.side-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.article-panel {
    padding: 32px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 2;
}

.side-panel {
    padding: 24px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-link {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 66px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border-top: 1px solid var(--line);
}

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

.footer-brand p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand);
}

.copyright {
    padding: 18px;
    color: #9a3412;
    text-align: center;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .main-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: rgba(255, 250, 240, 0.98);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: block;
    }

    .hero-slide,
    .detail-layout,
    .content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-track,
    .hero-slide {
        min-height: 820px;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 76px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / -1;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .footer-inner,
    .container,
    .hero-track {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-track,
    .hero-slide {
        min-height: 760px;
    }

    .hero-slide {
        gap: 26px;
        padding: 40px 0 70px;
    }

    .hero-poster {
        min-height: auto;
    }

    .hero-poster img {
        height: 330px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

    .detail-cover {
        max-width: 320px;
    }

    .article-panel,
    .side-panel {
        padding: 22px;
    }
}
