:root {
    color-scheme: light;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --teal: #0d9488;
    --emerald: #059669;
    --orange: #ea580c;
    --rose: #e11d48;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.15), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, #eef8fb 48%, #ffffff 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
    color: #fff;
    box-shadow: 0 16px 35px rgba(14, 116, 144, 0.22);
}

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

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

.brand-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #e0faff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    font-weight: 900;
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 25px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: #cffafe;
    font-size: 12px;
}

.header-search {
    position: relative;
    flex: 1;
    display: flex;
    max-width: 480px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 4px;
    backdrop-filter: blur(12px);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #083344;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 13px 0 0 13px;
    padding: 11px 14px;
}

.header-search button {
    border: 0;
    color: #fff;
    background: rgba(8, 145, 178, 0.9);
    border-radius: 0 13px 13px 0;
    padding: 0 18px;
    cursor: pointer;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 14px;
    color: #ecfeff;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

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

.spotlight {
    position: relative;
    min-height: 520px;
    margin: 34px auto 40px;
    border-radius: 34px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 48%, #0d9488 100%);
    box-shadow: var(--shadow);
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 24rem),
        linear-gradient(90deg, rgba(8, 47, 73, 0.86), rgba(8, 47, 73, 0.62), rgba(8, 47, 73, 0.22));
    z-index: 1;
}

.spotlight-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 26px;
    padding: clamp(28px, 5vw, 62px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.6s ease, transform 0.7s ease;
}

.spotlight-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.spotlight-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(1.15);
}

.spotlight-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #dffbff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.spotlight h1,
.page-lead h1,
.detail-title h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.spotlight-desc {
    max-width: 670px;
    margin: 0 0 24px;
    color: #e0f2fe;
    font-size: clamp(16px, 2vw, 20px);
}

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

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

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

.btn-primary {
    color: #075985;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(8, 47, 73, 0.24);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
}

.spotlight-poster {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 340px);
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    box-shadow: 0 24px 56px rgba(8, 47, 73, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 16px;
}

.spotlight-meta span,
.tag-row span,
.meta-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1;
}

.spotlight-meta span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
}

.spotlight-dots {
    position: absolute;
    z-index: 3;
    left: clamp(28px, 5vw, 62px);
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.spotlight-dot {
    width: 30px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.spotlight-dot.active {
    background: #fff;
}

.quick-lanes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: -12px 0 34px;
}

.lane-card,
.category-card,
.info-card,
.player-panel,
.detail-copy,
.related-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.lane-card {
    padding: 20px;
    min-height: 126px;
    overflow: hidden;
    position: relative;
}

.lane-card::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.23), rgba(37, 99, 235, 0.18));
}

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

.lane-card span {
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.page-block {
    margin: 38px 0;
}

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

.section-heading h2,
.page-lead h1,
.detail-copy h2,
.related-panel h2,
.player-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-width: 54px;
    height: 30px;
    background: rgba(8, 145, 178, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 47px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--cyan-dark);
}

.movie-meta,
.movie-desc {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    color: #0e7490;
    background: #ecfeff;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    padding: 22px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(37, 99, 235, 0.09));
}

.category-card strong,
.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--muted);
    margin: 0;
}

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--cyan-dark);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 24px 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-tools,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
}

.filter-input,
.search-input {
    flex: 1;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
}

.filter-input:focus,
.search-input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.filter-chip {
    color: #0e7490;
    background: #ecfeff;
    border: 0;
    cursor: pointer;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 104px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #e11d48);
}

.rank-thumb {
    width: 104px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #f0fdfa);
}

.rank-main h2,
.rank-main h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin: 24px 0 42px;
}

.player-panel {
    overflow: hidden;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(8, 145, 178, 0.18), transparent 20rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    z-index: 3;
}

.play-layer.hidden {
    display: none;
}

.play-button {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.35);
    font-size: 34px;
    cursor: pointer;
}

.player-title,
.detail-copy,
.related-panel {
    padding: 22px;
}

.player-title h2 {
    margin-bottom: 8px;
}

.player-title p,
.detail-copy p {
    color: var(--muted);
    margin: 10px 0 0;
}

.player-state {
    min-height: 24px;
    margin-top: 10px;
    color: #0e7490;
    font-size: 14px;
}

.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.info-card {
    padding: 20px;
}

.info-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #f0fdfa);
    margin-bottom: 16px;
}

.meta-list {
    display: grid;
    gap: 10px;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.detail-copy {
    margin-bottom: 24px;
}

.detail-copy article {
    display: grid;
    gap: 24px;
}

.detail-copy h2 {
    margin-bottom: 8px;
}

.related-panel {
    margin-bottom: 42px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.related-item {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.related-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #f0fdfa);
}

.related-item span {
    display: block;
    padding: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.no-result {
    display: none;
    padding: 24px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.no-result.visible {
    display: block;
}

.site-footer {
    margin-top: 56px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 18px;
}

.footer-brand strong {
    color: #fff;
    font-size: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 16px;
}

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

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

    .quick-lanes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-side {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .brand {
        min-width: 0;
        margin-right: auto;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

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

    .site-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 2px;
    }

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

    .spotlight {
        min-height: 700px;
        border-radius: 26px;
    }

    .spotlight-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding-bottom: 72px;
    }

    .spotlight-poster {
        justify-self: start;
        width: min(230px, 72vw);
    }

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

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

    .rank-row {
        grid-template-columns: 48px 82px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-thumb {
        width: 82px;
    }

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

@media (max-width: 540px) {
    main,
    .header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-text small {
        display: none;
    }

    .spotlight {
        min-height: 670px;
        margin-top: 20px;
    }

    .spotlight h1 {
        font-size: 34px;
    }

    .quick-lanes,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .related-list {
        grid-template-columns: 1fr;
    }

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

    .poster-link {
        height: 100%;
        aspect-ratio: auto;
    }

    .movie-desc {
        -webkit-line-clamp: 3;
    }

    .player-title,
    .detail-copy,
    .related-panel,
    .info-card {
        padding: 18px;
    }
}
