:root {
    --page-bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #1c1917;
    --muted: #6b7280;
    --line: rgba(30, 41, 59, 0.12);
    --blue: #2563eb;
    --blue-deep: #1e3a8a;
    --indigo: #4f46e5;
    --purple: #7e22ce;
    --amber: #f59e0b;
    --orange: #ea580c;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 50px rgba(30, 41, 59, 0.12);
    --shadow-card: 0 12px 28px rgba(30, 41, 59, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34rem),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(238, 242, 255, 0.96), rgba(250, 245, 255, 0.96));
    border-bottom: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(18px);
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.32);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--blue-deep), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #1e3a8a;
    font-weight: 800;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #1e3a8a;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

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

.category-strip {
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.category-strip-inner {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    overflow-x: auto;
}

.category-strip a {
    flex: 0 0 auto;
    padding: 7px 13px;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 800;
}

.category-strip a:hover {
    background: #dbeafe;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.68) 46%, rgba(15, 23, 42, 0.72) 100%),
        radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.44), transparent 20rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 64px 0;
}

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

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 24px 0 16px;
    font-size: clamp(42px, 7vw, 80px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #1e3a8a;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.button,
.button-ghost,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.button:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.35);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    align-self: center;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
}

.hero-dot.active {
    width: 32px;
    background: #ffffff;
}

main {
    min-height: 70vh;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.84), rgba(239, 246, 255, 0.86));
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: #292524;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: #2563eb;
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #fae8ff);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: 0.4s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #57534e;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.category-card,
.stat-card,
.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.category-card {
    display: block;
    padding: 22px;
    transition: 0.22s ease;
}

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

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

.category-card span {
    display: inline-block;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 900;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.36), transparent 22rem),
        linear-gradient(105deg, #0f172a, #1e3a8a 48%, #581c87);
}

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

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-panel,
.side-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.player-shell {
    position: relative;
    background: #020617;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.22));
}

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

.play-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.player-note {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 13px;
}

.detail-panel {
    padding: 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 6px 11px;
    color: #1e3a8a;
    border-radius: 999px;
    background: #eff6ff;
    font-weight: 900;
}

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

.detail-copy p {
    margin: 0 0 14px;
    color: #44403c;
}

.side-panel {
    padding: 18px;
}

.side-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

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

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

.mini-item img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #fae8ff);
}

.mini-item strong {
    display: block;
    line-height: 1.35;
}

.mini-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.index-list {
    columns: 4 220px;
    column-gap: 28px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.index-list a {
    display: block;
    break-inside: avoid;
    padding: 5px 0;
    color: #1d4ed8;
    font-weight: 800;
}

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

.search-result-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-result-card h3 {
    margin: 0 0 8px;
}

.search-result-card p {
    margin: 0 0 12px;
    color: #57534e;
}

.site-footer {
    margin-top: 64px;
    color: #dbeafe;
    background: linear-gradient(90deg, #0f172a, #1e3a8a, #312e81);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
}

.footer-inner p {
    max-width: 640px;
    margin: 6px 0 0;
    color: #bfdbfe;
}

.footer-links {
    display: flex;
    gap: 14px;
    white-space: nowrap;
}

.footer-links a {
    color: #ffffff;
    font-weight: 900;
}

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

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

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

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .category-strip-inner,
    .footer-inner,
    .container,
    .page-title,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text small {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

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

    .movie-grid.wide,
    .movie-grid,
    .category-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

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