:root {
    --color-bg: #f6f7fb;
    --color-surface: #ffffff;
    --color-surface-soft: #fff7ed;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-dark: #111827;
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-red: #ef4444;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.08);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

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

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: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
    font-size: 13px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-orange-dark);
    background: #fff7ed;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.header-search input {
    width: 230px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 10px 16px;
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.filter-panel button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.filter-panel button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: none;
}

.btn.small {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-orange-dark);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

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

.mobile-nav a {
    font-weight: 700;
    color: #374151;
}

.mobile-nav form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-nav input {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 10px 14px;
}

.mobile-nav button {
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--color-orange);
}

.hero {
    position: relative;
    color: #ffffff;
    background: #080c16;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    height: 640px;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(8, 12, 22, 0.96), transparent 54%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(640px, calc(100% - 64px));
    transform: translateY(-50%);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--color-orange);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 16px 0 14px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-movie-title {
    margin: 0 0 10px;
    color: #fed7aa;
    font-size: 24px;
    font-weight: 800;
}

.hero-content p:not(.hero-movie-title) {
    max-width: 620px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-poster {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(330px, 26vw);
    aspect-ratio: 2 / 3;
    transform: translateY(-50%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 32px;
    background: var(--color-orange);
}

.hero-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: -104px;
    padding-bottom: 36px;
}

.mini-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    background: rgba(249, 115, 22, 0.82);
}

.mini-card img {
    width: 58px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card span {
    min-width: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section {
    padding: 72px 0;
}

.page-main .section:first-of-type {
    padding-top: 56px;
}

.muted-section {
    background: #ffffff;
}

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

.section-heading h2,
.category-overview-card h2,
.prose-card h2,
.side-panel h2 {
    margin: 6px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-card p,
.prose-card p,
.side-panel p {
    margin: 0;
    color: var(--color-muted);
}

.section-more,
.category-link {
    color: var(--color-orange-dark);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.82);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.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.06);
}

.score-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.score-pill {
    right: 12px;
}

.rank-badge {
    left: 12px;
}

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

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

.movie-card-body h3 a:hover {
    color: var(--color-orange-dark);
}

.movie-card-body p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--color-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #d1d5db;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tag {
    display: inline-flex;
    padding: 5px 10px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.compact-card {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.compact-card .poster-link {
    aspect-ratio: auto;
    min-height: 174px;
}

.compact-card .movie-card-body p {
    min-height: 0;
}

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

.category-card,
.category-overview-card,
.content-card {
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.85);
}

.category-card {
    padding: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-thumbs,
.category-cover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-thumbs img,
.category-cover-grid img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.category-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 19px;
}

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

.page-hero {
    position: relative;
    padding: 78px 0 66px;
    color: #ffffff;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.48), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 48%, #7c2d12);
}

.soft-hero {
    background:
        radial-gradient(circle at 20% 14%, rgba(249, 115, 22, 0.52), transparent 28%),
        linear-gradient(135deg, #0f172a, #111827 56%, #431407);
}

.category-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(239, 68, 68, 0.40), transparent 26%),
        linear-gradient(135deg, #111827, #1f2937 54%, #9a3412);
}

.ranking-hero {
    background:
        radial-gradient(circle at 16% 18%, rgba(249, 115, 22, 0.50), transparent 30%),
        linear-gradient(135deg, #020617, #111827 48%, #7f1d1d);
}

.page-hero h1 {
    margin: 12px 0;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 700;
}

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

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.inline-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.86);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 11px 12px;
    background: #ffffff;
    outline: none;
}

.filter-panel button {
    height: 45px;
}

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

.compact-strip {
    position: static;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #050914;
    padding: 62px 0;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 18%, rgba(249, 115, 22, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: center;
}

.player-card {
    border-radius: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.42);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: cover;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.42);
    font-size: 28px;
}

.play-cover strong {
    font-size: 18px;
}

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

.lead {
    color: #e5e7eb;
    font-size: 18px;
}

.detail-tags .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-content-section {
    padding-top: 56px;
}

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

.content-card {
    padding: 28px;
}

.prose-card h2,
.side-panel h2 {
    font-size: 28px;
}

.prose-card p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
}

.side-panel {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 12px;
}

.side-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #9a3412;
    font-weight: 800;
    background: #fff7ed;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 58px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 34px;
}

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

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

.site-footer p {
    max-width: 440px;
    color: #9ca3af;
}

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

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: var(--color-orange);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
}

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-poster {
        display: none;
    }

    .hero-content {
        width: min(760px, calc(100% - 48px));
    }

    .hero-strip,
    .compact-strip {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

    .side-panel {
        position: static;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

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

    .hero-stage {
        height: 620px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

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

    .hero-content p:not(.hero-movie-title) {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 178px;
    }

    .hero-strip,
    .compact-strip {
        grid-template-columns: 1fr;
        margin-top: -144px;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        display: grid;
    }

    .card-grid,
    .ranking-preview,
    .ranking-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 110px 1fr;
    }

    .compact-card .poster-link {
        min-height: 164px;
    }

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

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

    .page-hero {
        padding: 54px 0 48px;
    }

    .detail-hero {
        padding: 34px 0;
    }

    .player-card {
        padding: 7px;
        border-radius: 18px;
    }

    .video-shell {
        border-radius: 14px;
    }

    .play-icon {
        width: 66px;
        height: 66px;
    }

    .content-card {
        padding: 22px;
    }

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