:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #22d3ee;
    --gold: #fbbf24;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    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: #111827;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    color: var(--white);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(14px);
}

.site-nav {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    color: var(--slate-950);
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.34);
}

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

.nav-links,
.quick-links,
.mobile-cats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links {
    margin-left: auto;
}

.nav-link,
.quick-links a,
.mobile-cats a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 650;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.quick-links a:hover {
    color: #34d399;
}

.quick-links {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-links a,
.mobile-cats a {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.84);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    margin: 5px 0;
    display: block;
    background: #e2e8f0;
    border-radius: 5px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.06) 42%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(32px, calc((100vw - 1240px) / 2));
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(42px, 6vw, 78px);
}

.hero-copy h1 span {
    color: #34d399;
}

.hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 850;
}

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

.hero-tags,
.detail-tags,
.card-tags,
.movie-meta-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span,
.movie-meta-pills span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span,
.detail-tags span {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--slate-950);
    background: linear-gradient(135deg, #34d399, #67e8f9);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(6, 95, 70, 0.22);
}

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

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

.hero-dot.is-active {
    background: linear-gradient(90deg, #34d399, #67e8f9);
}

.section {
    width: min(1240px, calc(100% - 32px));
    margin: 54px auto 0;
}

.section-overlap {
    position: relative;
    margin-top: -42px;
    z-index: 6;
}

.search-panel,
.player-card,
.detail-article,
.detail-aside,
.category-large-card,
.page-hero {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.search-panel {
    padding: clamp(22px, 3vw, 34px);
}

.search-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 38px);
}

.search-panel p {
    margin: 0 0 22px;
    color: var(--slate-600);
    line-height: 1.8;
}

.filter-shell {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 170px)) auto auto;
    gap: 12px;
}

.filter-control,
.filter-button,
.filter-reset {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
    font: inherit;
}

.filter-control {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
}

.filter-control:focus {
    border-color: var(--emerald);
    outline: 3px solid rgba(16, 185, 129, 0.16);
}

.filter-button,
.filter-reset {
    cursor: pointer;
    font-weight: 800;
}

.filter-button {
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    color: var(--slate-950);
    border: 0;
}

.filter-reset {
    background: #f8fafc;
    color: #334155;
}

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

.section-heading span {
    display: block;
    color: var(--emerald-dark);
    font-weight: 850;
    letter-spacing: 0.16em;
    font-size: 12px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: #047857;
    font-weight: 800;
}

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

.wide-grid {
    margin-top: 24px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #fef3c7);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(251, 191, 36, 0.28);
}

.movie-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.movie-card h3 a:hover {
    color: #047857;
}

.movie-meta-line {
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.movie-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card-compact {
    flex-direction: row;
    min-height: 130px;
}

.movie-card-compact .poster-link {
    width: 42%;
    min-width: 150px;
    aspect-ratio: 4 / 3;
}

.movie-card-compact .movie-card-body {
    flex: 1;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.compact-heading {
    margin-bottom: 16px;
}

.rank-list,
.side-stack {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 44px 88px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 90px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
}

.rank-row img {
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-content {
    min-width: 0;
}

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

.rank-content strong {
    margin-bottom: 4px;
    color: #0f172a;
}

.rank-content em {
    color: #64748b;
    font-style: normal;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-extra {
    color: #047857;
    font-size: 13px;
    font-weight: 800;
}

.large-rank-list {
    margin-top: 24px;
}

.category-grid,
.category-large-grid {
    display: grid;
    gap: 22px;
}

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

.category-card,
.category-large-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.category-name {
    width: max-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 850;
}

.category-card strong {
    position: relative;
    z-index: 2;
    max-width: 92%;
    font-size: 18px;
    line-height: 1.7;
}

.category-thumbs,
.category-large-thumbs {
    display: flex;
    margin-top: auto;
    padding-top: 18px;
}

.category-thumbs img,
.category-large-thumbs img {
    width: 62px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: -18px;
    border: 3px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.28);
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(34px, 6vw, 70px);
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: #ffffff;
}

.page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 5vw, 66px);
}

.page-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 17px;
}

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

.category-large-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-large-link {
    padding: 24px;
}

.category-large-link span {
    color: #059669;
    font-weight: 850;
}

.category-large-link h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.category-large-link p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.category-large-thumbs img {
    width: 72px;
    height: 96px;
    border-color: #ffffff;
}

.detail-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: var(--slate-950);
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.08);
    transform: scale(1.06);
    opacity: 0.62;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 50%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #34d399;
}

.detail-headline {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(28px, 5vw, 58px);
    align-items: end;
    margin-top: 54px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.detail-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
}

.detail-one-line {
    margin: 0 0 22px;
    max-width: 790px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    max-width: 840px;
}

.detail-section {
    margin-top: -66px;
    position: relative;
    z-index: 4;
}

.player-card {
    padding: clamp(18px, 3vw, 28px);
    background: #ffffff;
}

.player-card h2 {
    margin: 0 0 16px;
    font-size: clamp(22px, 3vw, 32px);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 40px rgba(15, 23, 42, 0.25);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay span {
    width: clamp(72px, 10vw, 110px);
    height: clamp(72px, 10vw, 110px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #052e2b;
    background: linear-gradient(135deg, #34d399, #67e8f9);
    font-size: clamp(32px, 6vw, 48px);
    box-shadow: 0 22px 60px rgba(16, 185, 129, 0.42);
}

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

.player-message {
    min-height: 20px;
    margin: 10px 0 0;
    color: #be123c;
    font-weight: 700;
}

.detail-text-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.detail-article,
.detail-aside {
    padding: clamp(22px, 3vw, 34px);
}

.detail-article h2,
.detail-aside h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.detail-article p {
    margin: 0 0 26px;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.detail-aside dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-aside dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.detail-aside dd {
    margin: -8px 0 0;
    color: #0f172a;
    font-weight: 750;
}

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

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
}

.footer-brand {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p {
    margin: 0;
    max-width: 580px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 12px 20px;
}

.footer-links a:hover {
    color: #34d399;
}

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

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

    .split-section,
    .detail-text-section {
        grid-template-columns: 1fr;
    }

    .filter-shell {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-panel.is-open {
        display: grid;
        gap: 16px;
    }

    .mobile-panel .nav-link {
        display: block;
        padding: 8px 0;
    }

    .mobile-cats {
        flex-wrap: wrap;
    }

    .hero-slider {
        min-height: 78vh;
    }

    .hero-copy {
        left: 20px;
        width: calc(100% - 40px);
    }

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

    .detail-headline {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .site-nav,
    .mobile-panel,
    .section,
    .page-hero,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .movie-grid,
    .spotlight-grid,
    .related-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .filter-shell {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        flex-direction: column;
    }

    .movie-card-compact .poster-link {
        width: 100%;
        min-width: 0;
    }

    .rank-row {
        grid-template-columns: 34px 74px 1fr;
    }

    .rank-extra {
        display: none;
    }

    .rank-row img {
        width: 74px;
        height: 54px;
    }
}
