:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #fbbf24;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --emerald: #10b981;
    --violet: #7c3aed;
    --rose: #e11d48;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    color: #fff;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: white;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.38);
    font-size: 14px;
}

.brand-name {
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 21px;
    background: linear-gradient(90deg, #fb923c, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 14px;
    color: #dbeafe;
    border-radius: 12px;
    transition: 0.24s ease;
    white-space: nowrap;
    font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--orange);
    color: white;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(310px, 28vw);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.site-search input,
.hero-search input,
.page-filter input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.site-search input {
    padding: 12px 12px;
    color: #fff;
}

.site-search input::placeholder {
    color: #cbd5e1;
}

.site-search button {
    border: 0;
    padding: 10px 14px;
    margin-right: 4px;
    border-radius: 11px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    font-weight: 750;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(460px, 92vw);
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow);
    color: #fff;
    z-index: 100;
}

.search-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-item img,
.search-item span:first-child {
    width: 46px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
}

.search-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.search-item em {
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.search-empty {
    padding: 16px;
    color: #cbd5e1;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.24), transparent 32%), linear-gradient(135deg, #172554, #0f172a 62%, #020617);
    color: white;
}

.hero-track,
.hero-slide {
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    overflow: hidden;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.015);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-background,
.hero-shade,
.detail-bg,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.hero-background img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.1) contrast(1.04);
}

.hero-background.image-fallback,
.detail-bg.image-fallback {
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.34), transparent 30%), linear-gradient(135deg, #172554, #020617);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.38)),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25), transparent 34%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 360px;
    align-items: center;
    gap: 60px;
    padding: 90px 0 96px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fed7aa;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.eyebrow.dark {
    color: var(--orange);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: clamp(18px, 2.4vw, 25px);
    color: #dbeafe;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.hero-tags span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(6px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 850;
    transition: 0.24s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.30);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 42px rgba(249, 115, 22, 0.40);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-mini {
    min-height: 40px;
    padding: 0 16px;
    margin-top: 16px;
    color: white;
    background: var(--slate-900);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    transform: rotate(1.4deg);
    isolation: isolate;
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}

.hero-poster img,
.poster img,
.category-tile img,
.category-visual img,
.ranking-poster img,
.small-poster img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.hero-poster:hover img,
.poster:hover img,
.category-tile:hover img,
.category-visual:hover img,
.small-card:hover img {
    transform: scale(1.08);
}

.hero-poster span:last-child {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: inline-flex;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #7c2d12);
    z-index: -1;
}

img.image-missing {
    opacity: 0;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 4;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 30px;
    line-height: 1;
}

.hero-arrow:hover {
    background: var(--orange);
}

.hero-dots {
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: 0.22s ease;
}

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

.section {
    padding: 76px 0;
}

.section-white {
    background: #fff;
}

.section-soft {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.feature-search {
    margin-top: -46px;
    padding: 0 0 48px;
    position: relative;
    z-index: 5;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.86);
    backdrop-filter: blur(14px);
}

.search-panel h2,
.section-head h2,
.rank-head h2,
.related-panel h2,
.detail-block h2,
.category-card h2,
.ranking-card h2 {
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}

.search-panel h2 {
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.search-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    background: #f1f5f9;
    border: 1px solid #dbeafe;
}

.hero-search input {
    padding: 0 12px;
    min-height: 48px;
    color: var(--text);
}

.hero-search button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 850;
}

.hero-search-results {
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    width: auto;
}

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

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: clamp(26px, 3.4vw, 42px);
    letter-spacing: -0.035em;
}

.section-head h2::before {
    content: "";
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--orange), var(--amber));
}

.section-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.accent-cyan h2::before {
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.accent-blue h2::before {
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.accent-emerald h2::before {
    background: linear-gradient(180deg, var(--emerald), #22c55e);
}

.accent-violet h2::before {
    background: linear-gradient(180deg, var(--violet), #a855f7);
}

.accent-rose h2::before {
    background: linear-gradient(180deg, var(--rose), #fb7185);
}

.section-more {
    color: var(--orange-dark);
    font-weight: 850;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--soft-shadow);
    transition: 0.28s ease;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

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

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

.poster::after,
.category-tile::after,
.ranking-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(2, 6, 23, 0.74));
    z-index: 1;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.34);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
}

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

.card-body h3 a:hover {
    color: var(--orange-dark);
}

.card-body p:not(.card-meta) {
    margin: 9px 0 0;
    color: #475569;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 9px;
    background: #f1f5f9;
    color: #475569;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.compact-head {
    margin-bottom: 24px;
}

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

.category-tile {
    position: relative;
    min-height: 188px;
    padding: 22px;
    overflow: hidden;
    border-radius: 24px;
    color: white;
    background: var(--slate-900);
    box-shadow: var(--soft-shadow);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    z-index: -1;
}

.category-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.34));
    z-index: -1;
}

.category-tile strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile em {
    display: block;
    color: #dbeafe;
    font-style: normal;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    position: relative;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 12px;
}

.rank-box {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 26px;
    background: var(--slate-900);
    color: white;
    box-shadow: var(--shadow);
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rank-head h2 {
    color: white;
}

.rank-head a {
    color: #fdba74;
    font-weight: 750;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 38px 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.rank-num {
    color: #fdba74;
    font-weight: 900;
}

.rank-thumb {
    position: relative;
    width: 58px;
    height: 76px;
    overflow: hidden;
    border-radius: 12px;
    background: #1e293b;
    isolation: isolate;
}

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

.rank-title strong,
.small-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-title em,
.small-card em {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.22), transparent 28%), linear-gradient(135deg, #172554, #0f172a);
    color: white;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.breadcrumb.light {
    color: #dbeafe;
}

.breadcrumb.light a:hover {
    color: #fdba74;
}

.page-filter {
    width: min(560px, 100%);
    margin-top: 26px;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.page-filter input {
    min-height: 44px;
    color: white;
}

.page-filter input::placeholder {
    color: #cbd5e1;
}

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

.empty-state {
    margin: 28px 0 0;
    padding: 26px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--line);
}

.category-visual {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 22px;
    background: var(--slate-900);
    isolation: isolate;
}

.category-visual span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.58));
}

.category-card h2 {
    font-size: 26px;
    margin-top: 5px;
}

.category-card h2 a:hover {
    color: var(--orange-dark);
}

.category-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-preview a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--line);
}

.ranking-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: var(--slate-900);
    isolation: isolate;
}

.ranking-poster b {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.ranking-card p {
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.ranking-card h2 {
    font-size: 21px;
}

.ranking-card h2 a:hover {
    color: var(--orange-dark);
}

.ranking-card em {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-style: normal;
}

.detail-main {
    background: #0f172a;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: white;
}

.detail-overlay {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.44));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 74px 0;
}

.detail-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-900);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    isolation: isolate;
}

.detail-cover b {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: block;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    background: rgba(249, 115, 22, 0.92);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.detail-one-line {
    max-width: 850px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 20px;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.player-section {
    padding-top: 46px;
    background: linear-gradient(180deg, #0f172a, #111827);
}

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

.detail-content {
    display: grid;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: white;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.62));
    transition: 0.24s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
    font-size: 28px;
}

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

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-block,
.related-panel {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.10);
}

.detail-block {
    padding: 26px;
}

.detail-block h2,
.related-panel h2 {
    font-size: 25px;
    margin-bottom: 14px;
}

.detail-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.related-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
}

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

.small-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    transition: 0.2s ease;
}

.small-card:hover {
    background: #f1f5f9;
}

.small-poster {
    position: relative;
    height: 62px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--slate-900);
    isolation: isolate;
}

.small-card em {
    color: var(--muted);
}

.site-footer {
    background: #020617;
    color: #cbd5e1;
    padding: 58px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.75fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 16px;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    margin-top: 44px;
    padding: 20px 16px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1100px) {
    .site-search {
        width: min(260px, 26vw);
    }

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

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

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

    .rank-box,
    .related-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 12px;
    }

    .site-search {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 12px;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 72px;
    }

    .hero-poster {
        width: min(270px, 72vw);
        justify-self: center;
    }

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

    .category-grid,
    .footer-grid,
    .category-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .category-visual {
        min-height: 210px;
    }

    .detail-cover {
        width: min(280px, 80vw);
        justify-self: center;
    }

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

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

    .hero-slider,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 720px;
    }

    .hero-copy h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-controls {
        bottom: 18px;
    }

    .section {
        padding: 52px 0;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .ranking-card {
        grid-template-columns: 104px minmax(0, 1fr);
        padding: 12px;
    }

    .detail-meta,
    .hero-tags {
        gap: 7px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .small-card {
        grid-template-columns: 80px minmax(0, 1fr);
    }
}
