:root {
    color-scheme: light;
    --sky: #0ea5e9;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep: #0f172a;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f0f9ff;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 36%, #f8fafc 100%);
    overflow-x: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--sky);
    transform: translateY(-1px);
}

.site-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.site-search input {
    width: 240px;
    border: 0;
    outline: none;
    padding: 9px 10px 9px 14px;
    color: #0f172a;
    background: transparent;
}

.site-search button,
.primary-btn,
.secondary-btn,
.filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.primary-btn,
.filter-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.24);
}

.secondary-btn {
    color: #0369a1;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(186, 230, 253, 0.95);
}

.site-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-btn:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #e0f2fe;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #0284c7;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid #e0f2fe;
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #22d3ee 42%, #2563eb);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.75) 0 2px, transparent 2px), radial-gradient(circle at 80% 30%, rgba(255,255,255,0.7) 0 1px, transparent 1px);
    background-size: 64px 64px, 42px 42px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% -10%;
    height: 260px;
    background: rgba(255,255,255,0.2);
    filter: blur(80px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 72px 24px 76px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 56px;
    align-items: center;
}

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

.kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #075985;
    background: rgba(240, 249, 255, 0.86);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    text-shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}

.hero p {
    max-width: 680px;
    margin: 0;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.hero-poster-card {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
}

.hero-card-caption {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 18px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
}

.hero-card-caption strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px 72px;
}

.content-section {
    margin-bottom: 72px;
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-more {
    color: #0284c7;
    font-weight: 900;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: #bae6fd;
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.type-badge {
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #075985;
    background: rgba(240, 249, 255, 0.86);
}

.year-badge {
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.52);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    box-shadow: 0 12px 20px rgba(244, 63, 94, 0.28);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    opacity: 0;
    background: rgba(2, 6, 23, 0.28);
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .play-hover {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.card-body p {
    margin: 9px 0 12px;
    min-height: 44px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.meta-line {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.18);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-card span {
    position: absolute;
    right: -20px;
    bottom: -36px;
    font-size: 120px;
    font-weight: 900;
    opacity: 0.12;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #22d3ee 45%, #2563eb);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #dbeafe;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.filter-panel {
    margin: 0 0 32px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0f2fe;
    box-shadow: 0 12px 34px rgba(14, 165, 233, 0.08);
    display: grid;
    grid-template-columns: 1fr 180px 160px auto;
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    min-width: 0;
    width: 100%;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.player-panel,
.detail-side,
.text-panel {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2,6,23,0.1), rgba(2,6,23,0.65));
}

.play-cover span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    font-size: 36px;
    color: #0ea5e9;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.28);
}

.play-cover strong {
    font-size: 22px;
    letter-spacing: 0.06em;
}

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

.player-info,
.text-panel {
    padding: 24px;
}

.player-info h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 8px 11px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 800;
    font-size: 13px;
}

.text-panel {
    margin-top: 24px;
}

.text-panel h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.text-panel p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side {
    padding: 18px;
}

.side-poster {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
}

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

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

.side-list a {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
    background: #e0f2fe;
    transform: translateX(2px);
}

.side-list img {
    width: 68px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
}

.side-list span {
    color: #64748b;
    font-size: 13px;
}

.related-grid {
    margin-top: 34px;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
}

.footer-inner strong {
    font-size: 24px;
    color: #ffffff;
}

.footer-inner p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 24px;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.copyright {
    font-size: 14px;
}

.empty-result {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.empty-result.is-visible {
    display: block;
}

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

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

    .desktop-nav {
        display: none;
    }
}

@media (max-width: 880px) {
    .nav-wrap {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .site-search {
        order: 3;
        width: 100%;
    }

    .site-search input {
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 54px;
    }

    .hero-poster-card {
        max-width: 360px;
    }

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

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

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

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

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

    .main-wrap {
        padding: 38px 16px 52px;
    }

    .page-hero-inner {
        padding: 52px 16px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .hero {
        min-height: 640px;
    }

    .hero-content {
        min-height: 640px;
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

.category-overview {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: stretch;
}

.category-overview .category-card,
.category-overview .text-panel {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .category-overview {
        grid-template-columns: 1fr;
    }
}
