:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.22);
}

.nav-wrap {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 600;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #fdba74;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 11px;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transform: scale(1.02);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(249, 115, 22, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.56));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 23px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: var(--slate-100);
    color: var(--slate-600);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
    background: var(--orange-600);
}

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

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

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

.hero-dot.is-active {
    background: var(--orange-500);
}

.quick-panel {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: -38px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-search,
.filter-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.quick-search input,
.filter-tools input {
    min-width: min(420px, 100%);
    flex: 1;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
    padding: 13px 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-tools input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-search button,
.filter-chip {
    border: 0;
    border-radius: 999px;
    background: var(--slate-900);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip {
    background: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.filter-chip.is-active,
.filter-chip:hover {
    color: var(--white);
    background: var(--orange-500);
    border-color: var(--orange-500);
}

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

.quick-links a {
    border-radius: 999px;
    background: var(--orange-100);
    color: var(--orange-600);
    padding: 10px 14px;
    font-weight: 800;
}

.content-section {
    padding: 68px 0;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--slate-500);
}

.section-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.compact-grid .card-cover,
.category-movie-grid .card-cover,
.search-grid .card-cover {
    height: 205px;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.card-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.card-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.78);
    padding: 5px 9px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-500);
    font-size: 15px;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title:hover {
    color: var(--orange-600);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.category-band {
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    padding: 68px 0;
}

.category-band .section-heading h2,
.category-band .section-heading p {
    color: var(--white);
}

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

.category-card,
.category-overview-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 24px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--orange-500);
}

.category-card span,
.category-title-link span {
    display: block;
    margin-bottom: 12px;
    font-size: 34px;
}

.category-card strong,
.category-title-link strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.category-card em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-style: normal;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.rank-panel,
.sticky-card,
.detail-card,
.player-card,
.category-overview-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-panel {
    position: sticky;
    top: 88px;
    padding: 24px;
}

.rank-panel h2,
.sticky-card h2 {
    margin: 0 0 18px;
    color: var(--slate-800);
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-line,
.ranking-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    color: var(--slate-700);
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-line {
    grid-template-columns: 32px 1fr auto;
    padding: 10px;
}

.rank-line:hover,
.ranking-row:hover {
    background: var(--orange-100);
    transform: translateX(4px);
}

.rank-line b,
.ranking-row b {
    color: var(--orange-600);
    font-size: 20px;
}

.rank-line span,
.ranking-row strong {
    font-weight: 850;
}

.rank-line em,
.ranking-row em,
.ranking-row i {
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.inner-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.28), transparent 30%),
        linear-gradient(90deg, var(--slate-900), var(--slate-800));
    padding: 86px 0;
}

.inner-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.inner-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
}

.slim-actions {
    margin-top: 24px;
}

.page-filter {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.category-overview-card {
    color: var(--slate-700);
    padding: 26px;
}

.category-title-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--slate-800);
}

.category-title-link span {
    margin: 0;
}

.category-overview-card p {
    margin: 14px 0 20px;
    color: var(--slate-500);
}

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

.side-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 9px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
    background: var(--orange-100);
    transform: translateX(4px);
}

.side-card img {
    width: 112px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--slate-800);
}

.side-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.side-card em {
    display: block;
    margin-top: 6px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

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

.ranking-row {
    grid-template-columns: 48px 76px 1fr auto;
    padding: 10px 14px;
}

.ranking-row img {
    width: 76px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--slate-800);
}

.detail-container {
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-600);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    background: var(--slate-950);
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.66));
    cursor: pointer;
}

.video-shell.is-playing .play-layer {
    opacity: 0;
    pointer-events: none;
}

.play-layer span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange-500);
    box-shadow: 0 0 0 12px rgba(249, 115, 22, 0.18);
    font-size: 28px;
}

.play-layer strong {
    font-size: 18px;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 18px;
    color: var(--slate-800);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta-grid span {
    border-radius: 14px;
    background: var(--slate-50);
    color: var(--slate-600);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
}

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

.detail-tags span {
    background: var(--orange-100);
    color: var(--orange-600);
}

.text-block {
    border-top: 1px solid var(--slate-200);
    padding-top: 22px;
    margin-top: 22px;
}

.text-block h2 {
    margin: 0 0 12px;
    color: var(--slate-800);
    font-size: 22px;
}

.text-block p {
    margin: 0 0 12px;
    color: var(--slate-600);
    line-height: 1.9;
}

.lead-text {
    color: var(--slate-800) !important;
    font-weight: 800;
}

.detail-side {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 88px;
    padding: 22px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: var(--slate-900);
    padding: 52px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    max-width: 560px;
    margin: 0;
}

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

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

.site-footer a:hover {
    color: #fdba74;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

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

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .sticky-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--slate-900);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 10px 16px 16px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 10px 0;
    }

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

    .hero-slider {
        height: 560px;
    }

    .quick-panel {
        grid-template-columns: 1fr;
        margin-top: 0;
        border-radius: 0;
        width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .search-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .section-heading,
    .footer-grid {
        display: block;
    }

    .section-heading p {
        margin-top: 10px;
    }

    .card-cover,
    .compact-grid .card-cover,
    .category-movie-grid .card-cover,
    .search-grid .card-cover {
        height: 185px;
    }

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

    .ranking-row {
        grid-template-columns: 34px 62px 1fr;
    }

    .ranking-row i {
        display: none;
    }

    .footer-grid > div + div {
        margin-top: 28px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .search-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-actions,
    .quick-links,
    .filter-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .quick-search button,
    .filter-chip {
        width: 100%;
    }

    .quick-search input,
    .filter-tools input {
        min-width: 100%;
    }
}
