:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.section-inner {
    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: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-900);
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-600);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: var(--cyan-600);
    background: rgba(6, 182, 212, 0.10);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--slate-900);
    background: var(--slate-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.hero-slider {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.20) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.06));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 74vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 84px 0 120px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--cyan-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
    margin-top: 22px;
}

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

.hero-tags,
.detail-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 26px;
}

.hero-tags a,
.detail-tags a,
.mini-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.detail-tags a,
.mini-tags span {
    background: rgba(6, 182, 212, 0.10);
    color: var(--cyan-600);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.30);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.btn.full {
    width: 100%;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--cyan-400);
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.search-band-inner,
.inner-search,
.quick-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-band-inner {
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-band h2,
.search-band p {
    margin: 0;
}

.search-band h2 {
    font-size: 24px;
}

.search-band p {
    margin-top: 6px;
    color: var(--slate-500);
}

.quick-search {
    flex: 1;
    max-width: 520px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 8px;
    background: var(--slate-50);
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-900);
    background: transparent;
}

.quick-search input {
    min-height: 42px;
    padding: 0 12px;
}

.quick-search button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: var(--white);
    font-weight: 800;
    background: var(--cyan-600);
    cursor: pointer;
}

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

.section-block + .section-block {
    padding-top: 24px;
}

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

.section-heading h2,
.rank-panel h2,
.detail-section h2,
.side-card h2,
.category-overview-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.8;
}

.more-link {
    color: var(--cyan-600);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-chip {
    min-height: 120px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: var(--shadow-card);
}

.category-chip strong,
.category-chip span {
    display: block;
}

.category-chip strong {
    margin-bottom: 10px;
    font-size: 18px;
}

.category-chip span {
    color: var(--slate-500);
    line-height: 1.55;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.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);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.78), transparent);
}

.quality-pill,
.play-dot {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quality-pill {
    top: 10px;
    right: 10px;
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: rgba(8, 145, 178, 0.92);
}

.play-dot {
    left: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.movie-meta {
    margin-bottom: 7px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 44px;
    margin: 10px 0 12px;
    color: var(--slate-500);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-tags {
    gap: 6px;
}

.mini-tags span {
    padding: 5px 8px;
    font-size: 12px;
}

.section-split {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0), rgba(226, 232, 240, 0.55));
}

.split-grid,
.ranking-layout,
.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.rank-panel,
.side-card {
    border-radius: var(--radius-lg);
    background: var(--slate-900);
    color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.rank-panel-head h2 {
    color: var(--white);
}

.rank-list {
    list-style: none;
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rank-item a {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    background: rgba(6, 182, 212, 0.18);
}

.rank-no {
    color: var(--cyan-400);
    font-weight: 900;
}

.rank-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-text em {
    margin-top: 5px;
    color: var(--slate-300);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.34), transparent 28%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.mini-hero,
.category-hero {
    padding: 74px 0 64px;
}

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

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.crumbs a:hover {
    color: var(--cyan-400);
}

.filter-bar {
    margin-top: 26px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--white);
}

.full-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 140px;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    padding: 24px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.category-overview-head p {
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

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

.sticky-panel {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.detail-hero {
    padding: 48px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.22), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
    margin: 12px 0 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-list span {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--slate-950);
    box-shadow: var(--shadow-soft);
}

.player-shell video,
.player-cover,
.player-cover img,
.player-cover-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    z-index: 1;
    background: var(--slate-950);
}

.player-cover {
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
}

.player-button {
    position: relative;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.42);
}

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

.player-message {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.82);
}

.detail-section,
.side-card {
    margin-top: 26px;
}

.detail-section {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.detail-section p {
    margin: 14px 0 0;
    color: var(--slate-600);
    font-size: 17px;
    line-height: 2;
}

.side-card {
    background: var(--white);
    color: var(--slate-900);
}

.side-card h2 {
    font-size: 24px;
}

.side-card dl {
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.side-card dl div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
}

.side-card dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.6;
}

.empty-state {
    margin: 28px 0 0;
    padding: 22px;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
}

.site-footer {
    margin-top: 48px;
    padding: 48px 0;
    color: var(--slate-300);
    background: var(--slate-900);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: var(--white);
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--cyan-400);
}

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

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

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

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

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

    .search-band-inner,
    .section-heading,
    .footer-inner,
    .category-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search {
        max-width: none;
    }

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

    .detail-poster {
        max-width: 320px;
    }

    .sticky-panel {
        position: static;
        max-height: none;
    }

    .full-filter,
    .filter-bar {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 680px) {
    .hero-slider,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        padding-top: 72px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
