:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 36rem),
        radial-gradient(circle at 82% 8%, rgba(59, 130, 246, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(20px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 36px rgba(34, 211, 238, 0.24);
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--muted-strong);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: white;
}

.desktop-nav a:hover {
    transform: translateY(-1px);
}

.header-search {
    width: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.hero-search input,
.filter-bar input,
.search-page-form input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.header-search input {
    padding: 12px 0 12px 16px;
}

.header-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    color: white;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.header-search button {
    padding: 12px 16px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.hero-section {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 64px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 42px;
    padding: 78px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.15) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.35) 100%),
        radial-gradient(circle at 76% 24%, rgba(34, 211, 238, 0.32), transparent 24rem);
}

.hero-content,
.hero-card {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-desc {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.9;
}

.hero-tags,
.movie-tags,
.detail-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span,
.filter-chips button {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 145, 178, 0.12);
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    font-weight: 800;
}

.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: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 42px rgba(59, 130, 246, 0.32);
}

.btn.ghost {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: white;
    background: rgba(15, 23, 42, 0.64);
}

.hero-card {
    display: block;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-card span {
    display: block;
    padding: 14px 4px 2px;
    color: var(--muted-strong);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 78px;
    bottom: 34px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: -30px;
    z-index: 3;
    width: min(740px, calc(100% - 48px));
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.hero-search input {
    padding: 18px 24px;
    font-size: 16px;
}

.hero-search button,
.search-page-form button {
    padding: 0 28px;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading a {
    color: var(--cyan);
    font-weight: 900;
}

.section-heading.compact {
    align-items: center;
}

.section-heading.compact h2 {
    font-size: 28px;
}

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile {
    min-height: 190px;
    padding: 24px;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.42);
    transform: translateY(-4px);
}

.category-name {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-desc {
    display: block;
    max-width: 240px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.category-thumbs {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
}

.category-thumbs img {
    width: 50px;
    height: 66px;
    margin-left: -16px;
    border: 2px solid #0f172a;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    top: 12px;
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

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

.movie-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card-title a:hover {
    color: var(--cyan);
}

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

.movie-card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags span {
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
}

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

.ranking-panel {
    position: sticky;
    top: 98px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.ranking-panel.wide {
    position: static;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.54);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateX(3px);
}

.ranking-number {
    color: var(--cyan);
    font-weight: 1000;
    font-size: 20px;
}

.ranking-item img {
    width: 54px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-item strong,
.ranking-item em {
    display: block;
}

.ranking-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item em {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main {
    padding-top: 34px;
}

.page-hero,
.ranking-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 44px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
        rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.page-hero.slim {
    padding: 58px;
}

.page-hero h1,
.ranking-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p:not(.eyebrow),
.ranking-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb,
.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a,
.detail-breadcrumb a {
    color: var(--cyan);
    font-weight: 800;
}

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

.category-card-large {
    padding: 24px;
}

.category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.category-card-head span {
    font-size: 24px;
    font-weight: 900;
}

.category-card-head em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 900;
}

.category-card-large p {
    color: var(--muted-strong);
    line-height: 1.75;
}

.category-card-links {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.category-card-links a {
    overflow: hidden;
    color: var(--muted-strong);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-links a:hover {
    color: var(--cyan);
}

.filter-bar,
.search-page-form {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
}

.sticky-filter {
    position: sticky;
    top: 88px;
    z-index: 12;
    backdrop-filter: blur(20px);
}

.filter-bar input,
.search-page-form input {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.42);
}

.filter-chips button {
    padding: 8px 12px;
    cursor: pointer;
}

.filter-chips button.is-active {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.search-page-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.search-page-form button {
    border-radius: 18px;
}

.ranking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: center;
    padding: 56px;
}

.ranking-hero-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: rgba(2, 6, 23, 0.36);
}

.ranking-hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    object-fit: cover;
}

.ranking-hero-card strong {
    font-size: 22px;
}

.ranking-hero-card span {
    color: var(--muted-strong);
    line-height: 1.65;
}

.movie-detail-main {
    padding-top: 28px;
}

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

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
    gap: 24px;
    align-items: stretch;
}

.player-card,
.detail-info {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.player-card {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background: #020617;
}

.player-card video {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: white;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.26), transparent 22rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 58px rgba(34, 211, 238, 0.36);
}

.player-overlay strong {
    width: min(88%, 720px);
    font-size: clamp(24px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

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

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-one-line {
    color: var(--muted-strong);
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.detail-meta-grid span {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: white;
    background: rgba(2, 6, 23, 0.28);
}

.detail-meta-grid em {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.detail-text article {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.detail-text p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 16px;
    line-height: 2;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.82);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 42px 0;
}

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

.footer-shell p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px 24px;
}

.footer-links a {
    color: var(--muted-strong);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 54px;
    }

    .hero-card {
        display: none;
    }

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

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

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

    .split-section,
    .detail-hero,
    .ranking-hero {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .nav-shell {
        height: 66px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-section {
        width: min(100% - 20px, 1180px);
        margin-top: 16px;
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px 86px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .hero-search {
        position: static;
        width: 100%;
        margin-top: 14px;
        transform: none;
    }

    .hero-search button {
        padding: 0 18px;
    }

    .section-shell,
    .page-hero,
    .ranking-hero,
    .detail-hero,
    .detail-breadcrumb,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 20px, 1180px);
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

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

    .movie-card-title {
        font-size: 15px;
    }

    .movie-card-desc {
        font-size: 13px;
    }

    .category-grid,
    .category-list-grid,
    .detail-text {
        grid-template-columns: 1fr;
    }

    .page-hero.slim,
    .ranking-hero {
        padding: 34px 22px;
        border-radius: 26px;
    }

    .player-card,
    .player-card video {
        min-height: 260px;
    }

    .detail-info {
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: start;
    }

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

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

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

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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