:root {
    color-scheme: light;
    --page-bg: #fff7ed;
    --page-bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.14);
    --white: #ffffff;
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #fb7185;
    --teal: #14b8a6;
    --cyan: #06b6d4;
    --dark: #111827;
    --shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
    --soft-shadow: 0 14px 32px rgba(124, 45, 18, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 34rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 54%, #fef3c7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.96), rgba(245, 158, 11, 0.96));
    box-shadow: 0 14px 38px rgba(154, 52, 18, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-nav.open {
    display: flex;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-inner {
    width: min(100% - 32px, var(--max));
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 44px;
    color: #ffffff;
}

.hero-copy {
    max-width: 740px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(17, 24, 39, 0.34);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.88), rgba(244, 63, 94, 0.82));
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

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

.hero-actions,
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

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

.btn-primary,
.rank-action {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316, #f43f5e);
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
    padding: 16px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(100% - 32px, var(--max));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.35);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

main {
    min-height: 60vh;
}

.page-shell,
.section-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.section-wrap {
    padding: 72px 0;
}

.section-card {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.section-lead,
.page-lead {
    margin: 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.page-hero {
    padding: 86px 0 46px;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34rem),
        linear-gradient(135deg, #f59e0b 0%, #f97316 52%, #e11d48 100%);
    box-shadow: var(--shadow);
}

.page-hero-card h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 62px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero-card p {
    max-width: 860px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
    margin: 28px 0 0;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(146, 64, 14, 0.18);
    border-radius: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 54px rgba(124, 45, 18, 0.18);
}

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

.poster-link img {
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

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

.movie-card:hover .poster-shine {
    transform: translateX(120%);
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-content h3 a:hover,
.rank-info h3 a:hover {
    color: var(--orange);
}

.card-content p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-compact .card-content {
    padding: 14px;
}

.card-compact .card-content h3 {
    font-size: 16px;
}

.card-compact .tag-list,
.card-compact .card-content p {
    display: none;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    font-size: 12px;
    background: #ffedd5;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 12rem),
        linear-gradient(135deg, #f59e0b, #f97316 58%, #f43f5e);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.category-card a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.18);
}

.rank-list {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

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

.rank-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

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

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

.detail-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 36px 0 82px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
}

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

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

.detail-title-card {
    padding: clamp(26px, 4vw, 46px);
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 22rem),
        linear-gradient(135deg, #f59e0b, #f97316 50%, #e11d48);
    box-shadow: var(--shadow);
}

.detail-title-card h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-title-card p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-cover {
    padding: 14px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-cover img {
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    border-radius: 20px;
}

.player-section {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.58), rgba(0, 0, 0, 0.62));
}

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

.big-play {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, #f59e0b, #f97316, #f43f5e);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    cursor: pointer;
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 34px;
}

.article-card,
.side-card {
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.article-card {
    padding: clamp(24px, 4vw, 38px);
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

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

.side-card {
    padding: 22px;
}

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

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

.side-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

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

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

.no-result {
    display: none;
    margin: 26px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: #92400e;
    background: #ffedd5;
}

.no-result.show {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p {
    max-width: 520px;
    margin: 14px 0 0;
    line-height: 1.8;
}

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

.footer-links a:hover {
    color: #f59e0b;
}

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

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

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: 720px;
    }

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

    .hero-copy {
        padding: 24px;
    }

    .hero-poster {
        max-width: 260px;
        justify-self: center;
    }

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

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

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

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

    .rank-action {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .detail-cover img {
        min-height: auto;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 520px) {
    .header-inner {
        width: min(100% - 22px, var(--max));
    }

    .brand {
        font-size: 19px;
    }

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

    .hero {
        height: 680px;
    }

    .hero-copy {
        padding: 20px;
    }

    .hero p,
    .page-hero-card p,
    .detail-title-card p {
        font-size: 16px;
    }

    .section-wrap,
    .page-shell,
    .detail-wrap {
        width: min(100% - 22px, var(--max));
    }

    .section-card,
    .page-hero-card,
    .detail-title-card,
    .article-card,
    .side-card {
        border-radius: 22px;
    }

    .card-content {
        padding: 14px;
    }

    .card-content h3 {
        font-size: 15px;
    }

    .meta-row span:nth-child(3),
    .tag-list {
        display: none;
    }
}
