:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #111827;
    --panel: #1f2937;
    --panel-strong: #0f172a;
    --text: #ffffff;
    --muted: #9ca3af;
    --muted-strong: #d1d5db;
    --line: rgba(255, 255, 255, 0.08);
    --gold: #fbbf24;
    --gold-deep: #d97706;
    --red: #ef4444;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.14), transparent 32rem), linear-gradient(180deg, #111827 0%, #030303 42%, #111827 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
}

.logo span:last-child,
.footer-logo span:last-child {
    font-size: clamp(20px, 3vw, 28px);
    background: linear-gradient(90deg, var(--gold), #fef08a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #000000;
    background: var(--gold);
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.45);
    transition: transform 0.45s ease;
}

.logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
    transform: rotate(180deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--muted-strong);
    font-weight: 700;
}

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

.site-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
    color: var(--gold);
}

.top-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.top-search input,
.mobile-search input,
.search-hero input {
    width: 270px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text);
    background: #1f2937;
    outline: none;
    padding: 11px 44px 11px 18px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-hero input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.top-search button {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: var(--muted-strong);
    background: transparent;
    cursor: pointer;
}

.top-search button:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    gap: 10px;
}

.mobile-search input {
    width: 100%;
}

.mobile-search button,
.btn,
.ghost-btn,
.search-hero button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72) 46%, rgba(0, 0, 0, 0.16)), linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "★";
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #000000;
    background: var(--gold);
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.45);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-title p {
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.hero-meta {
    margin: 28px 0 34px;
    font-size: 16px;
}

.rating-pill,
.badge,
.poster-type,
.poster-duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.rating-pill,
.badge-gold {
    color: #000000;
    background: var(--gold);
    font-weight: 900;
}

.rating-pill {
    padding: 9px 14px;
    font-size: 22px;
}

.badge {
    padding: 6px 11px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.55);
    font-size: 13px;
    font-weight: 800;
}

.badge-gold {
    color: #000000;
}

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

.btn,
.ghost-btn,
.search-hero button,
.mobile-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
}

.btn {
    color: #000000;
    background: var(--gold);
    box-shadow: 0 16px 34px rgba(251, 191, 36, 0.25);
}

.btn:hover,
.search-hero button:hover,
.mobile-search button:hover {
    background: #f59e0b;
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.ghost-btn:hover {
    border-color: rgba(251, 191, 36, 0.5);
    color: var(--gold);
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--gold);
}

.section,
.page-hero,
.detail-section {
    padding: 72px 0;
}

.section-tight {
    padding: 40px 0 72px;
}

.section-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.74), rgba(31, 41, 55, 0.1));
}

.section-glow {
    position: relative;
}

.section-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(146, 64, 14, 0.22), transparent);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-header h2,
.page-hero h1,
.detail-section h2,
.category-card strong,
.search-title {
    margin: 0;
    color: var(--text);
}

.section-header h2,
.detail-section h2,
.search-title {
    font-size: clamp(26px, 4vw, 38px);
}

.section-link {
    color: var(--gold);
    font-weight: 900;
}

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

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

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

.movie-card,
.feature-card,
.rank-row,
.category-card,
.info-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(31, 41, 55, 0.9);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card,
.category-card,
.info-card {
    border-radius: var(--radius-md);
}

.movie-card:hover,
.feature-card:hover,
.rank-row:hover,
.category-card:hover {
    border-color: rgba(251, 191, 36, 0.42);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 22px rgba(251, 191, 36, 0.1);
    transform: translateY(-5px);
}

.poster,
.feature-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(17, 24, 39, 0.95));
}

.poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.poster-compact {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.poster-wide {
    width: 220px;
    min-height: 160px;
    flex: none;
    aspect-ratio: 16 / 11;
}

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

.movie-card:hover .poster img,
.feature-card:hover img,
.detail-poster:hover img {
    transform: scale(1.08);
}

.poster-shade,
.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.poster-type {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.poster-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.76);
    font-size: 12px;
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title,
.rank-row:hover .rank-title {
    color: var(--gold);
}

.card-desc {
    display: -webkit-box;
    min-height: 3.2em;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    justify-content: space-between;
    font-size: 13px;
}

.card-badges,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-card-minimal {
    display: block;
    padding: 12px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.movie-card-minimal .card-title {
    min-height: auto;
    margin-bottom: 6px;
    font-size: 16px;
}

.movie-card-horizontal {
    display: flex;
}

.movie-card-horizontal .card-body {
    align-content: center;
    flex: 1;
}

.feature-card {
    display: block;
    min-height: 390px;
    border-radius: var(--radius-lg);
}

.feature-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 12px;
    padding: 24px;
}

.feature-content strong {
    font-size: 30px;
    line-height: 1.2;
}

.feature-content span {
    color: var(--muted-strong);
}

.page-hero {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.78), rgba(0, 0, 0, 0.72)), radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.18), transparent 28rem);
}

.page-hero p {
    width: min(780px, 100%);
}

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.category-card strong {
    font-size: 28px;
}

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

.category-preview {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 128px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 132px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
}

.rank-number {
    color: var(--gold);
    font-size: 34px;
    font-weight: 900;
    text-align: center;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 128px;
    height: 84px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(31, 41, 55, 0.88));
}

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

.rank-title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
    transition: color 0.2s ease;
}

.rank-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-score {
    color: #000000;
    background: var(--gold);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

.detail-hero {
    padding: 56px 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.2), transparent 28rem), linear-gradient(180deg, #111827, #020202);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(17, 24, 39, 0.95));
    box-shadow: var(--shadow);
}

.detail-title p {
    max-width: 850px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta {
    margin: 24px 0;
}

.player-wrap {
    display: grid;
    gap: 22px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: var(--text);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #000000;
    background: var(--gold);
    font-size: 36px;
    box-shadow: 0 0 48px rgba(251, 191, 36, 0.45);
    transition: transform 0.25s ease;
}

.player-overlay strong {
    width: min(720px, calc(100% - 48px));
    font-size: clamp(22px, 4vw, 42px);
    line-height: 1.2;
    text-align: center;
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.player-panel.is-playing .player-overlay {
    display: none;
}

.article-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(31, 41, 55, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-card p {
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.85;
}

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

.info-card {
    padding: 18px;
}

.info-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.info-card strong {
    font-size: 16px;
}

.search-hero {
    display: grid;
    gap: 22px;
    width: min(760px, 100%);
}

.search-hero form {
    display: flex;
    gap: 12px;
}

.search-hero input {
    flex: 1;
    width: auto;
    border-radius: 16px;
    padding-right: 18px;
}

.search-hero button {
    color: #000000;
    background: var(--gold);
}

.search-empty {
    padding: 34px;
    color: var(--muted-strong);
    border-radius: var(--radius-md);
    background: rgba(31, 41, 55, 0.72);
}

.site-footer {
    margin-top: 48px;
    color: var(--muted-strong);
    background: rgba(17, 24, 39, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0;
}

.site-footer h3 {
    color: var(--text);
    margin: 0 0 16px;
}

.site-footer p {
    line-height: 1.75;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom {
    padding: 22px 16px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

img.is-hidden {
    opacity: 0;
}

@media (max-width: 1024px) {
    .top-search,
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

    .detail-layout {
        grid-template-columns: 260px 1fr;
    }

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

@media (max-width: 760px) {
    .container,
    .hero-content,
    .section-band,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 62px 0 92px;
    }

    .hero-meta,
    .detail-meta,
    .card-meta,
    .rank-meta {
        gap: 10px;
    }

    .section,
    .page-hero,
    .detail-section {
        padding: 48px 0;
    }

    .section-band {
        padding: 28px 18px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-large,
    .movie-grid-two,
    .category-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .rank-row,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        display: block;
    }

    .poster-wide,
    .rank-cover {
        width: 100%;
        height: auto;
    }

    .rank-row {
        gap: 12px;
    }

    .rank-number {
        text-align: left;
    }

    .detail-poster {
        max-width: 330px;
    }

    .search-hero form {
        flex-direction: column;
    }
}
