:root {
    --bg: #f6fbff;
    --text: #152033;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --violet: #7c3aed;
    --yellow: #fde047;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-name {
    font-size: 25px;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #fef08a, #67e8f9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.36), transparent 34%), linear-gradient(135deg, #172554, #2563eb 48%, #06b6d4);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -35% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    filter: blur(4px);
}

.hero-stage {
    position: relative;
    z-index: 1;
    padding: 74px 0 58px;
}

.hero-slider {
    position: relative;
    min-height: 456px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 44px;
    min-height: 456px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a5f3fc;
}

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

.hero p {
    max-width: 620px;
    margin: 0 0 24px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.82);
}

.detail-tags .tag {
    color: #075985;
    background: #e0f2fe;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fef08a, #67e8f9);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-card-title {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    padding: 16px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88) 10%);
}

.hero-card-title strong {
    display: block;
    font-size: 20px;
}

.hero-card-title span {
    color: rgba(255, 255, 255, 0.75);
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

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

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

.quick-cats {
    position: relative;
    z-index: 2;
    margin-top: -42px;
}

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

.quick-cat,
.category-card {
    display: block;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-cat:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

.quick-cat strong,
.category-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.quick-cat span,
.category-card span {
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.list-page,
.detail-page {
    padding: 62px 0;
}

.content-section.tint {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2,
.page-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-heading p,
.page-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--blue);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 900;
    background: linear-gradient(135deg, #fde047, #67e8f9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.card-content {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 8px;
}

.card-tags span {
    padding: 2px 8px;
    border-radius: 999px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    background: #e0f2fe;
}

.movie-card h2,
.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.movie-card.compact .poster-link img {
    height: 100%;
}

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

.search-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-box {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 15% 15%, rgba(103, 232, 249, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 54%, #0891b2);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 58px 0;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.36);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-subtitle {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.88fr);
    gap: 28px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.panel-body {
    padding: 24px;
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.panel p {
    margin: 0 0 18px;
    color: #334155;
}

.player-wrap {
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72)), center / cover no-repeat var(--poster);
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.play-core {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #0f172a;
    font-size: 34px;
    background: linear-gradient(135deg, #fef08a, #67e8f9);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.34);
}

.player-caption {
    padding: 18px 22px;
    color: #dbeafe;
    background: #020617;
}

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

.side-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.side-item img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #dbeafe;
}

.side-item strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
}

.side-item span {
    color: var(--muted);
    font-size: 13px;
}

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

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: #94a3b8;
}

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

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

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: #64748b;
}

.empty-state {
    display: none;
    padding: 36px;
    border: 1px dashed var(--line);
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--blue), var(--cyan));
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        border-radius: 12px;
    }

    .hero-slide,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 420px;
    }

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

@media (max-width: 640px) {
    .brand-name {
        font-size: 21px;
    }

    .hero {
        min-height: auto;
    }

    .hero-stage {
        padding-top: 42px;
    }

    .quick-cats {
        margin-top: 20px;
    }

    .quick-cats-grid,
    .category-grid,
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .section-heading,
    .page-heading {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 10px;
    }

    .detail-hero-inner {
        padding: 36px 0;
    }

    .content-section,
    .list-page,
    .detail-page {
        padding: 42px 0;
    }
}

@media (max-width: 430px) {
    .quick-cats-grid,
    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }
}
