:root {
    --site-slate: #0f172a;
    --site-slate-soft: #1e293b;
    --site-amber: #f59e0b;
    --site-amber-dark: #d97706;
    --site-bg: #f9fafb;
    --site-card: #ffffff;
    --site-muted: #64748b;
    --site-border: rgba(15, 23, 42, 0.09);
    --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --site-radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.nav-row {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.82;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

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

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--site-amber);
}

.nav-search {
    position: relative;
    width: 230px;
}

.nav-search input,
.search-box input,
.filter-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid transparent;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    padding: 10px 42px 10px 16px;
    background: rgba(51, 65, 85, 0.95);
    color: #fff;
}

.nav-search input:focus,
.search-box input:focus,
.filter-input:focus {
    border-color: var(--site-amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.nav-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
    display: none;
    padding: 0 0 18px;
}

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

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide.active img {
    animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.03); }
    to { transform: scale(1.09); }
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: #fff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 650px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 26px;
}

.hero-actions,
.tag-row,
.card-meta,
.breadcrumbs,
.detail-meta,
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    padding: 13px 24px;
    color: #fff;
    background: var(--site-amber);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--site-amber-dark);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.42);
}

.btn-ghost {
    padding: 11px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.btn-soft {
    padding: 10px 18px;
    color: #92400e;
    background: #fffbeb;
}

.tag,
.hero-tag,
.meta-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    white-space: nowrap;
}

.hero-tag {
    color: #fff;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.tag,
.meta-pill {
    padding: 6px 10px;
    color: #92400e;
    background: #fffbeb;
    font-size: 13px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--site-amber);
}

.section {
    padding: 70px 0;
}

.section.dark {
    color: #fff;
    background: linear-gradient(180deg, #0f172a, #f9fafb);
}

.section.white {
    background: #fff;
}

.section.soft {
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.section-head,
.page-head {
    margin-bottom: 28px;
}

.section-eyebrow {
    color: var(--site-amber-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title,
.page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    color: #1f2937;
    margin: 0;
}

.dark .section-title,
.dark .section-eyebrow {
    color: #fff;
}

.section-desc,
.page-desc {
    max-width: 760px;
    color: #64748b;
    line-height: 1.8;
    margin: 12px 0 0;
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 286px;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    padding: 6px 0 18px;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-btn {
    position: absolute;
    top: 46%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rail-wrap:hover .rail-btn {
    opacity: 1;
}

.rail-btn:hover {
    transform: scale(1.06);
}

.rail-btn.prev {
    left: -6px;
}

.rail-btn.next {
    right: -6px;
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
}

.card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px;
    color: #fff;
}

.card-body h3 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    gap: 9px;
    color: #e5e7eb;
    font-size: 13px;
}

.card-category {
    color: #fcd34d;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
}

.card-line {
    margin: 10px 0 0;
    color: #f1f5f9;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: stretch;
    padding: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card-list .poster {
    aspect-ratio: 16 / 10;
}

.card-list-body {
    padding: 20px 20px 20px 0;
}

.card-list-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.card-list-body p {
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 14px;
}

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

.category-card {
    display: block;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
}

.category-card p {
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 16px;
}

.category-samples {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-size: 14px;
}

.page-banner {
    color: #fff;
    padding: 66px 0;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 32%), linear-gradient(90deg, #0f172a, #1e293b);
}

.page-banner .page-title,
.page-banner .page-desc {
    color: #fff;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: #d1d5db;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #fff;
}

.filter-panel {
    margin: 0 0 28px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--site-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-input,
.search-box input {
    padding: 13px 18px;
    color: #111827;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.filter-chip {
    padding: 9px 14px;
    color: #475569;
    background: #f1f5f9;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #fff;
    background: var(--site-amber);
}

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rank-num {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 34px;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.18);
}

.rank-thumb {
    width: 92px;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    overflow: hidden;
}

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

.rank-info h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.rank-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-banner {
    position: relative;
    min-height: 430px;
    color: #fff;
    overflow: hidden;
    background: #020617;
}

.detail-banner img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.05);
    opacity: 0.55;
}

.detail-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.2));
}

.detail-banner .container {
    position: relative;
    z-index: 2;
    min-height: 430px;
    display: flex;
    align-items: center;
}

.detail-copy {
    max-width: 820px;
    padding: 38px 0;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    margin: 0 0 18px;
}

.detail-meta {
    color: #fcd34d;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-copy p {
    color: #e5e7eb;
    font-size: 17px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.detail-main {
    padding: 56px 0 72px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
    gap: 28px;
    align-items: start;
}

.content-card,
.side-card {
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.content-card {
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    color: #111827;
}

.content-card p {
    color: #475569;
    line-height: 1.9;
    margin: 0 0 20px;
}

.player-card {
    margin-bottom: 28px;
    padding: 0;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.58));
    transition: opacity 0.22s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: #fff;
    background: var(--site-amber);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.42);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-layer:hover .play-button {
    transform: scale(1.06);
    background: var(--site-amber-dark);
}

.player-info {
    padding: 22px 26px 26px;
}

.player-info h2 {
    margin-bottom: 10px;
}

.side-card {
    padding: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 94px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
}

.related-item p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-shell {
    max-width: 860px;
    margin: 0 auto 32px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 120px;
    font-size: 18px;
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--site-amber);
    font-weight: 900;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    background: #fff;
    color: #64748b;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
    display: block;
}

.site-footer {
    margin-top: auto;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 48px 0 30px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid li {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 14px;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 22px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        height: auto;
        min-height: 600px;
    }

    .hero-control {
        display: none;
    }

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

    .section {
        padding: 50px 0;
    }

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

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

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

    .card-list-body {
        padding: 20px;
    }
}

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

    .logo {
        font-size: 18px;
    }

    .hero-copy {
        padding: 96px 0 88px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .movie-rail {
        grid-auto-columns: 82vw;
    }

    .card-large {
        grid-column: auto;
        grid-row: auto;
    }

    .rank-item,
    .related-item {
        grid-template-columns: 86px 1fr;
    }

    .detail-banner .container {
        min-height: 460px;
    }

    .content-card,
    .side-card {
        border-radius: 18px;
        padding: 20px;
    }

    .player-card {
        padding: 0;
    }

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