* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 45%, #0f172a 100%);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    box-shadow: 0 12px 25px rgba(6, 182, 212, 0.25);
    font-size: 24px;
}

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

.brand-title {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #dbeafe, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #bfdbfe;
    font-weight: 500;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(37, 99, 235, 0.82);
    color: #fff;
    transform: translateY(-1px);
}

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

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

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

.mobile-menu .nav-link {
    display: block;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 620px;
    background: #020617;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 620px;
    isolation: isolate;
}

.hero-slide.active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
    transform: scale(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 82% 30%, rgba(14, 165, 233, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.04) 45%, rgba(2, 6, 23, 0.72));
}

.hero-grid {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 36px;
    padding: 78px 0 76px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(191, 219, 254, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.hero p {
    margin: 0;
    max-width: 700px;
    color: #e0f2fe;
    font-size: 17px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.hero-meta span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.22);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(6, 182, 212, 0.28);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.hero-poster {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
}

.hero-panel-body {
    padding: 22px;
}

.hero-panel-body strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

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

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

.hero-dot.active {
    width: 36px;
    background: #38bdf8;
}

.search-band {
    margin-top: -36px;
    position: relative;
    z-index: 20;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 140px;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

.search-card input,
.search-card select {
    width: 100%;
    height: 48px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.search-card input:focus,
.search-card select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.page-section {
    padding: 72px 0;
}

.page-section.compact {
    padding: 48px 0;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
    margin: 10px 0 0;
    color: #64748b;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 22px 45px rgba(30, 58, 138, 0.16);
}

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e2e8f0;
}

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

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

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    min-width: 38px;
    padding: 5px 9px;
    border-radius: 999px;
    text-align: center;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 9px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.card-desc {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    min-height: 152px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #0e7490);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.page-hero {
    padding: 78px 0 54px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 24%, rgba(14, 165, 233, 0.34), transparent 30%),
        linear-gradient(135deg, #020617 0%, #1e3a8a 52%, #0f172a 100%);
}

.page-title {
    max-width: 820px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.filter-row {
    margin-bottom: 24px;
}

.empty-state {
    display: none;
    padding: 44px;
    border: 1px dashed #93c5fd;
    border-radius: 24px;
    text-align: center;
    color: #64748b;
    background: #fff;
}

.detail-wrap {
    padding: 42px 0 80px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    gap: 30px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.32);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.2));
    cursor: pointer;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.35);
    font-size: 32px;
}

.play-overlay em {
    font-style: normal;
    font-size: 18px;
    font-weight: 850;
}

.player-shell.is-playing .play-overlay {
    display: none;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-status.show {
    opacity: 1;
}

.detail-side {
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 18px;
}

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.prose-card {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.prose-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.prose-card p {
    margin: 0;
    color: #334155;
    line-height: 1.85;
}

.related-section {
    margin-top: 44px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 54px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 24px;
}

.footer-block h3 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-block p,
.footer-block a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-block a {
    display: block;
    margin-bottom: 8px;
}

.footer-block a:hover {
    color: #38bdf8;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 13px;
}

.hidden-card {
    display: none !important;
}

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

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

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

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

    .brand-subtitle {
        display: none;
    }

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

    .hero-grid {
        padding: 58px 0 74px;
    }

    .page-section {
        padding: 48px 0;
    }

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

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

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

    .detail-side,
    .prose-card {
        border-radius: 22px;
        padding: 18px;
    }
}
