* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e2e8f0;
    background: #020617;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.86);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.brand-text small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    overflow: hidden;
}

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #f59e0b;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #1e293b;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #cbd5e1;
}

.mobile-nav {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid #334155;
    background: #0f172a;
}

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

.mobile-link {
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
}

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

.spotlight-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.spotlight-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.2) 100%), linear-gradient(to right, #020617 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.08) 100%);
}

.spotlight-copy {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 680px;
}

.spotlight-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.9);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}

.spotlight h1,
.spotlight h2 {
    margin: 24px 0 18px;
    color: #fff;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.spotlight p {
    max-width: 620px;
    margin: 0 0 32px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #fff;
    background: #f59e0b;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #d97706;
}

.ghost-button {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.55);
}

.ghost-button:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.5);
}

.spotlight-dots {
    position: absolute;
    right: max(20px, calc((100vw - 1280px) / 2));
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.spotlight-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.48);
    cursor: pointer;
}

.spotlight-dot.is-active {
    width: 34px;
    background: #f59e0b;
}

.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.section-wrap.compact {
    padding: 60px 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.section-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.13);
}

.section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.16), transparent 45%), #111827;
}

.movie-card.large .poster-frame,
.movie-card.wide .poster-frame {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.horizontal-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent);
}

.card-category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.card-category.inline {
    position: static;
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-content strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.card-content em {
    min-height: 45px;
    color: #94a3b8;
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.wide-band {
    background: rgba(15, 23, 42, 0.52);
    border-top: 1px solid rgba(51, 65, 85, 0.52);
    border-bottom: 1px solid rgba(51, 65, 85, 0.52);
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 22px;
    background: #0f172a;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.horizontal-card:hover {
    transform: translateX(6px);
    border-color: rgba(245, 158, 11, 0.5);
}

.horizontal-thumb {
    overflow: hidden;
    background: #111827;
}

.horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.horizontal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px 20px 0;
}

.horizontal-info strong {
    color: #fff;
    font-size: 24px;
}

.horizontal-info em {
    margin: 10px 0;
    color: #94a3b8;
    font-style: normal;
    line-height: 1.7;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(51, 65, 85, 0.82);
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.48s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.18));
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-tile strong {
    color: #fff;
    font-size: 20px;
}

.category-tile em {
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
}

.editor-band {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px 180px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 13px;
    color: #e2e8f0;
    background: #020617;
    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: rgba(245, 158, 11, 0.76);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

[data-card].is-filtered {
    display: none;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 72px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 30px;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 32%), linear-gradient(135deg, #0f172a, #020617 78%);
}

.page-hero.slim {
    padding: 60px;
}

.page-hero h1 {
    max-width: 850px;
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    padding: 24px;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.category-cover {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.category-overview-content > span {
    color: #f59e0b;
    font-weight: 800;
}

.category-overview-content h2 {
    margin: 10px 0;
    color: #fff;
    font-size: 30px;
}

.category-overview-content p {
    color: #94a3b8;
    line-height: 1.75;
}

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

.mini-grid .movie-card .card-content em,
.mini-grid .movie-card .movie-meta {
    display: none;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #020617;
    background: #fbbf24;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(251, 191, 36, 0.34);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 28px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.22));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #020617;
    background: #fbbf24;
    font-size: 30px;
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.38);
}

.play-overlay strong {
    font-size: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 32px;
    margin-top: 34px;
    padding: 28px;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

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

.detail-copy h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-lead {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.86);
    font-size: 13px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.detail-copy h2 {
    margin: 28px 0 10px;
    color: #fff;
    font-size: 24px;
}

.detail-copy p {
    color: #cbd5e1;
    line-height: 1.9;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(51, 65, 85, 0.86);
    background: #0f172a;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-column a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
    }

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

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

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

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

    .spotlight {
        height: 74vh;
        min-height: 520px;
    }

    .spotlight-copy {
        padding-bottom: 34px;
    }

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

    .horizontal-card,
    .category-overview-card,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .horizontal-info {
        padding: 20px;
    }

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

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

    .page-hero,
    .page-hero.slim {
        padding: 42px 24px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

    .brand-text strong {
        font-size: 17px;
    }

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

    .section-wrap,
    .detail-layout,
    .page-hero,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

    .spotlight {
        min-height: 560px;
    }

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

    .spotlight-dots {
        left: 16px;
        right: auto;
    }

    .large-grid,
    .poster-grid,
    .library-grid,
    .category-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

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

    .horizontal-thumb {
        aspect-ratio: 16 / 9;
    }

    .detail-content {
        padding: 18px;
    }

    .play-circle {
        width: 64px;
        height: 64px;
    }
}
