:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-500: #3b82f6;
    --white: #ffffff;
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eef6fb 46%, #ffffff 100%);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.34);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    opacity: 0.86;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #67e8f9;
    opacity: 1;
}

.nav-link.subtle {
    color: #cbd5e1;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.10);
}

.mobile-nav {
    display: none;
    padding: 10px 18px 18px;
    background: var(--slate-900);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-link.active,
.mobile-link:hover {
    color: #67e8f9;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 12% 14%, rgba(6, 182, 212, 0.28), transparent 34%), linear-gradient(135deg, #020617 0%, #0f172a 44%, #164e63 100%);
}

.hero-bg-glow {
    position: absolute;
    inset: auto 5% -220px auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    filter: blur(36px);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 48px;
    padding: 80px 0 108px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

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

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

.hero-label,
.section-kicker,
.category-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.28);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: #cbd5e1;
    font-size: 19px;
}

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

.primary-btn,
.ghost-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.small-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.32);
}

.ghost-btn {
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(30, 41, 59, 0.72));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 55%);
}

.hero-control {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-control button {
    border: 0;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.hero-control > button {
    width: 42px;
    height: 42px;
    font-size: 30px;
    line-height: 1;
}

.hero-control button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
}

.hero-dot.is-active {
    width: 34px;
    background: #67e8f9;
}

.search-panel,
.section-wrap,
.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
    align-items: center;
    gap: 28px;
    padding: 28px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.article-card h2,
.side-card h2 {
    margin: 10px 0 0;
    letter-spacing: -0.04em;
}

.search-box,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    color: var(--slate-900);
    background: #ffffff;
    outline: none;
}

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

.search-box button {
    min-width: 100px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.section-wrap {
    padding: 76px 0;
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.text-link {
    color: var(--cyan-600);
    font-weight: 900;
}

.text-link.light {
    color: #67e8f9;
}

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

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

.category-card {
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(203, 213, 225, 0.7);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.ranking-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.category-card h2 {
    margin: 14px 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

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

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--cyan-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.72);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.poster-link img {
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.76);
}

.rank-badge {
    left: 10px;
    right: auto;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.movie-body {
    padding: 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body h3:hover {
    color: var(--cyan-600);
}

.movie-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.meta-row span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0e7490;
    background: #ecfeff;
    font-size: 12px;
    font-weight: 800;
}

.dark-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    color: #ffffff;
    background: radial-gradient(circle at 16% 0%, rgba(6, 182, 212, 0.24), transparent 32%), linear-gradient(135deg, #020617, #0f172a 48%, #083344);
}

.dark-section .movie-card {
    border-color: rgba(148, 163, 184, 0.18);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.22), transparent 32%), linear-gradient(135deg, #020617 0%, #0f172a 52%, #164e63 100%);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 84px;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
}

.page-hero .search-box {
    max-width: 680px;
    margin-top: 28px;
}

.crumb,
.breadcrumb a {
    color: #67e8f9;
    font-weight: 900;
}

.filter-bar {
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 150px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.74);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

.ranking-index {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--slate-600);
}

.detail-hero {
    min-height: 520px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    filter: blur(8px);
    transform: scale(1.04);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.68) 50%, rgba(2, 6, 23, 0.88) 100%);
}

.detail-hero-inner,
.detail-wrap {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #cbd5e1;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.40);
}

.detail-title-block h1 {
    margin: 18px 0;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.detail-title-block p {
    max-width: 760px;
    color: #e2e8f0;
    font-size: 19px;
}

.detail-meta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
}

.strong-tags span {
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 56px 0 80px;
}

.content-column,
.side-column {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-card,
.article-card,
.side-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(203, 213, 225, 0.72);
}

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

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #020617;
    cursor: pointer;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.16));
}

.play-orb {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 50px rgba(6, 182, 212, 0.36);
}

.player-shell.is-playing .player-cover {
    display: none;
}

.article-card,
.side-card {
    padding: 26px;
}

.article-card h2,
.side-card h2 {
    font-size: 26px;
}

.article-card p {
    margin: 12px 0 28px;
    color: var(--slate-700);
    font-size: 17px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.info-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.info-grid span {
    display: block;
    color: var(--slate-500);
    font-size: 13px;
}

.info-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
}

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

.side-list .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 18px;
    box-shadow: none;
}

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

.side-list .movie-body {
    padding: 12px;
}

.side-list .movie-body p,
.side-list .tag-row {
    display: none;
}

.side-list .movie-body h3 {
    font-size: 15px;
}

.small-btn.full {
    width: 100%;
}

.empty-text {
    padding: 30px;
    text-align: center;
    border-radius: 22px;
    color: var(--slate-600);
    background: #ffffff;
}

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

.footer-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0 34px;
}

.footer-brand {
    color: #67e8f9;
    font-size: 22px;
}

.footer-wrap p {
    max-width: 420px;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 17px;
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

    .hero-slide,
    .detail-grid,
    .detail-wrap,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding-top: 56px;
        gap: 28px;
    }

    .hero-image {
        max-width: 560px;
    }

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

    .detail-poster {
        width: min(300px, 70vw);
    }

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

@media (max-width: 720px) {
    .nav-wrap {
        height: 62px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

    .hero-slide {
        align-content: start;
        padding: 44px 0 92px;
    }

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

    .hero-actions,
    .search-box,
    .filter-bar,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .search-panel {
        padding: 20px;
        margin-top: -30px;
    }

    .category-grid,
    .large-category-grid,
    .movie-grid,
    .compact-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ranking-index,
    .ranking-row .small-btn {
        display: none;
    }

    .detail-hero-inner {
        padding-top: 28px;
    }

    .detail-title-block h1 {
        font-size: 36px;
    }

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

    .side-list .movie-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}
