:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --emerald: #10b981;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --violet: #7c3aed;
    --pink: #ec4899;
    --red: #ef4444;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
    line-height: 1.6;
}

body.detail-body {
    background: var(--slate-950);
    color: white;
}

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

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

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.42);
}

.brand-text {
    font-size: 1.1rem;
}

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

.nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 300px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 11px 14px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.header-search button,
.quick-search-form button,
.hero-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.quick-search-form button:hover,
.hero-search button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
}

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

.hero-shell {
    position: relative;
    min-height: 710px;
    overflow: hidden;
    color: #fff;
    background: var(--slate-950);
}

.hero-slides {
    position: relative;
    min-height: 710px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
    align-items: center;
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 84px 36px 98px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.90;
    transform: scale(1.04);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.20), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.94));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero-copy p {
    max-width: 760px;
    margin: 26px 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.tag-row span {
    color: #475569;
    background: #f1f5f9;
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.42);
}

.secondary-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
}

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

.hero-poster {
    justify-self: center;
    width: min(380px, 84vw);
    border-radius: 32px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-panel {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

.quick-search-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
    box-shadow: var(--shadow-soft);
}

.quick-search-inner h2 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.quick-search-inner p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
}

.quick-search-form,
.hero-search {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.quick-search-form input,
.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 18px;
}

.content-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 70px 24px 0;
}

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

.section-heading h2 {
    margin: 0 0 4px;
    color: var(--gray-900);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-500);
}

.section-link,
.rank-panel-head a,
.category-overview-top a {
    color: var(--orange-dark);
    font-weight: 900;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(249, 115, 22, 0.92);
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 15px;
}

.movie-meta {
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-card h3 {
    min-height: 2.7em;
    margin: 7px 0 8px;
    color: var(--gray-900);
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.compact-card .movie-card-body {
    padding: 13px;
}

.compact-card h3 {
    font-size: 0.96rem;
}

.compact-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
}

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

.category-tile {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 9px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, filter 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.04);
}

.category-tile span {
    font-size: 1.35rem;
    font-weight: 950;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.accent-orange,
.accent-hot {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.accent-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.accent-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.accent-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
}

.accent-violet {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.accent-red {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}

.accent-pink {
    background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%);
}

.accent-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.rank-panel {
    align-self: start;
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

.rank-panel h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 950;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #fff7ed;
    transform: translateX(3px);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.rank-meta {
    color: var(--gray-500);
    font-size: 0.82rem;
}

.dark-feature {
    max-width: none;
    margin-top: 70px;
    padding: 70px max(24px, calc((100vw - 1440px) / 2 + 24px));
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.26), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark-feature .section-heading h2,
.dark-feature .movie-card h3 {
    color: #fff;
}

.dark-feature .section-heading p {
    color: rgba(226, 232, 240, 0.76);
}

.dark-feature .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.dark-feature .movie-meta,
.dark-feature .movie-card p {
    color: rgba(226, 232, 240, 0.72);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.32), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.compact-hero,
.category-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 70px max(24px, calc((100vw - 1440px) / 2 + 24px));
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: 1.08rem;
}

.category-overview-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 24px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-overview-card {
    border-radius: 30px;
    padding: 24px;
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, filter 0.22s ease;
}

.category-overview-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-top p,
.category-overview-top h2,
.category-overview-top span {
    margin: 0;
}

.category-overview-top p {
    opacity: 0.70;
    font-weight: 800;
}

.category-overview-top h2 {
    margin: 4px 0;
    font-size: 2rem;
    font-weight: 950;
}

.category-overview-top a {
    color: #fff;
    white-space: nowrap;
}

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

.wide-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.wide-item img {
    width: 84px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.wide-item-content {
    display: grid;
    gap: 2px;
}

.wide-item strong {
    font-weight: 900;
}

.wide-item em {
    color: rgba(255, 255, 255, 0.74);
    font-style: normal;
    font-size: 0.86rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--gray-900);
    background: #fff;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--gray-500);
    border-radius: 24px;
    background: #fff;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 76px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.ranking-index {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--slate-800), var(--orange));
}

.ranking-card img {
    width: 92px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-info {
    display: grid;
    gap: 5px;
}

.ranking-info strong {
    font-size: 1.1rem;
    font-weight: 950;
}

.ranking-info em {
    color: var(--gray-500);
    font-style: normal;
}

.ranking-info b {
    color: var(--gray-700);
    font-weight: 500;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    opacity: 0.92;
}

.detail-container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.92rem;
    margin-bottom: 34px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.40);
}

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

.detail-copy h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(226, 232, 240, 0.88);
    font-size: 1.2rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

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

.player-section {
    max-width: 1180px;
    margin: -86px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.46);
}

.main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.48);
}

.player-overlay strong {
    font-size: 1.18rem;
}

.detail-text-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    color: var(--gray-900);
}

.detail-article,
.detail-side-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 1.55rem;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--gray-700);
}

.detail-side-card {
    align-self: start;
    padding: 24px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-side-card dt {
    color: var(--gray-500);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

.detail-body .content-section .section-heading h2 {
    color: #fff;
}

.detail-body .content-section .section-heading p {
    color: rgba(226, 232, 240, 0.70);
}

.site-footer {
    margin-top: 84px;
    color: rgba(226, 232, 240, 0.78);
    background: #0f172a;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
}

.footer-inner p {
    max-width: 680px;
    margin: 0;
}

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

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-search {
        min-width: 240px;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        gap: 12px;
    }

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

    .main-nav {
        display: none;
        order: 5;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

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

    .nav-link {
        text-align: center;
    }

    .header-search {
        order: 4;
        width: 100%;
    }

    .hero-shell,
    .hero-slides {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 60px 22px 100px;
    }

    .hero-poster {
        width: min(260px, 70vw);
        transform: none;
    }

    .quick-search-inner,
    .filter-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .compact-hero,
    .category-hero {
        flex-direction: column;
        align-items: start;
    }

    .detail-layout {
        align-items: start;
    }

    .detail-poster {
        max-width: 280px;
    }

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 1rem;
    }

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

    .hero-actions,
    .quick-search-form,
    .hero-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .quick-search-form button,
    .hero-search button {
        border-radius: 0;
    }

    .grid-six,
    .grid-five,
    .category-tile-grid,
    .category-overview-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .content-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-card-body {
        padding: 11px;
    }

    .movie-card h3 {
        font-size: 0.92rem;
    }

    .movie-card p,
    .tag-row {
        display: none;
    }

    .rank-row,
    .ranking-card {
        grid-template-columns: 44px 1fr;
    }

    .rank-meta,
    .ranking-card img {
        display: none;
    }

    .ranking-info b {
        display: none;
    }

    .detail-container,
    .player-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .detail-article,
    .detail-side-card {
        padding: 20px;
    }
}
