:root {
    --page-bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #0f172a;
    --text: #111827;
    --muted: #6b7280;
    --muted-strong: #374151;
    --line: #e5e7eb;
    --brand: #f59e0b;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ef4444);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 1.2rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted-strong);
    font-size: 0.95rem;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #0f172a;
}

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transform: scale(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.38));
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 88px 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    margin: 24px 0 0;
    color: #e5e7eb;
    font-size: 1.08rem;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 11px;
    font-size: 0.82rem;
}

.card-tags span {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.detail-tags span {
    background: #fff7ed;
    color: var(--brand-dark);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #ef4444);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

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

.hero-poster span,
.play-mark {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.46);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active {
    width: 30px;
    background: var(--brand);
}

.quick-strip,
.section-block,
.search-panel,
.page-main,
.site-footer {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.quick-strip {
    margin-top: -54px;
    position: relative;
    z-index: 5;
    padding: 24px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.quick-copy h2,
.section-title h2,
.article-card h2,
.footer-grid h2 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.quick-copy p,
.article-card p,
.category-panel p,
.page-hero p,
.site-footer p {
    color: var(--muted);
}

.quick-list,
.mini-list,
.ranking-list {
    display: grid;
    gap: 12px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #fff7ed;
    transform: translateY(-2px);
}

.compact-card img {
    width: 68px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.85rem;
}

.search-panel {
    padding: 34px 24px 0;
}

.search-box {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 56px 0 24px;
    background: #ffffff;
    outline: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.search-box input:focus {
    border-color: var(--brand);
}

.search-box span {
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--brand-dark);
    transform: translateY(-50%);
}

.filter-row {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-row button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 9px 14px;
    color: var(--muted-strong);
    white-space: nowrap;
}

.filter-row button.active,
.filter-row button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.section-block {
    padding: 64px 24px 0;
}

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

.section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-title a {
    color: var(--brand-dark);
    font-weight: 800;
}

.section-title.compact {
    align-items: center;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.score-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 900;
}

.score-badge {
    right: 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
    left: 10px;
    color: #7c2d12;
    background: #fef3c7;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.card-tags {
    margin-top: 9px;
}

.card-tags span {
    padding: 4px 8px;
    font-size: 0.72rem;
}

.card-body p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-block {
    max-width: none;
    margin-top: 64px;
    padding: 64px max(24px, calc((100vw - 1280px) / 2)) 70px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.24), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827);
}

.dark-block .section-title a,
.dark-block .eyebrow {
    color: #fbbf24;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
}

.category-grid,
.category-panel-grid {
    display: grid;
    gap: 16px;
}

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

.category-tile,
.category-panel,
.article-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-tile {
    display: block;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
    border-color: #fcd34d;
    transform: translateY(-3px);
}

.category-tile strong,
.category-panel-head span {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
}

.category-tile span,
.category-panel p {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.ranking-panel {
    border-radius: var(--radius);
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.page-main {
    padding-bottom: 40px;
}

.page-hero {
    margin: 34px 24px 0;
    padding: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.page-hero h1 {
    color: var(--text);
}

.page-hero p {
    max-width: 760px;
    font-size: 1.05rem;
}

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

.category-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-panel-head em {
    color: var(--brand-dark);
    font-style: normal;
    font-weight: 800;
}

.mini-list {
    margin-top: 16px;
}

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

.rank-column {
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: var(--radius);
    background: #ffffff;
    overflow: hidden;
}

.rank-column li + li {
    border-top: 1px solid var(--line);
}

.rank-column a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
}

.rank-column span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-column em {
    flex: none;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.breadcrumb {
    margin: 28px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
}

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

.detail-hero {
    margin: 24px;
    padding: 28px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.28), transparent 34%),
        linear-gradient(135deg, #0f172a, #111827);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #1f2937;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

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

.detail-one-line {
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 1.08rem;
}

.detail-tags {
    margin-top: 20px;
}

.detail-stats {
    margin: 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-stats span {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
    padding: 9px 12px;
    color: #f8fafc;
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.5));
}

.player-start span {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.3);
    font-size: 1.8rem;
}

.player-start.hidden {
    display: none;
}

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

.article-card p {
    margin: 14px 0 0;
    font-size: 1rem;
}

.site-footer {
    margin-top: 80px;
    padding: 0 24px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    background: #111827;
    color: #ffffff;
}

.footer-grid p {
    max-width: 560px;
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    color: #e5e7eb;
}

.footer-bottom {
    padding: 18px 4px 0;
    color: var(--muted);
    text-align: center;
}

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

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .hero {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 70px;
        gap: 26px;
    }

    .hero-poster {
        width: min(220px, 70vw);
    }

    .hero-control {
        display: none;
    }

    .quick-strip,
    .detail-hero,
    .detail-content,
    .footer-grid,
    .page-hero {
        grid-template-columns: 1fr;
    }

    .quick-strip,
    .page-hero {
        display: grid;
    }

    .quick-list,
    .category-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster {
        width: min(260px, 80vw);
    }

    .page-hero {
        padding: 30px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding: 12px 16px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 2.25rem;
    }

    .section-block,
    .search-panel,
    .player-section,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-strip,
    .page-hero,
    .detail-hero,
    .breadcrumb {
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .footer-grid {
        padding: 22px;
    }
}
