:root {
  color-scheme: dark;

  /* === SURFACES === */
  --bg-0: #090c12;
  --bg-1: #101521;
  --bg-2: #231718;
  --bg-elevated: #161b2a;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-3: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-dark: rgba(8, 10, 15, 0.7);
  --glass-line: rgba(255, 255, 255, 0.18);

  /* === WHITE ALPHA SCALE (hover/border/divider uchun) === */
  --w-04: rgba(255, 255, 255, 0.04);
  --w-08: rgba(255, 255, 255, 0.08);
  --w-12: rgba(255, 255, 255, 0.12);
  --w-16: rgba(255, 255, 255, 0.16);
  --w-24: rgba(255, 255, 255, 0.24);
  --w-40: rgba(255, 255, 255, 0.40);
  --w-64: rgba(255, 255, 255, 0.64);

  /* === TEXT IYERARXIYA === */
  --text: #f7f7fb;
  --text-1: #f7f7fb;          /* asosiy sarlavha */
  --text-2: rgba(236, 239, 247, 0.84); /* body */
  --text-3: rgba(236, 239, 247, 0.64); /* caption / meta */
  --text-4: rgba(236, 239, 247, 0.40); /* disabled */
  --muted: rgba(236, 239, 247, 0.72);

  /* === BRAND / ACCENT === */
  --accent: #ffc73a;
  --accent-strong: #f2b322;
  --accent-soft: rgba(255, 199, 58, 0.16);
  --gold: #ffc73a;
  --gold-strong: #f2b322;
  --danger: #f25164;
  --danger-soft: rgba(242, 81, 100, 0.16);
  --success: #3ddc97;

  /* === PLAYER === */
  --seek-fill: #ed4458;
  --seek-rest: rgba(255, 255, 255, 0.18);
  --volume-fill: rgba(255, 255, 255, 0.94);
  --volume-rest: rgba(255, 255, 255, 0.18);

  /* === RADIUS (Soft UI — premium, generous corners) === */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 20px;
  --radius-2xl: 30px;
  --radius-pill: 9999px;

  /* === SPACE SCALE (4px baseline) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;

  /* === SHADOW === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.36);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 0 1px var(--w-08), 0 8px 24px rgba(0, 0, 0, 0.32);

  /* === MOTION === */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;

  /* === Z-INDEX === */
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 200;
  --z-splash: 99999;

  /* === SAFE AREA (iPhone notch / Telegram) === */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* === TIPOGRAFIKA === */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-display: "Poppins", Inter, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (fluid) — har 1.125x */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;

  /* Line-height */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.45;
  --lh-relaxed: 1.6;

  /* Letter-spacing */
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
  font-style: normal;
}

*::placeholder {
  font-style: normal;
}

html,
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background:
    radial-gradient(120% 78% at 50% 30%, #2f47a3 0%, #182a6e 46%, #0a1142 78%, #060a2c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px;
  box-sizing: border-box;
  transition: opacity 0.22s ease;
}

.splash-screen__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ffffff;
  animation: musicSpin 0.8s linear infinite, splashSpinnerIn 0.5s ease 0.7s both;
}

.splash-screen__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  transform: translateY(-40px);
  filter: drop-shadow(0 0 18px rgba(150, 180, 255, 0.45));
}

.splash-screen__logo svg {
  width: 56px;
  height: 56px;
  display: block;
  animation: splashLogoIn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-35deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.splash-screen__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.02;
  font-weight: 400;
  animation: splashFadeIn 0.55s ease 0.4s both;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes splashTaglineIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(20px);
  }
}

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

@keyframes musicSpin {
  to {
    transform: rotate(360deg);
  }
}

.splash-screen__name b {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.splash-screen__name span {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.015em;
  opacity: 1;
}

.splash-screen__tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #f3f5ff;
  line-height: 0.86;
  transform: translateY(20px);
  animation: splashTaglineIn 0.6s ease 0.6s both;
}

.splash-screen__tagline-eyebrow {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-bottom: 3px;
  color: #d6def7;
}

.splash-screen__tagline-hero {
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  background: linear-gradient(180deg, #fff3cf 0%, #f4cf78 55%, #e6ac46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(244, 207, 120, 0.35));
}

.splash-screen__tagline-foot {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 1px;
}

.splash-screen__tagline-hero::after {
  content: "\00AE";
  font-size: 0.26em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.12em;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-screen.hidden {
  display: none;
}

html {
  min-height: 100%;
  overflow-x: clip;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  background:
    linear-gradient(180deg, #121827 0%, #180f17 52%, #0b1018 100%);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 199, 58, 0.08) 0%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-0) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 22%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  opacity: 0.8;
}

body.is-player-open {
  overflow: hidden;
}

button,
input,
select,
a {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
  background: transparent;
}

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

.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;
}

.glass-panel {
  position: relative;
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%);
  opacity: 0.8;
}

.icon-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.icon-svg--solid {
  fill: currentColor;
  stroke: none;
}

.app-shell {
  width: min(100%, 590px);
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 108px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr 200px;
    grid-template-areas:
      "header header"
      "hero hero"
      "search categories"
      "tabs categories"
      "movies movies";
    padding-right: 0;
  }

  .topbar {
    grid-area: header;
    position: relative;
    z-index: 100;
  }

  .search-panel {
    grid-area: search;
    top: 110px;
  }

  .hero-carousel {
    grid-area: hero;
  }

  .category-panel {
    grid-area: categories;
    position: sticky;
    top: 110px;
    height: fit-content;
    margin-bottom: 0;
  }

  .quick-tabs {
    grid-area: tabs;
    margin-bottom: 8px;
  }

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

/* Hero Carousel */
.hero-carousel {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 20px;
  background: var(--bg-1);
  box-shadow: var(--shadow-lg);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari overflow + radius fix */
}

@media (min-width: 768px) {
  .hero-carousel {
    margin-bottom: 24px;
  }
}

.hero-slides {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  /* Remove border-radius here, container handles it */
  border-radius: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9,12,18,0.85) 0%, transparent 60%);
}

.hero-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  z-index: 2;
}

.hero-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.hero-indicators {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 5px;
  z-index: 3;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-indicator.active {
  width: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

.lang-select:focus {
  border-color: rgba(255, 199, 58, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 199, 58, 0.16);
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #0f131a;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.theme-toggle .icon-svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-svg--sun {
  opacity: 1;
  transform: rotate(0deg);
  color: #f5a623;
}

.theme-toggle .icon-svg--moon {
  opacity: 0;
  transform: rotate(180deg);
  color: #4a4a4a;
}

.theme-toggle[data-theme="light"] .icon-svg--sun {
  opacity: 0;
  transform: rotate(-180deg);
}

.theme-toggle[data-theme="light"] .icon-svg--moon {
  opacity: 1;
  transform: rotate(0deg);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

.brand-panel {
  min-height: 82px;
  padding: 12px 16px;
  border-radius: 30px;
  border-color: rgba(255, 225, 174, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 240, 210, 0.82));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  margin-left: 4px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-sans);
}

.brand-text__top {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-text__bottom {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.8;
}

html[data-theme="dark"] .brand {
  color: #ffffff;
}

html[data-theme="light"] .brand {
  color: #1e1b2e;
}

.icon-button {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  color: var(--text);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
}

.language-row {
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-row__mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.language-switch {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  background: transparent;
}

.lang.is-active {
  color: #111112;
  background: linear-gradient(180deg, #ffd36a, #ffc42f);
  box-shadow: 0 12px 28px rgba(255, 199, 58, 0.28);
}

.flag {
  width: 18px;
  height: 13px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flag-uz {
  background:
    linear-gradient(180deg, #1eb9df 0 32%, #d41e34 32% 38%, #fff 38% 66%, #d41e34 66% 72%, #22a65a 72% 100%);
}

.flag-ru {
  background: linear-gradient(180deg, #fff 0 33%, #1f57a4 33% 66%, #d52b1e 66% 100%);
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 38%, #fff 38% 62%, transparent 62%),
    linear-gradient(90deg, transparent 45%, #c8102e 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 43%, #c8102e 43% 57%, transparent 57%),
    #012169;
}

.search-panel {
  position: sticky;
  top: 98px;
  z-index: 11;
  margin-bottom: 14px;
}



.search-recents {
  margin-top: 10px;
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: rgba(20, 24, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.search-recents__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.search-recents__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(236, 239, 247, 0.6);
}

.search-recents__clear {
  border: 0;
  background: transparent;
  color: rgba(255, 199, 58, 0.9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.search-recents__clear:hover {
  background: rgba(255, 199, 58, 0.12);
}

.search-recents__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-recents__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(236, 239, 247, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  max-width: 240px;
}

.search-recents__chip:hover {
  border-color: rgba(255, 199, 58, 0.4);
  background: rgba(255, 199, 58, 0.1);
}

.search-recents__chip-label {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-recents__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 239, 247, 0.7);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.search-recents__chip-remove:hover {
  background: rgba(255, 80, 80, 0.3);
  color: #fff;
}

html[data-theme="light"] .search-recents {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 36px rgba(15, 19, 26, 0.08);
}

html[data-theme="light"] .search-recents__title {
  color: rgba(15, 19, 26, 0.55);
}

html[data-theme="light"] .search-recents__chip {
  background: rgba(15, 19, 26, 0.04);
  border-color: rgba(15, 19, 26, 0.08);
  color: #0f131a;
}

html[data-theme="light"] .search-recents__chip-remove {
  background: rgba(15, 19, 26, 0.06);
  color: rgba(15, 19, 26, 0.6);
}

.quick-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-tabs::-webkit-scrollbar {
  display: none;
}

.category-panel {
  position: sticky;
  top: 170px;
  z-index: 10;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 26px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-chip:hover {
  border-color: rgba(255, 199, 58, 0.32);
  background: rgba(255, 199, 58, 0.12);
}

.category-chip.is-active {
  color: #15110a;
  border-color: rgba(255, 199, 58, 0.56);
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 28px rgba(255, 187, 42, 0.22);
}

.search-box {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box .icon-svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.search-box input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-box input::placeholder {
  color: rgba(236, 239, 247, 0.6);
}

html[data-theme="light"] .search-box {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .search-box .icon-svg {
  color: rgba(15, 19, 26, 0.6);
}

html[data-theme="light"] .search-box input {
  color: #0f131a;
}

.quick-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  min-width: max-content;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: rgba(255, 199, 58, 0.4);
  background: rgba(255, 199, 58, 0.12);
}

.tab:active {
  transform: scale(0.98);
}

.tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

  .tab__icon .icon-svg {
    width: 18px;
    height: 18px;
  }

.tab.is-active {
  color: #15110a;
  border-color: rgba(255, 199, 58, 0.6);
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(255, 187, 42, 0.25);
}

html[data-theme="light"] .tab {
  color: rgba(15, 19, 26, 0.8);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .tab.is-active {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  border-color: rgba(255, 199, 58, 0.6);
}

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

@media (min-width: 768px) {
  .movie-grid {
    gap: 24px 18px;
  }
}

.movie-grid.is-home {
  display: block;
}

.movie-grid.is-category-page .category-page__head {
  grid-column: 1 / -1;
}

.category-page__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -4px 8px;
  padding: 4px 0 14px;
}

.category-page__back {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #fff);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.category-page__back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-page__back:hover,
.category-page__back:focus-visible {
  background: rgba(255, 199, 58, 0.18);
}

.category-page__back:active {
  transform: scale(0.94);
}

.category-page__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .category-page__back {
  background: rgba(0, 0, 0, 0.05);
  color: #0f131a;
}

html[data-theme="light"] .category-page__back:hover,
html[data-theme="light"] .category-page__back:focus-visible {
  background: rgba(244, 182, 40, 0.2);
}

.category-row {
  margin: 0 -16px 24px;
}

.category-row + .category-row {
  margin-top: 4px;
}

.category-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
}

.category-row__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-row__more {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-row__more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-row__more:hover,
.category-row__more:focus-visible {
  background: rgba(255, 199, 58, 0.16);
  border-color: rgba(255, 199, 58, 0.45);
}

.category-row__more:active {
  transform: scale(0.96);
}

.category-row__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 8px 8px;
}

.category-row__list::-webkit-scrollbar {
  display: none;
}

.category-row__list .movie-card {
  flex: 0 0 auto;
  width: 150px;
  height: 280px;
  scroll-snap-align: start;
}

.category-row__list .movie-card .card-copy h2 {
  -webkit-line-clamp: 2;
  min-height: calc(1.2em * 2);
  font-size: 14px;
}

.category-row__list .movie-card .card-copy {
  gap: 8px;
  padding: 12px;
}

.category-row__list .movie-card .card-watch-button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.category-row__list .movie-card .card-badges {
  inset: 12px 12px auto;
}

@media (min-width: 480px) {
  .category-row__list .movie-card {
    width: 160px;
    height: 290px;
  }
}

@media (min-width: 768px) {
  .category-row {
    margin: 0 0 28px;
  }

  .category-row__head {
    padding: 0 0 14px;
  }

  .category-row__list {
    padding: 4px 8px 10px 8px;
    gap: 16px;
  }

  .category-row__list .movie-card {
    width: 180px;
    height: 280px;
  }
}

.category-row__list .movie-card--more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  color: var(--text, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.category-row__list .movie-card--more:hover,
.category-row__list .movie-card--more:focus-visible {
  background: rgba(255, 199, 58, 0.12);
  border-color: rgba(255, 199, 58, 0.35);
}

.category-row__list .movie-card--more:active {
  transform: scale(0.97);
}

.movie-card--more .more-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
}

.movie-card--more .more-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.movie-card--more .more-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.movie-card--more .more-card__label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

html[data-theme="light"] .category-row__list .movie-card--more {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f131a;
}

html[data-theme="light"] .category-row__list .movie-card--more:hover,
html[data-theme="light"] .category-row__list .movie-card--more:focus-visible {
  background: rgba(244, 182, 40, 0.16);
  border-color: rgba(244, 182, 40, 0.45);
}

html[data-theme="light"] .category-row__more {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f131a;
  border-radius: 50%;
}

html[data-theme="light"] .category-row__more:hover,
html[data-theme="light"] .category-row__more:focus-visible {
  background: rgba(244, 182, 40, 0.18);
  border-color: rgba(244, 182, 40, 0.5);
}

.movie-card {
  min-width: 0;
  height: 380px;
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-1);
  border: 1px solid var(--w-12);
  background:
    linear-gradient(180deg, var(--w-08), var(--w-04));
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  will-change: transform;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.movie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.04) 0%, rgba(8, 10, 15, 0.28) 50%, rgba(4, 5, 8, 0.94) 100%);
}

.movie-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 45%);
}

.poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image:
    var(--poster-image),
    linear-gradient(180deg, rgba(17, 22, 34, 0.85), rgba(24, 18, 25, 0.7));
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-elevated);
  transition: transform var(--dur-slow) var(--ease-out);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.kino-watermark {
  position: absolute;
  pointer-events: none;
  background-image: url("assets/my-kino-logo.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  opacity: 0.88;
  user-select: none;
  -webkit-user-drag: none;
}

.kino-watermark--player {
  top: calc(var(--video-band-top, 56px) + 10px);
  left: calc(var(--video-band-left, 14px) + 10px);
  width: 80px;
  height: 30px;
  z-index: 6;
}

/* Player ichidagi NTV brendi (play tugma + matn) — responsive */
.kino-watermark--brand {
  background-image: none;
  display: inline-flex;
  align-items: center;
  /* gap viewport bilan kichik portretdan to'liq ekrangacha proportsional o'sadi */
  gap: clamp(6px, 1.2vmin, 12px);
  width: auto;
  height: auto;
  color: #ffc73a;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.kino-watermark--brand .kino-watermark__logo {
  display: inline-flex;
  /* portretda ~28px, kattalashganda ~46px atrofida */
  width: clamp(28px, 6.5vmin, 46px);
  height: clamp(28px, 6.5vmin, 46px);
}

.kino-watermark--brand .kino-watermark__logo svg {
  width: 100%;
  height: 100%;
}

.kino-watermark--brand .kino-watermark__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: "Bebas Neue", "Oswald", "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: inherit;
}

.kino-watermark--brand .kino-watermark__text b {
  font-size: clamp(14px, 3.2vmin, 22px);
  font-weight: 700;
  color: #fff;
}

.kino-watermark--brand .kino-watermark__text span {
  font-size: clamp(11px, 2.6vmin, 18px);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #ffc73a;
}

/* Player to'liq ekrandagi (landscape) brendni biroz katta qilamiz */
@media (orientation: landscape) {
  .kino-watermark--brand {
    gap: clamp(8px, 1.5vmin, 14px);
  }
  .kino-watermark--brand .kino-watermark__logo {
    width: clamp(34px, 7vmin, 56px);
    height: clamp(34px, 7vmin, 56px);
  }
  .kino-watermark--brand .kino-watermark__text b {
    font-size: clamp(18px, 3.8vmin, 26px);
  }
  .kino-watermark--brand .kino-watermark__text span {
    font-size: clamp(14px, 3vmin, 21px);
  }
}

.movie-card:hover .poster,
.movie-card:focus-visible .poster {
  transform: scale(1.06);
}

.movie-card:hover,
.movie-card:focus-visible {
  transform: translateY(-6px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--w-16);
  border-color: var(--w-24);
}

/* Mobile tap feedback — hover hodisasi yo'q telefonlarda */
.movie-card:active {
  transform: scale(0.97);
  transition-duration: var(--dur-fast);
}

@media (hover: none) {
  .movie-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
}

.movie-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.movie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.04) 0%, rgba(8, 10, 15, 0.24) 42%, rgba(4, 5, 8, 0.94) 100%);
}

.movie-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image:
    var(--poster-image),
    linear-gradient(180deg, rgba(17, 22, 34, 0.8), rgba(24, 18, 25, 0.64)),
    linear-gradient(135deg, #263142 0%, #12202d 48%, #1b1824 100%);
  background-size: cover;
  background-position: center top;
  transition: transform 320ms ease;
}

.movie-card:hover .poster,
.movie-card:focus-visible .poster {
  transform: scale(1.05);
}

.movie-card:focus-visible,
.tab:focus-visible,
.lang:focus-visible,
.bottom-bar__button:focus-visible,
.icon-button:focus-visible,
.player-inline-button:focus-visible,
.player-icon-button:focus-visible,
.watch-button:focus-visible,
.ghost-button:focus-visible,
.card-watch-button:focus-visible {
  outline: 3px solid rgba(255, 199, 58, 0.68);
  outline-offset: 3px;
}

.card-badges {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge,
.rating {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  font-size: 12px;
}

.badge {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow: 0 4px 12px rgba(255, 199, 58, 0.3);
}

.rating {
  color: var(--text);
  background: rgba(12, 15, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rating span {
  color: var(--gold);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  display: grid;
  place-items: center;
  color: #18130d;
  font-size: 28px;
  line-height: 1;
  background:
    linear-gradient(180deg, rgba(255, 236, 180, 0.92), rgba(255, 199, 58, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 42px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.movie-card:hover .play-float,
.movie-card:focus-visible .play-float,
.movie-card.is-premium .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 16px 16px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.1), rgba(5, 8, 12, 0.76));
  backdrop-filter: blur(18px);
  transition: background 0.3s ease;
}

html[data-theme="light"] .card-copy {
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.04), rgba(5, 8, 12, 0.12));
}

.card-copy h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.2vw, 26px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] .card-copy h2 {
  color: #0f131a;
}

.card-copy p {
  margin: 2px 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

html[data-theme="light"] .card-copy p {
  color: rgba(15, 19, 26, 0.75);
}

.watch-inline {
  color: var(--gold);
  font-weight: 800;
}

.card-watch-button {
  max-width: 100%;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 14px;
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  font-weight: 800;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(255, 187, 42, 0.2);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.card-watch-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 32px rgba(255, 187, 42, 0.28);
}

.card-watch-button:active {
  transform: translateY(0);
}

html[data-theme="light"] .card-watch-button {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 20px rgba(255, 187, 42, 0.2);
}
.app-footer {
  margin: 28px 0 12px;
  padding: 24px 20px 28px;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.app-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
  color: #ffd15c;
}

.app-footer__logo {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd15c;
}

.app-footer__logo svg {
  width: 100%;
  height: 100%;
}

.app-footer__tagline {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.app-footer__copy {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

html[data-theme="light"] .app-footer {
  background: rgba(15, 19, 26, 0.04);
  border-color: rgba(15, 19, 26, 0.08);
  color: rgba(15, 19, 26, 0.72);
}

html[data-theme="light"] .app-footer__tagline {
  color: rgba(15, 19, 26, 0.78);
}

html[data-theme="light"] .app-footer__copy {
  color: rgba(15, 19, 26, 0.5);
}





.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, var(--safe-bottom));
  z-index: var(--z-nav);
  width: min(calc(100% - 28px), 280px);
  padding: var(--space-2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  transform: translateX(-50%);
  border-radius: var(--radius-2xl);
}

.bottom-bar__button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  display: grid;
  place-items: center;
  background: var(--w-08);
  border: 1px solid var(--w-12);
  box-shadow: inset 0 1px 0 var(--w-08);
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.bottom-bar__button .icon-svg {
  width: 18px;
  height: 18px;
}

.bottom-bar__button:hover {
  background: var(--w-12);
  border-color: rgba(255, 199, 58, 0.32);
  color: var(--text-1);
}

@media (hover: none) {
  .bottom-bar__button:hover {
    background: var(--w-08);
    border-color: var(--w-12);
    color: var(--text-3);
  }
}

.bottom-bar__button:active {
  transform: scale(0.94);
}

.bottom-bar__button.is-active {
  color: #15110a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  border-color: rgba(255, 199, 58, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 20px rgba(255, 187, 42, 0.32),
    0 0 0 4px rgba(255, 199, 58, 0.08);
}

html[data-theme="light"] .bottom-bar__button {
  color: rgba(15, 19, 26, 0.8);
  background: transparent;
  border-color: transparent;
}

html[data-theme="light"] .bottom-bar__button.is-active {
  color: #0f131a;
  background: transparent;
  border-color: transparent;
}

html[data-theme="light"] .bottom-bar {
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 92px;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand-panel {
    min-height: 64px;
    padding: 10px 12px;
  }

  .brand-logo {
    height: 40px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .lang-select {
    min-height: 36px;
    padding: 0 26px 0 10px;
    font-size: 12px;
    background-position: right 10px center;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .tab__label {
    font-size: 12px;
  }

  .bottom-bar__button {
    min-height: 38px;
  }

  .movie-card {
    height: 320px;
  }

  .card-copy h2 {
    font-size: 17px;
  }

  .category-row {
    margin-left: -12px;
    margin-right: -12px;
  }
}

dialog {
  position: relative;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}

dialog::backdrop {
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(12px);
}

.movie-modal,
.profile-modal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(28px) saturate(160%);
}

.movie-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
}

.movie-modal[open] {
  display: flex;
  flex-direction: column;
  animation: movieDetailSlideIn 280ms var(--ease-spring);
}

@keyframes movieDetailSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.movie-modal::backdrop {
  background: var(--c-bg, #050505);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
  padding: 0;
  margin: 0;
  inset: 0;
}

.profile-modal[open] {
  display: flex;
  flex-direction: column;
  animation: movieDetailSlideIn 220ms ease-out;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  display: grid;
  place-items: center;
  background: rgba(11, 13, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

/* Share tugmasi: poster ustida, chap yuqori burchakda */
.modal-share {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text, #fff);
  display: grid;
  place-items: center;
  background: rgba(11, 13, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  padding: 0;
}
.modal-share svg {
  width: 20px;
  height: 20px;
}
.modal-share:active {
  transform: scale(0.92);
  background: rgba(11, 13, 18, 0.78);
}
[data-theme="light"] .modal-share {
  background: rgba(255, 255, 255, 0.82);
  color: #111;
  border-color: rgba(0, 0, 0, 0.08);
}

.modal-poster {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
  image-rendering: auto;
  image-rendering: high-quality;
}

.modal-content {
  flex: 0 0 auto;
  min-height: 0;
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  align-items: center;
  text-align: center;
  background-color: #f6f3ee;
  background-image:
    radial-gradient(circle at 28% 18%, rgba(240, 178, 168, 0.55) 0%, rgba(240, 178, 168, 0) 42%),
    radial-gradient(circle at 55% 82%, rgba(176, 215, 214, 0.55) 0%, rgba(176, 215, 214, 0) 45%),
    linear-gradient(180deg, #f7f1ea 0%, #f4f3ec 45%, #ecf2ef 100%);
}

html[data-theme="dark"] .modal-content {
  background-color: transparent;
  background-image: none;
}

.modal-info-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.92;
}

.modal-meta > span {
  display: inline-flex;
  align-items: center;
}

.modal-meta__sep {
  opacity: 0.45;
  font-weight: 400;
}

.modal-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  line-height: 1;
}

.modal-rating__star {
  color: rgba(255, 255, 255, 0.25);
}
.modal-rating__star.is-filled {
  color: var(--gold, #f5b301);
  text-shadow: 0 1px 8px rgba(245, 179, 1, 0.35);
}
html[data-theme="light"] .modal-rating__star {
  color: rgba(0, 0, 0, 0.2);
}

.reaction-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--c-text, #fff);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.reaction-button:active {
  transform: scale(0.94);
}

.reaction-button svg {
  width: 18px;
  height: 18px;
}

.reaction-button.is-active.reaction-button--like {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.reaction-button.is-active.reaction-button--dislike {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.reaction-button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.modal-description-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.modal-description-wrap[hidden] {
  display: none !important;
}

.modal-description {
  margin: 0;
  white-space: pre-wrap;
  text-align: left;
}

.modal-description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.92;
}

.modal-description-toggle__chevron {
  width: 14px;
  height: 14px;
  transition: transform 220ms ease;
}

.modal-description-toggle.is-expanded .modal-description-toggle__chevron {
  transform: rotate(180deg);
}

/* ===== Izohlar trigger (modal ichida) ===== */
.comments-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  background: rgba(255, 255, 255, 0.7);
  color: var(--text, #111);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .comments-trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text, #fff);
}
.comments-trigger:active { transform: scale(0.96); }
.comments-trigger svg { width: 18px; height: 18px; }
.comments-trigger__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ===== Izohlar bottom-sheet ===== */
.comments-sheet {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.comments-sheet:not([hidden]) { pointer-events: auto; }
.comments-sheet[hidden] { display: none !important; }

.comments-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}
.comments-sheet.is-open .comments-sheet__backdrop { opacity: 1; }

.comments-sheet__panel {
  position: relative;
  width: 100%;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.14);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
html[data-theme="dark"] .comments-sheet__panel {
  background: #15171b;
  color: #fff;
}
.comments-sheet.is-open .comments-sheet__panel { transform: translateY(0); }

.comments-sheet__grabber {
  width: 44px;
  height: 5px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  flex-shrink: 0;
}
html[data-theme="dark"] .comments-sheet__grabber { background: rgba(255, 255, 255, 0.22); }

.comments-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
html[data-theme="dark"] .comments-sheet__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.comments-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comments-sheet__close {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
html[data-theme="dark"] .comments-sheet__close { background: rgba(255, 255, 255, 0.1); }
.comments-sheet__close svg { width: 18px; height: 18px; }

.comments-sheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 8px;
  -webkit-overflow-scrolling: touch;
}

.comments-sheet .comments__form {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: inherit;
  flex-shrink: 0;
}
html[data-theme="dark"] .comments-sheet .comments__form {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.comments-sheet .comments__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Body scroll lock yordamchisi */
body.has-sheet-open { overflow: hidden; }

/* Pending (yuborilayotgan) izoh */
.comment--pending { opacity: 0.55; }

.comments__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comments__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comments__list:empty {
  display: none;
}

.comment {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
}

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.comment__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, inherit);
}

.comment__time {
  font-size: 11px;
  color: var(--muted);
}

.comment__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text, inherit);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment__delete {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease;
}

.comment__delete:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.comment__delete svg {
  width: 16px;
  height: 16px;
}

.comments__empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
}

.comments__empty[hidden] {
  display: none;
}

.comments__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comments__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg, rgba(0, 0, 0, 0.2));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 9999px;
  padding: 4px 4px 4px 14px;
}

.comments__input-row:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
}

.comments__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text, inherit);
}

.comments__input::placeholder {
  color: var(--muted);
}

.comments__submit {
  appearance: none;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.comments__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.comments__submit svg {
  width: 16px;
  height: 16px;
}

.comments__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
}

.comments__hint.is-error {
  color: #ef4444;
}

.modal-content h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.05;
  text-align: center;
}

.modal-content p,
.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.movie-modal .modal-content p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  padding-top: 12px;
  display: flex;
  gap: 10px;
  background: linear-gradient(180deg, rgba(13, 16, 22, 0), rgba(13, 16, 22, 0.92) 42%);
}

.watch-button,
.ghost-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.watch-button--icon {
  gap: 10px;
}

.watch-button--icon .icon-svg {
  width: 18px;
  height: 18px;
}

.watch-button {
  color: #15110a;
  background: linear-gradient(180deg, #ffd66a, #f2b425);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 30px rgba(255, 190, 42, 0.22);
}

.watch-button--round {
  width: 72px;
  height: 72px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2E7CF6 !important;
  color: #eef2f5 !important;
  border: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 14px 32px rgba(46, 124, 246, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.watch-button--round svg {
  width: 34px;
  height: 34px;
  display: block;
  transform: translateX(2px);
}

.watch-button--round:hover {
  background: #1f6df0 !important;
  box-shadow: 0 18px 36px rgba(46, 124, 246, 0.55);
}

.watch-button--round:active {
  transform: scale(0.94);
}

html[data-theme="light"] .watch-button--round {
  background: #2E7CF6 !important;
  border: 0 !important;
  color: #eef2f5 !important;
  box-shadow: 0 14px 32px rgba(46, 124, 246, 0.4);
}

/* Gemini-style glowing pill — text on left, play icon on right */
.watch-button.watch-button--pill {
  position: relative;
  width: auto;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #3b8bff 0%, #2E7CF6 55%, #1f6df0 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 28px rgba(46, 124, 246, 0.45),
    0 24px 60px -12px rgba(46, 124, 246, 0.6);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.watch-button.watch-button--pill::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -16px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(70, 150, 255, 0.7), rgba(70, 150, 255, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.watch-button__label {
  flex: 0 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-button__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.watch-button.watch-button--pill svg {
  width: 22px;
  height: 22px;
  transform: translateX(1px);
}

.watch-button.watch-button--pill:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.watch-button.watch-button--pill:active {
  transform: scale(0.98);
}

html[data-theme="light"] .watch-button.watch-button--pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 24px rgba(46, 124, 246, 0.4),
    0 22px 50px -14px rgba(46, 124, 246, 0.5);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-card {
  padding: 30px 24px 24px;
  text-align: center;
}

.avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #15110a;
  background: linear-gradient(180deg, #ffd76a, #f2b425);
  font-weight: 900;
  font-size: 24px;
}

.profile-card h2 {
  margin: 0 0 10px;
}

.video-player {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #000;
  color: #fff;
  overflow: hidden;
  --player-brightness: 1;
}

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

.video-mount {
  position: absolute;
  inset: 0;
  background: #000;
  display: grid;
  place-items: center;
}

.video-mount video,
.video-mount iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
}

.video-mount.is-youtube-custom iframe {
  pointer-events: none;
}

.youtube-player-host {
  width: 100%;
  height: 100%;
  background: #000;
}

/* ====== Custom Video Player ====== */

.video-mount video::-webkit-media-controls,
.video-mount video::-webkit-media-controls-enclosure,
.video-mount video::-webkit-media-controls-panel,
.video-mount video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.75) 100%);
}

.player-overlay[data-visible="false"] {
  opacity: 0;
  pointer-events: none !important;
}

/* Tap zones for show/hide controls + double-tap seek */
.player-overlay__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.player-overlay__tap--left { left: 0; right: 50%; }
.player-overlay__tap--right { left: 50%; right: 0; }

/* Double-tap skip feedback */
.player-skip-feedback {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}
.player-skip-feedback--left { left: 22%; transform: translate(-50%, -50%) scale(0.6); }
.player-skip-feedback--right { right: 22%; transform: translate(50%, -50%) scale(0.6); }
.player-skip-feedback--left.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.player-skip-feedback--right.is-active { opacity: 1; transform: translate(50%, -50%) scale(1); }
.player-skip-feedback svg { width: 36px; height: 36px; position: absolute; opacity: 0.7; }
.player-skip-feedback span { font-size: 14px; font-weight: 700; z-index: 2; }

/* Buffering spinner */
.player-buffering {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.player-buffering[hidden] { display: none; }
.player-buffering span {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: videoSpin 850ms linear infinite;
}

/* TOP BAR: Back | Title | PiP */
.player-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}

.player-top > * { pointer-events: auto; }

.player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px 6px 4px;
  -webkit-tap-highlight-color: transparent;
}
.player-back-btn svg { width: 22px; height: 22px; }

.player-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.player-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.player-icon-btn svg { width: 22px; height: 22px; }
.player-icon-btn[hidden] { display: none; }

/* BOTTOM area */
.player-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.player-bottom > * { pointer-events: auto; }

/* Progress: 0:00 ─slider─ 4:42:36 */
.player-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.player-time {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}
.player-time:last-of-type { text-align: right; }

.player-seek {
  --range-fill: 0%;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  height: 18px;
}
.player-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 var(--range-fill), rgba(255, 255, 255, 0.32) var(--range-fill) 100%);
}
.player-seek::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 var(--range-fill), rgba(255, 255, 255, 0.32) var(--range-fill) 100%);
}
.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.player-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

/* Controls row: Volume (left) | Fullscreen (right) */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 6px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  justify-self: start;
}

.player-volume-btn { width: 36px; height: 36px; flex-shrink: 0; }
.player-volume-btn svg { width: 22px; height: 22px; }
.player-volume-icon { display: none; }
.player-volume-btn[data-state="on"] .player-volume-icon--on,
.player-volume-btn[data-state="off"] .player-volume-icon--off { display: block; }
.player-volume-btn:not([data-state="off"]) .player-volume-icon--on { display: block; }

.player-volume-range {
  --range-fill: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  width: clamp(60px, 18vw, 110px);
  height: 16px;
  cursor: pointer;
  margin: 0;
}
.player-volume-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 var(--range-fill), rgba(255, 255, 255, 0.32) var(--range-fill) 100%);
}
.player-volume-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 0 var(--range-fill), rgba(255, 255, 255, 0.32) var(--range-fill) 100%);
}
.player-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.player-volume-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

/* CENTER controls — absolute centered over the video */
.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: clamp(48px, 14vw, 110px);
}
.player-center > * { pointer-events: auto; }

.player-skip-btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.player-skip-btn__circle {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.player-skip-btn__chev {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 4px));
  opacity: 0.95;
}

.player-skip-btn__num {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.player-play-btn {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.player-play-btn svg { width: 48px; height: 48px; }

.player-fullscreen-btn { width: 36px; height: 36px; flex-shrink: 0; }
.player-fullscreen-btn svg { width: 20px; height: 20px; }

.icon-state { display: none; }
[data-state="play"] .icon-state--play,
[data-state="pause"] .icon-state--pause,
[data-state="enter"] .icon-state--enter,
[data-state="exit"] .icon-state--exit { display: block; }

/* Hover affordance for desktop */
@media (hover: hover) and (pointer: fine) {
  .player-icon-btn:hover,
  .player-skip-btn:hover,
  .player-play-btn:hover,
  .player-back-btn:hover { opacity: 0.85; }
  .player-seek::-webkit-slider-runnable-track { transition: height 120ms ease; }
  .player-seek:hover::-webkit-slider-runnable-track { height: 5px; }
}

/* Landscape compact */
@media (max-height: 480px) and (orientation: landscape) {
  .player-top { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .player-bottom { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .player-controls { padding: 2px 0 4px; }
}

/* Force-landscape — dimensions are set inline by JS (window.innerWidth/Height).
   This class is a marker for child elements; the sizing/positioning
   is done via inline styles for reliability inside Telegram WebApp. */
body.is-fake-fullscreen {
  overflow: hidden !important;
}

body.is-fake-fullscreen > *:not(.video-player) {
  visibility: hidden !important;
}

.player-toast {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

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

.video-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.video-loading[hidden] {
  display: none;
}

.video-loading span {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: videoSpin 850ms linear infinite;
}

.video-loading b {
  color: var(--muted);
  font-size: 14px;
}

.video-fallback {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 32px), 520px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 199, 58, 0.24);
  background: rgba(27, 21, 11, 0.78);
  color: #f6df9b;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.video-fallback[hidden] {
  display: none;
}

.video-fallback a {
  margin-top: 8px;
  display: inline-flex;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

@keyframes videoSpin {
  to {
    transform: rotate(360deg);
  }
}


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

  .movie-card {
    height: 420px;
  }

  .brand-panel {
    min-height: 70px;
  }

  .brand-logo {
    height: 44px;
  }
}

html[data-theme="light"] .lang-select,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .search-box,
html[data-theme="light"] .tab,
html[data-theme="light"] .category-chip {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .search-box {
  background: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .tab.is-active,
html[data-theme="light"] .category-chip.is-active {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  border-color: rgba(255, 199, 58, 0.6);
}

html[data-theme="light"] .icon-button {
  color: #0f131a;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .brand-panel {
  border-color: rgba(255, 225, 174, 0.5);
  background: linear-gradient(180deg, #fff8e7 0%, #fff3d4 100%);
  box-shadow: 0 8px 24px rgba(255, 225, 174, 0.25);
}

html[data-theme="light"] .glass-panel {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .movie-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .card-copy {
  background: transparent;
}

html[data-theme="light"] .card-copy h2 {
  color: #0f131a;
}

html[data-theme="light"] .card-copy p {
  color: rgba(15, 19, 26, 0.8);
}

html[data-theme="light"] .badge {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
}

html[data-theme="light"] .rating {
  color: #0f131a;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .rating span {
  color: #f2a900;
}

html[data-theme="light"] .watch-button,
html[data-theme="light"] .ghost-button,
html[data-theme="light"] .card-watch-button {
  color: #0f131a;
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 20px rgba(255, 199, 58, 0.25);
}

html[data-theme="light"] .ghost-button {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #0f131a;
}

html[data-theme="light"] .bottom-bar {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="light"] body {
  color: #0f131a;
}

html[data-theme="light"] .muted,
html[data-theme="light"] .tab,
html[data-theme="light"] .icon-svg {
  color: rgba(15, 19, 26, 0.72);
}

/* Navigation cleanup */
.brand-panel,
html[data-theme="light"] .brand-panel {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-panel::after {
  display: none;
}

.brand-logo {
  width: auto;
  max-width: min(58vw, 200px);
  height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  z-index: 100;
}

.topbar-controls {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.lang-select {
  min-width: 74px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 13px;
}

.theme-toggle,
.icon-button--top {
  width: 42px;
  height: 42px;
  border-radius: 18px;
}

.icon-button.is-active {
  color: #15110a;
  border-color: rgba(255, 199, 58, 0.6);
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 20px rgba(255, 187, 42, 0.25);
}

.profile-trigger {
  overflow: hidden;
  padding: 0;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 120;
}

.topbar-search__panel {
  position: absolute;
  top: 0;
  right: calc(100% + 8px);
  width: clamp(180px, 52vw, 300px);
  margin: 0;
  z-index: 130;
}

.topbar-search__panel[hidden] {
  display: none;
}

.topbar-search__panel .search-box {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9999px;
}

.topbar-search__panel .search-box input {
  font-size: 14px;
}

.profile-trigger__photo,
.profile-trigger__initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.profile-trigger__photo {
  display: block;
  object-fit: cover;
}

.profile-trigger__photo[hidden],
.profile-trigger__initials[hidden] {
  display: none;
}

.profile-trigger__initials {
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.quick-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  overflow: visible;
}

.tab {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.tab__label {
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-panel {
  position: sticky;
  top: 90px;
  z-index: 11;
  margin-bottom: 0;
}

.category-panel[hidden] {
  display: none;
}

.category-panel {
  padding: 12px 14px;
  border-radius: 26px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-grid {
  margin-top: 4px;
}

.bottom-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 28px), 252px);
}

.bottom-bar__button,
.tab {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding-right: 16px;
  }

  .topbar,
  .search-panel,
  .category-panel,
  .quick-tabs,
  .movie-grid {
    grid-area: auto;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    height: 42px;
    max-width: 152px;
  }

  .topbar-search__panel {
    right: -104px;
    width: min(56vw, 220px);
  }

  .category-panel {
    top: 82px;
  }

  .bottom-bar {
    width: min(calc(100% - 24px), 246px);
  }
}

/* Profile refresh */
.profile-card {
  padding: 26px 20px 20px;
  text-align: left;
}

.profile-card::before {
  display: none !important;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-shell {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  overflow: hidden;
  border-radius: 24px;
}

.avatar,
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 78px;
  height: 78px;
  border-radius: 24px;
}

.avatar {
  margin: 0;
}

.avatar-photo {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.avatar[hidden],
.avatar-photo[hidden] {
  display: none !important;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-card h2 {
  margin: 0 0 6px;
}

.profile-username {
  display: block;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.profile-userid {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.profile-username[hidden],
.profile-userid[hidden] {
  display: none;
}

html[data-theme="light"] .profile-userid {
  color: rgba(84, 76, 112, 0.62);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.profile-stat {
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  text-align: center;
}

.profile-stat span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.profile-stat b {
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
}

.profile-history {
  margin-top: 18px;
}

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

.profile-history__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-history__head strong {
  font-size: 15px;
}

.profile-history__head span {
  color: var(--muted);
  font-size: 12px;
}

.profile-history__clear {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  flex: 0 0 auto;
}

.profile-history__list {
  display: grid;
  gap: 16px;
}

.profile-history__item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-history__item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 199, 58, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.profile-history__item:focus-visible {
  outline: 3px solid rgba(255, 199, 58, 0.58);
  outline-offset: 3px;
}

.profile-history__poster {
  width: 60px;
  height: 76px;
  border-radius: 14px;
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.profile-history__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-history__copy strong,
.profile-history__copy span,
.profile-history__copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-history__copy span {
  color: var(--muted);
  font-size: 13px;
}

.profile-history__copy small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.profile-history__remove {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.profile-history__remove .icon-svg {
  width: 16px;
  height: 16px;
}

.profile-history__empty {
  margin-top: 8px;
  color: var(--muted);
}

.profile-card .watch-button,
.profile-card .ghost-button {
  width: 100%;
  margin-top: 12px;
}

.profile-support {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
  justify-items: center;
}

html[data-theme="light"] .profile-support {
  border-top-color: rgba(94, 85, 126, 0.14);
}

.page-support__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.page-support__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 199, 58, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.page-support__btn:focus-visible {
  outline: 3px solid rgba(255, 199, 58, 0.58);
  outline-offset: 3px;
}

.page-support__icon {
  font-size: 16px;
  line-height: 1;
}

.page-support__about {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px;
}

.page-support__about:hover { color: var(--text); }

.page-support__about:focus-visible {
  outline: 2px solid rgba(255, 199, 58, 0.58);
  outline-offset: 3px;
  border-radius: 4px;
}

.feedback-modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 520px;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  color: var(--text);
}

.feedback-modal::backdrop {
  background: rgba(8, 6, 20, 0.62);
  backdrop-filter: blur(6px);
}

.feedback-modal[open] {
  animation: feedback-slide-up 0.22s ease-out;
}

@keyframes feedback-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.feedback-card {
  position: relative;
  padding: 20px 18px 22px;
  background: var(--glass, #181030);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px 28px 0 0;
  display: grid;
  gap: 12px;
}

.feedback-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}

.feedback-card__title {
  font-size: 17px;
  margin: 0;
  padding-right: 40px;
}

.feedback-card__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.feedback-card__input {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.feedback-card__input:focus {
  outline: none;
  border-color: rgba(255, 199, 58, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.feedback-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-card__counter {
  font-size: 12px;
  color: var(--muted);
}

.feedback-card__send {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #ffc73a, #ff9a3a);
  color: #1a1106;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.feedback-card__send:hover {
  transform: translateY(-1px);
}

.feedback-card__send:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.feedback-card__error {
  margin: 0;
  font-size: 13px;
  color: #ff7a7a;
}

html[data-theme="light"] .feedback-card {
  background: #fff;
  border-color: rgba(94, 85, 126, 0.16);
}

html[data-theme="light"] .feedback-card__input {
  border-color: rgba(94, 85, 126, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .feedback-modal .modal-close {
  background: rgba(255, 255, 255, 0.9);
  color: #20173a;
  border-color: rgba(94, 85, 126, 0.18);
}

html[data-theme="light"] .page-support__btn {
  border-color: rgba(94, 85, 126, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .page-support__btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(180, 130, 30, 0.34);
}

/* Premium light mode */
html[data-theme="light"] {
  color-scheme: light;
  --text: #20173a;
  --muted: rgba(94, 85, 126, 0.74);
  --glass-line: rgba(137, 119, 196, 0.16);
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --bg-0: #f3edff;
  --bg-1: #fcfbff;
  --bg-2: #f5f0ff;
  --seek-rest: rgba(124, 58, 237, 0.16);
  --volume-fill: #7c3aed;
  --volume-rest: rgba(124, 58, 237, 0.14);
}

html[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(167, 139, 250, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.12), transparent 28%),
    linear-gradient(180deg, #fdfcff 0%, #f8f5ff 50%, #f1ebff 100%);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.5) 24%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 36%);
  opacity: 0.96;
}

html[data-theme="light"] dialog::backdrop {
  background: rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .glass-panel,
html[data-theme="light"] .movie-modal,
html[data-theme="light"] .profile-modal,
html[data-theme="light"] .video-player__controls {
  border-color: rgba(137, 119, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 255, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.48),
    0 18px 38px rgba(83, 55, 161, 0.1);
}

html[data-theme="light"] .topbar {
  padding-top: 4px;
  padding-bottom: 14px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .search-box input::placeholder,
html[data-theme="light"] .profile-username,
html[data-theme="light"] .profile-stat span,
html[data-theme="light"] .profile-history__head span,
html[data-theme="light"] .profile-history__copy span,
html[data-theme="light"] .profile-history__empty,
html[data-theme="light"] .modal-content p,
html[data-theme="light"] .profile-card p {
  color: rgba(84, 76, 112, 0.78);
}

html[data-theme="light"] .icon-button,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .lang-select,
html[data-theme="light"] .tab,
html[data-theme="light"] .category-chip,
html[data-theme="light"] .ghost-button,
html[data-theme="light"] .profile-stat,
html[data-theme="light"] .profile-history__item,
html[data-theme="light"] .player-inline-button,
html[data-theme="light"] .player-icon-button,
html[data-theme="light"] .video-volume-pill,
html[data-theme="light"] .video-extra-controls,
html[data-theme="light"] .video-speed {
  color: #241b3f;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(137, 119, 196, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(83, 55, 161, 0.08);
}

html[data-theme="light"] .icon-button--top {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 54%, #c084fc 100%);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(124, 58, 237, 0.22);
}

html[data-theme="light"] .icon-button.is-active {
  color: #0f131a;
  border-color: rgba(255, 199, 58, 0.6);
  background: linear-gradient(180deg, #ffd15c, #f4b628);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 20px rgba(255, 187, 42, 0.25);
}

html[data-theme="light"] .profile-trigger__photo {
  border: 0;
}

html[data-theme="light"] .profile-history__item:hover {
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(83, 55, 161, 0.1);
}

html[data-theme="light"] .profile-history__clear,
html[data-theme="light"] .profile-history__remove {
  color: #5b3fb0;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(137, 119, 196, 0.14);
}

html[data-theme="light"] .tab.is-active,
html[data-theme="light"] .category-chip.is-active,
html[data-theme="light"] .watch-button,
html[data-theme="light"] .card-watch-button,
html[data-theme="light"] .player-icon-button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 55%, #ec4899 100%);
  border-color: rgba(124, 58, 237, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 32px rgba(124, 58, 237, 0.2);
}

html[data-theme="light"] .badge {
  color: #513617;
  background: linear-gradient(180deg, #ffe7a5 0%, #ffd469 100%);
  border-color: rgba(240, 191, 84, 0.38);
}

html[data-theme="light"] .movie-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .movie-card::before,
html[data-theme="light"] .movie-card::after {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] .card-copy {
  background: transparent;
}

html[data-theme="light"] .card-copy h2,
html[data-theme="light"] .profile-card h2,
html[data-theme="light"] .modal-content h1,
html[data-theme="light"] .profile-history__copy strong,
html[data-theme="light"] .profile-stat b {
  color: #241b3f;
}

html[data-theme="light"] .card-copy h2 {
  font-family: var(--font-sans);
}

html[data-theme="light"] .rating {
  color: #241b3f;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(137, 119, 196, 0.12);
}

html[data-theme="light"] .rating span,
html[data-theme="light"] .profile-history__copy small,
html[data-theme="light"] .modal-meta {
  color: #8b5cf6;
}

html[data-theme="light"] .video-player {
  background:
    radial-gradient(circle at top, rgba(167, 139, 250, 0.16), transparent 26%),
    rgba(250, 247, 255, 0.98);
}

html[data-theme="light"] .video-player__topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(137, 119, 196, 0.12);
}

html[data-theme="light"] .video-loading {
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.12), rgba(250, 247, 255, 0.98) 56%);
}

html[data-theme="light"] .video-loading b,
html[data-theme="light"] .video-time,
html[data-theme="light"] .video-volume__value {
  color: rgba(72, 61, 106, 0.82);
}

html[data-theme="light"] .video-fallback {
  color: #5b3fb0;
  background: rgba(252, 248, 255, 0.96);
  border-color: rgba(137, 119, 196, 0.16);
}

html[data-theme="light"] .video-progress__range::-webkit-slider-thumb,
html[data-theme="light"] .video-progress__range::-moz-range-thumb {
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

html[data-theme="light"] .modal-close,
html[data-theme="light"] .profile-stat,
html[data-theme="light"] .profile-history__item {
  border-color: rgba(137, 119, 196, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(83, 55, 161, 0.08);
}

html[data-theme="light"] .modal-close {
  color: #2c214d;
}

html[data-theme="light"] .modal-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(252, 248, 255, 0.96) 40%);
}

html[data-theme="light"] .ghost-button,
html[data-theme="light"] .bottom-bar__button {
  color: #2c214d;
}

html[data-theme="light"] .avatar {
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 54%, #c084fc 100%);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.22);
}

html[data-theme="light"] .avatar-photo {
  border-radius: 24px;
  border-color: rgba(137, 119, 196, 0.16);
  box-shadow: 0 18px 36px rgba(83, 55, 161, 0.14);
}

html[data-theme="light"] .profile-card {
  position: relative;
}

html[data-theme="light"] .profile-card::before {
  display: none;
}

html[data-theme="light"] .profile-card > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .play-float {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #ec4899 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 42px rgba(124, 58, 237, 0.26);
}

html[data-theme="light"] .empty-state strong {
  color: #241b3f;
}

@media (max-width: 480px) {
  .profile-identity {
    align-items: flex-start;
  }

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

  .profile-history__item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .profile-history__poster {
    width: 54px;
    height: 70px;
  }

  .profile-history__head {
    align-items: flex-start;
  }
}

.movie-card .card-copy {
  display: grid;
  gap: 10px;
  align-content: end;
  padding: 14px 14px 12px;
}

.movie-card .card-copy h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-family: var(--font-sans);
  font-weight: 400;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.2em * 3);
}

html[data-theme="light"] .movie-card .card-copy h2,
html[data-theme="dark"] .movie-card .card-copy h2 {
  font-size: 15px;
  font-weight: 400;
}

.movie-card .card-watch-button {
  min-height: 34px;
  margin-top: 0;
  padding: 0 13px;
  font-size: 11.5px;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 640px) {
  .movie-card .card-copy {
    padding: 13px 13px 11px;
  }

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

  html[data-theme="light"] .movie-card .card-copy h2,
  html[data-theme="dark"] .movie-card .card-copy h2 {
    font-size: 15px;
    font-weight: 400;
  }

  .movie-card .card-watch-button {
    min-height: 32px;
  }
}

body.is-modal-open {
  overflow: hidden;
}



.lang-dropdown {
  position: relative;
  z-index: 20;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.lang-trigger:hover {
  background: var(--glass-strong);
  border-color: var(--gold);
}

.lang-dropdown.is-open .lang-trigger {
  border-color: var(--gold);
  background: var(--glass-strong);
}

.icon-globe, .icon-chevron {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.icon-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.lang-dropdown.is-open .icon-chevron {
  transform: rotate(180deg);
}

.lang-current {
  font-weight: 700;
  font-size: 14px;
  min-width: 32px;
  text-align: center;
}

.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 8px;
  border-radius: 18px;
  background: var(--bg-1);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.lang-dropdown.is-open .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  color: var(--text);
  background: var(--glass);
}

.lang-option.is-active {
  color: var(--gold);
  background: rgba(255, 199, 58, 0.08);
}

.lang-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  flex-shrink: 0;
  opacity: 0.5;
}

.lang-option.is-active .lang-radio {
  opacity: 1;
}

.lang-option.is-active .lang-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  border-radius: 50%;
}

.lang-name {
  font-weight: 600;
  font-size: 14px;
}

html[data-theme="light"] .lang-options {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .lang-option:hover {
  background: #f4f2ff;
}

.movie-card::before {
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0) 0%, rgba(8, 10, 15, 0.08) 48%, rgba(4, 5, 8, 0.62) 100%);
}

.movie-card::after {
  opacity: 0.32;
}

.poster {
  background-image:
    var(--poster-image),
    linear-gradient(135deg, #263142 0%, #12202d 48%, #1b1824 100%);
  filter: saturate(1.06) contrast(1.04);
}

.card-copy {
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.58));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] .movie-card::before {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] .card-copy {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.modal-meta span {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.modal-meta b {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}


.hero-carousel__content {
  min-height: 100%;
  height: 100%;
}

.movie-modal {
  padding: 0;
  margin: 0;
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  border-radius: 0;
}

.movie-modal .modal-content {
  overscroll-behavior: contain;
}



@media (max-width: 640px) {

  .hero-carousel__content {
    min-height: 100%;
    height: 100%;
  }
}

/* ============================================================
   MUVI redesign — Netflix-inspired dark theme
   ============================================================ */

:root {
  --muvi-bg: #050505;
  --muvi-card: #121212;
  --muvi-accent: #E50914;
  --muvi-accent-strong: #f6121d;
  --muvi-glass: rgba(255, 255, 255, 0.08);
  --muvi-glass-strong: rgba(255, 255, 255, 0.12);
  --muvi-border: rgba(255, 255, 255, 0.1);
  --muvi-text-sec: #A1A1AA;
  --muvi-radius: 28px;
  --muvi-shell-max: 480px;
  font-family: var(--font-sans);
}

html,
body {
  background: var(--muvi-bg);
}

html {
  background-image: none;
}

body {
  background-image: none;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body::before {
  display: none;
}

.app-shell {
  width: 100%;
  max-width: var(--muvi-shell-max);
  margin: 0 auto;
  padding: 0 0 110px;
  display: block;
  background: var(--muvi-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  overflow-x: clip;
  gap: 0;
}

@media (min-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    padding-right: 0;
  }
  .app-shell {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Topbar */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(env(safe-area-inset-top), 8px) 18px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  width: 100%;
  max-width: var(--muvi-shell-max);
  margin-left: auto;
  margin-right: auto;
}

.topbar.is-scrolled {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
}

.topbar .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--muvi-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.45);
}

.topbar .brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-family: inherit;
  display: inline;
  flex-direction: row;
  line-height: 1;
}

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

/* Lang pill */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--muvi-glass);
  border: 1px solid var(--muvi-border);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s ease;
}

.lang-trigger:hover {
  background: var(--muvi-glass-strong);
}

.lang-trigger .icon-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-trigger .icon-chevron {
  transform: rotate(180deg);
}

.lang-current {
  font-weight: 700;
  font-size: 11px;
}

.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 110px;
  padding: 6px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--muvi-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.lang-dropdown.is-open .lang-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lang-option.is-active {
  color: #fff;
  background: rgba(229, 9, 20, 0.16);
}

.lang-radio {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.lang-option.is-active .lang-radio {
  border-color: var(--muvi-accent);
}

.lang-option.is-active .lang-radio::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: var(--muvi-accent);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

.hero[hidden] {
  display: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* MUHIM: opacity:0 default ishlatmaymiz — PC Chromium-da JS keshlangan
     bo'lsa ham, ba'zi holatda is-loaded klassi qo'shilmas yoki kechikadi va
     hero opacity:0 da bo'sh-kulrang qotib qolardi. Endi background-image
     darrov ko'rinadi, JS hech narsaga ta'sir qilmaydi. */
}

.hero__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size: 200% 100%;
  animation: muviShimmer 1.6s linear infinite;
  pointer-events: none;
}

.hero__bg.is-loaded ~ .hero__shimmer {
  display: none;
}

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

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--muvi-bg) 0%, rgba(5, 5, 5, 0.7) 50%, transparent 100%);
  z-index: 1;
}

.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  padding: 0 24px;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  max-width: 92%;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
  margin: 0 0 22px;
  line-height: 1.45;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__play {
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero__play:hover {
  transform: scale(0.97);
}

.hero__play svg {
  width: 18px;
  height: 18px;
}

.hero__info {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--muvi-glass);
  border: 1px solid var(--muvi-border);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__info:hover {
  background: var(--muvi-glass-strong);
  transform: scale(0.97);
}

.hero__info svg {
  width: 18px;
  height: 18px;
}

/* Movie grid (home rows + filter grid) */
.movie-grid {
  display: block;
  gap: 0;
  padding: 0;
  margin-top: 16px;
}

.movie-grid.is-home {
  display: block;
  margin-top: 0;
}

.movie-grid:not(.is-home) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  padding: 18px 18px 8px;
}

@media (min-width: 768px) {
  .movie-grid:not(.is-home) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Category row */
.category-row {
  margin: 24px 0 0;
  padding: 0;
}

.category-row + .category-row {
  margin-top: 16px;
}

.category-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 14px;
}

.category-row__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.category-row__more {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-row__more::before {
  content: none;
}

.category-row__more svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-row__more:hover,
.category-row__more:focus-visible {
  opacity: 0.7;
  background: transparent;
  border-color: transparent;
}

.category-row__more:active {
  transform: scale(0.9);
}

html[data-theme="light"] .category-row__more {
  background: transparent;
  border-color: transparent;
  color: #0f131a;
}

html[data-theme="light"] .category-row__more:hover,
html[data-theme="light"] .category-row__more:focus-visible {
  background: transparent;
  border-color: transparent;
  opacity: 0.7;
}

.category-row__list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 30px 14px;
}

.category-row__list::-webkit-scrollbar {
  display: none;
}

.category-row__list .movie-card {
  flex: 0 0 auto;
  width: 140px;
  height: auto;
  scroll-snap-align: start;
}

/* Movie card — testkino style */
.movie-card,
.category-row__list .movie-card {
  width: 140px;
  height: auto;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
  padding: 0;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
}

.movie-card::before,
.movie-card::after {
  display: none !important;
  content: none !important;
}

.movie-card:hover,
.movie-card:focus-visible {
  transform: none;
  box-shadow: none;
}

.movie-card .poster {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background-image: var(--poster-image), linear-gradient(135deg, #1f1f1f, #0d0d0d);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.movie-card:hover .poster {
  transform: scale(1.02);
}

.movie-card .card-badges {
  position: absolute;
  inset: 8px 8px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.movie-card .card-badges .badge {
  display: none;
}

.movie-card .card-badges .rating {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.movie-card .card-badges .rating span {
  color: #facc15;
}

.movie-card .play-float {
  display: none;
}

.movie-card .card-copy {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 8px 2px 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

html[data-theme="light"] .card-copy {
  background: transparent;
}

.movie-card .card-copy h2 {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .card-copy p,
.movie-card .card-copy .card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .card-watch-button {
  display: none;
}

/* Bottom bar — floating glass pill */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: calc(100% - 24px);
  max-width: calc(var(--muvi-shell-max) - 24px);
  transform: translateX(-50%);
  padding: 0;
  z-index: 40;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  grid-template-columns: none;
}

.bottom-bar__inner {
  --bottom-nav-icon-size: 24px;
  height: 60px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--muvi-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.bottom-bar__button {
  flex: 1;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 9999px;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: color 0.25s ease;
  cursor: pointer;
}

.bottom-bar__button:hover {
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.bottom-bar__button.is-active {
  background: transparent;
  color: var(--muvi-accent);
  border: 0;
  box-shadow: none;
}

.bottom-bar__button .icon-svg {
  width: var(--bottom-nav-icon-size);
  height: var(--bottom-nav-icon-size);
}

.bottom-bar__button .movie-nav-icon,
.bottom-bar__button .music-nav-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.bottom-bar__button .nav-icon-fill {
  fill: currentColor;
  stroke: none;
}

.bottom-bar__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.bottom-bar__avatar {
  width: var(--bottom-nav-icon-size);
  height: var(--bottom-nav-icon-size);
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: #2a2a2a;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.bottom-bar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-bar__button.is-active .bottom-bar__avatar {
  border-color: var(--muvi-accent);
}

/* Search/category panels — keep functional, restyle inside grid */
.search-panel,
.category-panel {
  margin: 0 18px 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--muvi-glass);
  border: 1px solid var(--muvi-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 5;
}

.search-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--muvi-border);
  border-radius: 14px;
}

.search-box input {
  color: #fff;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.category-list {
  gap: 8px;
}

.category-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--muvi-border);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-chip.is-active {
  background: var(--muvi-accent);
  border-color: var(--muvi-accent);
  color: #fff;
}

/* Empty state */
.empty-state {
  margin: 24px 18px;
  padding: 30px 20px;
  border-radius: 18px;
  background: var(--muvi-glass);
  border: 1px solid var(--muvi-border);
  color: rgba(255, 255, 255, 0.78);
}

.empty-state strong {
  color: #fff;
}

/* Scoll buffer above bottom-bar */
.app-shell::after {
  content: "";
  display: block;
  height: 0;
}

/* Hide legacy hero carousel just in case */
.hero-carousel {
  display: none !important;
}

/* Light theme: eng oq variant */
html[data-theme="light"] {
  background: #ffffff;
}

html[data-theme="light"] body {
  background: #ffffff;
  color: var(--c-text);
}

/* Push content below floating topbar when hero is hidden */
.hero[hidden] + .movie-grid {
  padding-top: 76px;
}

.hero:not([hidden]) + .movie-grid {
  margin-top: 8px;
}

/* Cards on filter grid should still look right */
.movie-grid:not(.is-home) .movie-card {
  width: 100%;
}

.movie-grid:not(.is-home) .movie-card .poster {
  height: 220px;
}

@media (max-width: 380px) {
  .movie-card,
  .category-row__list .movie-card {
    width: 128px;
  }
  .movie-card .poster,
  .category-row__list .movie-card .poster {
    height: 192px;
  }
  .hero {
    height: 440px;
  }
  .hero__title {
    font-size: 28px;
  }
}

/* ============================================================
   Theme system — Light (default) + Dark
   ============================================================ */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f7f7f8;
  --c-surface-3: rgba(15, 15, 18, 0.05);
  --c-border: #eaeaea;
  --c-border-strong: #dcdcdc;
  --c-text: #0d0d10;
  --c-text-soft: rgba(15, 15, 18, 0.62);
  --c-text-mute: rgba(15, 15, 18, 0.45);
  --c-accent: #e50914;
  --c-accent-strong: #b80710;
  --c-bottom-glass: rgba(255, 255, 255, 0.86);
  --c-modal-bg: linear-gradient(180deg, #ffffff 0%, #f9f9fa 100%);
  --c-shadow-card: 0 10px 24px rgba(15, 15, 18, 0.07);
  --c-shadow-card-hover: 0 16px 32px rgba(15, 15, 18, 0.1), 0 10px 24px rgba(229, 9, 20, 0.1);
  --c-shadow-pill: 0 8px 28px rgba(15, 15, 18, 0.07);
  --c-app-glow:
    radial-gradient(820px 460px at 12% -8%, rgba(229, 9, 20, 0.08), transparent 62%),
    radial-gradient(700px 420px at 92% -10%, rgba(255, 130, 90, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  /* Image reference palette: deep teal/green instead of the previous blue-purple cast. */
  --c-bg: #00070a;
  --c-surface: #041719;
  --c-surface-2: rgba(109, 211, 198, 0.08);
  --c-surface-3: rgba(109, 211, 198, 0.045);
  --c-border: rgba(109, 211, 198, 0.16);
  --c-border-strong: rgba(109, 211, 198, 0.28);
  --c-text: #f2fbf9;
  --c-text-soft: rgba(235, 249, 246, 0.74);
  --c-text-mute: rgba(225, 243, 239, 0.52);
  --c-accent: #29c9ba;
  --c-accent-strong: #118e84;
  --c-bottom-glass: rgba(1, 18, 20, 0.90);
  --c-modal-bg: linear-gradient(180deg, rgba(5, 25, 27, 0.98) 0%, rgba(0, 7, 10, 0.995) 100%);
  --c-shadow-card: 0 12px 30px rgba(0, 5, 5, 0.58);
  --c-shadow-card-hover: 0 22px 46px rgba(0, 5, 5, 0.74), 0 18px 42px rgba(41, 201, 186, 0.18);
  --c-shadow-pill: 0 18px 50px rgba(0, 5, 5, 0.68);
  --c-app-glow:
    radial-gradient(900px 520px at 12% -8%, rgba(64, 157, 146, 0.20), transparent 62%),
    radial-gradient(720px 440px at 92% -10%, rgba(64, 139, 126, 0.12), transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(27, 92, 83, 0.10), transparent 70%),
    linear-gradient(180deg, #08272a 0%, #03171a 55%, #00070a 100%);
}

html,
body {
  background: var(--c-bg);
}

body {
  color: var(--c-text);
}

body::before {
  display: none !important;
}

.app-shell {
  background: var(--c-app-glow);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .app-shell {
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.6),
    inset 0 0 120px rgba(229, 9, 20, 0.04);
}

/* Dark rejim — reference dizayndagi chuqur yashil-teal gradient.
   Light rejimga ta'sir qilmaydi. */
html[data-theme="dark"],
html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, #061d1f 0%, #021418 46%, #00070a 100%);
}

html[data-theme="dark"] .app-shell {
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(64, 157, 146, 0.14) 0%, rgba(64, 157, 146, 0) 60%),
    radial-gradient(110% 55% at 95% 8%, rgba(64, 139, 126, 0.08) 0%, rgba(64, 139, 126, 0) 55%),
    radial-gradient(130% 70% at 50% 100%, rgba(27, 92, 83, 0.06) 0%, rgba(27, 92, 83, 0) 60%),
    linear-gradient(180deg, #08272a 0%, #03171a 55%, #00070a 100%);
}

@media (min-width: 768px) {
  html[data-theme="dark"] body {
    background:
      linear-gradient(180deg, #061d1f 0%, #021418 46%, #00070a 100%);
  }
  html[data-theme="light"] body {
    background: #ffffff;
  }
}

::selection {
  background: rgba(229, 9, 20, 0.32);
  color: var(--c-text);
}

/* ============================================================
   Topbar menu — matches search icon
   ============================================================ */
.topbar-menu .icon-svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   Sidebar drawer (theme-adaptive)
   ============================================================ */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.is-open {
  opacity: 1;
}

html[data-theme="light"] .sidebar-backdrop {
  background: rgba(15, 15, 18, 0.32);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 304px);
  background: var(--c-surface, #131316);
  color: var(--c-text);
  border-right: 1px solid var(--c-border);
  z-index: 999;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  font-feature-settings: "ss01", "cv11";
}

html[data-theme="light"] .sidebar {
  background: #ffffff;
  box-shadow: 24px 0 60px rgba(15, 15, 18, 0.14);
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar__brand {
  gap: 10px;
}
.sidebar__brand .brand-text__top,
.sidebar__brand .brand-text__bottom {
  letter-spacing: 0.02em;
}

.sidebar__close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sidebar__close:hover {
  color: var(--c-text);
}

.sidebar__close:hover {
  transform: rotate(90deg);
}

.sidebar__close svg {
  width: 18px;
  height: 18px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  padding: 14px 12px 6px;
  gap: 4px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  color: var(--c-text-soft, var(--c-text));
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  position: relative;
}

/* Vaqtincha o'chirilgan bo'limlar: umumiy display qoidasi [hidden] atributini
   bosib ketmasligi uchun !important ishlatiladi. Kod va bo'limlar saqlanadi. */
.sidebar__item#sidebarTvItem[hidden],
.sidebar__item#sidebarEsportsItem[hidden] {
  display: none !important;
}

.sidebar__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c-text-mute, var(--c-text-soft));
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar__item > span {
  flex: 1;
}

.sidebar__item:hover,
.sidebar__item:focus-visible {
  background: var(--c-surface-2);
  color: var(--c-text);
  outline: none;
}
.sidebar__item:hover svg,
.sidebar__item:focus-visible svg {
  color: var(--c-text);
}

.sidebar__item.is-active {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(229, 9, 20, 0.55), 0 2px 4px rgba(229, 9, 20, 0.18);
}

.sidebar__item.is-active svg {
  color: #ffffff;
}
.sidebar__item.is-active:hover {
  color: #ffffff;
}

.sidebar__divider {
  height: 1px;
  background: var(--c-border);
  margin: 10px 18px;
}

.sidebar__item--top:not(.is-active) {
  color: var(--c-text);
}
.sidebar__item--top:not(.is-active) svg {
  color: var(--c-text);
}

.sidebar__section-title {
  padding: 10px 22px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-mute, var(--c-text-soft));
}

/* Sidebar settings: theme switch + language pills */
.sidebar__settings {
  padding: 4px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-setting__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}

.sidebar-setting__head svg {
  width: 20px;
  height: 20px;
  color: var(--c-text-soft, currentColor);
  flex-shrink: 0;
}

.sidebar-setting--lang {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* iOS-style theme switch with sun/moon icons in track */
.theme-switch {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.theme-switch__track {
  width: 60px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef0f5, #e2e6ee);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.theme-switch__icon {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.theme-switch__icon--sun { color: #c98a2b; }
.theme-switch__icon--moon { color: #cfd6e4; }

.theme-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.16);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

html[data-theme="dark"] .theme-switch__track {
  background: linear-gradient(135deg, #1f2638, #2c3550);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .theme-switch__knob {
  transform: translateX(30px);
  background: #0f1422;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .theme-switch__icon--sun { opacity: 0.32; }
html[data-theme="light"] .theme-switch__icon--moon { opacity: 0.45; color: #6b7280; }

/* Sidebar "coming soon" badge */
.sidebar__item--soon {
  cursor: default;
  opacity: 0.78;
}
.sidebar__item--soon:hover,
.sidebar__item--soon:focus-visible {
  background: transparent;
  cursor: default;
}
.sidebar__item--soon > span:first-of-type {
  color: var(--c-text-soft, var(--c-text));
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--c-text-mute, #6b7280);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar__item.is-active .soon-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.soon-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.85;
}
html[data-theme="dark"] .soon-badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
}

.sidebar__item > .beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.sidebar__item.is-active > .beta-badge {
  background: #0d0d0d;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Language pills */
.lang-pills {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}

.lang-pill {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--c-text-soft, var(--c-text));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-pill:hover {
  color: var(--c-text);
}

.lang-pill.is-active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.sidebar__foot {
  margin-top: auto;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--c-text-mute, var(--c-text-soft));
  letter-spacing: 0.02em;
}

.sidebar__foot-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

@media (max-width: 380px) {
  .sidebar {
    width: 88vw;
  }
}

/* legacy avatar styles kept for any remaining references */
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid var(--c-border);
  background: var(--c-surface-2);
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topbar-avatar:hover {
  transform: translateY(-1px);
  border-color: var(--c-border-strong);
}

.topbar-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topbar-avatar__photo[hidden],
.topbar-avatar__initials[hidden] {
  display: none !important;
}

.topbar-avatar__initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Centered topbar layout (Disney+ style) */
.topbar.topbar--centered {
  display: grid !important;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  justify-content: initial;
  gap: 12px;
}

.topbar.topbar--centered .brand--center {
  justify-self: center;
}

.topbar.topbar--centered .topbar-controls--minimal {
  justify-self: end;
  flex: 0 0 auto;
}
.topbar.topbar--centered .brand--section {
  gap: 6px;
  min-width: 0;
}
.brand-section__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  color: var(--c-text);
}
.brand-section__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.brand--section .brand-text {
  flex-direction: row !important;
  align-items: baseline;
  gap: 5px;
}
.brand-section__label {
  display: block;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: lowercase;
  opacity: 0.68;
}
/* Profile modal controls row */
.profile-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 4px;
}

/* ============================================================
   Brand logo — stacked KINO/PLAY (matches reference)
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--c-text);
}

.brand-logo__svg {
  width: 30px;
  height: 30px;
  display: block;
}

.brand-text {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  line-height: 1;
  gap: 1px;
  font-family: var(--font-sans);
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  text-shadow: none !important;
  color: var(--c-text);
}

.brand-text__top,
.brand-text__bottom {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.16em;
  line-height: 1.05;
  color: var(--c-text);
}

.brand-text__bottom {
  opacity: 0.78;
}

/* ============================================================
   Theme toggle (sun/moon)
   ============================================================ */

.theme-toggle {
  display: inline-flex !important;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--c-border-strong);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle {
  position: relative;
}

.theme-toggle .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.6);
}

html[data-theme="dark"] .theme-toggle .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.6);
}

html[data-theme="dark"] .theme-toggle .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="light"] .theme-toggle .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ============================================================
   Topbar — floating glass pill (matches bottom-bar)
   ============================================================ */

:root {
  --topbar-top: max(env(safe-area-inset-top), 12px);
  --topbar-height: 56px;
}

.topbar {
  position: absolute;
  top: var(--topbar-top);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: calc(var(--muvi-shell-max) - 24px);
  height: var(--topbar-height);
  margin: 0 !important;
  padding: 0 12px 0 16px !important;
  border-radius: 999px;
  background: var(--c-bottom-glass);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-pill);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

html[data-theme="dark"] .topbar {
  background: rgba(15, 15, 17, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar.is-scrolled {
  background: var(--c-bottom-glass);
  border-color: var(--c-border);
  box-shadow: var(--c-shadow-pill);
}

html[data-theme="dark"] .topbar.is-scrolled {
  background: rgba(15, 15, 17, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hero — sized to fit between topbar and category rows */
.hero {
  margin-top: 6px !important;
  height: 420px !important;
}

@media (max-width: 380px) {
  .hero {
    height: 380px !important;
  }
}

.hero[hidden] + .movie-grid {
  padding-top: 6px !important;
}

.hero:not([hidden]) + .movie-grid {
  margin-top: 4px;
}

.hero__inner {
  bottom: 24px;
}

.hero__dots {
  bottom: 10px;
}

/* ============================================================
   Lang trigger — match theme-toggle (32x32 circle)
   ============================================================ */
.lang-trigger {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  gap: 0 !important;
  justify-content: center;
  background: var(--c-surface-2);
  border-color: var(--c-border);
  color: var(--c-text);
}

.lang-trigger .icon-chevron {
  display: none;
}

.lang-current {
  min-width: 0;
}

.lang-trigger:hover {
  background: var(--c-surface-3);
  border-color: var(--c-border-strong);
}

.lang-options {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .lang-options {
  background: rgba(14, 14, 16, 0.96);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-option {
  color: var(--c-text-soft);
}

.lang-option:hover {
  background: var(--c-surface-3);
  color: var(--c-text);
}

.lang-option.is-active {
  color: var(--c-text);
  background: rgba(229, 9, 20, 0.12);
}

.lang-option.is-active .lang-radio {
  border-color: var(--c-accent);
}

.lang-option.is-active .lang-radio::after {
  background: var(--c-accent);
}

/* ============================================================
   Category row title — accent line on left
   ============================================================ */
.category-row__title {
  position: relative;
  padding-left: 12px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.category-row__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-accent), var(--c-accent-strong));
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
}

.category-row__more {
  border-radius: 50% !important;
  color: #fff;
  font-weight: 700;
}

.category-row__more:hover {
  color: #fff;
  opacity: 0.7;
}

html[data-theme="light"] .category-row__more,
html[data-theme="light"] .category-row__more:hover {
  border-radius: 50% !important;
  color: #0f131a;
}

/* ============================================================
   Movie cards — clean, no white halos
   ============================================================ */

.movie-card,
.category-row__list .movie-card,
html[data-theme="light"] .movie-card,
html[data-theme="light"] .category-row__list .movie-card,
html[data-theme="dark"] .movie-card,
html[data-theme="dark"] .category-row__list .movie-card {
  background: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.movie-card::before,
.movie-card::after,
html[data-theme="light"] .movie-card::before,
html[data-theme="light"] .movie-card::after,
html[data-theme="dark"] .movie-card::before,
html[data-theme="dark"] .movie-card::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.movie-card .poster {
  background-color: var(--c-surface-2);
  box-shadow: var(--c-shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.movie-card:hover .poster,
.movie-card:focus-visible .poster {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--c-shadow-card-hover);
}

.card-copy,
.movie-card .card-copy,
html[data-theme="light"] .card-copy,
html[data-theme="light"] .movie-card .card-copy,
html[data-theme="dark"] .card-copy,
html[data-theme="dark"] .movie-card .card-copy {
  background: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 8px 2px 0 !important;
}

.movie-card .card-copy h2 {
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.movie-card .card-copy p,
.movie-card .card-copy .card-meta {
  color: var(--c-text-mute);
  font-weight: 500;
}

.movie-card .card-badges {
  inset: 8px 8px auto !important;
}

.movie-card .card-badges .rating {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.movie-card .card-badges .rating span {
  color: #fbbf24;
}

/* Wishlist heart on each card */
.movie-card .wishlist-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.movie-card .wishlist-toggle:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.7);
}

.movie-card .wishlist-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: fill 0.2s ease, stroke 0.2s ease;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.movie-card .wishlist-toggle.is-active {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.5);
}

.movie-card .wishlist-toggle.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

/* ============================================================
   Bottom bar — clean glass pill, no ugly white outlines
   ============================================================ */

.bottom-bar__inner {
  background: var(--c-bottom-glass);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-pill);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

html[data-theme="dark"] .bottom-bar__inner {
  background: rgba(15, 15, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bottom-bar__button {
  color: var(--c-text-mute);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.bottom-bar__button .icon-svg {
  transition: filter 0.25s ease, transform 0.25s ease;
}

.bottom-bar__button:hover {
  color: var(--c-text);
  background: transparent !important;
  border: 0 !important;
}

.bottom-bar__button.is-active {
  color: var(--c-accent) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bottom-bar__button.is-active .icon-svg {
  filter: none;
  transform: translateY(-1px);
}

.bottom-bar__avatar {
  border: 1.5px solid var(--c-border-strong);
  background: var(--c-surface-2);
  color: var(--c-text);
}

.bottom-bar__button.is-active .bottom-bar__avatar {
  border-color: var(--c-accent);
  box-shadow:
    0 0 0 2px rgba(229, 9, 20, 0.18),
    0 0 14px rgba(229, 9, 20, 0.4);
}

/* ============================================================
   Modal
   ============================================================ */

.movie-modal,
.profile-modal {
  background: var(--c-modal-bg);
  border: 1px solid var(--c-border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(229, 9, 20, 0.04);
  color: var(--c-text);
}

html[data-theme="dark"] .movie-modal,
html[data-theme="dark"] .profile-modal {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(229, 9, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.movie-modal::backdrop,
.profile-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="dark"] .movie-modal::backdrop {
  background: var(--c-bg, #050505);
}

html[data-theme="dark"] .profile-modal::backdrop {
  background: var(--c-bg, #050505);
}

.profile-modal::backdrop {
  background: var(--c-bg, #050505);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-modal .profile-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px calc(env(safe-area-inset-bottom, 0px) + 140px);
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.profile-modal .profile-support {
  margin-top: auto;
}

.profile-modal .modal-close {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.modal-poster {
  position: relative;
}

.modal-poster::after {
  content: none;
}

.modal-content {
  padding: 22px 22px 18px;
}

.modal-content h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--c-text);
}

html[data-theme="dark"] .modal-content h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.modal-meta {
  color: var(--c-text);
}

.modal-meta span {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 12px;
}

.modal-meta b {
  color: #f59e0b;
}

.modal-content p,
.profile-card p {
  color: var(--c-text-soft);
}

.modal-actions {
  background: linear-gradient(180deg, transparent 0%, var(--c-bg) 50%);
}

.modal-close {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.modal-close:hover {
  background: var(--c-accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(0.96);
}

/* ============================================================
   Action buttons
   ============================================================ */
.watch-button {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 14px 30px rgba(229, 9, 20, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  letter-spacing: 0.01em;
  border: 0 !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.watch-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.ghost-button {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.ghost-button:hover {
  background: var(--c-surface-3);
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

/* ============================================================
   Profile
   ============================================================ */
.avatar {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%) !important;
  color: #ffffff !important;
  font-weight: 900;
  box-shadow:
    0 10px 26px rgba(229, 9, 20, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profile-card h2 {
  color: var(--c-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-username {
  color: var(--c-text-mute);
}

.profile-stat {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.profile-stat span {
  color: var(--c-text-mute);
}

.profile-stat b {
  color: var(--c-text);
  font-weight: 800;
}

.profile-history__head strong {
  color: var(--c-text);
  font-weight: 800;
}

.profile-history__head span {
  color: var(--c-text-mute);
}

.profile-history__clear {
  color: var(--c-accent);
  font-weight: 700;
}

.profile-history__clear:hover {
  color: var(--c-accent-strong);
}

.profile-history__item {
  background: var(--c-surface-2) !important;
  border: 1px solid var(--c-border) !important;
  color: var(--c-text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-history__item:hover {
  background: var(--c-surface-3) !important;
  border-color: var(--c-border-strong) !important;
}

.profile-history__copy strong {
  color: var(--c-text);
}

.profile-history__copy small,
.profile-history__copy span {
  color: var(--c-text-mute);
}

.profile-history__empty {
  color: var(--c-text-mute);
}

.profile-history__remove {
  color: var(--c-text-mute);
  transition: color 0.2s ease;
}

.profile-history__remove:hover {
  color: var(--c-accent);
}

/* ============================================================
   Empty + search panels
   ============================================================ */
.empty-state {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
}

.empty-state strong {
  color: var(--c-text);
  font-weight: 800;
  font-size: 16px;
}

.search-panel,
.category-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

.search-box {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}

.search-box input {
  color: var(--c-text);
  -webkit-text-fill-color: var(--c-text);
  caret-color: var(--c-text);
}

.search-box input::placeholder {
  color: var(--c-text-mute);
  -webkit-text-fill-color: var(--c-text-mute);
}

.category-chip {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-soft);
}

.category-chip:hover {
  background: var(--c-surface-3);
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.category-chip.is-active {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.4);
}

/* ============================================================
   Hero (header carousel)
   ============================================================ */

.hero {
  background: var(--c-surface-2);
}

.hero__title {
  color: #ffffff;
}

.hero__desc {
  color: rgba(255, 255, 255, 0.78);
}

.hero__gradient {
  background: linear-gradient(0deg, var(--c-bg) 0%, rgba(0, 0, 0, 0.55) 50%, transparent 100%);
}

.hero__bg {
  transition: opacity 700ms ease;
}

.hero__bg.is-fade {
  opacity: 0;
}

.hero__play {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  font-weight: 800;
}

.hero__play:hover {
  filter: brightness(0.96);
  transform: scale(0.98);
}

.hero__info {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero__dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease;
}

.hero__dot.is-active {
  width: 18px;
  background: var(--c-accent);
  border-radius: 3px;
}

/* ============================================================
   Override old purple/violet light-theme bleed-through
   ============================================================ */

html[data-theme="light"] body {
  color: var(--c-text);
}

html[data-theme="light"] .icon-button,
html[data-theme="light"] .lang-select {
  color: var(--c-text);
}

html[data-theme="light"] .modal-content p,
html[data-theme="light"] .profile-card p,
html[data-theme="light"] .profile-username,
html[data-theme="light"] .profile-stat span {
  color: var(--c-text-soft);
}

html[data-theme="light"] .profile-card h2,
html[data-theme="light"] .modal-content h1 {
  color: var(--c-text);
}

html[data-theme="light"] .card-copy,
.movie-card .card-copy {
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .card-copy h2 {
  color: var(--c-text);
}

html[data-theme="light"] .badge {
  color: var(--c-text);
}

html[data-theme="light"] .rating {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

html[data-theme="light"] .rating span {
  color: #f59e0b;
}

html[data-theme="light"] .movie-card,
html[data-theme="light"] .category-row__list .movie-card,
html[data-theme="light"] .movie-card::before,
html[data-theme="light"] .movie-card::after {
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-theme="light"] .movie-card::before,
html[data-theme="light"] .movie-card::after {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] .glass-panel {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}

html[data-theme="light"] .topbar {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="light"] .topbar.is-scrolled {
  background: linear-gradient(180deg, var(--c-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

html[data-theme="light"] .icon-button--top {
  background: var(--c-surface-2);
  border-color: var(--c-border);
  color: var(--c-text);
}

/* Movies row scrollbar in dark mode left edge fix */
.category-row__list {
  padding-left: 30px;
  padding-right: 30px;
}

/* ============================================================
   Mini App scroll lock — body locked, content scrolls only
   Telegram Mini App'da qo'l bilan tortganda oynani siljitmaslik
   ============================================================ */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* MUHIM: transform/will-change: transform qo'shilmaydi — chunki ular fixed
     pozitsiyali bolalarning containing block'ini buzib, topbar/bottom-bar
     viewport o'rniga .app-shell bilan birga skroll qilib ketadi.
     will-change: scroll-position xavfsiz hint — containing block yaratmaydi. */
  will-change: scroll-position;
  /* touch-action: manipulation — double-tap-zoom delay'ni o'chiradi va
     touch'ga javob (sensitivity) tezroq bo'ladi. Pan-x va pan-y ikkalasi
     ham ruxsat etilgan, faqat zoom va non-standard gestures bloklanadi. */
  touch-action: manipulation;
  /* Scroll snappier bo'lishi uchun smooth olib tashlandi */
}

/* Topbar header — sticky to app-shell top; in-flow so cards don't slide under it */
.topbar {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  transform: none;
  margin-left: auto;
  margin-right: auto;
  z-index: 100;
  background: var(--c-bg, transparent);
  padding-top: 4px;
  padding-bottom: 8px;
}

/* Bottom bar allaqachon fixed — qo'shimcha himoya */
.bottom-bar {
  position: fixed;
}

/* Har bir kategoriya ichidagi gorizontal scroll — vertikal scrollni
   tortib ketmasligi uchun overscroll cheklanadi.
   touch-action: pan-x olib tashlandi — chunki ota .app-shell'da
   "manipulation" bor, va parent-child intersection qoidasi bo'yicha
   pan-x ∩ manipulation = pan-x bo'lib qolardi, ya'ni kategoriya ustida
   vertikal scroll ishlamasdi. Endi ikkalasi ham ruxsat etiladi. */
.category-row__list {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}

/* Movie card va tugmalarda tez javob — tap delay yo'q */
.movie-card,
.bottom-bar__button,
.wishlist-toggle,
.hero__play,
.hero__info {
  touch-action: manipulation;
}

/* ============================================================
   Scroll performansi — Android touch lag/jank'ni kamaytirish
   Ekrandan tashqaridagi kategoriya qatorlari scroll paytida
   qayta bo'yalmaydi (content-visibility), shu sabab scroll
   yengilroq va responsivroq his qilinadi. contain-intrinsic-size
   bilan scrollbar sakrashi oldi olinadi (auto = oxirgi o'lcham
   eslab qolinadi). Funksionallikka ta'sir qilmaydi.
   ============================================================ */
.category-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/* ============================================================
   Hero card — yumshoq burchakli card ko'rinishi
   ============================================================ */
.hero {
  margin-left: 12px !important;
  margin-right: 12px !important;
  width: calc(100% - 24px) !important;
  border-radius: 22px !important;
}

/* ============================================================
   Movie card — meta (rating + janr) yashirildi
   Foydalanuvchi so'roviga ko'ra "9.9 · Kino" turidagi matnlar olib tashlandi
   ============================================================ */
.movie-card .card-meta {
  display: none !important;
}
.movie-card .card-copy {
  padding-bottom: 4px;
}

/* ============================================================
   Topbar search — match nearby controls and open inside header gap
   ============================================================ */
.topbar-search {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  --topbar-search-panel-width: 168px;
}

.topbar-search__trigger {
  position: relative;
  z-index: 3;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2) !important;
  border: 1px solid var(--c-border) !important;
  color: var(--c-text) !important;
  box-shadow: none !important;
}

.topbar-search__trigger .icon-svg {
  width: 16px;
  height: 16px;
}

.topbar-search__trigger:hover,
.topbar-search__trigger.is-active {
  color: var(--c-text) !important;
  background: var(--c-surface-3) !important;
  border-color: var(--c-border-strong) !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.topbar-search__panel--inline {
  position: static !important;
  display: block;
  width: calc(100% - 30px) !important;
  margin: 6px 15px 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar-search__panel--inline[hidden] {
  display: none !important;
}

.topbar-search__panel--inline + .hero,
.topbar-search__panel--inline:not([hidden]) + .hero,
.topbar-search__panel--inline:not([hidden]) + .movie-grid {
  margin-top: 6px !important;
  padding-top: 0 !important;
}

.topbar-search__panel .search-box {
  min-height: 40px !important;
  height: 40px;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1.5px solid #eaeaea !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.topbar-search__panel .search-box .icon-svg {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #111111;
  margin-right: 8px;
}

.topbar-search__panel .search-box input {
  font-size: 14px;
  color: #111111;
  -webkit-text-fill-color: #111111;
  caret-color: #111111;
}

.topbar-search__panel .search-box input::placeholder {
  color: rgba(17, 17, 17, 0.5);
  -webkit-text-fill-color: rgba(17, 17, 17, 0.5);
}

.search-box__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  flex: 0 0 auto;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.search-box__clear:hover {
  opacity: 1;
}

.search-box__clear[hidden] {
  display: none;
}

.search-box__clear .icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.topbar-search.is-open .topbar-search__trigger {
  background: transparent !important;
  border: 0 !important;
  color: #111111 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none;
}

html[data-theme="light"] .topbar-search.is-open .topbar-search__trigger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ============================================================
   Hero — Disney+ style banner: image + small circular play btn
   Faqat poster va play tugmasi koʻrinadi
   ============================================================ */
.hero {
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 8px 12px 14px !important;
  width: calc(100% - 24px) !important;
  border-radius: 18px !important;
  overflow: hidden;
}
.hero__gradient { display: none !important; }
.hero__title,
.hero__desc,
.hero__info,
#heroPlayLabel { display: none !important; }
.hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.2s ease;
}
.hero__dot.is-active {
  width: 18px;
  background: #fff;
  border-radius: 999px;
}

.hero__inner {
  position: absolute;
  inset: auto auto 10px 12px !important;
  padding: 0 !important;
  text-align: left !important;
  align-items: flex-start !important;
  bottom: 10px !important;
  left: 12px !important;
  right: auto !important;
}
.hero__actions {
  gap: 0 !important;
  justify-content: flex-start !important;
}
.hero__play {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(37, 99, 235, 0.95) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.hero__play svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

/* ============================================================
   Topbar — fonsiz (transparent) ko'rinish
   ============================================================ */
.topbar,
.topbar.is-scrolled,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar.is-scrolled,
html[data-theme="light"] .topbar,
html[data-theme="light"] .topbar.is-scrolled {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Topbar sticky (oqim ichida) — pastdagi bo'limlar topbar balandligini
   qayta hisoblamasligi kerak, faqat kichik bo'shliq yetarli */
.hero {
  margin-top: 8px !important;
}
.hero[hidden] + .movie-grid {
  padding-top: 8px !important;
}

/* ===== Categories view ===== */
.categories-view {
  padding: 8px 16px 120px;
  min-height: 100vh;
}
.categories-view__title {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 16px;
  letter-spacing: -0.01em;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.category-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f7c97a;
  color: #1a1a1a;
  cursor: pointer;
  border: none;
  padding: 14px;
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background-size: cover;
  background-position: center;
}
.category-card:active { transform: scale(0.97); }
.category-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.category-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
html[data-theme="dark"] .category-card { background-color: #2a2a2a; color: #fff; }
.categories-empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 60px 20px;
  font-size: 14px;
}
body.is-categories .movie-grid,
body.is-categories .hero,
body.is-categories .app-footer,
body.is-categories .search-panel { display: none !important; }

/* ===== Category detail page ===== */
.category-detail-view {
  padding: 14px 16px 120px;
  min-height: 100vh;
}
.category-detail-view__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}
.category-detail-view__back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.06);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.category-detail-view__back:active { transform: scale(0.95); }
.category-detail-view__back svg { width: 20px; height: 20px; }
html[data-theme="dark"] .category-detail-view__back { background: rgba(255,255,255,0.12); }
.category-detail-view__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}
.category-detail-view__empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 60px 20px;
  font-size: 14px;
}
body.is-category-detail .movie-grid:not(.category-detail-view__grid),
body.is-category-detail .hero,
body.is-category-detail .app-footer,
body.is-category-detail .categories-view,
body.is-category-detail .search-panel { display: none !important; }

/* ===== Seriallar (series) ===== */
body.is-series-list .movie-grid:not(.category-detail-view__grid),
body.is-series-list .hero,
body.is-series-list .app-footer,
body.is-series-list .categories-view,
body.is-series-list .search-panel { display: none !important; }

body.is-series-detail .movie-grid:not(.category-detail-view__grid),
body.is-series-detail .hero,
body.is-series-detail .app-footer,
body.is-series-detail .categories-view,
body.is-series-detail .search-panel { display: none !important; }


.category-card--series {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.category-card__label {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.series-detail { padding-bottom: 8px; }
.series-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.series-hero__poster {
  width: 200px;
  max-width: 58%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg, 14px);
  background: var(--glass, rgba(255, 255, 255, 0.1)) center / cover no-repeat;
  box-shadow: var(--shadow-lg, 0 18px 48px rgba(0, 0, 0, 0.36));
}
.series-hero__info { width: 100%; }
.series-hero__count {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold, #ffc73a);
  margin: 0 0 8px;
}
.series-hero__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, rgba(236, 239, 247, 0.72));
  margin: 0;
}
.season-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.18));
  background: var(--glass, rgba(255, 255, 255, 0.06));
  color: var(--muted, rgba(236, 239, 247, 0.72));
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.season-tab.is-active {
  background: var(--gold, #ffc73a);
  color: #1a1a1a;
  border-color: transparent;
}
.season-panel { margin: 0; }
.season-panel[hidden] { display: none; }
.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.episode-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-md, 12px);
  background: var(--glass, rgba(255, 255, 255, 0.06));
  color: var(--text, #f7f7fb);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.episode-row:active { transform: scale(0.99); }
.episode-row__num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold, #ffc73a);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.episode-row__title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-row__play {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--muted, rgba(236, 239, 247, 0.72));
}
.episode-empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 40px 20px;
  font-size: 14px;
}

/* === nav-icon-click-anim (revertable: delete from this marker to EOF) === */
@keyframes nav-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.86); }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes nav-icon-spin-pop {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(0.82) rotate(-12deg); }
  75%  { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes nav-ripple {
  0%   { opacity: 0.35; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(2.4); }
}

.sidebar__item,
.icon-button,
.bottom-bar__button {
  position: relative;
  overflow: visible;
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sidebar__item:active,
.icon-button:active,
.bottom-bar__button:active {
  transform: scale(0.94);
}

.sidebar__item.is-clicked,
.icon-button.is-clicked,
.bottom-bar__button.is-clicked {
  animation: nav-pop 360ms ease-out;
}
.sidebar__item.is-clicked svg,
.icon-button.is-clicked svg,
.bottom-bar__button.is-clicked svg {
  animation: nav-icon-spin-pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 50%;
}

.nav-click-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: nav-ripple 480ms ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar__item.is-clicked,
  .icon-button.is-clicked,
  .bottom-bar__button.is-clicked,
  .sidebar__item.is-clicked svg,
  .icon-button.is-clicked svg,
  .bottom-bar__button.is-clicked svg { animation: none; }
  .nav-click-ripple { display: none; }
}
/* === /nav-icon-click-anim === */



/* === Ad modal (mini app reklama oynasi) === */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ad-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.ad-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ad-modal__dialog {
  position: relative;
  width: min(92vw, 360px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  animation: ad-modal-in .32s cubic-bezier(.2, .8, .2, 1);
}
.ad-modal__frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
@keyframes ad-modal-in {
  from { transform: translateY(20px) scale(.92); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.ad-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .96);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  z-index: 2;
  padding: 0;
}
.ad-modal__close svg { width: 18px; height: 18px; }
.ad-modal__close:active { transform: scale(.92); }
.ad-modal__image {
  display: block;
  width: 100%;
  background: #111;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ad-modal__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  background: #000;
}
.ad-modal__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .85);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .35);
  z-index: 2;
  pointer-events: none;
  animation: ad-badge-float 2.4s ease-in-out infinite;
}
.ad-modal__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, .85);
  animation: ad-badge-pulse 1.4s ease-out infinite;
}
.ad-modal__badge-text {
  position: relative;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, #ffd6d6 50%, #fff 70%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ad-badge-shine 2.6s linear infinite;
}
@keyframes ad-badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, .85); transform: scale(1); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); transform: scale(1); }
}
@keyframes ad-badge-shine {
  0%   { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}
@keyframes ad-badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.ad-modal__cta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a55c2 0%, #2f47a3 45%, #182a6e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: .2px;
  overflow: hidden;
  box-shadow:
    0 8px 22px rgba(10, 17, 66, .55),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
  z-index: 2;
  animation: ad-cta-pulse 2s ease-in-out infinite;
  transition: transform .15s ease;
}
.ad-modal__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, .38) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: ad-cta-shine 2.6s linear infinite;
  pointer-events: none;
}
.ad-modal__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(80, 110, 220, .65);
  animation: ad-cta-ring 2s ease-out infinite;
  pointer-events: none;
}
.ad-modal__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  animation: ad-cta-arrow 1.1s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.ad-modal__cta-arrow svg { width: 18px; height: 18px; }
.ad-modal__cta-label { position: relative; z-index: 1; }
.ad-modal__cta:active { transform: scale(.97); animation-play-state: paused; }

@keyframes ad-cta-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 22px rgba(10,17,66,.55), 0 0 0 1px rgba(255,255,255,.08) inset; }
  50%      { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,17,66,.7), 0 0 0 1px rgba(255,255,255,.14) inset; }
}
@keyframes ad-cta-shine {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes ad-cta-ring {
  0%   { box-shadow: 0 0 0 0 rgba(80, 110, 220, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(80, 110, 220, 0); }
  100% { box-shadow: 0 0 0 0 rgba(80, 110, 220, 0); }
}
@keyframes ad-cta-arrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .ad-modal__cta,
  .ad-modal__cta::before,
  .ad-modal__cta::after,
  .ad-modal__cta-arrow,
  .ad-modal__badge,
  .ad-modal__badge-dot,
  .ad-modal__badge-text { animation: none !important; }
}
.ad-modal__sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
body.ad-modal-open { overflow: hidden; }

/* === Resume prompt: "Davom etish" chip above the watch button === */
.watch-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.watch-button {
  position: relative;
}
/* Eski qizil badge — ishlatilmaydi, har doim yashirin */
.watch-button__resume { display: none !important; }

.watch-resume-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text, #fff);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.watch-resume-chip[hidden] { display: none !important; }
.watch-resume-chip:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.14);
}
.watch-resume-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--c-accent, #e50914);
  color: #fff;
}
.watch-resume-chip__icon svg {
  width: 12px;
  height: 12px;
}
.watch-resume-chip__text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.watch-resume-chip__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.watch-resume-chip__label {
  opacity: 0.85;
  font-weight: 500;
}
[data-theme="light"] .watch-resume-chip {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .watch-resume-chip:active {
  background: rgba(0, 0, 0, 0.1);
}
.watch-restart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text, #fff);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.watch-restart svg {
  width: 16px;
  height: 16px;
}
.watch-restart:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.14);
}
[data-theme="light"] .watch-restart {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .watch-restart:active {
  background: rgba(0, 0, 0, 0.1);
}
.watch-actions:not(.has-resume) .watch-restart {
  display: none;
}

/* === #11 Smooth view fade transitions ===
   Sahifa qismlari ochilganda yumshoq fade-in. Yopilish darrov bo'ladi
   (hidden=true), shuning uchun keyingi ochilishda har safar animatsiya ishga tushadi. */
#heroSection:not([hidden]),
#categoriesView:not([hidden]),
#categoryDetailView:not([hidden]),
#seriesListView:not([hidden]),
#seriesDetailView:not([hidden]),
#musicView:not([hidden]),
#searchPanel:not([hidden]) {
  animation: view-fade-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes view-fade-in {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Reduced motion: animatsiyalarsiz */
@media (prefers-reduced-motion: reduce) {
  #heroSection:not([hidden]),
  #categoriesView:not([hidden]),
  #categoryDetailView:not([hidden]),
  #seriesListView:not([hidden]),
  #seriesDetailView:not([hidden]),
  #musicView:not([hidden]),
  #searchPanel:not([hidden]) {
    animation: none;
  }
}

/* Movie grid'dagi yangi row'larga (skeleton → real content) yumshoq paydo bo'lish */
.movie-grid.is-home .category-row:not(.category-row--skeleton) {
  animation: row-fade-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}
@keyframes row-fade-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .movie-grid.is-home .category-row:not(.category-row--skeleton) {
    animation: none;
  }
}

/* === Pull-to-refresh indicator === */
.ptr-indicator {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg, rgba(255, 255, 255, 0.92));
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  will-change: transform, opacity;
}
[data-theme="dark"] .ptr-indicator {
  background: #1a1a1d;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ptr-snap {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
}
.ptr-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.2px solid currentColor;
  border-top-color: transparent;
  color: var(--accent-color, #4f7cff);
  opacity: 0.9;
  display: block;
}
.ptr-indicator.ptr-loading .ptr-spinner {
  animation: ptr-spin 0.9s linear infinite;
}
@keyframes ptr-spin {
  to { transform: rotate(360deg); }
}

/* === Skeleton loader (shimmer) ===
   Movies yuklanayotganda haqiqiy kartochkalarning soxta versiyasi. */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base, var(--w-08));
  border-radius: var(--radius-lg);
}
.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    var(--skeleton-glow, var(--w-16)) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s var(--ease-in-out) infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
[data-theme="dark"] .skeleton-shimmer {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .skeleton-shimmer::after {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 50%,
    transparent 100%
  );
}

.movie-card--skeleton {
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.movie-card--skeleton .movie-card__poster {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 14px;
}
.movie-card--skeleton .movie-card__title-line {
  height: 12px;
  width: 78%;
  border-radius: 6px;
}

.category-row--skeleton .skeleton-title {
  height: 18px;
  width: 140px;
  border-radius: 8px;
  margin: 4px 0 12px;
}
.category-row__list--skeleton {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 6px;
}
.category-row__list--skeleton .movie-card--skeleton {
  flex: 0 0 calc((100% - 24px) / 3);
  max-width: 160px;
}

/* Flat skeleton grid (category/favorites loading) */
.movie-grid.is-loading:not(.is-home) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 720px) {
  .movie-grid.is-loading:not(.is-home) {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .movie-grid.is-loading:not(.is-home) {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === Content entry fade — kartochkalar paydo bo'lishi yumshoq === */
.movie-grid:not(.is-loading) .movie-card:not(.movie-card--skeleton) {
  animation: cardFadeIn var(--dur-slow) var(--ease-out) both;
}

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

/* === Pre-roll video reklama (kino oldidan) === */
.preroll {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preroll[hidden] { display: none; }
.preroll__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.preroll__click {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
  background: transparent;
}
.preroll__click[hidden] { display: none; }
.preroll__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.5);
  pointer-events: none;
}
.preroll__skip {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 22px;
  cursor: default;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.preroll__skip.is-ready {
  cursor: pointer;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.85);
}
.preroll__skip-label { line-height: 1; }
.preroll__skip-icon { width: 16px; height: 16px; }

/* Pre-roll ko'rinib turganda asl player overlay'lari yashirilsin */
.video-player.is-preroll .player-overlay,
.video-player.is-preroll .video-fallback,
.video-player.is-preroll .video-mount,
.video-player.is-preroll .kino-watermark--player {
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   Android scroll performance — backdrop-filter qimmat
   ============================================================
   Sticky topbar va fixed bottom-bar har skroll kadrida qayta blur
   qilinadi va Android'da bu juda sekin. UA orqali .is-android klass
   qo'yiladi va eng og'ir blur'lar opaque background bilan
   almashtiriladi. iOS bu qoidalarga tegmaydi — Safari blur'ni
   GPU'da arzon qiladi. */
html.is-android .topbar,
html.is-android .topbar.is-scrolled,
html.is-android .bottom-bar__inner,
html.is-android .lang-trigger,
html.is-android .lang-options,
html.is-android .card-copy {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.is-android .topbar,
html.is-android .topbar.is-scrolled {
  background: rgba(15, 15, 17, 0.96);
}

html.is-android[data-theme="light"] .topbar,
html.is-android[data-theme="light"] .topbar.is-scrolled {
  background: rgba(248, 248, 250, 0.96);
}

html.is-android .bottom-bar__inner {
  background: rgba(15, 15, 17, 0.96);
}

html.is-android[data-theme="light"] .bottom-bar__inner {
  background: rgba(248, 248, 250, 0.96);
}

/* Movie modal'da overlay blur Android'da modal ochilayotganda jirkanch
   — qattiq fon bilan almashtiramiz */
html.is-android .movie-modal::backdrop,
html.is-android .profile-modal::backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(0, 0, 0, 0.82);
}

/* === Reduced motion respect — Telegram WebApp foydalanuvchilarining tizim sozlamasi === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   GLASS / DEPTH POLISH — iOS-style finishing touches
   (taklif #4: backdrop blur, inner highlight, premium depth)
   ============================================================ */

/* Bottom nav — yanada tiniq glass + ichki nur chizig'i (premium his) */
.bottom-bar__inner {
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  position: relative;
}
.bottom-bar__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%);
  opacity: 0.9;
}
html[data-theme="dark"] .bottom-bar__inner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
}
html.is-android .bottom-bar__inner {
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

/* Search panel — fokuslanganda accent glow (jonlanish) */
.search-box.glass-panel {
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.search-box.glass-panel:focus-within {
  border-color: rgba(255, 199, 58, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 4px rgba(255, 199, 58, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
html[data-theme="light"] .search-box.glass-panel:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(255, 199, 58, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Comments sheet — iOS sheet his (qattiq oq emas, glass) */
.comments-sheet__panel {
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 -24px 60px rgba(0, 0, 0, 0.32);
}
html[data-theme="dark"] .comments-sheet__panel {
  background: rgba(21, 23, 27, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -24px 60px rgba(0, 0, 0, 0.6);
}
.comments-sheet__grabber {
  width: 40px;
  height: 5px;
  margin-top: 12px;
  transition: background var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}
.comments-sheet__grabber:hover,
.comments-sheet__grabber:active {
  width: 56px;
  background: rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .comments-sheet__grabber:hover,
html[data-theme="dark"] .comments-sheet__grabber:active {
  background: rgba(255, 255, 255, 0.36);
}

/* Modal — ichki yorug'lik chizig'i (premium ramka) */
.movie-modal,
.profile-modal {
  position: relative;
}
.movie-modal::before,
.profile-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 3;
}
html[data-theme="light"] .movie-modal::before,
html[data-theme="light"] .profile-modal::before {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Movie card — poster ustida nozik nur (agar poster bo'lsa) */
.movie-card {
  position: relative;
}
.movie-card .poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%);
  z-index: 2;
  mix-blend-mode: overlay;
}
html[data-theme="light"] .movie-card .poster::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 18%);
  mix-blend-mode: soft-light;
}

/* Top bar — scroll'da tiniq glass paydo bo'lsin (hozir oddiy) */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.55), rgba(10, 11, 14, 0.15));
}
html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(250, 250, 251, 0.85), rgba(250, 250, 251, 0.4));
}
html.is-android .topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg, #0a0b0e);
}
html.is-android[data-theme="light"] .topbar {
  background: #fafafb;
}

/* Sidebar — iOS-style glass surface */
.sidebar {
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
}
html[data-theme="light"] .sidebar::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 24%);
}

/* Mini player (musiqa) — pastki nav ustida glass capsule */
.mini-player {
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.5);
}
html[data-theme="light"] .mini-player {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   HERO CINEMATIC POLISH (taklif #1)
   Ken Burns zoom + ko'p qatlamli gradient + vignette +
   kinematik tipografika + shimmer Play + morph dots
   ============================================================ */

.hero {
  height: clamp(440px, 64vh, 560px);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  isolation: isolate;
}

/* Ken Burns — sekin zoom + nozik pan (kino tizerlar uchun klassik) */
@keyframes heroKenBurns {
  0%   { transform: scale(1.08) translate3d(-1%, -1%, 0); }
  100% { transform: scale(1.18) translate3d(1.5%, 1.5%, 0); }
}
.hero__bg {
  transform: scale(1.08);
  will-change: transform, opacity;
}
.hero__bg.is-loaded {
  animation: heroKenBurns 16s ease-in-out infinite alternate;
}
html.is-android .hero__bg.is-loaded {
  animation: none;
  transform: scale(1.04);
}

/* Yangi ko'p qatlamli gradient — pastda chuqurroq, yuqorida nozik */
.hero__gradient {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 22%, transparent 48%, rgba(0,0,0,0.65) 78%, var(--muvi-bg, #0a0b0e) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.7) 0%, transparent 60%);
}

/* Yon vignette — kinematik chetlar */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(140% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

/* Hero content joylanishi va animatsiya bilan kirish */
.hero__inner {
  bottom: 44px;
  padding: 0 28px;
  animation: heroFadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Kinematik sarlavha — kattaroq, tighter letter-spacing, drop-shadow */
.hero__title {
  font-size: clamp(28px, 8.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 12px;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 88%;
  margin: 0 0 26px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Play tugmasi — shimmer effect (premium engagement triggeri) */
.hero__play {
  position: relative;
  height: 50px;
  padding: 0 30px;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 28px rgba(255, 255, 255, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.hero__play::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  animation: heroPlayShimmer 3.4s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
@keyframes heroPlayShimmer {
  0%, 60%, 100% { left: -120%; }
  80%           { left: 130%; }
}
.hero__play:active {
  transform: scale(0.96);
}

.hero__info {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

/* Hero carousel dots — morph indicator (active dot kengayadi pill ko'rinishida) */
.hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.hero__dot.is-active {
  width: 22px;
  background: #fff;
}

/* Reduced motion respect — Ken Burns va shimmer'ni o'chir */
@media (prefers-reduced-motion: reduce) {
  .hero__bg.is-loaded { animation: none; transform: scale(1.04); }
  .hero__play::after { animation: none; display: none; }
  .hero__inner { animation: none; }
}

/* === UNIFIED SF SYMBOLS / TELEGRAM iOS ICON STYLE ===
   Barcha outline icon'lar yagona 2px chiziq, rounded burchak va smooth egri bilan
   ko'rsatiladi (Apple SF Symbols / Telegram iOS uslubi).
   Logolar (.brand-logo__svg, splash, footer, music-splash) bu qoidadan tashqari. */
svg[stroke="currentColor"]:not(.brand-logo__svg) {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Logolarning asl chiziq qalinligi saqlansin */
.brand-logo__svg,
.splash-screen__logo svg,
.app-footer__logo svg,
.music-splash__logo svg {
  stroke-width: 1.6 !important;
}
.splash-screen__logo svg circle { stroke-width: 1.3 !important; }
.splash-screen__logo svg path { stroke-width: 1.4 !important; }

/* ============================================================
   FIFA JCH 2026
   ============================================================ */

/* --- Sidebar badge --- */
.sidebar__item--fifa { position: relative; }
.sidebar__item-img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.sidebar__item-img--fifa {
  width: 24px;
  height: 24px;
}
:root:not([data-theme="dark"]) .sidebar__item-img--fifa { filter: none; }
[data-theme="dark"] .sidebar__item-img--fifa { filter: invert(1) brightness(1.1); }
.sidebar__item:hover .sidebar__item-img,
.sidebar__item:focus-visible .sidebar__item-img { transform: scale(1.05); }
.fifa-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 5px;
  border-radius: 6px;
  background: #ff2d55;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255,45,85,.35);
}

/* --- Bosh ekran banner --- */
.fifa-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 6px 0 18px;
  padding: 18px 18px;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a3d 0%, #15327a 45%, #1f56b8 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 38px -18px rgba(13,40,110,.85);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fifa-banner:active { transform: scale(.985); }
.fifa-banner:hover { box-shadow: 0 24px 48px -20px rgba(13,40,110,1); }
.fifa-banner__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 120px at 85% 0%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(180px 180px at 0% 100%, rgba(255,45,85,.28), transparent 70%);
  pointer-events: none;
}
.fifa-banner__live {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,45,85,.95);
  color: #fff;
}
.fifa-banner__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: fifaLivePulse 1.4s ease-out infinite;
}
@keyframes fifaLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.fifa-banner__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.fifa-banner__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
}
.fifa-banner__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.fifa-banner__sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}
.fifa-banner__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  flex-shrink: 0;
}
.fifa-banner__cta svg { width: 18px; height: 18px; }

/* --- FIFA view --- */
.fifa-view {
  padding: 14px 16px 24px;
  color: var(--text, #fff);
}
body.is-fifa .fifa-view { display: block; }
body.is-fifa .movie-grid,
body.is-fifa .categories-view,
body.is-fifa .hero,
body.is-fifa .search-section,
body.is-fifa .fifa-banner,
body.is-fifa .topbar-search,
body.is-fifa .bottom-bar,
body.is-fifa .app-footer { display: none !important; }

/* FIFA banner faqat asosiy sahifada — kategoriyalar va sevimlilarda yashir */
body.is-categories .fifa-banner,
body.is-category-detail .fifa-banner,
body.is-favorites .fifa-banner { display: none !important; }

.fifa-view__hero {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 26px 22px;
  margin-top: 10px;
  min-height: 200px;
  background: #0a1a3d url("/static/assets/fifa-football-header.png") center/cover no-repeat;
  background-image: url("/static/assets/fifa-football-header.png");
  background-color: #0a1a3d;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(13,40,110,.9);
}
.fifa-view__hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(270deg, rgba(8,18,46,.78) 0%, rgba(8,18,46,.55) 35%, rgba(8,18,46,.15) 65%, rgba(8,18,46,0) 100%);
  pointer-events: none;
}
.fifa-view__hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  max-width: 58%;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.fifa-view__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
}
.fifa-view__title {
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0 4px;
  letter-spacing: -.01em;
}
.fifa-view__sub {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin: 0;
}

.fifa-view__promo {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--surface-2, rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 28px -18px rgba(13,40,110,.7);
}
html[data-theme="light"] .fifa-view__promo:not(.fifa-view__promo--live) {
  background: #f0f1f6;
  border-color: rgba(13,40,110,.08);
}
.fifa-view__promo[hidden] { display: none !important; }

/* Jonli efir (yopiq kanal) promo kartasi — bosiladigan */
.fifa-view__promo--live {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-color: rgba(255,255,255,.10);
  background: linear-gradient(135deg, #16264f 0%, #0d2a6e 55%, #c81e3a 140%) !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease, box-shadow .14s ease;
}
.fifa-view__promo--live:active { transform: scale(.985); }
.fifa-view__promo--live:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fifa-view__promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.fifa-view__promo-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
}
.fifa-view__promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2123b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.fifa-view__promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: fifa-promo-pulse 1.4s ease-in-out infinite;
}
@keyframes fifa-promo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
.fifa-view__promo-title {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.fifa-view__promo-sub {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.fifa-view__promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0d2a6e;
  font-size: 14px;
  font-weight: 700;
}
.fifa-view__promo-cta svg { width: 16px; height: 16px; }

/* Translatsiyani do'stlarga yuborish tugmasi — promo kartasi ostida */
.fifa-view__promo-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  color: var(--text, #f7f7fb);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.fifa-view__promo-share svg { width: 18px; height: 18px; flex-shrink: 0; }
.fifa-view__promo-share:active { transform: scale(0.97); }
.fifa-view__promo-share[hidden] { display: none; }
html[data-theme="light"] .fifa-view__promo-share {
  background: #ffffff;
  border-color: #eaeaea;
  color: #0d0d10;
  box-shadow: 0 8px 24px rgba(15, 15, 18, 0.06);
}

.fifa-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 6px;
  background: var(--surface-2, rgba(255,255,255,.04));
  border-radius: 14px;
}
.fifa-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted, rgba(255,255,255,.6));
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.fifa-tab.is-active {
  background: linear-gradient(135deg, #1f56b8, #15327a);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(31,86,184,.7);
}

.fifa-panel { display: none; }
.fifa-panel.is-active { display: block; }

/* --- Matchlar --- */
.fifa-day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,.55));
  margin: 18px 0 10px;
}
.fifa-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.06));
}
.fifa-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fifa-match__team--home { justify-content: flex-end; text-align: right; }
.fifa-match__team--away { justify-content: flex-start; }
.fifa-match__flag {
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fifa-flag--img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.fifa-cell--team .fifa-flag--img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}
.fifa-live-card__teams .fifa-flag--img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  display: inline-block;
}
.fifa-match__name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fifa-match__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 68px;
}
.fifa-match__score {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}
.fifa-match__time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, rgba(255,255,255,.6));
}
.fifa-match--live { border-color: rgba(255,45,85,.45); }
.fifa-match--live .fifa-match__score { color: #ff5577; }
.fifa-match--finished .fifa-match__score { color: #2f7cf6; }
.fifa-match--finished .fifa-match__time { color: rgba(120,120,120,.85); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fifa-match__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #ff5577;
  text-transform: uppercase;
}
.fifa-match__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff2d55;
  animation: fifaLivePulse 1.4s ease-out infinite;
}

/* --- Jonli efir --- */
.fifa-live-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 22px 20px;
  background: linear-gradient(135deg, #2a0a1e 0%, #6b1230 60%, #ff2d55 130%);
  color: #fff;
  margin-bottom: 14px;
}
.fifa-live-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  text-transform: uppercase;
}
.fifa-live-card__teams {
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0 4px;
}
.fifa-live-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.fifa-live-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1a1a2e;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.fifa-live-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted, rgba(255,255,255,.6));
  border-radius: 16px;
  background: var(--surface-2, rgba(255,255,255,.03));
}
.fifa-live-empty__icon { font-size: 36px; margin-bottom: 8px; }
.fifa-live-empty__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text, #fff); }
.fifa-live-empty--loading { padding: 44px 16px; }
.fifa-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(120, 140, 200, .18);
  border-top-color: #3b82f6;
  border-right-color: #6366f1;
  animation: fifaSpin .85s linear infinite;
  box-shadow: 0 4px 16px rgba(59, 130, 246, .22);
}
@keyframes fifaSpin { to { transform: rotate(360deg); } }
html[data-theme="light"] .fifa-spinner { border-color: rgba(59, 130, 246, .15); border-top-color: #3b82f6; border-right-color: #6366f1; }

.fifa-upcoming-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,.55));
  margin: 18px 0 10px;
}

/* --- Guruhlar --- */
.fifa-group {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.06));
}
.fifa-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(31,86,184,.35), rgba(21,50,122,.25));
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
}
.fifa-group__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fifa-group__table th,
.fifa-group__table td {
  padding: 9px 10px;
  text-align: center;
  border-top: 1px solid var(--border, rgba(255,255,255,.05));
}
.fifa-group__table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted, rgba(255,255,255,.5));
  text-transform: uppercase;
  border-top: 0;
}
.fifa-group__table td.fifa-cell--team { text-align: left; font-weight: 600; }
.fifa-group__table td.fifa-cell--pts { font-weight: 800; }

.fifa-view__spacer { height: 64px; }

/* Light theme */
html[data-theme="light"] .fifa-match,
html[data-theme="light"] .fifa-group,
html[data-theme="light"] .fifa-live-empty { background: #f5f6fa; border-color: #e6e8f0; }
html[data-theme="light"] .fifa-tabs { background: #f0f1f6; }
html[data-theme="light"] .fifa-tab { color: #5a5f72; }
html[data-theme="light"] .fifa-day,
html[data-theme="light"] .fifa-upcoming-title,
html[data-theme="light"] .fifa-match__time,
html[data-theme="light"] .fifa-group__table th { color: #6b7088; }
html[data-theme="light"] .fifa-group__table th,
html[data-theme="light"] .fifa-group__table td { border-color: #e6e8f0; }

/* =========================================================================
   FIFA Lineup modal — pastdan ochiluvchi bottom-sheet
   ========================================================================= */
.fifa-match--clickable { cursor: pointer; transition: transform .15s ease, background .2s ease; }
.fifa-match--clickable:active { transform: scale(.985); }
.fifa-match--clickable:hover { background: rgba(255,255,255,.04); }

.fifa-lineup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fifa-lineup-modal[hidden] { display: none !important; }
.fifa-lineup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.fifa-lineup-modal.is-open .fifa-lineup-modal__backdrop { opacity: 1; }

.fifa-lineup-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  background: var(--surface-1, #0f1014);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.5);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.fifa-lineup-modal.is-open .fifa-lineup-modal__sheet { transform: translateY(0); }

.fifa-lineup-modal__grabber {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.18);
  margin: 8px auto 4px;
  flex: 0 0 auto;
}

.fifa-lineup-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
  flex: 0 0 auto;
}
.fifa-lineup-modal__teams {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fifa-lineup-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fifa-lineup-team--home { justify-content: flex-end; text-align: right; flex: 1; }
.fifa-lineup-team--away { justify-content: flex-start; flex: 1; }
.fifa-lineup-team__flag .fifa-flag,
.fifa-lineup-team__flag .fifa-flag--img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; }
.fifa-lineup-team__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fifa-lineup-score {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  white-space: nowrap;
}
.fifa-lineup-modal__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.08);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fifa-lineup-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  flex: 1 1 auto;
}

body.fifa-lineup-open { overflow: hidden; }

.fifa-lineup-loading,
.fifa-lineup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 16px;
  color: #6b7088;
  font-size: 14px;
  text-align: center;
}
html[data-theme="dark"] .fifa-lineup-loading,
html[data-theme="dark"] .fifa-lineup-empty { color: rgba(255,255,255,.65); }
.fifa-lineup-empty .fifa-live-empty__icon { font-size: 36px; }

/* --- Pitch (stadion) — absolyut pozitsiyalangan o'yinchilar --- */
.fifa-pitch {
  position: relative;
  background: linear-gradient(180deg, #2aa047 0%, #1a8838 50%, #2aa047 100%);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4.6;
  min-height: 560px;
}
.fifa-pitch__bg { position: absolute; inset: 0; pointer-events: none; }
.fifa-pitch__bg::before,
.fifa-pitch__bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.06) 0 28px,
    rgba(0,0,0,.06) 28px 56px
  );
}
.fifa-pitch__bg::before { top: 0; }
.fifa-pitch__bg::after { bottom: 0; }
.fifa-pitch__halfline {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.7);
}
.fifa-pitch__circle {
  position: absolute;
  left: 50%; top: 50%;
  width: 110px; height: 110px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fifa-pitch__circle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  transform: translate(-50%, -50%);
}
.fifa-pitch__box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 78px;
  border: 2px solid rgba(255,255,255,.65);
}
.fifa-pitch__box--top { top: 0; border-top: 0; border-radius: 0 0 14px 14px; }
.fifa-pitch__box--bottom { bottom: 0; border-bottom: 0; border-radius: 14px 14px 0 0; }
.fifa-pitch__spot {
  position: absolute;
  left: 50%;
  width: 5px; height: 5px;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translateX(-50%);
}
.fifa-pitch__spot--top { top: 60px; }
.fifa-pitch__spot--bottom { bottom: 60px; }

/* Team strip (pitch ustida/ostida — FotMob uslubi) */
.fifa-pitch-wrap {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #1a8838;
}
.fifa-team-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #156d2c;
  color: #fff;
}
.fifa-team-strip__rating {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.fifa-rating--muted { background: rgba(255,255,255,.18); }
.fifa-team-strip__flag .fifa-flag,
.fifa-team-strip__flag .fifa-flag--img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.fifa-team-strip__name {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fifa-team-strip__formation {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
}

.fifa-pitch__players {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fifa-pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 64px;
  text-align: center;
}
.fifa-pitch-player__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1c1c1f;
  border: 2px solid #fff;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.fifa-pitch-player__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2e;
}
.fifa-pitch-player__initials {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.fifa-pitch-player__rating {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  color: #fff;
  min-width: 24px;
  text-align: center;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.fifa-rating__star { font-size: 9px; line-height: 1; }
.fifa-rating--blue { background: #2563eb; }
.fifa-rating--green { background: #16a34a; }
.fifa-rating--orange { background: #ea7c1c; }
.fifa-rating--red { background: #dc2626; }

.fifa-pitch-player__sub {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.fifa-pitch-player__sub-icon { font-size: 9px; line-height: 1; }

.fifa-pitch-player__line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: center;
}
.fifa-pitch-player__name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
  text-align: center;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fifa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(0,0,0,.55);
  color: #fff;
}
.fifa-badge sup { font-size: 8px; margin-left: 1px; }
.fifa-badge--goal { background: transparent; font-size: 11px; padding: 0; }
.fifa-badge--yellow { background: #facc15; color: #1c1c1f; width: 9px; height: 12px; padding: 0; }
.fifa-badge--red { background: #dc2626; width: 9px; height: 12px; padding: 0; }
.fifa-badge--cap { background: #fff; color: #1c1c1f; border-radius: 50%; width: 12px; height: 12px; }

/* --- Bench (zaxiradagilar) --- */
.fifa-bench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 560px) {
  .fifa-bench { grid-template-columns: 1fr 1fr; }
}
.fifa-bench__team {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,.55));
  margin-bottom: 8px;
}
.fifa-bench__group { margin-bottom: 12px; }
.fifa-bench__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(255,255,255,.5));
  margin-bottom: 6px;
}
.fifa-bench__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fifa-bench__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-2, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.06));
}
.fifa-bench__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2e;
  overflow: visible;
  flex: 0 0 auto;
}
.fifa-bench__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fifa-bench__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.fifa-bench__rating {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
  min-width: 26px;
  text-align: center;
}
.fifa-bench__num {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #ff9500;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 5px;
  border: 1.5px solid var(--surface-1, #0f1014);
}
.fifa-bench__meta { min-width: 0; flex: 1; }
.fifa-bench__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fifa-bench__pos {
  font-size: 11px;
  color: var(--text-muted, rgba(255,255,255,.5));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Light theme */
html[data-theme="light"] .fifa-lineup-modal__sheet { background: #fff; }
html[data-theme="light"] .fifa-lineup-modal__close { background: #eef0f6; }
html[data-theme="light"] .fifa-lineup-score { background: #eef0f6; }
html[data-theme="light"] .fifa-bench__item { background: #f5f6fa; border-color: #e6e8f0; }
html[data-theme="light"] .fifa-bench__num { border-color: #fff; }

/* ===== Kino movie-card poster: <img> + fade-in + per-card shimmer =====
   Posterlar endi background-image emas, balki haqiqiy <img> orqali yuklanadi.
   Bu native lazy-loading (viewport), fetchpriority va onload fade-in beradi.
   Yuklanmaganida — shimmer placeholder, yuklangach — 280ms fade-in. */
.movie-card .poster.poster--img {
  background-image: linear-gradient(135deg, #1f1f1f, #0d0d0d);
  background-color: rgba(255, 255, 255, 0.04);
}
.movie-card .poster.poster--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s var(--ease-in-out) infinite;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.movie-card .poster.poster--loaded::before {
  display: none;
}
.movie-card .poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  /* MUHIM: opacity:0 default ishlatmaymiz — PC Chromium-da detached <img>
     uchun JS `load` event listener ba'zan ishlamaydi (img DOM'ga qo'shilgunga
     qadar load bo'lib ulguradi, keyin event qayta otilmaydi). Natijada
     `is-loaded` klass qo'shilmas, rasm opacity:0 da qotib qolardi. Endi
     rasm darrov ko'rinadi — yuklanishida brauzer transparent, yuklangach
     o'zi paydo bo'ladi va ostidagi shimmer'ni qoplaydi. */
  z-index: 1;
  display: block;
}
.movie-card .poster.poster--img .card-badges,
.movie-card .poster.poster--img .wishlist-toggle,
.movie-card .poster.poster--img .play-float {
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .movie-card .poster__img { transition: none; }
  .movie-card .poster.poster--img::before { animation: none; }
}


/* ============================================================
   LIQUID GLASS BOTTOM NAV — Telegram iOS uslubi
   Yarim shaffof glassmorphism + sirg'anuvchi pill indikator
   + spring animatsiya (barcha bo'limlar uchun bir xil)
   ============================================================ */

.bottom-bar__inner {
  position: relative;
  isolation: isolate;
  background: rgba(22, 24, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(32px) saturate(185%);
  -webkit-backdrop-filter: blur(32px) saturate(185%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .bottom-bar__inner {
  background: rgba(18, 19, 25, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
html[data-theme="light"] .bottom-bar__inner {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 36px rgba(15, 15, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

/* Liquid glass reflekslari — yuqoridan tushayotgan yorug'lik + burchak nuri */
.bottom-bar__inner::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 40%),
    radial-gradient(120% 90% at 16% 0%, rgba(255, 255, 255, 0.1), transparent 52%);
  opacity: 1;
}
html[data-theme="dark"] .bottom-bar__inner::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 42%),
    radial-gradient(120% 90% at 16% 0%, rgba(255, 255, 255, 0.07), transparent 52%);
}
html[data-theme="light"] .bottom-bar__inner::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 44%),
    radial-gradient(120% 90% at 16% 0%, rgba(255, 255, 255, 0.4), transparent 55%);
}

/* Android'da og'ir blur o'rniga yengilroq, lekin baribir shaffof glass */
html.is-android .bottom-bar__inner {
  background: rgba(18, 19, 25, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
html.is-android[data-theme="light"] .bottom-bar__inner {
  background: rgba(250, 250, 252, 0.9);
}

/* --- Sirg'anuvchi pill indikator (aktiv bo'lim orqasida) --- */
.bottom-bar__pill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 56px;
  height: calc(100% - 12px);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.16);
  transform: translate(0, -50%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 460ms cubic-bezier(0.3, 1.32, 0.42, 1),
    width 460ms cubic-bezier(0.3, 1.32, 0.42, 1),
    opacity 180ms ease;
}
html[data-theme="light"] .bottom-bar__pill {
  background: rgba(15, 15, 18, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 3px 10px rgba(15, 15, 18, 0.07);
}
.bottom-bar__pill.is-visible { opacity: 1; }

/* Tugmalar pill ustida tursin — toza shaffof, chiziqsiz va ramkasiz */
.bottom-bar__button,
.bottom-bar__inner > .bottom-bar__button,
html[data-theme="light"] .bottom-bar__button,
html[data-theme="light"] .bottom-bar__inner > .bottom-bar__button,
html[data-theme="dark"] .bottom-bar__button,
html[data-theme="dark"] .bottom-bar__inner > .bottom-bar__button {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 9999px !important;
}

.bottom-bar__button:hover,
.bottom-bar__button:active,
.bottom-bar__button.is-active,
html[data-theme="light"] .bottom-bar__button:hover,
html[data-theme="light"] .bottom-bar__button:active,
html[data-theme="light"] .bottom-bar__button.is-active,
html[data-theme="dark"] .bottom-bar__button:hover,
html[data-theme="dark"] .bottom-bar__button:active,
html[data-theme="dark"] .bottom-bar__button.is-active {
  background: transparent !important;
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Label pill ichidan chiqib ketmasin — uzun so'zlar qisqartiriladi */
.bottom-bar__label {
  font-size: 8.5px;
  letter-spacing: 0.04em;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Aktiv ikonka pop: scale 0.95 -> 1.0 + fade + bounce --- */
@keyframes navIconPopIn {
  0%   { transform: scale(0.95); opacity: 0.55; }
  55%  { transform: scale(1.1);  opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
.bottom-bar__button.is-active .icon-svg,
.bottom-bar__button.is-active .bottom-bar__avatar {
  animation: navIconPopIn 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Eski spin animatsiyasi bottom-bar'da yangi pop bilan to'qnashmasin */
.bottom-bar__button.is-clicked svg {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .bottom-bar__pill { transition: opacity 150ms ease; }
  .bottom-bar__button.is-active .icon-svg,
  .bottom-bar__button.is-active .bottom-bar__avatar { animation: none; }
}


/* =========================================================================
   Football leagues — daily fixtures + horizontally scrollable standings
   ========================================================================= */
.fifa-match-league {
  margin: 0 0 14px;
  border: 1px solid var(--border, rgba(255,255,255,.06));
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2, rgba(255,255,255,.04));
}
.fifa-match-league__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: linear-gradient(135deg, rgba(31,86,184,.22), rgba(21,50,122,.12));
}
.fifa-match-league__logo,
.fifa-league-tab__logo,
.fifa-standings-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.fifa-match-league__logo .fifa-team-logo { width: 26px; height: 26px; }
.fifa-match-league__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.fifa-match-league__copy strong { font-size: 14px; line-height: 1.2; }
.fifa-match-league__copy small {
  margin-top: 2px;
  color: var(--text-muted, rgba(255,255,255,.55));
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fifa-match-league__count {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(42, 201, 186, .14);
  color: var(--accent, #29c9ba);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.fifa-match-league__empty {
  padding: 12px 14px;
  color: var(--text-muted, rgba(255,255,255,.55));
  font-size: 12px;
}
.fifa-day--today {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.fifa-day--today small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: .7;
}
.fifa-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.fifa-team-logo--fallback {
  border-radius: 50%;
  background: rgba(42, 201, 186, .16);
  color: var(--accent, #29c9ba);
  font-size: 12px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}
.fifa-match__flag .fifa-team-logo { width: 25px; height: 25px; }
.fifa-live-card__teams .fifa-team-logo { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

.fifa-league-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fifa-league-tabs::-webkit-scrollbar { display: none; }
.fifa-league-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 13px;
  background: var(--surface-2, rgba(255,255,255,.04));
  color: var(--text-muted, rgba(255,255,255,.65));
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.fifa-league-tab:active { transform: scale(.97); }
.fifa-league-tab.is-active {
  border-color: rgba(42, 201, 186, .7);
  background: linear-gradient(135deg, rgba(42, 201, 186, .22), rgba(14, 105, 101, .28));
  color: var(--text, #fff);
  box-shadow: 0 7px 18px -12px rgba(42, 201, 186, .8);
}
.fifa-league-tab__logo .fifa-team-logo { width: 24px; height: 24px; }
.fifa-standings-card {
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.06));
  border-radius: 16px;
  background: var(--surface-2, rgba(255,255,255,.04));
}
.fifa-standings-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(42, 201, 186, .16), rgba(14, 105, 101, .12));
}
.fifa-standings-card__head strong { font-size: 14px; }
.fifa-standings-card__head small {
  color: var(--text-muted, rgba(255,255,255,.55));
  font-size: 10px;
  white-space: nowrap;
}
.fifa-standings-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fifa-standings-table { min-width: 440px; }
.fifa-standings-table th:first-child,
.fifa-standings-table td:first-child { width: 30px; }
.fifa-standing-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 145px;
}
.fifa-standing-team .fifa-team-logo { width: 23px; height: 23px; }

html[data-theme="light"] .fifa-match-league,
html[data-theme="light"] .fifa-standings-card,
html[data-theme="light"] .fifa-league-tab { background: #f5f6fa; border-color: #e6e8f0; }
html[data-theme="light"] .fifa-match-league__head { background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(99,102,241,.06)); }
html[data-theme="light"] .fifa-league-tab { color: #5a5f72; }
html[data-theme="light"] .fifa-league-tab.is-active { background: linear-gradient(135deg, rgba(13,148,136,.14), rgba(20,184,166,.10)); color: #0f172a; border-color: rgba(13,148,136,.55); }
html[data-theme="light"] .fifa-standings-card__head { background: linear-gradient(135deg, rgba(13,148,136,.10), rgba(20,184,166,.06)); }

@media (max-width: 420px) {
  .fifa-match { padding: 11px 9px; gap: 6px; }
  .fifa-match__name { font-size: 12px; }
  .fifa-match__center { min-width: 48px; }
  .fifa-match-league__copy small { display: none; }
  .fifa-standings-card__head { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* Kunlik o'yinlar sanasi navigatsiyasi */
.fifa-day--today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 12px;
}
.fifa-date-nav__label {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.fifa-date-nav__label strong {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fifa-date-nav__label small {
  color: var(--text-muted, rgba(255,255,255,.55));
  font-size: 10px;
}
.fifa-date-nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fifa-date-nav__button,
.fifa-date-nav__today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 10px;
  background: var(--surface-2, rgba(255,255,255,.04));
  color: var(--text, #fff);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.fifa-date-nav__today {
  min-width: auto;
  font-size: 10px;
  font-weight: 800;
}
.fifa-date-nav__button:hover,
.fifa-date-nav__today:hover {
  border-color: rgba(42, 201, 186, .65);
  background: rgba(42, 201, 186, .12);
}
.fifa-date-nav__button:active,
.fifa-date-nav__today:active { transform: scale(.94); }
html[data-theme="light"] .fifa-date-nav__button,
html[data-theme="light"] .fifa-date-nav__today { background: #f5f6fa; border-color: #e6e8f0; color: #182033; }

@media (max-width: 420px) {
  .fifa-date-nav__label strong { font-size: 11px; }
  .fifa-date-nav__button { min-width: 30px; width: 30px; padding: 0; }
}

/* ============================================================
   TOPBAR & BO'LIMLAR BO'SHLIQLARI (tepasi va pastidan ochiq joy)
   Barcha bo'limlarda tepadagi navbarni tepasidan ham, pastidan ham
   keng va chiroyli masofa bilan ko'rsatish
   ============================================================ */
.topbar {
  height: auto !important;
  min-height: 48px !important;
  padding-top: max(calc(env(safe-area-inset-top, 0px) + 8px), 16px) !important;
  padding-bottom: 14px !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
}

/* Barcha bo'limlar navbardan keyin chiroyli oraliq bilan boshlansin */
.hero {
  margin-top: 12px !important;
}

.hero[hidden] + .movie-grid,
.topbar-search__panel--inline + .hero,
.topbar-search__panel--inline:not([hidden]) + .hero,
.topbar-search__panel--inline:not([hidden]) + .movie-grid {
  margin-top: 12px !important;
  padding-top: 8px !important;
}

.topbar-search__panel--inline {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

.categories-view,
.category-detail-view {
  padding-top: 14px !important;
}

.music-view,
.podcasts-view,
.fifa-view,
.tv-view,
.esport-view {
  padding-top: 14px !important;
}

/* ============================================================
   Section Switch Splash Screen (Sidebar navigation)
   ============================================================ */
.section-splash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.24s cubic-bezier(0.2, 0, 0, 1), visibility 0.24s;
}
.section-splash[hidden] {
  display: none !important;
}
.section-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.section-splash__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(20, 18, 34, 0.1);
  border-top-color: #e50914;
  animation: musicSpin 0.8s linear infinite;
}
.section-splash__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #11121a;
}
.section-splash__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.section-splash__logo svg {
  width: 46px;
  height: 46px;
  display: block;
}
.section-splash__logo img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}
.section-splash__name {
  display: flex;
  align-items: center;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.section-splash__name span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 1;
}
html[data-theme="dark"] .section-splash {
  background: #0a0a10;
}
html[data-theme="dark"] .section-splash__brand {
  color: #ffffff;
}
html[data-theme="dark"] .section-splash__spinner {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: #e50914;
}

