@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root,
[data-theme="cyan"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0d0e12;
  --pill-bg: #14151a;
  --glass: rgb(255 255 255 / 0.06);
  --glass-border: rgb(255 255 255 / 0.1);
  --tray-bg: rgb(18 20 26 / 0.72);
  --accent: #13a8fe;
  --accent-hover: #38b6ff;
  --accent-contrast: #ffffff;
  --accent-glow: rgb(19 168 254 / 0.42);
  --rim-active: #d92b5a;
  --heart: #e50914;
  --star: #f5c518;
  --text: #ffffff;
  --text-2: rgb(255 255 255 / 0.76);
  --muted: #8b93a6;
}

[data-theme="crimson"] {
  color-scheme: dark;
  --accent: #ff2e54;
  --accent-hover: #ff4d6f;
  --accent-glow: rgb(255 46 84 / 0.42);
  --rim-active: #13a8fe;
}

[data-theme="violet"] {
  color-scheme: dark;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgb(139 92 246 / 0.42);
  --rim-active: #ec4899;
}

[data-theme="amber"] {
  color-scheme: dark;
  --accent: #f59e0b;
  --accent-hover: #ffb800;
  --accent-contrast: #000000;
  --accent-glow: rgb(245 158 11 / 0.42);
  --rim-active: #ff3b5c;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  min-block-size: 100dvh;
  max-inline-size: 100%;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
}

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

/* Transparent Borderless Floating Header */
.fm-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  transition: background-color 0.28s ease, backdrop-filter 0.28s ease;
}

.fm-header.scrolled {
  background: rgb(0 0 0 / 0.78);
  backdrop-filter: blur(18px);
}

.fm-header-inner {
  max-inline-size: 1400px;
  margin-inline: auto;
  padding: 15px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fm-header-start {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fm-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.78);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.fm-nav-link:hover,
.fm-nav-link.active {
  color: #ffffff;
}

.fm-nav-link.active {
  color: var(--accent);
}

/* Animated Glass Megamenu */
.fm-dropdown {
  position: relative;
}

.fm-megamenu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-start: 0;
  min-inline-size: 380px;
  background: rgb(14 16 22 / 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 52px rgb(0 0 0 / 0.78);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}

.fm-dropdown:hover .fm-megamenu,
.fm-dropdown:focus-within .fm-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fm-mega-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fm-mega-col strong {
  font-size: 0.74rem;
  color: var(--muted);
  margin-block-end: 4px;
}

.fm-mega-col button {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  border-radius: 9px;
  text-align: start;
  font-size: 0.81rem;
  color: rgb(255 255 255 / 0.82);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fm-mega-col button:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--accent);
}

.fm-mega-genres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.live-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--heart);
  box-shadow: 0 0 8px var(--heart);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: livePulse 2.2s ease-in-out infinite;
  }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.fm-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  padding: 4px 2px;
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.fm-logo-dot {
  inline-size: 26px;
  block-size: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.fm-wordmark:hover {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}

.fm-header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fm-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.fm-hdr-btn.glass {
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(14px);
  border-color: rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.9);
}

.fm-hdr-btn.glass:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: var(--accent);
  color: #ffffff;
}

.fm-hdr-btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.fm-hdr-btn.primary:hover {
  background: var(--accent-hover);
}

.fm-lib-badge {
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.fm-mobile-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

.fm-mobile-drawer {
  background: rgb(10 11 16 / 0.96);
  backdrop-filter: blur(20px);
  padding: 14px 24px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-block-end: 1px solid var(--glass-border);
}

.fm-mobile-drawer[hidden] {
  display: none;
}

.fm-mobile-drawer button {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.84rem;
}

/* Main Stage */
.fm-stage {
  min-block-size: 80dvh;
  padding-block-end: 40px;
}

/* Full-Bleed Edge-to-Edge Living Hero */
.hero-wrap {
  position: relative;
}

.hero-stage {
  position: relative;
  min-block-size: min(86dvh, 760px);
  display: flex;
  align-items: center;
  padding: 96px 32px 144px;
  overflow: clip;
}

.hero-backdrop {
  position: absolute;
  inset: -14px;
  inline-size: calc(100% + 28px);
  block-size: calc(100% + 28px);
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: opacity 0.45s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 35%, var(--accent-glow), transparent 48%),
    radial-gradient(circle at 78% 28%, rgb(217 43 90 / 0.24), transparent 52%);
  opacity: 0.72;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-ambient-glow {
    animation: ambientDrift 12s ease-in-out infinite alternate;
  }

  .hero-editorial > * {
    animation: fadeSlideUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-editorial > *:nth-child(2) { animation-delay: 0.03s; }
  .hero-editorial > *:nth-child(3) { animation-delay: 0.06s; }
  .hero-editorial > *:nth-child(4) { animation-delay: 0.09s; }
  .hero-editorial > *:nth-child(5) { animation-delay: 0.12s; }

  ::view-transition-old(root) {
    animation: vtFadeOut 0.18s ease forwards;
  }
  ::view-transition-new(root) {
    animation: vtFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes ambientDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-18px, 12px, 0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vtFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-progress-track {
  inline-size: min(260px, 60vw);
  block-size: 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  overflow: clip;
  margin-block-start: 4px;
}

.hero-progress-fill {
  block-size: 100%;
  inline-size: 100%;
  background: var(--accent);
  transform-origin: right center;
  box-shadow: 0 0 12px var(--accent-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-progress-fill.running {
    animation: heroTimerFill 8.5s linear forwards;
  }
}

@keyframes heroTimerFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgb(0 0 0 / 0.94) 0%, rgb(0 0 0 / 0.72) 44%, rgb(0 0 0 / 0.14) 100%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.72) 0%, transparent 22%, transparent 58%, #000000 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-inline-size: 1360px;
  inline-size: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 620px);
  gap: 24px;
  align-items: center;
}

/* Floating Minimalist Vertical Icon Rail */
.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.rail-btn {
  background: transparent;
  border: 0;
  padding: 6px;
  color: rgb(255 255 255 / 0.68);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rail-btn:hover,
.rail-btn.active {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .rail-btn:hover {
    transform: scale(1.14);
  }
}

/* Inline Translucent Glass Search Inside Hero */
.hero-editorial {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-search-wrap {
  position: relative;
  max-inline-size: 380px;
  margin-block-end: 8px;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(255 255 255 / 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  padding: 0 14px;
  color: rgb(255 255 255 / 0.7);
}

.hero-search-form:focus-within {
  border-color: var(--accent);
  background: rgb(255 255 255 / 0.11);
}

.hero-search-form input {
  background: transparent;
  border: 0;
  outline: none;
  padding-block: 10px;
  inline-size: 100%;
  font-size: 0.84rem;
  color: #ffffff;
}

.hero-search-form input::placeholder {
  color: rgb(255 255 255 / 0.52);
}

.instant-dropdown {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  inline-size: min(410px, 88dvw);
  background: rgb(14 16 22 / 0.94);
  backdrop-filter: blur(22px);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.75);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instant-dropdown[hidden] {
  display: none;
}

.instant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 7px;
  border-radius: 10px;
  cursor: pointer;
  text-align: start;
  inline-size: 100%;
}

.instant-item:hover {
  background: rgb(255 255 255 / 0.08);
}

.instant-item img {
  inline-size: 40px;
  block-size: 58px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}

.hero-headline {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 6px 32px rgb(0 0 0 / 0.65);
}

.hero-eng-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.88);
  margin-block-start: -4px;
}

.hero-synopsis {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.78);
  max-inline-size: 540px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: clip;
}

.hero-stars-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--star);
  font-size: 1rem;
  letter-spacing: 2px;
}

.stars-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.78);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: 4px;
}

/* Signature Full-Pill & Frosted Glass Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 11px 26px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .pill-btn:hover {
    transform: translateY(-2px);
  }
}

.pill-btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.pill-btn.primary:hover {
  background: var(--accent-hover);
}

.pill-btn.glass {
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(12px);
  border-color: rgb(255 255 255 / 0.42);
  color: #ffffff;
  font-weight: 500;
}

.pill-btn.glass:hover {
  background: rgb(255 255 255 / 0.14);
  border-color: #ffffff;
}

.hero-pause-btn {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: rgb(255 255 255 / 0.8);
  border-radius: 9999px;
  padding: 9px 14px;
  font-size: 0.76rem;
  cursor: pointer;
}

.hero-pause-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
}

/* Overlapping Frosted-Glass Popular Movies Tray (14+ Scrollable Posters) */
.popular-tray-section {
  position: relative;
  z-index: 12;
  max-inline-size: 1360px;
  margin-inline: auto;
  margin-block-start: -102px;
  padding-inline: 32px;
}

.popular-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 10px;
}

.popular-tray-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.9);
}

.drag-hint {
  font-size: 0.74rem;
  color: rgb(255 255 255 / 0.5);
}

.popular-tray {
  background: var(--tray-bg);
  backdrop-filter: blur(26px);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.popular-tray.dragging {
  cursor: grabbing;
  user-select: none;
}

.tray-poster {
  position: relative;
  flex: 0 0 132px;
  inline-size: 132px;
  block-size: 198px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  padding: 0;
  border: 1.5px solid transparent;
  background: #0d0e12;
  cursor: pointer;
  overflow: clip;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.3s ease;
}

.tray-poster img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center top;
}

.tray-poster:hover {
  transform: scale(1.05);
  z-index: 3;
}

.tray-poster.active {
  border-color: var(--rim-active);
  z-index: 5;
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.85), 0 0 24px rgb(217 43 90 / 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .tray-poster.active {
    transform: scale(1.06) translateY(-3px);
  }
}

.tray-next-chevron {
  background: transparent;
  border: 0;
  color: rgb(255 255 255 / 0.8);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.tray-next-chevron:hover {
  color: var(--accent);
}

/* Centered Minimal Icon Sort Tabs & Genre Pills */
.portal-body {
  max-inline-size: 1360px;
  margin-inline: auto;
  padding: 46px 32px 0;
}

.sort-tabs-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-block-end: 24px;
}

.sort-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px 4px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.6);
  cursor: pointer;
  transition: color 0.18s ease;
}

.sort-tab:hover,
.sort-tab.active {
  color: #ffffff;
}

.sort-tab.active::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  transform: translateX(50%);
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.genre-pills-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 34px;
}

.genre-pill {
  background: var(--pill-bg);
  border: 0;
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.78);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.genre-pill:hover {
  background: rgb(255 255 255 / 0.14);
  color: #ffffff;
}

.genre-pill.active {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Edge-Peeking Overflow Row */
.overflow-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-block: 10px 26px;
  scrollbar-width: none;
}

.overflow-strip .cinema-card {
  flex: 0 0 176px;
  inline-size: 176px;
  max-inline-size: 176px;
}

/* Main 6-Column Borderless Poster Grid */
.cinema-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 18px;
}

/* Lush Borderless Poster Card with Gen-V Hover Pop */
.cinema-card {
  position: relative;
  inline-size: 100%;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: start;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .cinema-card:hover {
    transform: scale(1.06);
    z-index: 8;
  }
}

.cinema-poster {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: clip;
  background: #0d0e12;
  transition: box-shadow 0.28s ease;
}

.cinema-card:hover .cinema-poster {
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.85), 0 0 22px var(--accent-glow);
}

/* FilmKio Diagonal Gloss Sweep */
@media (prefers-reduced-motion: no-preference) {
  .cinema-poster::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -75%;
    inline-size: 50%;
    background: linear-gradient(to left, transparent, rgb(255 255 255 / 0.16), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
  }

  .cinema-card:hover .cinema-poster::after {
    opacity: 1;
    animation: sheenSweep 0.65s ease forwards;
  }
}

@keyframes sheenSweep {
  from { inset-inline-start: -75%; }
  to { inset-inline-start: 135%; }
}

.cinema-poster img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.cinema-card:hover .cinema-poster img {
  opacity: 0.42;
}

.cinema-hover-layer {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cinema-card:hover .cinema-hover-layer {
  opacity: 1;
}

.cinema-hover-center {
  align-self: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: grid;
  place-items: center;
  transform: scale(0.8);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.cinema-card:hover .cinema-hover-center {
  transform: scale(1);
  background: var(--accent);
  color: var(--accent-contrast);
}

/* FilmKio Section Carousels, Quick Filter Bar & Scroll Reveal */
.fk-quick-filter {
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(18px);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-block-end: 34px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.fk-filter-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-inline-size: 0;
}

.fk-filter-col label {
  font-size: 0.72rem;
  color: var(--muted);
}

.fk-section {
  margin-block-end: 38px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.fk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-block-end: 16px;
}

.fk-section-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fk-bar {
  inline-size: 4px;
  block-size: 19px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.fk-section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fk-arrow-btn {
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.fk-arrow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.fk-shelf-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-block: 14px 18px;
  padding-inline: 4px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.fk-shelf-row.dragging {
  cursor: grabbing;
  user-select: none;
}

.fk-shelf-row .cinema-card {
  flex: 0 0 176px;
  inline-size: 176px;
  max-inline-size: 176px;
}

/* Unified Search & Advanced Filter Page */
.search-hero-panel {
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 20px;
  padding: 22px;
  margin-block-end: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-big {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgb(0 0 0 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 14px;
  padding: 4px 16px;
}

.search-input-big:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.search-input-big input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding-block: 12px;
  font-size: 0.96rem;
  color: #ffffff;
}

.search-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.infinite-sentinel {
  block-size: 48px;
  display: grid;
  place-items: center;
  margin-block-start: 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .search-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fk-rank-badge {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 10px;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 0.9;
  color: rgb(255 255 255 / 0.88);
  text-shadow: 0 4px 18px rgb(0 0 0 / 0.95);
  pointer-events: none;
  z-index: 2;
}

.cinema-hover-top {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.hover-icon-btn {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.58);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hover-icon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cinema-hover-bottom {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  inline-size: 100%;
  min-inline-size: 0;
}

.cinema-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cinema-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--muted);
}

.card-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-heart {
  color: var(--heart);
}

.stat-star {
  color: var(--star);
  font-weight: 700;
}

/* Mid-Page Full-Width Cinematic Spotlight Banner (House of the Dragon Style) */
.mid-spotlight {
  position: relative;
  border-radius: 16px;
  overflow: clip;
  min-block-size: 370px;
  margin-block: 42px;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  background: #0a0b0f;
}

.mid-spotlight-bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.mid-spotlight-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgb(0 0 0 / 0.94) 0%, rgb(0 0 0 / 0.78) 50%, rgb(0 0 0 / 0.28) 100%),
    linear-gradient(to top, #000000 0%, transparent 55%),
    linear-gradient(to bottom, #000000 0%, transparent 25%);
}

.mid-spotlight-content {
  position: relative;
  z-index: 2;
  max-inline-size: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mid-spotlight-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.82);
}

.age-box {
  background: #d90429;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.mid-spotlight-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
}

.mid-spotlight-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-start: 6px;
}

.mid-tabs {
  display: flex;
  gap: 22px;
}

.mid-tab {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.62);
  cursor: pointer;
}

.mid-tab.active,
.mid-tab:hover {
  color: #ffffff;
  border-block-end: 2px solid var(--accent);
}

.mid-watch-rect {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 0;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.mid-watch-rect:hover {
  background: var(--accent-hover);
}

.mid-list-ghost {
  background: transparent;
  border: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mid-list-ghost:hover {
  color: var(--accent);
}

/* Full-Width Charcoal Show More Bar */
.show-more-bar {
  display: block;
  inline-size: 100%;
  margin-block-start: 34px;
  padding: 13px;
  border-radius: 8px;
  background: #141519;
  border: 0;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.show-more-bar:hover {
  background: #1d1f26;
  color: #ffffff;
}

.show-more-bar[hidden] {
  display: none;
}

/* Minimal Footer */
.fm-footer {
  background: #0d0e12;
  padding: 36px 24px 30px;
  margin-block-start: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.fm-footer-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #ffffff;
}

.fm-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.fm-footer-links button {
  background: transparent;
  border: 0;
  color: rgb(255 255 255 / 0.65);
  cursor: pointer;
  font-size: 0.78rem;
}

.fm-footer-links button:hover {
  color: var(--accent);
}

.fm-footer-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

/* Sub-Pages & Dedicated Detail Page */
.subpage-wrap {
  max-inline-size: 1360px;
  margin-inline: auto;
  padding: 92px 32px 24px;
}

.subpage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 24px;
}

.subpage-head h1 {
  margin: 0;
  font-size: 1.65rem;
}

.glass-panel {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  padding: 20px;
}

.glass-field,
.fm-select {
  background: #12141b;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #ffffff;
  outline: none;
}

.glass-field:focus,
.fm-select:focus {
  border-color: var(--accent);
}

/* Full-Bleed Detail Page */
.detail-hero {
  position: relative;
  min-block-size: min(74dvh, 620px);
  display: flex;
  align-items: flex-end;
  padding: 96px 32px 42px;
  overflow: clip;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.detail-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgb(0 0 0 / 0.96) 0%, rgb(0 0 0 / 0.78) 52%, rgb(0 0 0 / 0.3) 100%),
    linear-gradient(to top, #000000 2%, transparent 65%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-inline-size: 1360px;
  inline-size: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-poster {
  inline-size: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 22px 48px rgb(0 0 0 / 0.85);
}

.detail-body {
  max-inline-size: 1360px;
  margin-inline: auto;
  padding: 20px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.star-rater {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 9999px;
  padding: 6px 14px;
}

.star-rater button {
  background: transparent;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
}

.star-rater button.lit {
  color: var(--star);
}

.dl-group {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  overflow: clip;
  margin-block-end: 12px;
}

.dl-group summary {
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-group summary::-webkit-details-marker {
  display: none;
}

.dl-group-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgb(0 0 0 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 10px;
  padding: 10px 14px;
}

.episode-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  padding: 14px;
}

.episode-card img {
  inline-size: 100%;
  block-size: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.spoiler-blur {
  filter: blur(6px);
  user-select: none;
}

.spoiler-blur.revealed {
  filter: none;
  user-select: auto;
}

.related-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 6px;
  border-radius: 10px;
  text-align: start;
  cursor: pointer;
}

.related-row:hover {
  background: rgb(255 255 255 / 0.06);
}

.related-row img {
  inline-size: 46px;
  block-size: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Countries & Live TV */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.country-card:hover {
  border-color: var(--accent);
}

.country-card img {
  inline-size: 40px;
  block-size: 28px;
  object-fit: cover;
  border-radius: 6px;
}

.livetv-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.livetv-sidebar {
  max-block-size: 74dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.livetv-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overscroll-behavior: contain;
}

.tv-country-btn {
  display: flex;
  justify-content: space-between;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.84rem;
}

.tv-country-btn:hover,
.tv-country-btn.active {
  background: rgb(255 255 255 / 0.08);
  color: var(--accent);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

/* Native Dialogs with Smooth Top-Layer Entry */
dialog {
  margin: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: #0d0e12;
  color: #ffffff;
  border-radius: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    transition: opacity 0.24s ease-out, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), display 0.24s, overlay 0.24s;
    transition-behavior: allow-discrete;
    opacity: 1;
    transform: scale(1);
  }

  @starting-style {
    dialog[open] {
      opacity: 0;
      transform: scale(0.96);
    }
  }
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(0 0 0 / 0.84);
  backdrop-filter: blur(10px);
}

.player-dialog[open] {
  inline-size: min(1140px, 96dvw);
  block-size: min(740px, 90dvh);
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: clip;
  background: #000000;
}

.player-quality-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #090a0e;
  border-block-end: 1px solid rgb(255 255 255 / 0.08);
  max-block-size: 84px;
  overflow-y: auto;
}

.player-quality-bar[hidden] {
  display: none;
}

.player-topbar {
  background: #0b0c10;
  border-block-end: 1px solid rgb(255 255 255 / 0.08);
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.player-title {
  margin: 0;
  font-size: 1rem;
}

.player-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player-video-wrap {
  position: relative;
  background: #000000;
  min-block-size: 0;
  display: grid;
  place-items: center;
}

.player-video-wrap video {
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 100%;
}

.player-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.92);
  color: #f87171;
  text-align: center;
}

.list-dialog {
  inline-size: min(430px, 92dvw);
}

.list-dialog-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-dialog-head h1 {
  margin: 0;
  font-size: 1.05rem;
}

.list-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-block-size: 230px;
  overflow-y: auto;
}

.new-list-form {
  display: flex;
  gap: 8px;
}

.new-list-form input {
  flex: 1;
}

/* Skeleton & Toasts */
.skeleton {
  background: linear-gradient(90deg, #101116 25%, #191b22 50%, #101116 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 10px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.toast-stack {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgb(16 18 24 / 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  padding: 9px 18px;
  font-size: 0.84rem;
  color: #ffffff;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.7);
}

/* Touch devices: prevent sticky hover zoom */
@media (hover: none) {
  .cinema-card:hover,
  .tray-poster:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .fm-nav {
    display: none;
  }

  .fm-mobile-btn {
    display: grid;
  }

  .hdr-btn-txt {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .fm-header {
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.25) 75%, transparent);
  }

  .fm-header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .fm-header-start {
    gap: 10px;
    min-inline-size: 0;
  }

  .fm-wordmark {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    gap: 7px;
  }

  .fm-logo-dot {
    inline-size: 24px;
    block-size: 24px;
  }

  .fm-header-end {
    gap: 6px;
  }

  .fm-hdr-btn {
    padding: 7px 10px;
  }

  .fm-mobile-drawer {
    padding: 12px 14px 16px;
  }

  .hero-stage {
    min-block-size: auto;
    padding: 78px 16px 64px;
  }

  .hero-scrim {
    background:
      linear-gradient(to top, #000000 6%, rgb(0 0 0 / 0.72) 55%, rgb(0 0 0 / 0.36) 100%),
      linear-gradient(to left, rgb(0 0 0 / 0.85) 0%, transparent 90%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-rail {
    display: none;
  }

  .hero-editorial {
    gap: 10px;
  }

  .hero-headline {
    font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  }

  .hero-eng-sub {
    font-size: 0.82rem;
    margin-block-start: -2px;
  }

  .hero-synopsis {
    font-size: 0.82rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .hero-stars-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-cta-row {
    gap: 8px;
  }

  .pill-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .popular-tray-section {
    margin-block-start: -30px;
    padding-inline: 14px;
  }

  .popular-tray {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tray-poster {
    flex: 0 0 104px;
    inline-size: 104px;
    block-size: 156px;
  }

  .tray-poster.active {
    transform: scale(1.04) translateY(-2px);
  }

  .portal-body,
  .subpage-wrap,
  .detail-hero,
  .detail-body {
    padding-inline: 14px;
  }

  .portal-body {
    padding-block-start: 28px;
  }

  .subpage-wrap {
    padding-block-start: 74px;
  }

  .fk-section {
    margin-block-end: 26px;
  }

  .fk-section-title {
    font-size: 1rem;
  }

  .fk-shelf-row {
    gap: 12px;
    padding-block: 8px 12px;
    padding-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .fk-shelf-row .cinema-card,
  .overflow-strip .cinema-card {
    flex: 0 0 132px;
    inline-size: 132px;
    max-inline-size: 132px;
  }

  .sort-tabs-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 18px;
    padding-inline: 2px;
    margin-block-end: 14px;
  }

  .genre-pills-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-block-end: 4px;
    margin-block-end: 22px;
  }

  .mid-spotlight {
    min-block-size: 270px;
    padding: 20px 16px;
    margin-block: 24px;
  }

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

  .cinema-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .detail-hero {
    min-block-size: auto;
    padding-block: 76px 26px;
  }

  .detail-hero-inner,
  .episode-card,
  .livetv-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-poster {
    max-inline-size: 168px;
    margin-inline: auto;
  }

  .detail-body {
    padding-block: 14px 32px;
    gap: 18px;
  }

  .source-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .episode-card img {
    block-size: 168px;
  }

  .search-hero-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .search-input-big {
    flex-wrap: wrap;
    padding: 8px 12px;
  }

  .player-dialog[open] {
    inline-size: 98dvw;
    block-size: min(86dvh, 540px);
    border-radius: 12px;
  }

  .player-topbar,
  .player-quality-bar {
    padding: 10px 12px;
  }
}

@media (max-width: 520px) {
  .cinema-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

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

  .new-list-form {
    flex-direction: column;
  }
}
