:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 30px 80px rgba(15, 23, 42, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--slate-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.2);
}

.header-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 18px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fed7aa;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--slate-900);
    padding: 10px 24px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.86);
}

.site-main {
    min-height: 70vh;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 1s ease;
    pointer-events: none;
}

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

.hero-content {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 860px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.055em;
    margin: 0 0 18px;
}

.hero-content h2 {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin: 0 0 16px;
}

.hero-content p {
    max-width: 680px;
    font-size: clamp(16px, 2.4vw, 22px);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin-bottom: 22px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost.dark {
    color: var(--slate-800);
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 34px;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--orange);
}

.search-band,
.section-wrap,
.category-section,
.page-hero,
.filter-panel,
.category-overview-grid,
.breadcrumb,
.detail-hero-grid,
.player-section,
.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 24px;
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.player-section h2,
.detail-content h2 {
    font-weight: 900;
    letter-spacing: -0.035em;
}

.search-band h2 {
    font-size: clamp(24px, 4vw, 36px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-box span {
    color: var(--orange);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    outline: none;
    color: var(--slate-800);
}

.global-search-results {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.global-search-results.is-active {
    display: grid;
}

.search-result-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.search-result-item img {
    width: 76px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.search-result-item strong,
.search-result-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-item span {
    color: var(--slate-600);
    font-size: 13px;
}

.section-wrap,
.category-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.muted-wrap {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: #f8fafc;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.section-heading a,
.category-more {
    color: var(--orange);
    font-weight: 800;
}

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

.category-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: var(--slate-200);
}

.movie-card-compact .movie-poster {
    height: 175px;
}

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

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

.movie-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.movie-meta em {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.movie-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 1.5em;
    color: var(--slate-900);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-score {
    margin-top: auto;
    color: var(--orange);
    font-weight: 900;
}

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

.category-chip,
.category-card-large {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
    padding: 24px;
    transition: transform 0.22s ease, background 0.22s ease;
}

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

.category-chip span {
    display: block;
    margin-bottom: 12px;
    font-size: 34px;
}

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

.category-chip strong {
    margin-bottom: 7px;
    font-size: 18px;
    font-weight: 900;
}

.category-chip em {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

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

.ranking-list .movie-card {
    display: grid;
    grid-template-columns: 58px 180px minmax(0, 1fr);
    align-items: stretch;
    border-radius: 18px;
}

.ranking-list .movie-poster {
    height: 120px;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    background: linear-gradient(135deg, var(--orange), #fb923c);
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.page-main {
    padding-top: 44px;
    padding-bottom: 64px;
}

.page-hero {
    padding-top: 64px;
    padding-bottom: 56px;
    border-radius: 0 0 34px 34px;
}

.small-hero,
.category-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    margin: 0 0 16px;
}

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

.filter-panel {
    padding-top: 30px;
    padding-bottom: 28px;
}

.wide-search {
    max-width: 680px;
}

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

.category-card-large {
    background: var(--white);
    color: var(--slate-900);
    box-shadow: var(--shadow-soft);
}

.category-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category-card-head span {
    font-size: 36px;
}

.category-card-head h2 {
    font-size: 26px;
    font-weight: 900;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
    padding-bottom: 24px;
    color: var(--slate-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-dark);
    font-weight: 800;
}

.breadcrumb em {
    overflow: hidden;
    max-width: 320px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 40px;
}

.detail-poster-card,
.detail-main-card,
.player-section,
.detail-content article {
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-poster-card {
    overflow: hidden;
}

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

.detail-poster-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    font-weight: 900;
}

.detail-poster-card strong {
    color: var(--orange);
}

.detail-main-card {
    padding: clamp(24px, 5vw, 48px);
}

.detail-main-card h1 {
    margin-bottom: 16px;
    color: var(--slate-900);
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-one-line {
    max-width: 820px;
    margin-bottom: 22px;
    color: var(--slate-600);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta span,
.tag-row span {
    background: #f8fafc;
    color: var(--slate-700);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

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

.player-section h2 {
    margin-bottom: 18px;
    font-size: clamp(24px, 4vw, 34px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--slate-950);
    box-shadow: var(--shadow-strong);
}

.video-frame video {
    width: 100%;
    max-height: 72vh;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 38px;
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.42);
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 20px;
}

.detail-content article {
    padding: 28px;
}

.detail-content h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.detail-content p {
    color: var(--slate-600);
    line-height: 2;
}

.related-wrap {
    padding-top: 36px;
}

.site-footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.74);
    padding-top: 48px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 34px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 36px;
}

.footer-brand strong {
    display: block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 22px;
}

.footer-brand p {
    max-width: 460px;
    line-height: 1.8;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 24px;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster-card {
        max-width: 360px;
    }

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

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

@media (max-width: 560px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-text {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content,
    .search-band,
    .section-wrap,
    .category-section,
    .page-hero,
    .filter-panel,
    .category-overview-grid,
    .breadcrumb,
    .detail-hero-grid,
    .player-section,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .ranking-list .movie-card {
        grid-template-columns: 50px 110px minmax(0, 1fr);
    }

    .ranking-list .movie-poster {
        height: 118px;
    }

    .movie-poster {
        height: 230px;
    }

    .hero-dots {
        bottom: 18px;
    }
}
