: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;
    --white: #ffffff;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --amber-400: #fbbf24;
    --rose-500: #f43f5e;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-card: 0 18px 48px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.98), rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--container), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--slate-300);
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-200);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--teal-300);
    background: rgba(20, 184, 166, 0.12);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

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

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(20, 184, 166, 0.18), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    margin-left: max(16px, calc((100vw - var(--container)) / 2));
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-300);
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.18);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
}

.hero p {
    width: min(100%, 680px);
    margin: 0;
    color: var(--slate-200);
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.rank-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-link,
.rank-action,
.category-card-head a,
.strip-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
    box-shadow: 0 18px 44px rgba(20, 184, 166, 0.30);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.rank-action:hover,
.category-card-head a:hover,
.strip-heading a:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: max(16px, calc((100vw - var(--container)) / 2));
    bottom: 126px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 30px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.active {
    width: 54px;
    background: var(--teal-400);
}

.hero-category-entry {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: var(--radius-xl);
    padding: 18px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-category-entry > span {
    flex: 0 0 auto;
    color: var(--teal-300);
    font-weight: 900;
}

.hero-category-entry div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-entry a {
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.08);
}

.section {
    padding: 68px 0;
}

.section-title,
.strip-heading,
.category-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-title h2,
.strip-heading h2,
.detail-article h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-link,
.strip-heading a,
.category-card-head a {
    color: var(--teal-700, #0f766e);
    background: rgba(20, 184, 166, 0.10);
}

.lead-text {
    max-width: 850px;
    margin: -10px 0 28px;
    color: var(--slate-600);
    font-size: 17px;
    line-height: 1.9;
}

.filter-panel,
.global-search-panel {
    margin: 0 0 30px;
    border-radius: var(--radius-xl);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 0 16px;
    background: var(--slate-100);
}

.search-box span {
    color: var(--teal-500);
    font-size: 20px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 52px;
    border: 0;
    outline: 0;
    color: var(--slate-900);
    background: transparent;
}

.big-search input {
    min-height: 62px;
    font-size: 18px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--slate-700);
    background: var(--slate-100);
    cursor: pointer;
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--slate-950);
    background: var(--teal-300);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.card-meta span,
.tag-row span {
    color: var(--slate-600);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.category-card-large h2 a:hover {
    color: #0f766e;
}

.movie-card p {
    min-height: 62px;
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.6;
    font-size: 14px;
}

.rank-section {
    width: 100%;
    max-width: none;
    padding: 68px max(16px, calc((100vw - var(--container)) / 2));
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.22), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.light-title h2 {
    color: var(--white);
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.full-ranking .rank-item {
    color: var(--slate-900);
    background: var(--white);
    border-color: var(--slate-200);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--teal-300));
    font-weight: 900;
}

.rank-poster {
    width: 74px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--slate-800);
}

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

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-content p {
    margin: 0 0 10px;
    color: inherit;
    opacity: 0.78;
    line-height: 1.6;
}

.rank-meta span {
    color: inherit;
    background: rgba(255, 255, 255, 0.10);
}

.full-ranking .rank-meta span {
    color: var(--slate-600);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.rank-action {
    color: var(--slate-950);
    background: var(--teal-300);
}

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

.category-strip,
.category-card-large {
    border-radius: var(--radius-xl);
    padding: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 10px;
    background: var(--slate-100);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    background: #ccfbf1;
}

.mini-card img {
    width: 58px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-800);
}

.mini-card strong,
.mini-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card strong {
    font-size: 14px;
}

.mini-card em {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    min-height: 60vh;
}

.page-hero,
.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 15%, rgba(45, 212, 191, 0.22), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero .container {
    padding: 82px 0 72px;
}

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

.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: var(--slate-200);
    font-size: 18px;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--slate-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--teal-300);
}

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

.category-card-head {
    margin-bottom: 20px;
}

.category-card-head span {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--teal-300), var(--amber-400));
    font-weight: 900;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card-large p {
    margin: 0 0 20px;
    color: var(--slate-600);
    line-height: 1.8;
}

.small-mini-grid {
    grid-template-columns: 1fr;
}

.detail-hero {
    padding: 58px 0;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    background: var(--slate-800);
}

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-grid span {
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--slate-100);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.detail-tags a {
    color: var(--slate-950);
    background: var(--teal-300);
}

.player-section {
    padding-bottom: 28px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--slate-950);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.28);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--slate-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

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

.player-overlay span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
    box-shadow: 0 18px 44px rgba(20, 184, 166, 0.30);
    font-size: 32px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-content-section {
    padding-top: 24px;
}

.detail-article {
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 42px);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-article h2 {
    font-size: 30px;
}

.detail-article p {
    color: var(--slate-700);
    font-size: 17px;
    line-height: 2;
}

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

.related-card p {
    min-height: 0;
}

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
}

.footer-logo {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 520px;
    color: var(--slate-400);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: var(--slate-400);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--slate-500);
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-block;
    }

    .hero-content {
        margin-left: 16px;
        max-width: calc(100% - 32px);
    }

    .hero-category-entry,
    .section-title,
    .strip-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .rank-action {
        grid-column: 2 / 4;
        width: fit-content;
    }

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

    .detail-cover {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        min-height: 78vh;
        padding-bottom: 130px;
    }

    .hero-controls {
        bottom: 116px;
    }

    .hero-category-entry {
        bottom: 16px;
        padding: 14px;
    }

    .section {
        padding: 48px 0;
    }

    .movie-grid,
    .related-grid,
    .category-grid-large,
    .mini-grid,
    .detail-meta-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 58px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }

    .rank-poster {
        width: 58px;
    }

    .page-hero .container {
        padding: 58px 0 52px;
    }

    .detail-hero {
        padding: 38px 0;
    }

    .player-card {
        border-radius: 20px;
    }
}
