/*
Theme Name: Newsmag-kdramachill - KDrama Chill
Template: Newsmag
Version: 5.0.0
Description: Custom High-Craft Cinema & Streaming UI for KDrama Chill (kdramachill.net)
*/

:root {
    --bg: #0D0A14;
    --bg-footer: #08060D;
    --surface-1: #161224;
    --surface-2: #211B36;
    --surface-hover: #2C2447;
    --border: #2A2244;
    --border-strong: #3D3163;
    --text: #FAF5FF;
    --text-strong: #FFFFFF;
    --text-2: #F3E8FF;
    --muted: #B8A9D1;
    --faint: #7E6E99;
    --primary: #EC4899;
    --primary-hover: #F472B6;
    --primary-soft: #F9A8D4;
    --primary-ink: #FFFFFF;
    --accent-2: #8B5CF6;
    --rank: #321D4F;
    --header-bg: rgba(13,10,20,0.90);
    --hero-card-bg: #4A154B;
    --hero-card-tint: #831843;
    --hero-card-ink: #FFFFFF;
    --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
    --pad-x: clamp(16px, 4vw, 52px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

h1, h2, h3, h4, .nx-heading {
    font-family: var(--font-heading) !important;
    color: var(--text-strong);
    margin: 0;
    line-height: 1.22 !important;
    padding-top: 2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-soft);
}

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

button, input, select {
    font-family: inherit;
}

/* HEADER */
.nx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 64px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
     padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    gap: 18px;
}

.nx-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--text-strong) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.nx-brand-bars {
    display: inline-flex;
    gap: 3px;
    align-items: flex-end;
}
.nx-brand-bars span:nth-child(1) { width: 6px; height: 13px; border-radius: 3px; background: var(--primary); }
.nx-brand-bars span:nth-child(2) { width: 6px; height: 19px; border-radius: 3px; background: var(--accent-2); }
.nx-brand-bars span:nth-child(3) { width: 6px; height: 24px; border-radius: 3px; background: #14B8A6; }
.nx-brand-bars span:nth-child(4) { width: 6px; height: 16px; border-radius: 3px; background: #8B5CF6; }

.nx-brand-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--primary-ink);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.nx-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
}
.nx-nav::-webkit-scrollbar { display: none; }

.nx-nav-link {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nx-nav-link:hover, .nx-nav-link.is-active {
    background: var(--surface-2);
    color: var(--text-strong);
}

.nx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.nx-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0 14px;
    height: 40px;
    width: clamp(170px, 18vw, 250px);
}
.nx-search-form input {
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 13.5px;
    width: 100%;
    min-width: 0;
}
.nx-search-form input::placeholder {
    color: var(--faint);
}

.nx-btn-app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--primary-ink) !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
}
.nx-btn-app:hover {
    background: var(--primary-hover);
    color: var(--primary-ink) !important;
}

.nx-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* DRAWER */
.nx-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nx-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}
.nx-drawer-panel {
    width: min(320px, 84vw);
    height: 100%;
    background: var(--surface-1);
    border-right: 1px solid var(--border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}
.nx-drawer-backdrop {
    flex: 1;
    background: rgba(0,0,0,0.65);
}
.nx-drawer-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.nx-drawer-link:hover {
    background: var(--surface-2);
    color: var(--primary);
}

/* COMMON SECTIONS & RAILS */
.nx-main {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4.5vw, 52px);
    padding-bottom: 84px;
}

.nx-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

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

.nx-sec-title {
    font-size: clamp(18px, 2.2vw, 24px) !important;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-sec-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-soft);
    white-space: nowrap;
}

.nx-rail-wrap {
    position: relative;
}

.nx-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 10px;
}
.nx-rail::-webkit-scrollbar { display: none; }

.nx-arrow-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nx-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nx-arrow-btn:hover {
    background: var(--primary);
    color: var(--primary-ink);
    border-color: var(--primary);
}

/* CARDS: LANDSCAPE 16:9 (Galaxy Play) */
.glx-card {
    flex: 0 0 clamp(210px, 20vw, 280px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.glx-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glx-card:hover .glx-card-media {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--primary);
    border-color: var(--primary);
}
.glx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.glx-badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-2);
    color: #140E02;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    line-height: 1.2;
}
.glx-badge-bot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(10,12,17,0.82);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}
.glx-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.glx-card-meta {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CARDS: VERTICAL POSTER 2:3 / 13:18 (iQIYI / CauVong / Bento) */
.nx-poster-card {
    flex: 0 0 clamp(150px, 14vw, 200px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.nx-poster-box {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nx-poster-card:hover .nx-poster-box {
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px var(--primary);
}
.nx-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nx-poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0) 100%);
}
.nx-poster-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--primary-ink);
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nx-poster-ep {
    position: absolute;
    left: 9px;
    bottom: 9px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}
.nx-poster-score {
    position: absolute;
    right: 9px;
    bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #FFC94D;
}
.nx-poster-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
}
.nx-poster-progress span {
    display: block;
    height: 100%;
    background: var(--primary);
}
.nx-poster-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.nx-poster-sub {
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* GRID LAYOUTS */
.nx-grid-movies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 20px 14px;
}
.nx-grid-movies .nx-poster-card,
.nx-grid-movies .glx-card {
    flex: initial;
    width: 100%;
}

/* ARCH 1: GALAXY PLAY HERO & CATEGORIES */
.glx-hero {
    position: relative;
    min-height: clamp(460px, 70vh, 680px);
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.glx-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}
.glx-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.glx-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}
.glx-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(10,12,17,0.72) 45%, rgba(10,12,17,0.15) 100%),
                linear-gradient(0deg, var(--bg) 0%, rgba(10,12,17,0) 50%);
}
.glx-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px var(--pad-x) 64px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.glx-hero-thumbs {
    position: absolute;
    right: var(--pad-x);
    bottom: 48px;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.glx-thumb-btn {
    width: 108px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.25);
    padding: 0;
    background: var(--surface-2);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.glx-thumb-btn.is-active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.04);
}
.glx-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.glx-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}
.glx-cat-tile {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}
.glx-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px var(--primary);
}
.glx-cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.glx-cat-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,12,17,0.94) 8%, rgba(10,12,17,0.35) 65%, rgba(10,12,17,0.15) 100%);
}
.glx-cat-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ARCH 2: iQIYI ACCORDION HERO, CHANNELS & RANKING PREVIEW */
.iq-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px) var(--pad-x);
    background: var(--bg);
}
.iq-hero-backdrop {
    position: absolute;
    inset: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    object-fit: cover;
    filter: blur(52px) saturate(1.3) brightness(0.42);
    pointer-events: none;
}
.iq-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9,11,10,0.2) 0%, rgba(9,11,10,0.6) 65%, var(--bg) 100%);
    pointer-events: none;
}
.iq-hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}
.iq-accordion {
    display: flex;
    gap: 10px;
    height: 360px;
    width: clamp(460px, 44vw, 640px);
}
.iq-acc-item {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--surface-1);
    cursor: pointer;
    padding: 0;
    transition: flex 0.55s cubic-bezier(.2,.7,.2,1), border-color 0.3s;
}
.iq-acc-item.is-active {
    flex: 4.2;
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(0,0,0,0.55);
}
.iq-acc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
    transition: filter 0.35s;
}
.iq-acc-item.is-active img {
    filter: brightness(1);
}
.iq-acc-num {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.iq-acc-item.is-active .iq-acc-num {
    opacity: 0;
}

.iq-chan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
.iq-chan-tile {
    position: relative;
    height: 96px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s, border-color 0.2s;
}
.iq-chan-tile:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.iq-chan-img1, .iq-chan-img2 {
    position: absolute;
    width: 46px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.iq-chan-img1 { right: 38px; bottom: -12px; transform: rotate(-9deg); }
.iq-chan-img2 { right: 8px; bottom: -6px; transform: rotate(7deg); }

.iq-rank-layout {
    display: grid;
    grid-template-columns: 1.45fr minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}
.iq-rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
}
.iq-rank-row {
    display: grid;
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.iq-rank-row:hover, .iq-rank-row.is-active {
    background: var(--surface-2);
    border-color: var(--border-strong);
}
.iq-rank-preview {
    position: sticky;
    top: 84px;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface-1);
    border: 1px solid var(--border-strong);
}

/* ARCH 3: CẦU VỒNG TV ROUNDED STUDIO */
.cv-hero-card {
    position: relative;
    border-radius: clamp(20px, 3vw, 32px);
    overflow: hidden;
    background: var(--hero-card-bg);
    color: var(--hero-card-ink);
    padding: clamp(24px, 4.5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
}
.cv-hero-circle {
    position: absolute;
    width: 65%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--hero-card-tint);
    right: -18%;
    top: -38%;
    pointer-events: none;
}
.cv-hero-poster-frame {
    position: relative;
    width: clamp(175px, 24vw, 260px);
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    border: 6px solid var(--bg);
    box-shadow: 0 24px 48px rgba(0,0,0,0.32);
    transform: rotate(-4deg);
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.cv-hero-poster-frame:hover {
    transform: rotate(0deg) scale(1.03);
}
.cv-hero-poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FILTER CHIPS & TABS */
.nx-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.nx-tabs-row::-webkit-scrollbar { display: none; }

.nx-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nx-chip:hover, .nx-chip.is-active {
    background: var(--primary);
    color: var(--primary-ink) !important;
    border-color: var(--primary);
}

/* SINGLE MOVIE & PLAYER */
.nx-player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.nx-player-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.nx-ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 8px;
}
.nx-ep-btn {
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nx-ep-btn:hover, .nx-ep-btn.is-active {
    background: var(--primary);
    color: var(--primary-ink) !important;
    border-color: var(--primary);
}

/* FOOTER & MOBILE BOTTOM BAR */
.nx-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 44px var(--pad-x) 96px;
    color: var(--muted);
    font-size: 13.5px;
}
.nx-footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}

.nx-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: 62px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: none;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}
.nx-mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    padding: 4px 2px;
}
.nx-mob-tab.is-active, .nx-mob-tab:hover {
    color: var(--primary);
}


.pd-synopsis-content, .pd-synopsis-content p, .pd-synopsis-content li {
    color: var(--text-2) !important;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
}


/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1023px) {
    .nx-nav { display: none !important; }
    .nx-icon-btn { display: inline-flex !important; }
    .iq-hero-grid { grid-template-columns: 1fr !important; }
    .iq-accordion { width: 100% !important; height: 260px !important; }
    .iq-rank-layout { grid-template-columns: 1fr !important; }
    .iq-rank-preview { display: none !important; }
    .glx-hero-thumbs { display: none !important; }
}

@media (max-width: 767px) {
    .nx-search-form { display: none !important; }
    .nx-mobile-bar { display: grid !important; }
    .iq-accordion { height: 210px !important; gap: 6px !important; }
    .iq-rank-list { grid-template-columns: 1fr !important; }
    .nx-grid-movies { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 10px !important; }
    .glx-cat-grid {
        grid-auto-flow: column !important;
        grid-auto-columns: 46% !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-template-columns: unset !important;
        overflow-x: auto !important;
    }
    .iq-chan-grid {
        grid-auto-flow: column !important;
        grid-auto-columns: 62% !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-template-columns: unset !important;
        overflow-x: auto !important;
    }
    .cv-hero-poster-frame {
        width: 165px !important;
        margin: 0 auto !important;
    }
}
