:root {
    color-scheme: dark;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-750: #263449;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --ring: 0 0 0 2px rgba(245, 158, 11, 0.88);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--slate-950), var(--slate-900) 36%, var(--slate-800));
    color: var(--slate-200);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.nav-shell,
.content-shell,
.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    font-size: 15px;
    padding-left: 2px;
}

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

.brand-text strong {
    color: var(--white);
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: var(--slate-400);
    font-size: 12px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.nav-link {
    color: var(--slate-300);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 180ms ease;
}

.nav-link:hover {
    color: var(--amber-500);
}

.nav-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.wide-search input {
    min-width: 0;
    border: 1px solid transparent;
    outline: none;
    color: var(--white);
    background: rgba(51, 65, 85, 0.9);
    border-radius: 10px;
    padding: 10px 12px;
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-search input {
    width: 210px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.wide-search input::placeholder {
    color: var(--slate-400);
}

.nav-search input:focus,
.mobile-search input:focus,
.wide-search input:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: var(--ring);
    background: rgba(30, 41, 59, 1);
}

.nav-search button,
.mobile-search button,
.wide-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-search button,
.mobile-search button,
.wide-search button,
.primary-btn {
    color: var(--white);
    background: var(--amber-500);
}

.nav-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-btn:hover {
    background: var(--amber-600);
    transform: translateY(-1px);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.32);
    background: rgba(15, 23, 42, 0.45);
}

.ghost-btn:hover {
    border-color: var(--amber-500);
    color: var(--amber-400);
}

.menu-button {
    display: none;
    margin-left: auto;
    color: var(--white);
    background: rgba(51, 65, 85, 0.8);
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

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

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

.mobile-link {
    display: block;
    padding: 10px 0;
    color: var(--slate-300);
    font-weight: 600;
}

.mobile-link:hover {
    color: var(--amber-500);
}

.mobile-search input {
    width: 100%;
    flex: 1;
}

.hero-carousel {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--slate-900);
}

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

.hero-slide.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(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.64) 40%, rgba(2, 6, 23, 0.2));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1280px) / 2 + 24px));
    right: 24px;
    bottom: 52px;
    max-width: 720px;
}

.hero-content h1 {
    margin: 10px 0 16px;
    color: var(--white);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 22px;
    color: var(--slate-300);
    font-size: clamp(16px, 1.6vw, 20px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta,
.detail-meta,
.meta-line,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--slate-300);
}

.hero-meta {
    margin-bottom: 24px;
    font-size: 16px;
}

.hero-meta span:first-child {
    color: var(--amber-400);
    font-weight: 800;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    font-size: 34px;
    cursor: pointer;
    transition: background 180ms ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber-500);
}

.home-page {
    min-height: 100vh;
}

.hero-search-panel {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.wide-search {
    width: 100%;
}

.wide-search input {
    flex: 1;
    min-height: 48px;
    font-size: 16px;
}

.wide-search button {
    min-height: 48px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    display: inline-flex;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    color: var(--amber-400);
    background: rgba(245, 158, 11, 0.08);
    padding: 7px 12px;
    font-weight: 700;
    font-size: 14px;
}

.quick-links a:hover {
    border-color: rgba(245, 158, 11, 0.7);
    background: rgba(245, 158, 11, 0.16);
}

.page-space {
    padding-top: 32px;
}

.section-block {
    margin-top: 58px;
}

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

.section-title h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--slate-400);
}

.section-more,
.text-link {
    color: var(--amber-400);
    font-weight: 800;
}

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

.dense-grid {
    gap: 16px;
}

.poster-card,
.horizontal-card,
.large-card,
.category-overview-card,
.category-tile {
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.poster-card:hover,
.horizontal-card:hover,
.large-card:hover,
.category-overview-card:hover,
.category-tile:hover {
    border-color: rgba(245, 158, 11, 0.85);
    box-shadow: var(--ring), 0 16px 46px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-700);
}

.poster-wrap img,
.large-card-poster img,
.horizontal-poster img,
.detail-poster img,
.overview-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.poster-card:hover img,
.large-card:hover img,
.horizontal-card:hover img {
    transform: scale(1.08);
}

.poster-hover,
.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04));
    opacity: 0;
    transition: opacity 220ms ease;
}

.poster-card:hover .poster-hover,
.large-card:hover .poster-shade {
    opacity: 1;
}

.year-badge,
.rank-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 44px;
    text-align: center;
    color: var(--white);
    background: var(--amber-500);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 800;
}

.rank-mark {
    left: 10px;
    right: auto;
    min-width: 34px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

.poster-body {
    padding: 14px;
}

.poster-body h3,
.horizontal-body h3,
.large-card-body h3 {
    margin: 0;
    color: var(--white);
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 180ms ease;
}

.poster-card:hover h3,
.horizontal-card:hover h3,
.large-card:hover h3 {
    color: var(--amber-400);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.94);
    color: var(--slate-300);
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    color: var(--white);
    background: var(--amber-500);
    padding: 5px 12px;
}

.poster-body .tag-row {
    margin: 9px 0;
}

.card-meta {
    justify-content: space-between;
    color: var(--slate-400);
    font-size: 12px;
}

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

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

.horizontal-link {
    display: flex;
    height: 100%;
}

.horizontal-poster {
    position: relative;
    width: 150px;
    min-height: 104px;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--slate-700);
}

.horizontal-body {
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.horizontal-body p {
    margin: 0;
    color: var(--slate-400);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    color: var(--slate-400);
    font-size: 12px;
}

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

.large-card-link {
    display: grid;
    grid-template-columns: 180px 1fr;
    height: 100%;
}

.large-card-poster {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: var(--slate-700);
}

.large-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.large-card-body h3 {
    font-size: 22px;
    white-space: normal;
}

.large-card-body p {
    margin: 0;
    color: var(--slate-300);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.95));
}

.category-tile strong {
    color: var(--white);
    font-size: 20px;
}

.category-tile span {
    color: var(--slate-400);
    font-size: 14px;
}

.category-tile em {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--amber-400);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 58px);
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.95));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--slate-300);
    font-size: 17px;
}

.compact-search {
    max-width: 720px;
    margin-top: 24px;
}

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

.breadcrumb a:hover {
    color: var(--amber-400);
}

.breadcrumb strong {
    color: var(--slate-200);
    font-weight: 700;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.overview-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 260px;
    background: var(--slate-700);
}

.overview-body {
    padding: 22px;
}

.overview-body h2 {
    margin: 0 0 10px;
    color: var(--white);
}

.overview-body p {
    margin: 0 0 14px;
    color: var(--slate-400);
}

.overview-body ul {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--slate-300);
}

.overview-body li + li {
    margin-top: 5px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 42px);
    background: radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.16), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.96));
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: var(--slate-700);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 14px 0;
    color: var(--white);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 850px;
    margin: 0 0 22px;
    color: var(--slate-300);
    font-size: 18px;
}

.detail-meta {
    margin: 0 0 26px;
}

.detail-meta span {
    border-radius: 10px;
    background: rgba(51, 65, 85, 0.7);
    padding: 7px 10px;
}

.player-section {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(51, 65, 85, 0.95);
    background: #000;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.3);
    font-size: 34px;
    padding-left: 5px;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    border-radius: 20px;
    border: 1px solid rgba(51, 65, 85, 0.82);
    background: rgba(15, 23, 42, 0.65);
    padding: clamp(22px, 4vw, 36px);
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 26px;
}

.detail-content h2:not(:first-child) {
    margin-top: 28px;
}

.detail-content p {
    margin: 0;
    color: var(--slate-300);
    font-size: 17px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-row button {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    color: var(--amber-400);
    background: rgba(245, 158, 11, 0.08);
    padding: 8px 13px;
    cursor: pointer;
    font-weight: 700;
}

.filter-row button.active,
.filter-row button:hover {
    color: var(--white);
    border-color: var(--amber-500);
    background: var(--amber-500);
}

.movie-card.is-hidden {
    display: none;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid rgba(51, 65, 85, 0.86);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-shell {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 42px 0;
}

.footer-brand p {
    max-width: 540px;
    margin: 18px 0 0;
    color: var(--slate-400);
}

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

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

.footer-column li + li {
    margin-top: 8px;
}

.footer-column a {
    color: var(--slate-400);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--amber-400);
}

.footer-bottom {
    border-top: 1px solid rgba(51, 65, 85, 0.7);
    padding: 18px 16px;
    color: var(--slate-500);
    text-align: center;
    font-size: 13px;
}

@media (min-width: 640px) {
    .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .poster-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .poster-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

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

    .menu-button {
        display: inline-flex;
    }

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

    .overview-grid,
    .rank-grid,
    .rank-list,
    .large-grid {
        grid-template-columns: 1fr;
    }

    .large-card-link {
        grid-template-columns: 170px 1fr;
    }
}

@media (max-width: 760px) {
    .nav-shell,
    .content-shell,
    .footer-shell,
    .mobile-panel {
        width: min(100% - 24px, 1280px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero-carousel {
        height: 70vh;
        min-height: 520px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 70px;
    }

    .hero-arrow {
        display: none;
    }

    .wide-search {
        flex-direction: column;
        align-items: stretch;
    }

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

    .horizontal-poster {
        width: 118px;
    }

    .large-card-link,
    .category-overview-card,
    .detail-hero,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .large-card-poster {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .overview-posters {
        min-height: 220px;
    }

    .detail-poster {
        width: min(260px, 100%);
        margin: 0 auto;
    }

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

    .footer-shell {
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .poster-body {
        padding: 11px;
    }

    .poster-body h3 {
        font-size: 14px;
    }

    .tag-row span {
        font-size: 11px;
    }

    .horizontal-body p {
        -webkit-line-clamp: 1;
    }

    .detail-info h1,
    .page-hero h1 {
        font-size: 32px;
    }
}
