:root {
    --site-blue: #2563eb;
    --site-deep-blue: #1e3a8a;
    --site-purple: #6d28d9;
    --site-bg: #f8fafc;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-purple));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

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

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

.brand-text em {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 24px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 650;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--site-blue);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--site-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.header-search input {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: #ffffff;
}

.header-search input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.primary-button,
.section-more {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), #3b82f6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 10px 16px;
    white-space: nowrap;
}

.primary-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    font-weight: 700;
}

.header-search button:hover,
.primary-button:hover,
.section-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.ghost-button.light {
    border-color: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
}

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--site-blue);
    background: #eff6ff;
}

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

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s 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.05);
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(37, 99, 235, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.74) 43%, rgba(15, 23, 42, 0.32) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 96px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.24);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 18px 0 0;
    color: #bfdbfe;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.feature-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-strip div {
    min-height: 108px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--site-shadow);
}

.feature-strip strong {
    display: block;
    color: #111827;
    font-size: 20px;
}

.feature-strip span {
    display: block;
    margin-top: 8px;
    color: var(--site-muted);
}

.content-section,
.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

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

.centered-heading {
    justify-content: center;
    text-align: center;
}

.section-heading h2,
.detail-text h2,
.footer-group h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--site-muted);
    font-size: 16px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: var(--site-card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

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

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

.card-badge,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(37, 99, 235, 0.92);
}

.rank-mark {
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--site-blue);
}

.card-desc {
    min-height: 54px;
    margin: 10px 0 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: #4b5563;
    font-size: 13px;
}

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

.card-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    isolation: isolate;
    box-shadow: var(--site-shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.28));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
}

.category-tile strong {
    margin-top: 14px;
    font-size: 24px;
}

.category-tile em {
    margin-top: 8px;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.65;
    font-style: normal;
}

.cta-section,
.page-hero {
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #1e3a8a, #2563eb 55%, #6d28d9);
}

.cta-section {
    margin-top: 48px;
    padding: 86px 24px;
    text-align: center;
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
}

.cta-section p {
    max-width: 780px;
    margin: 18px auto 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.page-hero {
    padding: 88px 0;
}

.page-hero > div,
.detail-hero > .breadcrumb,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.small-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.small-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.85;
}

.filter-bar {
    padding-top: 38px;
}

.filter-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
}

.filter-line input,
.filter-line select {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    background: #ffffff;
}

.filter-line input:focus,
.filter-line select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 30px;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    color: var(--site-muted);
    text-align: center;
    background: #ffffff;
}

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

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

.category-overview-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-overview-link {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 260px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #0f172a;
}

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

.category-overview-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-overview-body span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--site-blue);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
}

.category-overview-body h2 {
    margin: 16px 0 0;
    font-size: 28px;
}

.category-overview-body p {
    margin: 12px 0 0;
    color: var(--site-muted);
    line-height: 1.75;
}

.detail-hero {
    padding: 30px 0 70px;
    background:
        radial-gradient(circle at 75% 0%, rgba(37, 99, 235, 0.22), transparent 32%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: center;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

.movie-player video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player video {
    object-fit: contain;
    background: #020617;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.78;
    filter: saturate(1.1);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 34%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.16));
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    font-size: 36px;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
}

.movie-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-info {
    color: #ffffff;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-line {
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

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

.detail-text {
    padding-bottom: 20px;
}

.detail-text h2 {
    margin-top: 32px;
    font-size: 28px;
}

.detail-text h2:first-child {
    margin-top: 0;
}

.detail-text p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 50px;
    color: #cbd5e1;
    background: #111827;
}

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

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.footer-main p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-group h2 {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.06em;
}

.footer-group ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.footer-group li + li {
    margin-top: 10px;
}

.footer-group a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px 24px;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1060px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

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

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout,
    .footer-inner,
    .category-overview-link {
        grid-template-columns: 1fr;
    }

    .category-preview {
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 64px;
    }

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

    .brand-text em {
        display: none;
    }

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

    .hero-content {
        padding-top: 60px;
    }

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

    .feature-strip,
    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 16px;
    }

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

    .content-section,
    .filter-bar {
        padding: 48px 0;
    }

    .detail-hero {
        padding-bottom: 48px;
    }
}
