/* ============================================================
   DezoMax — asosiy uslublar / основные стили
   ============================================================ */

:root {
  --bg:           #07080c;
  --bg-2:         #0d0f15;
  --surface:      #141822;
  --surface-2:    #1c212e;
  --line:         rgba(255, 255, 255, .08);
  --line-strong:  rgba(255, 255, 255, .16);

  --text:         #eef1f7;
  --text-dim:     #99a1b3;
  --text-faint:   #6b7386;

  --accent:       #0a93dc;
  --accent-2:     #005b94;
  --accent-soft:  rgba(10, 147, 220, .14);
  --gold:         #ffc043;

  --grad:         linear-gradient(135deg, #0a93dc 0%, #0078c0 50%, #005b94 100%);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --shadow:    0 10px 40px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .65);

  /* Telefon chekinishlari: ilovada status bar, kamera kesigi, pastki panel (saytda 0) */
  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --sal: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
  --sar: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));

  --header-h: calc(68px + var(--sat));
  --maxw: 1360px;
}

* { box-sizing: border-box; }

/* hidden atributi har doim ustun turadi (masalan .tv-overlay { display: grid } uni bosib ketmasin) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a4255; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------------- Header ---------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 8, 12, .92), rgba(7, 8, 12, 0));
}

.header.scrolled {
  background: rgba(9, 11, 16, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(10, 147, 220, .4);
}

.logo-mark svg { width: 17px; height: 17px; }

.logo span { color: #fff; }
.logo span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .18s, background .18s;
  white-space: nowrap;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, .09); }

.search {
  position: relative;
  flex: 0 1 340px;
  min-width: 0;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}

.search input::placeholder { color: var(--text-faint); }
.search input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .08); }

.search svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-faint);
  pointer-events: none;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-faint);
  transition: .18s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--grad); color: #fff; }


/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}

.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-bg { transform: scale(1); }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(7, 8, 12, .55) 45%, rgba(7, 8, 12, .25) 100%),
    linear-gradient(to right, rgba(7, 8, 12, .92) 0%, rgba(7, 8, 12, .45) 55%, rgba(7, 8, 12, .1) 100%);
}

/* Slayderning o'ng tomonidagi poster, foniga yumshoq singib ketadi */
.hero-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(48%, 660px);
  z-index: 1;
  overflow: hidden;
}

.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(7, 8, 12, .72) 28%, rgba(7, 8, 12, .15) 100%),
    linear-gradient(to top, var(--bg) 1%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 56px;
}

.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(10, 147, 220, .3);
  color: #ff8095;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.6vw, 66px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 800;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.hero p {
  margin: 0 0 28px;
  color: #c3cad8;
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 1.65;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots {
  position: absolute;
  bottom: 28px;
  right: clamp(16px, 4vw, 48px);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .25);
  transition: .25s;
}

.hero-dots button.is-active { background: var(--accent); width: 40px; box-shadow: 0 0 12px rgba(10, 147, 220, .7); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .18s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(10, 147, 220, .35);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(10, 147, 220, .5); }

.btn-ghost {
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.btn-icon { width: 46px; padding: 0; border-radius: 50%; }

.btn.is-fav { background: var(--accent-soft); border-color: var(--accent); color: #ff8095; }
.btn.is-fav svg { fill: currentColor; }

/* ---------------- Sections & rows ---------------- */

.section { padding: 40px 0 8px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 750;
  letter-spacing: -.03em;
}

.section-head .bar {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--grad);
  flex-shrink: 0;
}

/* "Hammasi" havolasi sarlavha yonida */
.row-all {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-faint);
  transition: color .18s;
  white-space: nowrap;
}

.row-all:hover { color: var(--accent); }
.row-all + .row-nav { margin-left: 14px; }

.row-nav { margin-left: auto; display: flex; gap: 8px; }

.row-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: .18s;
}

.row-nav button:hover { background: var(--accent); color: #fff; border-color: transparent; }
.row-nav svg { width: 15px; height: 15px; }

.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.row::-webkit-scrollbar { display: none; }

.row .card { flex: 0 0 clamp(140px, 17vw, 195px); }

/* ---------------- Card ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card { position: relative; }

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}

.card:hover .card-poster {
  transform: translateY(-6px) scale(1.025);
  box-shadow: var(--shadow-lg);
}

.card-poster img,
.card-poster .poster-art,
.mv-poster img,
.mv-poster .poster-art {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Haqiqiy poster gradient zaxirasi ustida turadi.
   poster-art ga z-index: 0 berilgan — shunda uning ichidagi matn
   o'z qatlamida qolib, rasm ustiga chiqib ketmaydi. */
.card-poster .poster-art,
.mv-poster .poster-art { z-index: 0; }

.card-poster .poster-img,
.mv-poster .poster-img { z-index: 1; }

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 6, 10, .92) 0%, rgba(5, 6, 10, .25) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .28s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card:hover .card-overlay { opacity: 1; }

.card-play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(10, 147, 220, .55);
  transform: scale(.7);
  transition: transform .28s cubic-bezier(.2, 1.4, .4, 1);
}

.card:hover .card-play { transform: scale(1); }
.card-play svg { width: 18px; height: 18px; margin-left: 2px; fill: #fff; }

.badge-rating {
  position: absolute;
  top: 9px; left: 9px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(5, 7, 12, .78);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(255, 192, 67, .22);
}

.badge-rating svg { width: 11px; height: 11px; fill: var(--gold); }

.badge-type {
  position: absolute;
  top: 9px; right: 9px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(5, 7, 12, .78);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #dfe4ee;
  border: 1px solid var(--line);
}

.card-body { padding: 11px 2px 0; }

.card-title {
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}

.card:hover .card-title { color: #ff6478; }

.card-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* Sevimlilardan o'chirish tugmasi */
.card-wrap { position: relative; }

.card-remove {
  position: absolute;
  top: 9px; right: 9px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(5, 7, 12, .85);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #dfe4ee;
  opacity: 0;
  transform: scale(.8);
  transition: .2s;
  z-index: 4;
}

.card-wrap:hover .card-remove { opacity: 1; transform: none; }
.card-remove:hover { background: var(--accent); border-color: transparent; color: #fff; }
.card-remove svg { width: 14px; height: 14px; }
.card-wrap .badge-type { display: none; }

/* Procedural poster (rasm bo'lmaganda) */
.poster-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  overflow: hidden;
}

.poster-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(255, 255, 255, .2), transparent 55%),
    radial-gradient(90% 60% at 10% 90%, rgba(0, 0, 0, .5), transparent 60%);
}

.poster-art::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 9px);
}

.poster-art .pa-title {
  position: relative;
  z-index: 2;
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}

.poster-art .pa-year {
  position: relative;
  z-index: 2;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: .75;
}

/* ---------------- Filters / catalog ---------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  transition: .18s;
  white-space: nowrap;
}

.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(10, 147, 220, .3); }

.filter-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  width: 100%;
  margin-bottom: -2px;
}

.select {
  height: 36px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a1b3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.select:focus { border-color: var(--accent); }
.select option { background: var(--surface-2); color: var(--text); }

.result-count { font-size: 13.5px; color: var(--text-faint); margin-left: auto; }

/* ---------------- Empty state ---------------- */

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-faint);
}

.empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}

.empty-icon svg { width: 28px; height: 28px; color: var(--text-faint); }
.empty h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); font-weight: 650; }
.empty p { margin: 0; font-size: 14px; }

/* ---------------- Movie page ---------------- */

.mv-hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 40px;
  overflow: hidden;
}

.mv-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

/* Poster rasmi fon sifatida — xiralashtirilgan holda */
.mv-hero-bg.has-art {
  background-position: center 30%;
  filter: blur(34px) saturate(1.25) brightness(.75);
  transform: scale(1.15);
}

.mv-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(7, 8, 12, .78) 50%, rgba(7, 8, 12, .6) 100%);
}

.mv-hero .wrap { position: relative; z-index: 2; }

.mv-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.mv-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}

.mv-poster img, .mv-poster .poster-art { width: 100%; height: 100%; object-fit: cover; }

.mv-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mv-sub {
  color: var(--text-faint);
  font-size: 15px;
  margin: -6px 0 16px;
  font-weight: 500;
}

.mv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.tag {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: #cdd4e2;
  transition: .18s;
}

a.tag:hover { background: var(--accent-soft); border-color: var(--accent); color: #ff8095; }

.tag-rating { background: rgba(255, 192, 67, .13); border-color: rgba(255, 192, 67, .3); color: var(--gold); font-weight: 700; }

.tag { display: inline-flex; align-items: center; gap: 5px; }
.tag svg { width: 12px; height: 12px; fill: currentColor; }

.mv-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #c3cad8;
  max-width: 760px;
  margin: 0 0 26px;
}

.mv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.mv-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.mv-info-item { padding: 14px 16px; background: rgba(20, 24, 34, .8); backdrop-filter: blur(10px); }

.mv-info-item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.mv-info-item dd { margin: 0; font-size: 14px; font-weight: 550; }

/* Player */

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-wrap iframe, .player-wrap video { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.player-tabs { display: flex; gap: 7px; margin-bottom: 14px; }

.player-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 12px;
}

.player-note { margin: 0; font-size: 13.5px; color: var(--text-faint); }

.player-link {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-dim);
  margin-left: auto;
  transition: color .18s;
}

.player-link:hover { color: var(--accent); }

.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 24px;
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(0, 91, 148, .18), transparent 70%),
    var(--bg-2);
}

.player-placeholder .pp-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 10px 34px rgba(10, 147, 220, .4);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 34px rgba(10, 147, 220, .4); }
  50%      { box-shadow: 0 10px 52px rgba(10, 147, 220, .7); }
}

.player-placeholder .pp-icon svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.player-placeholder h3 { margin: 0; font-size: 16.5px; font-weight: 650; }
.player-placeholder p { margin: 0; font-size: 13.5px; color: var(--text-faint); max-width: 420px; }

.cast-list { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------------- Footer ---------------- */

.footer {
  margin-top: 70px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: 36px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer p { margin: 12px 0 0; color: var(--text-dim); font-size: 14px; line-height: 1.65; max-width: 380px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--text-dim); font-size: 14px; transition: color .18s; }
.footer ul a:hover { color: var(--accent); }

.footer-genres { display: flex; flex-wrap: wrap; gap: 7px; }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------------- Animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(10, 147, 220, .45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: .28s;
  z-index: 90;
}

.to-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ---------------- Pastki navbar (telefon) ---------------- */

.tabbar { display: none; }

@media (max-width: 900px) {
  /* Telefonda yuqoridagi menyu o‘rniga pastki panel ishlaydi */
  .nav { display: none; }

  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: flex;
    align-items: stretch;
    background: rgba(10, 12, 18, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--sab);
  }

  .tabbar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px 8px;
    color: var(--text-faint);
    transition: color .18s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  /* Faol bo'limning tepasidagi chiziq */
  .tabbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 26px;
    height: 2.5px;
    border-radius: 0 0 3px 3px;
    background: var(--grad);
    transition: transform .25s cubic-bezier(.2, .9, .3, 1);
  }

  .tabbar-item.is-active { color: #fff; }
  .tabbar-item.is-active::before { transform: translateX(-50%) scaleX(1); }
  .tabbar-item:active { color: #fff; }

  .tabbar-icon { position: relative; display: block; line-height: 0; }
  .tabbar-icon svg { width: 23px; height: 23px; }

  .tabbar-item.is-active .tabbar-icon svg { stroke: var(--accent); }

  .tabbar-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabbar-badge {
    position: absolute;
    top: -5px; right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(10, 12, 18, .92);
  }

  /* Kontent panel ostida qolib ketmasligi uchun */
  body { padding-bottom: calc(62px + var(--sab)); }

  /* "Yuqoriga" tugmasi panel ustiga ko'chadi */
  .to-top { bottom: calc(74px + var(--sab)); }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .search { flex-basis: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Yuqoridagi menyu o'rniga pastki navbar ishlaydi —
     tegishli qoidalar "Pastki navbar" bo'limida */

  .mv-layout { grid-template-columns: 1fr; }
  .mv-poster { width: 190px; }
  .hero-inner { padding-top: 120px; }
  .hero-art { width: 58%; }
}

@media (max-width: 640px) {
  .logo span { font-size: 18px; }
  .search { flex: 1; }
  .search input { height: 36px; }
  .hero-art { width: 100%; opacity: .5; }
  .hero-art::after {
    background:
      linear-gradient(to top, var(--bg) 6%, rgba(7, 8, 12, .5) 55%, rgba(7, 8, 12, .3) 100%);
  }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .row .card { flex-basis: 138px; }
  .hero { min-height: 74vh; }
  .btn { height: 42px; padding: 0 18px; font-size: 13.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-count { width: 100%; margin-left: 0; }
}

/* Juda tor ekranlarda logotip matnini yashiramiz — til tugmalari joy oladi */
@media (max-width: 460px) {
  .header .wrap { gap: 10px; }
  .lang-btn { padding: 5px 9px; font-size: 11.5px; }
  .search input { padding-left: 36px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   Yangi bo'limlar: Telekanallar, Sport, Obunalar, Yuklab olinganlar
   ================================================================ */

/* ---------------- "Yana" pastki menyusi ---------------- */

.sheet-wrap { position: fixed; inset: 0; z-index: 200; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s;
}

.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 10px 16px calc(18px + var(--sab));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.sheet-wrap.is-open .sheet-backdrop { opacity: 1; }
.sheet-wrap.is-open .sheet { transform: none; }

.sheet-grip {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin: 2px auto 14px;
}

.sheet-list { display: flex; flex-direction: column; gap: 2px; }

.sheet-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 550;
  transition: background .15s;
}

.sheet-item:active { background: rgba(255, 255, 255, .07); }
.sheet-icon { line-height: 0; color: var(--text-dim); }
.sheet-icon svg { width: 20px; height: 20px; }

.sheet-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8095;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.sheet-count:empty { display: none; }
.sheet-sep { height: 1px; background: var(--line); margin: 8px 12px; }

.sheet-lang { display: flex; gap: 8px; padding: 14px 12px 4px; }

.sheet-lang .lang-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}

.sheet-close { width: 100%; margin-top: 12px; }

/* ---------------- Telekanallar ---------------- */

.tv-stage { position: relative; }

.tv-now {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 14.5px;
}

.tv-now:empty { display: none; }
.tv-now-cat { color: var(--text-faint); font-size: 13px; }

.tv-live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(10, 147, 220, .6);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(10, 147, 220, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(10, 147, 220, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 147, 220, 0); }
}

.tv-live-label {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(10, 147, 220, .3);
  color: #ff8095;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

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

.tv-card { text-align: left; padding: 0; }

.tv-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.tv-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 70% 15%, rgba(255, 255, 255, .16), transparent 60%);
}

.tv-thumb-name {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.tv-card:hover .tv-thumb { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tv-card.is-playing .tv-thumb { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(10, 147, 220, .35); }

.tv-onair {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.8s infinite;
}

.tv-card-body { display: block; padding: 9px 2px 0; }
.tv-card-name { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.tv-card-cat { display: block; font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* ---------------- Sport ---------------- */

.m-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }

.match {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s;
}

.match:hover { border-color: var(--line-strong); }
.match.is-live { border-color: rgba(10, 147, 220, .4); background: linear-gradient(180deg, rgba(10, 147, 220, .07), transparent 60%), var(--surface); }

.m-league {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.m-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }

.m-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14.5px; font-weight: 600; }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team-away { justify-content: flex-end; text-align: right; }

.m-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }

.m-logo-empty {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.m-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 78px; }

.m-score { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.m-score.is-live { color: var(--accent); }
.m-vs { font-size: 17px; color: var(--text-faint); }
.m-time { font-size: 13px; font-weight: 650; color: var(--text-dim); }
.m-status { font-size: 11.5px; color: var(--text-faint); }

.m-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
}

.m-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.8s infinite;
}

/* Yangiliklar */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.news-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.news-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta { margin-top: auto; font-size: 12.5px; color: var(--text-faint); padding-top: 4px; }
.news-card:hover .news-meta { color: var(--accent); }

/* ---------------- Obunalar ---------------- */

.plans-head { text-align: center; max-width: 560px; margin: 10px auto 26px; }
.plans-head h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.plans-head p { margin: 0; color: var(--text-dim); font-size: 15.5px; }

.plan-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  width: fit-content;
  margin: 0 auto 26px;
}

.plan-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: .18s;
  white-space: nowrap;
}

.plan-toggle button.is-active { background: var(--grad); color: #fff; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.plan {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s;
}

.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.plan.is-accent {
  border-color: rgba(10, 147, 220, .45);
  background: linear-gradient(180deg, rgba(10, 147, 220, .08), transparent 45%), var(--surface);
}

.plan.is-current { border-color: var(--accent-2); }

.plan-tag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

.plan-name { margin: 0 0 5px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.plan-tagline { margin: 0 0 18px; font-size: 13.5px; color: var(--text-faint); }

.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.plan-amount { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-cur { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.plan-per { font-size: 13px; color: var(--text-faint); }

.plan-features { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }

.plan-features li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  color: #c3cad8;
  line-height: 1.45;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.85);
  border-radius: 1px;
}

.plan-btn { width: 100%; }
.plan-btn:disabled { opacity: .55; cursor: default; transform: none; }

.plans-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px auto 0;
  padding: 15px 18px;
  border-radius: var(--r);
  background: rgba(255, 192, 67, .08);
  border: 1px solid rgba(255, 192, 67, .25);
  max-width: 680px;
}

.plans-notice p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #e8d5a8; }
.plans-notice-icon { line-height: 0; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.plans-notice-icon svg { width: 18px; height: 18px; }

/* Solishtirish jadvali */

.table-scroll { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }

.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text-dim); }
.cmp thead th { background: var(--surface-2); font-weight: 700; font-size: 13.5px; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .015); }
.cmp-yes { color: #4ade80; font-weight: 700; }
.cmp-no { color: var(--text-faint); }

/* Xabar oynasi */

.toast {
  position: fixed;
  left: 50%; bottom: 90px;
  transform: translate(-50%, 16px);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Yuklab olinganlar ---------------- */

.dl-list { display: flex; flex-direction: column; gap: 12px; }

.dl-row {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s;
}

.dl-row:hover { border-color: var(--line-strong); }
.dl-poster .card-poster { border-radius: 9px; box-shadow: none; }
.dl-poster:hover .card-poster { transform: none; }

.dl-info { min-width: 0; }
.dl-title { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 4px; }
.dl-title:hover { color: #ff6478; }
.dl-meta { font-size: 13px; color: var(--text-faint); }
.dl-file { margin-top: 5px; font-size: 12.5px; color: var(--text-dim); word-break: break-all; }
.dl-warn { margin-top: 5px; font-size: 12.5px; color: #d9a441; line-height: 1.45; }

.dl-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }

.dl-badge {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 192, 67, .1);
  border: 1px solid rgba(255, 192, 67, .25);
  color: var(--gold);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dl-row { grid-template-columns: 56px 1fr; gap: 12px; }
  .dl-actions { grid-column: 1 / -1; flex-direction: row; }
  .dl-actions .btn, .dl-badge { flex: 1; }
  .tv-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 11px; }
  .m-team { font-size: 13px; gap: 7px; }
  .m-logo { width: 22px; height: 22px; }
  .plans-head h1 { font-size: 26px; }
}

/* ---------------- TV pleyer: ijro va ovoz tugmalari ---------------- */

/* Brauzer avtoijroga ruxsat bermasa chiqadigan katta tugma */
.tv-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, .55);
  backdrop-filter: blur(2px);
  padding: 0;
}

.tv-overlay-btn {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(10, 147, 220, .5);
  transition: transform .2s;
}

.tv-overlay:hover .tv-overlay-btn { transform: scale(1.07); }
.tv-overlay-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* Ovozsiz ijro ketayotganda chiqadigan tugma */
.tv-unmute {
  position: absolute;
  left: 14px; bottom: 62px;
  z-index: 4;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(5, 7, 12, .85);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--shadow);
  transition: background .18s;
}

.tv-unmute:hover { background: var(--accent); border-color: transparent; }

/* ---------------- TV: logotiplar, guruhlar, katta ekran ---------------- */

.tv-group { margin-bottom: 30px; }

/* Logotip oq-kulrang fonda markazda */
.tv-thumb-logo {
  background: linear-gradient(160deg, #f4f6fa 0%, #dfe4ec 100%);
  padding: 14px 18px;
}

.tv-thumb-logo::after { display: none; }

.tv-thumb-logo img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tv-thumb-logo .tv-thumb-name { display: none; }

/* Logotip yuklanmasa — nomi ko'rinadi */
.tv-thumb-logo.is-broken { background: linear-gradient(150deg, var(--fallback, #2a3142), #0a0d14); }
.tv-thumb-logo.is-broken img { display: none; }
.tv-thumb-logo.is-broken .tv-thumb-name { display: block; }

/* Bosh holatdagi ijro tugmasi butun maydonni egallaydi */
.tv-start { width: 100%; cursor: pointer; }
.tv-start:hover .pp-icon { transform: scale(1.06); }
.tv-start .pp-icon { transition: transform .2s; }

/* Katta ekran tugmasi */
.tv-fs {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(5, 7, 12, .7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background .18s;
}

.tv-fs:hover { background: var(--accent); border-color: transparent; }
.tv-fs svg { width: 18px; height: 18px; }

/* Pleyer to'liq ekranda */
#tvPlayer:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; width: 100%; height: 100%; }
#tvPlayer:-webkit-full-screen { border-radius: 0; border: 0; width: 100%; height: 100%; }
#tvPlayer:fullscreen video { object-fit: contain; }

/* Kanal tanlanganda pleyer qotirilgan sarlavha ostida qolmasin */
.tv-stage { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------------- Sport: sport turlari bo'yicha bo'limlar ---------------- */

.sport-head { margin: 6px 0 22px; }
.sport-head h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.sport-head p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.sport-sec { margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 16px); }

.sport-sec-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.sport-sec-head h2 { margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 750; letter-spacing: -.03em; }

.sport-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(10, 147, 220, .25);
  color: #ff8095;
  flex-shrink: 0;
}

.sport-ico svg { width: 20px; height: 20px; }

.sport-live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8095;
  font-size: 12px;
  font-weight: 700;
}

.sport-live-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.8s infinite;
}

.sport-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--text-faint);
  font-size: 14px;
}

.sport-sec .m-list { margin-bottom: 12px; }
.sport-more { width: 100%; }

.m-day { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.m-win span { color: #fff; font-weight: 750; }
.m-win span::after { content: ' ✓'; color: #4ade80; font-weight: 800; }

/* Bugun kechqurun boshlanadigan futbol o'yinlari biroz ajralib turadi */
.match.is-evening { background: linear-gradient(180deg, rgba(0, 91, 148, .09), transparent 55%), var(--surface); }

/* Formula 1 */
.f1-name { font-size: 16px; font-weight: 750; letter-spacing: -.02em; margin: -2px 0 12px; }

.f1-podium {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255, 192, 67, .07);
  border: 1px solid rgba(255, 192, 67, .2);
}

.f1-podium-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.f1-pos { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.f1-pos b { color: var(--gold); }
.f1-pos img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }

.f1-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }

.f1-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: 13px;
}

.f1-session.is-done { opacity: .55; }
.f1-session.is-live { border-color: rgba(10, 147, 220, .45); }
.f1-s-name { font-weight: 650; }
.f1-s-time { color: var(--text-dim); white-space: nowrap; }

/* ---------------- O'z YouTube pleyerimiz (js/ytplayer.js) ---------------- */

.player-wrap.ytp {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  background: #000;
  outline: none;
}

.ytp-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.ytp-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Boshlanishdan oldingi ekran — butunlay bizniki */
.ytp-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: #05060a;
}

.ytp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ytp-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)),
    linear-gradient(to top, rgba(5, 6, 10, .85) 0%, transparent 45%);
}

.ytp-big {
  position: relative;
  z-index: 1;
  width: 82px; height: 82px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 40px rgba(10, 147, 220, .55);
  transition: transform .2s;
}

.ytp-big svg { width: 32px; height: 32px; margin-left: 5px; }
.ytp-cover:hover .ytp-big { transform: scale(1.07); }

.ytp-cover-title {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 1;
  text-align: left;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 750;
  letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}

.ytp-cover.is-loading .ytp-big { animation: ytpPulse 1s ease-in-out infinite; }
@keyframes ytpPulse { 50% { transform: scale(.9); opacity: .75; } }

/* Tugash / xato ekrani */
.ytp-msg {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 10, .92);
  text-align: center;
  padding: 20px;
}

.ytp-msg-inner p { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; max-width: 380px; }

.ytp-replay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
}

.ytp-replay svg {
  width: 64px; height: 64px;
  padding: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 10px 34px rgba(10, 147, 220, .45);
}

/* Boshqaruv paneli — video OSTIDA */
.ytp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #0f1219, #0a0c12);
  border-top: 1px solid var(--line);
}

.ytp-btn {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #e9edf5;
  transition: background .15s, color .15s;
}

.ytp-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ytp-btn svg { width: 21px; height: 21px; }
#ytpPlay svg { width: 19px; height: 19px; }

.ytp-time {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 38px;
  text-align: center;
}

.ytp-seek, .ytp-vol {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, #0078c0 var(--p, 0%), rgba(255, 255, 255, .16) var(--p, 0%));
  cursor: pointer;
  outline: none;
}

.ytp-seek { flex: 1; min-width: 60px; }
.ytp-vol { width: 80px; background: rgba(255, 255, 255, .25); }

.ytp-seek::-webkit-slider-thumb, .ytp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 147, 220, .45);
}

.ytp-seek::-moz-range-thumb, .ytp-vol::-moz-range-thumb {
  width: 14px; height: 14px; border: 0;
  border-radius: 50%;
  background: #fff;
}

.ytp.is-muted #ytpMute { color: var(--accent); }


@media (max-width: 640px) {
  .ytp-hide-sm { display: none; }
  .ytp-bar { gap: 2px; padding: 6px 8px; }
  .ytp-time { min-width: 34px; font-size: 11.5px; }
  .ytp-big { width: 66px; height: 66px; }
  .ytp-big svg { width: 26px; height: 26px; }
}

/* ---------------- Pleyer: YouTube belgilarini kesish, pauza, 16:9 katta ekran ---------------- */

/* Ramka sahnadan yuqori va pastga --crop qadar kattaroq. Video eniga moslashadi va
   sahnani aniq to'ldiradi, YouTube sarlavhasi va pastki paneli esa ko'rinmas chiziqqa tushadi. */
.ytp-stage { --crop: max(72px, 14%); }

.ytp-crop {
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * var(--crop));
  bottom: calc(-1 * var(--crop));
  pointer-events: none;           /* sichqoncha YouTube'ga yetmaydi — hover panellari ochilmaydi */
}

.ytp-crop iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Video ustiga bosish qatlami */
.ytp-click { position: absolute; inset: 0; z-index: 1; cursor: pointer; }

/* Pauza ekrani */
.ytp-pause {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(5, 6, 10, .6);
  cursor: pointer;
}

.ytp-pause:hover .ytp-big { transform: scale(1.07); }

/* ---- Katta ekran: video aniq 16:9, panel ostida ---- */

.player-wrap.ytp:fullscreen,
.player-wrap.ytp.ytp-pseudo-fs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #000;
}

.player-wrap.ytp:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}

/* Video butun ekran bo'yi yoki eni bo'yicha maksimal 16:9; panel video USTIDA */
.player-wrap.ytp:fullscreen,
.player-wrap.ytp:-webkit-full-screen,
.player-wrap.ytp.ytp-pseudo-fs {
  position: relative;
  align-items: center;
  overflow: hidden;
}

.player-wrap.ytp:fullscreen .ytp-stage,
.player-wrap.ytp:-webkit-full-screen .ytp-stage,
.player-wrap.ytp.ytp-pseudo-fs .ytp-stage {
  flex: none;
  aspect-ratio: 16 / 9;
  width: min(var(--fsw, 100vw), calc(var(--fsh, 100vh) * 16 / 9));
  max-width: none;
  margin: 0;
}

/* "To'ldirish" rejimi: cho'zinchoq telefonda qora chetlar qolmaydi (chetlari biroz kesiladi) */
.player-wrap.ytp.ytp-fill:fullscreen .ytp-stage,
.player-wrap.ytp.ytp-fill:-webkit-full-screen .ytp-stage,
.player-wrap.ytp.ytp-fill.ytp-pseudo-fs .ytp-stage {
  width: max(var(--fsw, 100vw), calc(var(--fsh, 100vh) * 16 / 9));
}

.ytp-fit { display: none; }
.player-wrap.ytp:fullscreen .ytp-fit,
.player-wrap.ytp:-webkit-full-screen .ytp-fit,
.player-wrap.ytp.ytp-pseudo-fs .ytp-fit { display: grid; }

.player-wrap.ytp:fullscreen .ytp-bar,
.player-wrap.ytp:-webkit-full-screen .ytp-bar,
.player-wrap.ytp.ytp-pseudo-fs .ytp-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  width: auto;
  padding: 28px max(16px, var(--sar)) max(12px, var(--sab)) max(16px, var(--sal));
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .5) 55%, transparent);
  border-top: 0;
  transition: opacity .3s, transform .3s;
}

.player-wrap.ytp.ytp-idle .ytp-bar { opacity: 0; transform: translateY(14px); pointer-events: none; }
.player-wrap.ytp.ytp-idle { cursor: none; }

/* iPhone uchun: CSS bilan butun ekran */
.player-wrap.ytp.ytp-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
}

/* Telefon tik turganda — 90° burilgan gorizontal ko'rinish */
.player-wrap.ytp.ytp-rotated {
  inset: auto;
  top: 0; left: 0;
  width: var(--fsw);
  height: var(--fsh);
  transform-origin: top left;
  transform: translateX(100vw) rotate(90deg);
}

html.ytp-lock, html.ytp-lock body { overflow: hidden; }

/* ---------------- Ko'rish holati belgilari: O'zbekcha / To'liq / Treyler ---------------- */

.badge-watch {
  position: absolute;
  left: 9px; bottom: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
  line-height: 1.2;
}

.badge-watch svg { width: 10px; height: 10px; fill: currentColor; }

.badge-watch.is-uz { background: linear-gradient(135deg, #16a34a, #0e7a38); color: #fff; box-shadow: 0 4px 14px rgba(22, 163, 74, .35); }
.badge-watch.is-full { background: rgba(22, 163, 74, .85); color: #fff; }
.badge-watch.is-trailer { background: rgba(5, 7, 12, .78); color: #c7cdd9; border: 1px solid var(--line-strong); padding-left: 9px; }

.tag-watch.is-uz, .tag-watch.is-full { background: rgba(22, 163, 74, .16); border-color: rgba(34, 197, 94, .4); color: #6ee7a0; font-weight: 700; }
.tag-watch.is-trailer { background: rgba(255, 255, 255, .06); border-color: var(--line-strong); color: var(--text-dim); font-weight: 650; }

/* Slayderda keng muqova butun fon bo'ylab */
.hero-bg.is-wide { background-size: cover; background-position: center 30%; }

/* ================================================================
   Logo, akkaunt tugmasi, intro, qidiruv va akkaunt sahifalari
   ================================================================ */

.logo-img { height: 32px; width: auto; display: block; }
.footer .logo-img { height: 30px; }

.account-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  line-height: 1;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 55%; height: 55%; }
.avatar.is-guest { background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); color: var(--text-dim); }
.account-btn:hover .avatar.is-guest, .account-btn.is-active .avatar.is-guest { color: #fff; border-color: var(--accent); }
.account-btn.is-in .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

@media (max-width: 900px) {
  .header .search { display: none; }
  .account-btn { margin-left: auto; }
}

@media (max-width: 380px) {
  .logo-img { height: 27px; }
}

/* ---------------- Intro animatsiya (4 s) ---------------- */

html.intro-lock, html.intro-lock body { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 50%, #0d1622 0%, #07080c 60%);
  transition: opacity .5s ease, visibility .5s;
}

.intro.is-out { opacity: 0; visibility: hidden; }

.intro-glow {
  position: absolute;
  width: min(80vw, 560px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 147, 220, .35), transparent 65%);
  filter: blur(20px);
  opacity: 0;
  animation: introGlow 4.5s ease-out forwards;
}

.intro-logo {
  position: relative;
  width: min(78vw, 460px);
  animation: introLogo 4.5s cubic-bezier(.2, .8, .2, 1) forwards;
}

/* avval faqat D belgisi, keyin yozuv chapdan o'ngga ochiladi */
.intro-logo img {
  width: 100%;
  display: block;
  clip-path: inset(0 81% 0 0 round 18%);
  animation: introReveal 4.5s cubic-bezier(.65, 0, .25, 1) forwards;
}

.intro-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  mix-blend-mode: overlay;
  -webkit-mask: url(../images/logo/logo.png) center / 100% auto no-repeat;
  mask: url(../images/logo/logo.png) center / 100% auto no-repeat;
  animation: introShine 4.5s ease-in-out forwards;
}

.intro-bar {
  position: absolute;
  left: 50%; bottom: max(64px, 12vh);
  width: min(46vw, 200px); height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.intro-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  animation: introBar 4.4s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes introGlow {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: .55; transform: scale(1.15); }
}

@keyframes introLogo {
  0%   { opacity: 0; transform: translateX(40.5%) scale(.55); }
  22%  { opacity: 1; transform: translateX(40.5%) scale(1.08); }
  32%  { transform: translateX(40.5%) scale(1); }
  42%  { transform: translateX(40.5%) scale(1); }
  70%  { transform: translateX(0) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1.03); }
}

@keyframes introReveal {
  0%, 42% { clip-path: inset(0 81% 0 0 round 18%); }
  72%, 100% { clip-path: inset(0 0 0 0 round 0%); }
}

@keyframes introShine {
  0%, 70% { background-position: 150% 0; }
  100% { background-position: -60% 0; }
}

@keyframes introBar { to { transform: scaleX(1); } }

/* ---------------- Qidiruv sahifasi ---------------- */

.s-page { padding-top: calc(var(--header-h) + 22px); min-height: 70vh; }

.s-field {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 8px 0 18px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: rgba(20, 24, 34, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transition: border-color .2s;
}

.s-field:focus-within { border-color: var(--accent); }
.s-field-icon { display: grid; color: var(--text-faint); }
.s-field-icon svg { width: 20px; height: 20px; }

.s-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.s-field input::placeholder { color: var(--text-faint); }
.s-field input::-webkit-search-cancel-button { display: none; }

.s-clear {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-dim);
}

.s-clear:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.s-clear svg { width: 18px; height: 18px; }

.s-block { margin-bottom: 30px; }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.s-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

.s-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

.s-genre {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 78px;
  padding: 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  font-weight: 700;
  font-size: 15px;
  background:
    radial-gradient(120% 120% at 100% 0%, hsla(calc(185 + var(--h) / 8), 85%, 45%, .5), transparent 60%),
    linear-gradient(160deg, #182130, #0e131c);
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}

.s-genre:hover { transform: translateY(-2px); border-color: rgba(10, 147, 220, .5); }
.s-count { margin: 0 0 14px; }

@media (max-width: 640px) {
  .s-page { padding-top: calc(var(--header-h) + 10px); }
  .s-field { height: 50px; margin-bottom: 20px; }
  .s-genres { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Akkaunt: kirish ---------------- */

.acc-page { padding-top: calc(var(--header-h) + 28px); padding-bottom: 40px; min-height: 80vh; }
.page-account .footer { display: none; }

.acc-auth-wrap { display: grid; place-items: start center; }

.acc-auth {
  width: 100%;
  max-width: 440px;
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #121823, #0c1017);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.acc-auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.acc-auth-logo { width: 52px; height: 52px; border-radius: 14px; }
.acc-auth h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; }
.acc-sub { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; }

.acc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}

.acc-tabs button { height: 38px; border-radius: 9px; font-size: 14px; font-weight: 650; color: var(--text-dim); }
.acc-tabs button.is-active { background: var(--grad); color: #fff; }

.acc-form { display: flex; flex-direction: column; gap: 8px; }
.acc-label { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-top: 4px; }

.acc-input, .acc-phone {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
}

.acc-input { padding: 0 14px; }
.acc-input:focus, .acc-phone:focus-within { border-color: var(--accent); }

.acc-phone { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.acc-phone span { color: var(--text-dim); font-weight: 650; }
.acc-phone input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 17px; letter-spacing: .03em; }

.acc-code { text-align: center; font-size: 24px; letter-spacing: .5em; font-weight: 700; }
.acc-submit { width: 100%; margin-top: 8px; height: 48px; }

.acc-google {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  gap: 10px;
  background: #fff;
  color: #1f2937;
  font-weight: 650;
}

.acc-google:hover { background: #f1f5f9; }
.acc-google svg { width: 22px; height: 22px; }

.acc-error { margin: 2px 0 0; color: #f87171; font-size: 13px; }
.acc-sent { margin: 0; color: var(--text-dim); font-size: 14px; }
.acc-sent b { color: var(--text); }

.acc-demo-code {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 147, 220, .12);
  border: 1px dashed rgba(10, 147, 220, .55);
  color: #9fd8f7;
  font-size: 14px;
}

.acc-demo-code b { color: #fff; font-size: 18px; letter-spacing: .12em; }

.acc-row-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.acc-link { color: #4cb8f0; font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.acc-link:hover { color: #8fd3f7; }

.acc-note {
  display: flex;
  gap: 9px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.45;
}

.acc-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.acc-terms { margin: 14px 0 0; text-align: center; color: var(--text-faint); font-size: 12px; }

.acc-last { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.acc-last-label { font-size: 13px; color: var(--text-dim); font-weight: 600; }

.acc-last-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  background: rgba(10, 147, 220, .08);
  border: 1px solid rgba(10, 147, 220, .4);
  transition: background .2s;
}

.acc-last-card:hover { background: rgba(10, 147, 220, .15); }
.acc-last-card .avatar { width: 44px; height: 44px; background: #fff; color: #0a93dc; }
.acc-last-card .avatar svg { width: 60%; height: 60%; }
.acc-last-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-last-info b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-last-info small { color: var(--text-dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chev { display: grid; color: var(--text-faint); }
.acc-chev svg { width: 18px; height: 18px; }

.acc-lang { padding: 2px; }

/* ---------------- Akkaunt: menyu va bo'limlar ---------------- */

.acc-layout { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }

.acc-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }

.acc-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 147, 220, .18), rgba(0, 91, 148, .06) 60%), var(--surface);
  border: 1px solid var(--line);
}

.acc-profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-profile-info b { font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-profile-info small { color: var(--text-dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.acc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.acc-stat small { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.acc-stat b { font-size: 16px; white-space: nowrap; }
.acc-stat b span { font-size: 12px; color: var(--text-dim); font-weight: 600; }

.acc-menu {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.acc-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  border-radius: 12px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s;
}

.acc-menu-item:hover { background: rgba(255, 255, 255, .05); }
.acc-menu-item.is-active { background: rgba(10, 147, 220, .14); }
.acc-menu-item.is-active .acc-menu-icon { background: var(--grad); color: #fff; }

.acc-menu-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #6cc4f2;
  flex-shrink: 0;
}

.acc-menu-icon svg { width: 18px; height: 18px; }
.acc-menu-icon svg[stroke] { stroke: currentColor; }
.acc-menu-label { flex: 1; }

.acc-badge {
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.acc-logout { color: #f87171; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.acc-logout .acc-menu-icon { color: #f87171; background: rgba(248, 113, 113, .1); }

.acc-panel { min-width: 0; }
.acc-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.acc-panel-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.acc-back { display: none; align-items: center; gap: 4px; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.acc-back svg { width: 20px; height: 20px; }
.acc-panel-body { display: flex; flex-direction: column; gap: 14px; }

.acc-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.acc-card h3, .acc-h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.acc-h3-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-h3-row .acc-h3 { margin: 6px 0 0; }
.acc-muted { margin: 0; color: var(--text-dim); font-size: 14px; }
.acc-muted b { color: var(--text); }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.acc-plan-card.is-paid { background: linear-gradient(135deg, rgba(10, 147, 220, .22), rgba(0, 91, 148, .08) 70%), var(--surface); border-color: rgba(10, 147, 220, .35); }
.acc-plan-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-plan-top small { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.acc-plan-top h3 { margin: 0; font-size: 22px; }
.acc-plan-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; }
.acc-plan-icon svg { width: 24px; height: 24px; }
.acc-plan-price { margin-left: auto; font-weight: 750; font-size: 16px; text-align: right; }
.acc-plan-price small { color: var(--text-dim); font-weight: 600; }
.acc-plan-card .acc-muted + .acc-muted { margin-top: 4px; }

.acc-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  cursor: pointer;
}

.acc-toggle + .acc-toggle, .acc-toggle + .acc-setting, .acc-setting + .acc-setting, .acc-h3 + .acc-toggle { border-top: 1px solid var(--line); }
.acc-toggle span { display: flex; flex-direction: column; }
.acc-toggle b { font-size: 14.5px; font-weight: 600; }
.acc-toggle small { color: var(--text-dim); font-size: 12.5px; }
.acc-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.acc-toggle i {
  position: relative;
  flex-shrink: 0;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  transition: background .2s;
}

.acc-toggle i::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.acc-toggle input:checked + i { background: var(--accent); }
.acc-toggle input:checked + i::after { transform: translateX(20px); }
.acc-toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.acc-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.acc-setting b { font-size: 14.5px; font-weight: 600; }

.acc-balance { background: linear-gradient(135deg, rgba(10, 147, 220, .25), rgba(0, 91, 148, .06) 70%), var(--surface); }
.acc-balance small { color: var(--text-dim); font-weight: 600; }
.acc-balance-sum { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.acc-balance-sum span { font-size: 18px; color: var(--text-dim); font-weight: 650; }

.acc-topup { display: flex; flex-direction: column; gap: 8px; }
.acc-topup h3 { margin-bottom: 4px; }
.acc-topup .acc-phone input { font-size: 18px; font-weight: 650; }

.acc-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc-method { position: relative; }
.acc-method input { position: absolute; opacity: 0; }

.acc-method span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: .15s;
}

.acc-method input:checked + span { border-color: var(--accent); background: rgba(10, 147, 220, .14); color: #fff; }

.acc-list { display: flex; flex-direction: column; gap: 8px; }

.acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.acc-item-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(10, 147, 220, .12); color: #6cc4f2; flex-shrink: 0; }
.acc-item-icon svg { width: 20px; height: 20px; }
.acc-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.acc-item-main b { font-size: 14.5px; font-weight: 650; }
.acc-item-main small { color: var(--text-dim); font-size: 12.5px; }
.acc-item-main p { margin: 2px 0; color: var(--text-dim); font-size: 13.5px; }

.acc-pill { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--text-dim); }
.acc-pill.is-on { background: rgba(22, 163, 74, .16); color: #6ee7a0; }
.acc-pill svg { width: 14px; height: 14px; display: block; }

.acc-amount { flex-shrink: 0; font-weight: 750; font-size: 14.5px; color: #f1a4a4; white-space: nowrap; }
.acc-amount.is-plus { color: #6ee7a0; }

.acc-notif.is-unread { border-color: rgba(10, 147, 220, .45); background: linear-gradient(90deg, rgba(10, 147, 220, .1), transparent 60%), var(--surface); }

.acc-promo-row { display: flex; gap: 8px; }
.acc-promo-row .acc-input { flex: 1; min-width: 0; }
#promoInput { text-transform: uppercase; }
.acc-promo-row .btn { height: 50px; flex-shrink: 0; }

.acc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  text-align: center;
  border-radius: 18px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
}

.acc-empty svg { width: 34px; height: 34px; color: var(--text-faint); }
.acc-empty b { color: var(--text); font-size: 16px; }
.acc-empty p { margin: 0 0 8px; font-size: 14px; }

.acc-logout-btn { gap: 8px; color: #f87171; align-self: flex-start; }
.acc-logout-btn svg { width: 18px; height: 18px; }

.acc-about-logo { width: min(240px, 70%); margin-bottom: 14px; }
.acc-about p { margin: 0 0 12px; color: var(--text-dim); line-height: 1.6; }
.acc-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-feats li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.acc-feats svg { width: 18px; height: 18px; color: #6ee7a0; flex-shrink: 0; }
.acc-copy { text-align: center; font-size: 12.5px; }

@media (max-width: 899px) {
  .acc-page { padding-top: calc(var(--header-h) + 12px); }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-layout.has-section .acc-side { display: none; }
  .acc-layout:not(.has-section) .acc-panel { display: none; }
  .acc-back { display: inline-flex; }
  .acc-panel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .acc-panel-head h2 { font-size: 22px; }
  .acc-menu-item.is-active { background: none; }
  .acc-menu-item.is-active .acc-menu-icon { background: rgba(255, 255, 255, .06); color: #6cc4f2; }
  .acc-methods { grid-template-columns: repeat(2, 1fr); }
  .acc-auth { padding: 22px 18px 18px; border-radius: 20px; }
  .acc-balance-sum { font-size: 30px; }
}

/* ---------------- Butun ekran (Android ilova): chekinishlar ---------------- */

.header { padding-top: var(--sat); }
.wrap {
  padding-left: max(clamp(16px, 4vw, 48px), var(--sal));
  padding-right: max(clamp(16px, 4vw, 48px), var(--sar));
}
.tabbar { padding-left: var(--sal); padding-right: var(--sar); }
.player-wrap.ytp.ytp-pseudo-fs .ytp-bar { padding-top: 28px; }

/* ---------------- Pleyer: sifat tanlash ---------------- */

.ytp-q { position: relative; }
.ytp-q-label {
  position: absolute;
  right: 2px; top: 3px;
  padding: 0 3px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 13px;
  pointer-events: none;
}

.ytp-qmenu {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 8px);
  z-index: 8;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(14, 18, 26, .97);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.ytp-bar { position: relative; }
.ytp-qmenu-title { padding: 6px 10px 8px; font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

.ytp-qmenu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.ytp-qmenu button:hover { background: rgba(255, 255, 255, .07); }
.ytp-qmenu button.is-active { color: #4cb8f0; }
.ytp-qmenu button.is-active::after { content: '✓'; font-weight: 800; }
.ytp-qmenu small { color: var(--text-faint); font-weight: 600; font-size: 11.5px; }
.ytp-qmenu-note { margin: 4px 10px 6px; font-size: 11.5px; color: var(--text-faint); line-height: 1.4; }

/* ================================================================
   Slayder va akkaunt: kuchaytirilgan ko'rinish + 100px gacha moslashuv
   ================================================================ */

/* ---- Slayder ---- */

.hero-badge { color: #7fd0f7; background: rgba(10, 147, 220, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.hero-dots button { position: relative; overflow: hidden; }
.hero-dots button.is-active { background: rgba(255, 255, 255, .22); box-shadow: none; }
.hero-dots button.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left;
  animation: heroDotFill 3s linear forwards;
}
@keyframes heroDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-count {
  position: absolute;
  z-index: 3;
  right: max(clamp(16px, 4vw, 48px), var(--sar));
  bottom: 48px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
}
.hero-count b { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.hero .tag-watch svg { width: 11px; height: 11px; }

@media (max-width: 640px) {
  .hero { min-height: max(560px, 82svh); }
  .hero-slide { display: flex; align-items: flex-end; }
  .hero-slide .hero-inner { flex: 1; }
  .hero-inner { padding: 110px 0 64px; }
  .hero-bg::after {
    background:
      linear-gradient(to top, var(--bg) 4%, rgba(7, 8, 12, .82) 38%, rgba(7, 8, 12, .2) 72%, rgba(7, 8, 12, .45) 100%);
  }
  .hero-badge { margin-bottom: 12px; font-size: 10.5px; }
  .hero h1 { font-size: clamp(22px, 9.5vw, 40px); margin-bottom: 12px; }
  .hero-meta { gap: 6px 8px; font-size: 13px; margin-bottom: 12px; }
  .hero-meta .tag { font-size: 12px; }
  .hero p { font-size: 14px; margin-bottom: 20px; -webkit-line-clamp: 3; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; min-width: 0; padding: 0 12px; }
  .hero-actions .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-dots { left: 50%; right: auto; transform: translateX(-50%); bottom: 22px; gap: 6px; }
  .hero-dots button { width: 16px; height: 4px; }
  .hero-dots button.is-active { width: 34px; }
  .hero-count { display: none; }
}

/* ---- Akkaunt ---- */

.acc-stat { position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.acc-stat:hover { border-color: rgba(10, 147, 220, .45); }
.acc-stat small { display: flex; align-items: center; gap: 6px; }
.acc-stat small svg { width: 14px; height: 14px; color: #6cc4f2; flex-shrink: 0; }
.acc-stat.is-paid { background: linear-gradient(135deg, rgba(10, 147, 220, .2), transparent 70%), var(--surface); border-color: rgba(10, 147, 220, .35); }
.acc-stat-sub { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.acc-bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.acc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

.acc-profile { position: relative; overflow: hidden; }
.acc-profile::after {
  content: '';
  position: absolute;
  right: -40px; top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 147, 220, .28), transparent 70%);
  pointer-events: none;
}
.acc-profile > * { position: relative; z-index: 1; }

.acc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  text-align: center;
  color: var(--text-dim);
  transition: border-color .2s, color .2s;
}
.acc-quick a:hover { border-color: rgba(10, 147, 220, .45); color: #fff; }
.acc-quick span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(10, 147, 220, .14); color: #6cc4f2; }
.acc-quick svg { width: 18px; height: 18px; stroke: currentColor; }
.acc-quick a { overflow-wrap: anywhere; line-height: 1.2; }

/* ================================================================
   Juda tor ekranlar (100px gacha)
   ================================================================ */

.wrap {
  padding-left: max(clamp(6px, 4.2vw, 48px), var(--sal));
  padding-right: max(clamp(6px, 4.2vw, 48px), var(--sar));
}

img, video, iframe { max-width: 100%; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
  .row .card { flex-basis: min(138px, 72vw); }
}

@media (max-width: 300px) {
  h1, h2, h3, p, .acc-menu-label, .acc-item-main b, .acc-profile-info b { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .acc-quick { grid-template-columns: repeat(2, 1fr); }
  .acc-profile { flex-wrap: wrap; }
  .acc-profile .acc-lang { margin-left: auto; }
  .acc-menu-item { gap: 10px; padding: 10px 8px; font-size: 14px; }
  .s-genres { grid-template-columns: 1fr; }
  .acc-auth { padding: 18px 12px; }
  .acc-auth h1 { font-size: 20px; }
  .acc-promo-row { flex-wrap: wrap; }
  .acc-promo-row .btn { width: 100%; }
  .section-head h2 { font-size: 18px; }
}

@media (max-width: 300px) {
  :root { --header-h: calc(56px + var(--sat)); }
  /* logotipdan faqat "D" belgisi qoladi */
  .logo-img { width: 28px; height: 28px; object-fit: cover; object-position: left center; }
  .account-btn { width: 32px; height: 32px; }
  .avatar-sm { width: 30px; height: 30px; font-size: 13px; }
  .tabbar-label { display: none; }
  .tabbar-item { padding: 12px 2px; }
  body { padding-bottom: calc(48px + var(--sab)); }
  .acc-stats { grid-template-columns: 1fr; }
  .acc-chev { display: none; }
  .acc-profile .avatar-lg { width: 42px; height: 42px; font-size: 17px; }
  .acc-profile-info b { font-size: 14px; }
  .acc-balance-sum { font-size: 22px; }
  .acc-methods { grid-template-columns: 1fr; }
  .acc-plan-top { flex-wrap: wrap; }
  .acc-plan-price { margin-left: 0; text-align: left; }
  .acc-item { flex-wrap: wrap; padding: 10px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero p { -webkit-line-clamp: 2; }
  .hero-meta .dot { display: none; }
  .btn { padding: 0 10px; font-size: 13px; gap: 6px; }
  .section-head { flex-wrap: wrap; gap: 6px; }
  .row-nav { display: none; }
  .s-field { padding: 0 4px 0 10px; gap: 6px; }
  .s-field input { font-size: 14px; }
  .footer-grid { gap: 20px; }
}

@media (max-width: 220px) {
  html, body { font-size: 12px; }
  .hero { min-height: 420px; }
  .hero-inner { padding: 76px 0 48px; }
  .hero-badge, .hero p { display: none; }
  .hero h1 { font-size: 18px; }
  .hero-meta { font-size: 11px; }
  .hero-meta .tag { font-size: 10px; padding: 3px 6px; }
  .btn { height: 34px; font-size: 12px; }
  .btn svg { width: 14px; height: 14px; }
  .tabbar-icon svg { width: 18px; height: 18px; }
  .acc-menu-icon { width: 26px; height: 26px; border-radius: 8px; }
  .acc-menu-icon svg { width: 14px; height: 14px; }
  .acc-menu-item { font-size: 12.5px; gap: 8px; padding: 9px 6px; }
  .acc-menu { padding: 4px; border-radius: 14px; }
  .acc-profile { padding: 10px; gap: 8px; border-radius: 14px; }
  .acc-profile .avatar-lg { width: 32px; height: 32px; font-size: 14px; }
  .acc-quick { grid-template-columns: 1fr; }
  .acc-quick a { flex-direction: row; padding: 6px; font-size: 11px; }
  .acc-quick span { width: 26px; height: 26px; border-radius: 8px; }
  .acc-stat { padding: 8px 10px; }
  .acc-card, .acc-auth { padding: 12px 8px; border-radius: 14px; }
  .acc-panel-head h2 { font-size: 17px; }
  .lang-btn { padding: 4px 7px; font-size: 10px; }
  .hero-dots button { width: 8px; }
  .hero-dots button.is-active { width: 18px; }
  .card-title, .card h3 { font-size: 11.5px; }
  .s-genre { height: 52px; font-size: 12px; padding: 8px; }
}

@media (max-width: 150px) {
  .acc-menu-icon, .acc-quick span, .tabbar-item:nth-child(4) { display: none; }
  .acc-profile .acc-lang { display: none; }
  .hero-meta, .hero-dots { display: none; }
  .hero h1 { font-size: 14px; }
  .btn span { display: none; }
  .hero-actions .btn { padding: 0; }
  .account-btn { width: 26px; height: 26px; }
  .avatar-sm { width: 24px; height: 24px; }
  .logo-img { width: 22px; height: 22px; }
  .header .wrap { gap: 4px; }
  .acc-stat b { font-size: 12px; }
  .acc-stat small svg { display: none; }
}

/* ---- Tor ekran: qat'iy kengliklarni bo'shatish ---- */

.plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

@media (max-width: 300px) {
  .acc-stat b, .acc-stat small, .tag, .hero-meta span { white-space: normal; }
  .acc-stat b { font-size: 14px; }
  .mv-poster { width: min(190px, 100%) !important; }
  .mv-title { font-size: clamp(18px, 11vw, 28px); }
  .mv-desc { font-size: 13px; }
  .tag { padding: 4px 8px; font-size: 11px; max-width: 100%; }
  .plan { padding: 18px 10px 14px; min-width: 0; }
  .plan-amount { font-size: 24px; }
  .plan-toggle { flex-wrap: wrap; border-radius: 14px; max-width: 100%; }
  .plan-toggle button { flex: 1 1 auto; min-width: 0; padding: 6px 8px; font-size: 12px; white-space: normal; }
  .plan-features li { font-size: 12.5px; padding-left: 20px; }
  .plans-notice { padding: 10px; gap: 8px; font-size: 12px; }
  .cmp-wrap, .plans-cmp { overflow-x: auto; max-width: 100%; }
  .filters, .chips { max-width: 100%; }
  .chip { white-space: normal; }
  .select { max-width: 100%; }
  .footer-genres { max-width: 100%; }
  .result-count { white-space: normal; }
}

/* ---- Tor ekran: setka ustunlari kontentdan torroq bo'la olsin ---- */

.tv-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.f1-sessions { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.s-genres { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.acc-stats > *, .acc-quick > *, .acc-layout > *, .mv-layout > *, .footer-grid > *, .grid > *, .tv-grid > * { min-width: 0; }

@media (max-width: 640px) {
  .tv-grid { grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .mv-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .acc-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 300px) {
  .acc-stats { grid-template-columns: minmax(0, 1fr); }
  .acc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-genres { grid-template-columns: minmax(0, 1fr); }
  .badge-watch { white-space: normal; max-width: calc(100% - 18px); }
  .tv-card-name { overflow-wrap: anywhere; white-space: normal; }
}

@media (max-width: 220px) {
  .badge-watch { display: none; }
  .acc-quick { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Tor ekran: kino ma'lumotlari, sport, chiplar ---- */

.mv-info { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.mv-info-item, .mv-info-item dt, .mv-info-item dd { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 300px) {
  .chip { max-width: 100%; overflow-wrap: anywhere; padding-left: 9px; padding-right: 9px; }
  .match { padding: 10px 8px; }
  .m-row { grid-template-columns: minmax(0, 1fr); gap: 6px; text-align: center; }
  .m-team { justify-content: center; }
  .m-mid, .m-score { min-width: 0; }
  .m-score { white-space: normal; overflow-wrap: anywhere; font-size: 15px; text-align: center; }
  .m-logo, .m-logo-empty { width: 18px; height: 18px; }
  .sport-live-badge, .m-live { white-space: normal; max-width: 100%; }
  .sport-sec-head { flex-wrap: wrap; gap: 6px; }
  .f1-podium, .f1-session { flex-wrap: wrap; gap: 4px; }
  .f1-pos, .f1-s-time { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .tv-thumb-name { font-size: 11px; overflow-wrap: anywhere; }
  .dl-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Telefonda ixcham slayder: balandlik ~2 baravar kichik, keng poster to'liq ko'rinadi ---- */

@media (max-width: 640px) {
  .hero { min-height: calc(var(--header-h) + 42vw + 300px); margin-bottom: 0; }
  .hero-inner { padding: 0 0 40px; }

  /* Keng (16:9) o'zbek posterlari: ekran eniga to'liq, header ostidan boshlanadi */
  .hero-bg { background-color: var(--bg); transform: none !important; }
  .hero-bg.is-wide { background-size: 100% auto, cover; background-position: center var(--header-h), center; background-repeat: no-repeat; }
  .hero-bg::after,
  .hero-bg.is-wide::after {
    background: linear-gradient(to bottom,
      var(--bg) 0,
      var(--bg) var(--header-h),
      rgba(7, 8, 12, .55) calc(var(--header-h) + 7vw),
      rgba(7, 8, 12, .12) calc(var(--header-h) + 16vw),
      transparent calc(var(--header-h) + 24vw),
      rgba(7, 8, 12, .75) calc(var(--header-h) + 44vw),
      var(--bg) calc(var(--header-h) + 56.25vw));
  }

  .hero-badge { display: none; }
  .hero h1 { font-size: clamp(20px, 7vw, 30px); margin-bottom: 8px; }
  .hero-meta { margin-bottom: 8px; font-size: 12px; }
  .hero-meta .tag { font-size: 11px; padding: 3px 9px; }
  .hero p { font-size: 13px; line-height: 1.5; margin-bottom: 14px; -webkit-line-clamp: 2; }
  .hero-actions .btn { height: 40px; font-size: 13px; }
  .hero-dots { bottom: 16px; }
}

@media (max-width: 220px) {
  .hero { min-height: calc(var(--header-h) + 42vw + 190px); }
}

/* ---------------- Qidiruv: janr kartalari posterlar bilan ---------------- */

.s-genres { gap: 12px; }

.s-genre {
  --gc: #0a93dc;
  position: relative;
  display: block;
  height: 118px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--gc) 55%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--gc) 30%, #0c1018), #0b0e15 75%);
  border: 1px solid color-mix(in srgb, var(--gc) 35%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.s-genre:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gc) 70%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--gc) 30%, transparent);
}

/* O'ng tomonda yelpig'ich bo'lib turgan 3 ta poster */
.s-genre-posters { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1; }

.s-genre-posters img {
  position: absolute;
  top: 50%;
  right: calc(8% + var(--i) * 22%);
  width: 44%;
  max-width: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: -6px 8px 18px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(-46%) rotate(calc(10deg - var(--i) * 8deg));
  z-index: calc(3 - var(--i));
  filter: brightness(calc(1 - var(--i) * .18));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.s-genre:hover .s-genre-posters img { transform: translateY(-52%) rotate(calc(14deg - var(--i) * 11deg)) scale(1.04); }
.s-genre-posters img:nth-of-type(1) { --i: 0; }
.s-genre-posters img:nth-of-type(2) { --i: 1; }
.s-genre-posters img:nth-of-type(3) { --i: 2; }
.s-genre-posters img:nth-of-type(n+4) { display: none; }

/* Chap tomon — matnni o'qish oson bo'lishi uchun qoraytirilgan */
.s-genre::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 16, .92) 0%, rgba(8, 10, 16, .6) 45%, transparent 75%);
  pointer-events: none;
}

.s-genre-info {
  position: absolute;
  left: 14px; bottom: 12px; top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 60%;
}

.s-genre-emoji {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  font-size: 17px;
  background: color-mix(in srgb, var(--gc) 28%, rgba(255, 255, 255, .06));
  border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent);
}

.s-genre-info b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.s-genre-info small { margin-top: 2px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .62); }

@media (min-width: 641px) {
  .s-genres { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
  .s-genre { height: 132px; }
}

@media (max-width: 360px) {
  .s-genre { height: 104px; }
  .s-genre-info b { font-size: 14.5px; }
}

@media (max-width: 220px) {
  .s-genre { height: 80px; border-radius: 12px; }
  .s-genre-emoji, .s-genre-info small { display: none; }
  .s-genre-info { left: 8px; bottom: 8px; max-width: 75%; }
  .s-genre-info b { font-size: 12px; }
  .s-genre-posters img { max-width: 40px; }
}

/* ---------------- Sport: o'yin kartasi bosiladigan + o'yin oynasi ---------------- */

.m-click { cursor: pointer; transition: border-color .2s, transform .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.m-click:hover { border-color: rgba(10, 147, 220, .45); transform: translateY(-2px); }
.m-click:active { transform: scale(.99); }
.m-click .m-league { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-more { font-size: 11px; font-weight: 650; color: var(--text-faint); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.m-click:hover .m-more { color: #4cb8f0; }

.m-watch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  text-transform: none; letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(225, 29, 72, .45);
  animation: mWatchPulse 1.6s ease-in-out infinite;
}
.m-watch svg { width: 10px; height: 10px; fill: currentColor; }
@keyframes mWatchPulse { 50% { box-shadow: 0 4px 22px rgba(225, 29, 72, .8); } }

/* Oyna */
.mt-panel {
  position: absolute;
  left: 50%; top: 50%;
  width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, #111723, #0b0f17 40%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -46%) scale(.97);
  opacity: 0;
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), opacity .2s;
  overflow: hidden;
}
.sheet-wrap.is-open .mt-panel { transform: translate(-50%, -50%); opacity: 1; }

.mt-scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px; }

.mt-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff;
  backdrop-filter: blur(8px);
}
.mt-close svg { width: 18px; height: 18px; }

.mt-head {
  padding: 22px 20px 16px;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(10, 147, 220, .22), transparent 70%),
    radial-gradient(60% 90% at 85% 0%, rgba(0, 91, 148, .22), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.mt-league { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin: 0 40px 14px; }

.mt-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; }
.mt-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mt-team b { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }

.mt-logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }
.mt-logo-empty { display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 28px; font-weight: 800; }

.mt-center { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; min-width: 90px; }
.mt-score { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-score span { margin: 0 6px; color: var(--text-faint); }
.mt-score.is-live { color: #fff; text-shadow: 0 0 24px rgba(225, 29, 72, .6); }
.mt-time { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.mt-status { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.mt-countdown { font-size: 11.5px; color: #4cb8f0; font-weight: 650; text-align: center; }

.mt-form { display: flex; gap: 3px; }
.mt-form i, .mt-res {
  width: 18px; height: 18px; border-radius: 5px;
  display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 800;
  background: rgba(255, 255, 255, .1); color: var(--text-dim);
}
.mt-form i.is-w, .mt-res.is-w { background: #16a34a; color: #fff; }
.mt-form i.is-d, .mt-res.is-d { background: #64748b; color: #fff; }
.mt-form i.is-l, .mt-res.is-l { background: #dc2626; color: #fff; }

.mt-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }
.mt-meta:empty { display: none; }

/* Jonli efir bloki */
.mt-live {
  margin: 16px 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(225, 29, 72, .18), rgba(225, 29, 72, .04) 70%);
  border: 1px solid rgba(225, 29, 72, .4);
}
.mt-live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mt-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e11d48; box-shadow: 0 0 0 0 rgba(225, 29, 72, .7); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
.mt-live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; }

.mt-ch {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-strong);
  transition: border-color .2s, background .2s;
}
.mt-ch:hover { border-color: #e11d48; background: rgba(225, 29, 72, .15); }
.mt-ch-logo { position: relative; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.mt-ch-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mt-ch-logo em { font-style: normal; font-size: 12px; font-weight: 800; color: #111; }
.mt-ch-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-ch-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e11d48; color: #fff; flex-shrink: 0; }
.mt-ch-play svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
.mt-live-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.45; }

/* Tablar */
.mt-body { padding: 16px 16px 0; }
.mt-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 14px; }
.mt-tabs button { flex: 1; min-width: 0; height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--text-dim); }
.mt-tabs button.is-active { background: var(--grad); color: #fff; }

.mt-loading { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.mt-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: mtDot 1s infinite ease-in-out; }
.mt-loading i:nth-child(2) { animation-delay: .15s; }
.mt-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes mtDot { 50% { transform: translateY(-6px); opacity: .5; } }
.mt-empty { text-align: center; color: var(--text-dim); padding: 24px 10px; margin: 0; font-size: 14px; }

.mt-team-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mt-team-switch button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; height: 44px; padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 14px; color: var(--text-dim);
}
.mt-team-switch button img { width: 24px; height: 24px; object-fit: contain; }
.mt-team-switch button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-team-switch button.is-active { color: #fff; border-color: var(--accent); background: rgba(10, 147, 220, .14); }

.mt-h4 { margin: 4px 0 10px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mt-h4 small { color: var(--text-faint); font-weight: 600; }

.mt-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; margin-bottom: 16px; }

.mt-player {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  min-width: 0;
}
.mt-player b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.mt-player small { font-size: 11px; color: var(--text-faint); line-height: 1.3; }

.mt-ph {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc, #0a93dc) 55%, #1c2230), #10141d);
  border: 2px solid color-mix(in srgb, var(--tc, #0a93dc) 60%, transparent);
  margin-bottom: 4px;
}
.mt-ph img:not(.mt-flag) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; background: #1c2230; z-index: 1; }
.mt-ph em { font-style: normal; font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.mt-flag { position: absolute; right: -2px; bottom: 0; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid #111723; z-index: 2; background: #111723; }

/* So'nggi o'yinlar */
.mt-l5 { margin-bottom: 16px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mt-l5-team { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mt-l5-team img { width: 22px; height: 22px; object-fit: contain; }
.mt-l5-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mt-l5-opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-l5-score { font-weight: 750; font-variant-numeric: tabular-nums; }
.mt-l5-date { color: var(--text-faint); font-size: 12px; min-width: 42px; text-align: right; }

/* Jadval */
.mt-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.mt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mt-table th { padding: 8px 6px; text-align: center; color: var(--text-faint); font-weight: 650; font-size: 11.5px; background: rgba(255, 255, 255, .03); }
.mt-table td { padding: 7px 6px; text-align: center; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mt-table td:first-child { color: var(--text-faint); width: 28px; }
.mt-t-team { text-align: left !important; }
.mt-t-team { display: flex; align-items: center; gap: 8px; }
.mt-t-team img { width: 20px; height: 20px; object-fit: contain; }
.mt-t-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.mt-table tr.is-ours td { background: rgba(10, 147, 220, .14); font-weight: 700; }

/* Telefonda — pastdan chiquvchi oyna */
@media (max-width: 640px) {
  .mt-panel {
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto;
    max-height: calc(92vh - var(--sat));
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }
  .sheet-wrap.is-open .mt-panel { transform: none; }
  .mt-scroll { padding-bottom: calc(20px + var(--sab)); }
  .mt-logo { width: 56px; height: 56px; }
  .mt-score { font-size: 32px; }
  .mt-time { font-size: 26px; }
  .mt-team b { font-size: 13.5px; }
  .mt-center { min-width: 76px; }
  .mt-ph { width: 60px; height: 60px; }
  .mt-players { grid-template-columns: repeat(auto-fill, minmax(min(100px, 100%), 1fr)); gap: 8px; }
}

@media (max-width: 300px) {
  .mt-teams { grid-template-columns: minmax(0, 1fr); }
  .mt-center { padding-top: 0; order: -1; }
  .mt-logo { width: 40px; height: 40px; }
  .mt-head { padding: 16px 10px 12px; }
  .mt-body, .mt-live { margin-left: 8px; margin-right: 8px; padding-left: 8px; padding-right: 8px; }
  .mt-team-switch { grid-template-columns: minmax(0, 1fr); }
  .mt-l5-row { grid-template-columns: 18px minmax(0, 1fr); }
  .mt-l5-score, .mt-l5-date { grid-column: 2; text-align: left; }
  .m-more { display: none; }
}

/* ---------------- Logotip: ichki SVG (js/logo.js) ---------------- */

.logo-svg { display: block; height: 32px; line-height: 0; flex-shrink: 0; }
.logo-svg .logo-svg-el { display: block; height: 100%; width: auto; aspect-ratio: 3524.95 / 658.94; }
.logo-svg { width: max-content; }
.footer .logo-svg { height: 30px; }
.acc-about-logo.logo-svg { height: auto; width: min(240px, 70%); }
.acc-about-logo.logo-svg .logo-svg-el { width: 100%; height: auto; }
.intro-logo .logo-svg-el { aspect-ratio: 3524.95 / 658.94; }

/* intro: SVG ham rasm kabi chapdan ochiladi */
.intro-logo .logo-svg-el {
  width: 100%; height: auto; display: block;
  clip-path: inset(0 81% 0 0 round 18%);
  animation: introReveal 4.5s cubic-bezier(.65, 0, .25, 1) forwards;
}

@media (max-width: 380px) { .logo-svg { height: 27px; } }

/* juda tor ekranda — faqat "D" belgisi */
@media (max-width: 300px) {
  .header .logo-svg { height: 28px; width: 28px; overflow: hidden; }
}
@media (max-width: 150px) {
  .header .logo-svg { height: 22px; width: 22px; }
}

/* ---------------- Kirish kartasi: ekrandan chiqib ketmasin, 100px gacha moslashuv ---------------- */

/* grid o'rniga oddiy blok — karta hech qachon konteynerdan keng bo'lmaydi (katta shrift sozlamasida ham) */
.acc-auth-wrap { display: block; }
.acc-auth { width: auto; max-width: 440px; min-width: 0; margin: 0 auto; }
.acc-auth * { min-width: 0; }
.acc-auth h1, .acc-sub, .acc-note span, .acc-terms, .acc-sent, .acc-last-info b, .acc-last-info small { overflow-wrap: anywhere; }
.acc-auth-top { gap: 10px; }
.acc-tabs button { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-phone input { width: 100%; }
.acc-auth .btn { max-width: 100%; white-space: normal; line-height: 1.2; }

@media (max-width: 360px) {
  .acc-page { padding-left: max(8px, var(--sal)); padding-right: max(8px, var(--sar)); }
  .acc-auth { padding: 18px 14px 16px; border-radius: 18px; }
  .acc-auth-logo { width: 44px; height: 44px; border-radius: 12px; }
  .acc-auth h1 { font-size: 21px; }
  .acc-sub { font-size: 13px; margin-bottom: 16px; }
  .acc-tabs button { font-size: 13px; height: 36px; }
  .acc-input, .acc-phone { height: 46px; font-size: 15px; }
  .acc-phone { padding: 0 10px; gap: 6px; }
  .acc-phone input { font-size: 15px; letter-spacing: 0; }
  .acc-code { font-size: 20px; letter-spacing: .3em; }
}

@media (max-width: 260px) {
  .acc-auth { padding: 14px 10px; }
  .acc-auth-top { flex-wrap: wrap; }
  .acc-tabs { grid-template-columns: minmax(0, 1fr); }
  .acc-phone { flex-wrap: wrap; height: auto; padding: 6px 8px; }
  .acc-phone span { font-size: 13px; }
  .acc-phone input { flex-basis: 100%; height: 32px; }
  .acc-row-links { flex-direction: column; align-items: flex-start; gap: 2px; }
  .acc-note { padding: 8px; gap: 6px; font-size: 11.5px; }
  .acc-google span { font-size: 13px; }
}

@media (max-width: 180px) {
  .acc-auth { padding: 10px 6px; border-radius: 12px; }
  .acc-auth-logo, .acc-note svg { display: none; }
  .acc-auth h1 { font-size: 16px; }
  .acc-sub, .acc-terms { font-size: 11px; }
  .acc-label { font-size: 11px; }
  .acc-tabs button { font-size: 11px; height: 30px; }
  .acc-submit, .acc-google { height: auto; min-height: 36px; padding: 6px; font-size: 12px; }
  .acc-google svg { width: 16px; height: 16px; }
  .acc-code { font-size: 15px; letter-spacing: .1em; }
  .acc-input { padding: 0 6px; font-size: 13px; }
}

@media (max-width: 150px) {
  .acc-auth .acc-lang { padding: 1px; gap: 0; }
  .acc-auth .acc-lang .lang-btn { padding: 3px 4px; font-size: 9px; letter-spacing: 0; }
  .acc-page { padding-left: max(4px, var(--sal)); padding-right: max(4px, var(--sar)); }
}

/* Google'ning rasmiy tugmasi (sayt) */
.acc-gbtn { display: flex; justify-content: center; min-height: 44px; margin-top: 8px; max-width: 100%; overflow: hidden; }
.acc-last-card { cursor: default; }

/* ================================================================
   Telefon: suzib turuvchi yumaloq navbar (kapsula)
   ================================================================ */

@media (max-width: 900px) {
  .tabbar {
    left: max(10px, var(--sal));
    right: max(10px, var(--sar));
    bottom: calc(10px + var(--sab));
    padding: 6px;
    gap: 2px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(24, 27, 36, .9);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  .tabbar-item {
    padding: 7px 2px 6px;
    gap: 3px;
    border-radius: 999px;
    color: #c9ced9;
    transition: color .2s, background .25s;
  }

  .tabbar-item::before { display: none; }

  .tabbar-item.is-active {
    color: #4cb8f0;
    background: rgba(10, 147, 220, .18);
  }
  .tabbar-item.is-active .tabbar-icon svg { stroke: currentColor; }
  .tabbar-item:active { transform: scale(.96); }

  .tabbar-icon svg { width: 24px; height: 24px; }
  .tabbar-label { font-size: 11px; font-weight: 650; }

  /* Profil tabidagi avatar */
  .tabbar-avatar { width: 26px; height: 26px; font-size: 12px; border: 1.5px solid rgba(255, 255, 255, .25); }
  .tabbar-item.is-active .tabbar-avatar { border-color: #4cb8f0; box-shadow: 0 0 0 2px rgba(76, 184, 240, .25); }

  .tabbar-badge { top: -4px; right: -10px; box-shadow: 0 0 0 2px rgba(24, 27, 36, .95); }

  /* kontent navbar ostida qolmasin */
  body { padding-bottom: calc(92px + var(--sab)); }
  .to-top { bottom: calc(96px + var(--sab)); }

  /* profil pastki navbarda — headerdagi takroriy tugma kerak emas */
}

@media (max-width: 300px) {
  .tabbar { left: 4px; right: 4px; bottom: calc(4px + var(--sab)); padding: 4px; }
  .tabbar-item { padding: 8px 1px; }
  .tabbar-avatar { width: 20px; height: 20px; font-size: 10px; }
  body { padding-bottom: calc(60px + var(--sab)); }
}

/* ---------------- Akkaunt: Bo'limlar (oldingi "Yana") ---------------- */

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

.acc-sections { padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.acc-sections-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin: 2px 4px 10px; }
.acc-sections-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.acc-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 650;
  transition: border-color .2s, background .2s;
}
.acc-section:hover { border-color: rgba(10, 147, 220, .45); background: rgba(10, 147, 220, .08); }
.acc-section-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(10, 147, 220, .14); color: #6cc4f2; flex-shrink: 0; }
.acc-section-icon svg { width: 17px; height: 17px; stroke: currentColor; }
.acc-section-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-section .acc-badge { flex-shrink: 0; }

.acc-auth-sections { max-width: 440px; margin: 14px auto 0; }

@media (max-width: 300px) {
  .acc-sections-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-quick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 180px) {
  .acc-section-icon { display: none; }
  .acc-section { padding: 8px 6px; font-size: 12px; }
  .acc-section-label { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------------- Header: profil — ko'k-qizil gradient halqa (qimirlamaydi) ---------------- */

.account-btn {
  width: 42px; height: 42px;
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a93dc 0%, #3b82f6 35%, #e11d48 70%, #ff3b5c 100%);
  box-shadow: 0 4px 16px rgba(10, 147, 220, .25), 0 4px 16px rgba(225, 29, 72, .18);
}

.account-btn .avatar,
.account-btn.is-in .avatar {
  width: 100%; height: 100%;
  border: 2px solid var(--bg);
  box-shadow: none;
}

.account-btn .avatar.is-guest { background: #141822; border-color: var(--bg); color: #e6ebf3; }
.account-btn:hover { filter: brightness(1.12); }

@media (max-width: 300px) {
  .account-btn { width: 32px; height: 32px; padding: 2px; }
  .account-btn .avatar { border-width: 1.5px; }
}
@media (max-width: 150px) {
  .account-btn { width: 26px; height: 26px; padding: 1.5px; }
}
/* ---------------- Pleyer ostida: sifat tanlash qatori ---------------- */

.ytp-qrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 12px;
  background: #0a0c12;
  border-top: 1px solid var(--line);
}

.ytp-qrow-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.ytp-qrow-label svg { width: 16px; height: 16px; color: #4cb8f0; }
.ytp-qrow-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ytp-qchip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  color: #d5dae4;
  font-size: 12.5px;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
}
.ytp-qchip:hover { border-color: rgba(10, 147, 220, .6); color: #fff; }
.ytp-qchip.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(10, 147, 220, .35); }

.ytp-qrow-now { margin-left: auto; font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.ytp-qrow-now:empty { display: none; }

/* katta ekranda qator ko'rinmaydi — u yerda ⚙️ menyusi bor */
.player-wrap.ytp:fullscreen .ytp-qrow,
.player-wrap.ytp:-webkit-full-screen .ytp-qrow,
.player-wrap.ytp.ytp-pseudo-fs .ytp-qrow { display: none; }

@media (max-width: 300px) {
  .ytp-qrow { padding: 8px 6px; gap: 6px; }
  .ytp-qchip { height: 26px; padding: 0 8px; font-size: 11px; }
  .ytp-qrow-now { margin-left: 0; }
}