:root {
    color-scheme: light;
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-dark: #0f172a;
    --site-muted: #64748b;
    --site-soft: #f1f5f9;
    --site-card: #ffffff;
    --site-amber: #f59e0b;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a {
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fde68a;
    opacity: 1;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 12px 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

hero-slide:first-child {
    opacity: 1;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.35), transparent 38%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    align-items: center;
    gap: 48px;
    padding: 88px 0 92px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.movie-tags,
.meta-row,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.section-heading,
.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.btn-light {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

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

.hero-panel .panel-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(12px);
}

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

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

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

.hero-dot.active {
    background: #facc15;
}

.search-shell {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    max-width: 620px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--site-shadow);
}

.search-shell input,
.filter-input {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

.search-shell input {
    color: #0f172a;
}

.main-section {
    padding: 56px 0;
}

.main-section.soft {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdfa 100%);
}

.main-section.gold {
    background: linear-gradient(90deg, #fffbeb 0%, #fefce8 100%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.section-title::before {
    content: "";
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.section-subtitle {
    margin: -12px 0 28px;
    color: var(--site-muted);
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #bfdbfe, #67e8f9);
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--site-blue);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid currentColor;
}

.card-body {
    padding: 18px;
}

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

.card-body p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-item img {
    width: 82px;
    height: 108px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.page-hero {
    padding: 64px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.28), transparent 30%),
        linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 52px);
}

.page-hero p {
    max-width: 840px;
    margin: 0;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.9;
}

.category-card {
    display: block;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
    margin: 0 0 12px;
    color: #1d4ed8;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.8;
}

.preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-links span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel .filter-input {
    border: 1px solid #dbeafe;
    background: #f8fafc;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.detail-panel,
.side-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.detail-panel {
    overflow: hidden;
}

.player-area {
    padding: 18px;
    background: #0f172a;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
    cursor: pointer;
}

.play-overlay .play-icon {
    width: 82px;
    height: 82px;
}

.play-overlay span {
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

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

.detail-content {
    padding: 28px;
}

.detail-content h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.detail-content p {
    color: #475569;
    line-height: 2;
}

.side-panel {
    padding: 20px;
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 23px;
}

.side-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.side-card:first-of-type {
    border-top: 0;
}

.side-card img {
    width: 76px;
    height: 98px;
    border-radius: 12px;
    object-fit: cover;
}

.side-card strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.4;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

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

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

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

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

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

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.open {
        display: block;
    }

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

    .hero-content {
        padding: 54px 0 90px;
        gap: 28px;
    }

    .search-shell {
        flex-direction: column;
    }

    .grid.cards,
    .grid.compact,
    .grid.categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .rank-item {
        grid-template-columns: 42px 68px minmax(0, 1fr);
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

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

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

    .grid.cards,
    .grid.compact,
    .grid.categories {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 100%;
    }

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

    .card-body {
        padding: 16px;
    }
}
