/* ===== كىنوخانا ئۇسلۇبى — يورۇق تېما + RTL + يانفۇن ماسلاشتۇرۇش ===== */
@font-face {
  font-family: 'UKIJCJKWeb';
  src: url('../fonts/UKIJCJK.eot');
  src: url('../fonts/UKIJCJK.eot?#iefix') format('embedded-opentype'),
       url('../fonts/UKIJCJK.woff2') format('woff2'),
       url('../fonts/UKIJCJK.woff') format('woff'),
       url('../fonts/UKIJCJK.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
img, canvas { max-width: 100%; }
:root {
  --bg: #f5f6fa;
  --bg2: #ffffff;
  --line: #e8eaf0;
  --txt: #1f2333;
  --mut: #6b7280;
  --red: #ff4d6d;
  --pink: #ff4d8d;
  --purple: #8b5cf6;
  --gold: #f59e0b;
  --shadow: 0 4px 20px rgba(31,35,51,.08);
  --radius: 18px;
}
:root.dark-theme {
  --bg: #161822;
  --bg2: #20232f;
  --line: #343949;
  --txt: #f3f4f8;
  --mut: #aab0c0;
  --shadow: 0 5px 22px rgba(0,0,0,.28);
}
body, input, select, textarea, button {
  font-family: var(--font, 'UKIJCJKWeb', 'UKIJ Tuz Tom', 'Segoe UI', Tahoma, sans-serif);
}
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(8,10,22,var(--bgimg-dim, 0)), rgba(8,10,22,var(--bgimg-dim, 0))),
    var(--bgimg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  color: var(--txt); min-height: 100vh;
  font-size: var(--fs, 16px);
  padding-bottom: 72px;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- ئۈستى قىستۇرما ---- */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(31,35,51,.04);
}
.bar-in { display: flex; align-items: center; gap: 16px; height: 62px; }
.logo {
  display: flex; align-items: center;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.logo-img {
  height: 38px; max-width: 180px; object-fit: contain;
  -webkit-text-fill-color: initial;
}
.nav { display: flex; gap: 6px; }
.nav a { padding: 9px 16px; border-radius: 20px; color: var(--mut); font-size: 14px; transition: .2s; }
.nav a:hover { color: var(--red); background: rgba(255,77,109,.08); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--red), var(--purple)); }
.search { position: relative; flex: 1; max-width: 340px; display: flex; margin-inline-start: auto; }
.search input {
  width: 100%; padding: 10px 16px; border-radius: 0 24px 24px 0; border: 1px solid var(--line);
  background: var(--bg); color: var(--txt); outline: none;
}
.search button {
  border: 1px solid var(--line); border-inline-start: 0; background: var(--bg);
  color: var(--red); padding: 0 16px; border-radius: 24px 0 0 24px; cursor: pointer;
}
.suggest {
  position: absolute; top: 110%; right: 0; left: 0;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: none; z-index: 60; box-shadow: var(--shadow);
}
.suggest.on { display: block; }
.suggest a { display: block; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover { background: rgba(255,77,109,.08); color: var(--red); }
.uarea { display: flex; align-items: center; gap: 10px; }
.theme-wrap { display: none; flex-direction: column; align-items: center; gap: 2px; }
.theme-toggle {
  width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--mut); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.theme-label { font-size: 10px; color: var(--mut); white-space: nowrap; }
.chip {
  background: var(--bg); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 20px; font-size: 13px; color: var(--txt);
}
.chip b { color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--txt); font-size: 20px; border-radius: 10px; padding: 5px 11px; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 8px 16px; background: var(--bg2); }
.mobile-nav.on { display: flex; }
.mobile-nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--txt); }
.mobile-nav a:last-child { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; border: 0; padding: 10px 22px; border-radius: 24px;
  cursor: pointer; font-size: 14px; transition: .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,77,109,.35); }
.btn.ghost { background: var(--bg); color: var(--txt); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--line); box-shadow: none; }
.btn.big { padding: 14px 32px; font-size: 16px; }

/* ---- ئاستى يانفۇن يولباڕچۇسى ---- */
.bottom-nav {
  display: none; position: fixed; bottom: 0; right: 0; left: 0;
  background: var(--bg2); border-top: 1px solid var(--line);
  z-index: 80; padding: 8px 0 12px;
  box-shadow: 0 -2px 14px rgba(31,35,51,.06);
}
.bottom-nav .wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: none; padding: 0 8px; gap: 0; box-sizing: border-box; }
.bottom-nav .wrap > a { flex: 1 1 0; max-width: 25%; min-width: 0; }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--nf, var(--mut)); background: var(--nb, transparent); font-size: 11px; padding: 6px 4px; border-radius: 12px; flex: 1 1 0; max-width: 25%; min-width: 0; }
.bottom-nav a .ico { font-size: 28px; }
.bottom-nav a .nav-img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.bottom-nav a .svg-ico { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a .ico, .bottom-nav a .nav-img, .bottom-nav a .svg-ico { transition: transform .18s ease; }
.bottom-nav a.on { color: var(--onf, var(--red)); background: var(--onb, rgba(255,77,109,.08)); font-weight: 700; }
.bottom-nav a.on::before {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px; background: var(--onf, var(--red));
}
.bottom-nav a.on .ico, .bottom-nav a.on .nav-img, .bottom-nav a.on .svg-ico { transform: scale(1.15); }

/* كىبورد ئېچىلغاندا ئاستى مېنۇنى يوشۇرۇش — يانفوندىكى خەت كىرگۈزگۈچ تاختىسىنىڭ ئۈستىگە چىقىپ قالماسلىقى ئۈچۈن */
html.kb-open body .bottom-nav,
html.kb-open body .main > .bottom-nav { display: none !important; }

/* ئۇڭۇشلۇق كىرىش/تىزىملىتىش ئەسكەرتىشى (flash message) */
.flash-alert {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 300; max-width: 82vw; text-align: center;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(160deg, #34d399 0%, #16a34a 55%, #15803d 100%);
  color: #fff; font-size: 19px; font-weight: 700;
  padding: 24px 36px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 20px 60px rgba(21,128,61,.45), inset 0 1px 0 rgba(255,255,255,.35);
  pointer-events: none; direction: rtl; line-height: 1.6;
  overflow: hidden;
  animation: flashIn .5s cubic-bezier(.22,1.2,.36,1) backwards;
}
.flash-alert::before {  /* ئۈستىدىكى پارقىراق يورۇقلۇق */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 48%;
  background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,0));
  pointer-events: none;
}
.flash-alert .fa-ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #16a34a;
  background: radial-gradient(circle at 32% 28%, #fff, #e8f8ef);
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 -2px 6px rgba(22,163,74,.25);
  animation: flashIco .55s .12s cubic-bezier(.22,1.4,.36,1) backwards;
}
.flash-alert .fa-txt { position: relative; }
@keyframes flashIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes flashIco {
  0%   { transform: scale(0) rotate(-120deg); }
  100% { transform: scale(1) rotate(0); }
}
.flash-alert.hide { opacity: 0; transition: opacity .45s; }

.catline { background: var(--bg2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.catline .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; white-space: nowrap; justify-content: center; flex-wrap: wrap; }
.catline a {
  padding: 7px 16px; border-radius: 20px; font-size: 13px;
  color: var(--mut); border: 1px solid var(--line); background: var(--bg2);
}
.catline a:hover { color: var(--red); border-color: rgba(255,77,109,.3); }
.catline a.on, .catline a:first-child:hover { color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); border-color: transparent; }

.announce { background: transparent; border-bottom: none; font-size: 13px; color: var(--red); padding: 2px 0 8px; }
.announce .wrap {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 9px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;
}
.a-icon { flex-shrink: 0; font-size: 14px; order: 1; }
.a-scroll { flex: 1; order: 2; overflow: hidden; min-width: 0; direction: ltr; }
.a-track { display: inline-flex; width: max-content; gap: 24px; white-space: nowrap; will-change: transform; }
.a-item { flex-shrink: 0; white-space: nowrap; direction: rtl; }

.main { padding: 20px 16px 40px; }

/* ---- سلايدېر / hero ---- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; height: 340px; margin-bottom: 8px; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: flex-end; }
.slide.on { opacity: 1; }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
}
.s-in { position: relative; z-index: 2; padding: 28px; max-width: 620px; }
.s-tag { background: var(--red); color: #fff; font-size: 12px; padding: 5px 13px; border-radius: 14px; }
.slide h2 { font-size: 32px; margin: 12px 0 8px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slide p { color: #e8e8ec; margin-bottom: 16px; }
.s-btn { background: #fff; color: var(--red); font-weight: 700; padding: 11px 24px; border-radius: 24px; display: inline-block; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.dots span.on { background: #fff; width: 24px; border-radius: 6px; }

/* ---- تېز كاتېگورىيە ئىكونلىرى (ئەڭ كۆپ 5 تۈر بىر قۇردا، ئارتۇق تۈر كېيىنكى قۇرغا ئۆتىدۇ) ---- */
.quick-cats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 8px; padding: 4px 2px 16px; justify-items: center;
}
.qcat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%; color: var(--txt);
}
.qcat .q-ico {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--bg2); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(31,35,51,.05);
}
.qcat .q-ico .svg-ico { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qcat .q-ico .nav-img { width: 30px; height: 30px; object-fit: contain; }
.qcat:nth-child(5n+1) .q-ico { background: #fff0f3; }
.qcat:nth-child(5n+2) .q-ico { background: #f3f0ff; }
.qcat:nth-child(5n+3) .q-ico { background: #fff8e6; }
.qcat:nth-child(5n+4) .q-ico { background: #e6f7ff; }
.qcat:nth-child(5n+5) .q-ico { background: #f0f2ff; }
.qcat .q-name { font-size: 12px; color: var(--mut); text-align: center; }

/* ---- بۆلەك + كارتوچكىلار ---- */
.sec { margin-bottom: 30px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sec-h h3 { font-size: 18px; font-weight: 700; }
.sec-h a { color: var(--mut); font-size: 13px; }
.sec-h a:hover { color: var(--red); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: stretch; direction: rtl; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; direction: rtl; }
.movies-page-rtl{direction:rtl;text-align:right}
.movies-page-rtl .filters{direction:rtl;justify-content:flex-start}
.movies-page-rtl .grid{direction:rtl}
.movies-page-rtl .card{direction:rtl}
.movies-page-rtl .cname,.movies-page-rtl .cmeta,.movies-page-rtl .ctype{text-align:center;direction:rtl}
.grid-sm .thumb { border-radius: 6px; }
.grid-sm .cname { font-size: 13px; margin-top: 8px; line-height: 1.45; text-align: center; }
.grid-sm .cmeta { font-size: 11px; text-align: center; }
.grid-sm .badge, .grid-sm .eps { font-size: 10px; padding: 3px 8px; }
.card { display: block; width: 100%; }
.thumb {
  position: relative; border-radius: 8px; overflow: hidden;
  width: 100%;
  background: var(--bg2);
  box-shadow: 0 3px 12px rgba(31,35,51,.08);
}
.thumb::before {
  content: ''; display: block; width: 100%; padding-bottom: 150%;
}
@supports (aspect-ratio: 2 / 3) {
  .thumb { aspect-ratio: 2 / 3; }
  .thumb::before { display: none; }
}
.thumb img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.card:hover .thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; }
.badge.vip { background: var(--gold); color: #fff; font-weight: 700; }
.badge.free { background: #10b981; color: #fff; font-weight: 700; }
.eps { position: absolute; bottom: 9px; left: 9px; inset-inline-end: 9px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; }
.cname { margin-top: 10px; font-size: 14px; font-weight: 600; text-align: center; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctype { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta { color: var(--mut); font-size: 12px; margin-top: 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.type-tag {
  display: inline-block; background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 5px;
}

.cols { display: flex; gap: 24px; align-items: flex-start; }
.cols .grow { flex: 1; min-width: 0; }
.rank {
  width: 100%; max-width: 420px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.rank h3 { font-size: 16px; margin-bottom: 14px; }
.rank-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.rank-tab { flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 8px 10px; background: var(--bg2); color: var(--mut); font: inherit; font-size: 13px; cursor: pointer; transition: .2s; }
.rank-tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.rank-grid { display: none; }
.rank-grid.on { display: block; }
.rank-more { align-self: center; }
.home-rank { margin-bottom: 44px; }
.hcs-title { display: inline-block; padding: 5px 16px; border: 2px solid var(--line); border-radius: 22px; font-size: 17px; font-weight: 700; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank .rank-empty { display: block; color: var(--mut); text-align: center; }
.rank li:last-child { border-bottom: 0; }
.rank .no { width: 24px; height: 24px; border-radius: 8px; background: var(--bg); color: var(--mut); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank .no.n1 { background: var(--red); color: #fff; }
.rank .no.n2 { background: #f57c00; color: #fff; }
.rank .no.n3 { background: var(--gold); color: #fff; }
.rank li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank li a:hover { color: var(--red); }
.rank em { font-style: normal; color: var(--mut); font-size: 12px; }

/* ---- سۈزگۈچ + بەتلەش ---- */
.filters { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.filters-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.frow {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 8px;
}
.frow-label { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--red); padding-top: 6px; }
.frow-chips {
  display: flex; gap: 2px; overflow-x: auto; white-space: nowrap;
  padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.frow-chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; padding: 4px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--mut);
  font-size: 12.5px; text-decoration: none; transition: .2s;
}
.fchip:hover { border-color: var(--red); color: var(--red); }
.fchip.on {
  background: linear-gradient(135deg, var(--red), var(--purple));
  border-color: transparent; color: #fff; font-weight: 700;
}
.filters .cnt { color: var(--mut); font-size: 13px; }
.filters .cnt b { color: var(--red); }
.filter-sep { color: var(--mut); font-weight: bold; padding: 0 4px; user-select: none; }
.pager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; margin-bottom: 10px; }
.pager-pages { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager .cur { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; color: var(--txt); text-decoration: none; transition: .2s; }
.pager a.pager-prev, .pager a.pager-next { padding: 0 16px; font-size: 13px; }
.pager .cur { background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255,77,109,.25); font-weight: 700; }
.pager a:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.pager-jump { display: inline-flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 6px 8px 6px 16px; }
.pager-total { font-size: 13px; color: var(--mut); white-space: nowrap; }
.pager-jump input { width: 58px; height: 32px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--txt); font-size: 13px; outline: none; }
.pager-jump input:focus { border-color: var(--red); }
.pager-jump button { height: 32px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; color: var(--mut); padding: 60px 0; font-size: 16px; }

.detail { display: flex; gap: 28px; margin-bottom: 28px; }
.d-poster { position: relative; width: 260px; flex-shrink: 0; }
.d-poster img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; }
.d-poster .badge { font-size: 13px; }
.d-info h1 { font-size: 26px; margin-bottom: 10px; }
.d-rate { color: var(--gold); font-size: 17px; margin-bottom: 14px; }
.d-rate span { color: var(--mut); font-size: 13px; margin-inline-start: 14px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--mut); font-size: 14px; margin-bottom: 16px; }
.d-meta b { color: var(--txt); font-weight: 600; }
.d-desc { color: #4b5563; line-height: 1.9; margin-bottom: 22px; max-width: 640px; }
.eplist { display: flex; flex-wrap: wrap; gap: 10px; }
.eplist a { background: var(--bg2); border: 1px solid var(--line); padding: 9px 18px; border-radius: 20px; font-size: 14px; }
.eplist a:hover { border-color: var(--red); color: var(--red); }
.eplist a.on { background: linear-gradient(135deg, var(--red), var(--purple)); border-color: transparent; color: #fff; }

/* ---- قويغۇچ ---- */
.p-title { font-size: 20px; margin-bottom: 14px; }
.p-title a { color: var(--red); }
.player-box { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; position: relative; }
.player-box video { width: 100%; height: 100%; position: relative; z-index: 1; }
.player-bg { position: absolute; inset: 0; background-position: center; background-size: cover; filter: blur(4px) brightness(.72); z-index: 0; transition: opacity .25s ease, visibility .25s ease; }
.player-bg.is-hidden { opacity: 0; visibility: hidden; }
.player-loading { position: absolute; inset: 0; z-index: 3; background-position: center; background-size: cover; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, visibility .35s ease; }
.player-loading::before { content: ''; position: absolute; inset: -18px; background: inherit; background-position: center; background-size: cover; filter: blur(16px) brightness(.42); transform: scale(1.06); }
.loading-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 15px; color: #fff; font-size: 19px; text-shadow: 0 2px 8px rgba(0,0,0,.75); }
.loading-spinner { width: 38px; height: 38px; border: 4px solid rgba(255,255,255,.3); border-top-color: var(--red); border-radius: 50%; animation: player-spin .8s linear infinite; }
.player-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.tvbox-playbox { margin: 18px 0 24px; text-align: center; }
.tvbox-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; border: 0; padding: 14px 32px; border-radius: 24px;
  font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 24px rgba(255,77,109,.4);
  transition: transform .15s, box-shadow .15s;
}
.tvbox-play-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,77,109,.55); }
.tvbox-play-btn .play-icon { font-size: 22px; }
.player-error { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; color: #ddd; }
.player-error strong { color: #ff6b6b; font-size: 18px; }
.player-error span { max-width: 520px; color: var(--mut); line-height: 1.8; }
.vip-notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg,#2a1a2a,#1a1020); border-bottom: 1px solid rgba(245,158,11,.25); color: #fff; direction: rtl; }
.vip-notice-ico { font-size: 24px; flex-shrink: 0; }
.vip-notice-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: right; }
.vip-notice-txt strong { font-size: 14px; color: #f59e0b; }
.vip-notice-txt span { font-size: 12px; color: #c6b6c6; }
.vip-notice-btn { flex-shrink: 0; padding: 8px 14px; border-radius: 18px; background: linear-gradient(135deg,#f59e0b,#ff4d6d); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.player-vip-placeholder { position: relative; height: calc(100% - 60px); background-position: center; background-size: cover; display: flex; align-items: center; justify-content: center; }
.player-vip-placeholder::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.player-vip-lock { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 700; }
.player-vip-lock svg { width: 44px; height: 44px; stroke: #f59e0b; fill: none; stroke-width: 1.8; }
.p-nav { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }

/* ---- كىرىش / تىزىملىتىش ---- */
.auth-box { max-width: 400px; margin: 40px auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.auth-top { padding: 28px 28px 24px; text-align: center; background: linear-gradient(135deg, #f59e0b 0%, #ff4d6d 100%); color: #fff; position: relative; }
.auth-top::after { content: ''; position: absolute; inset: auto -20% -30px -20%; height: 44px; background: var(--bg2); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.auth-ico { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 20px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.auth-top h2 { color: #fff; font-size: 19px; margin: 0; font-weight: 800; }
.auth-top p { color: rgba(255,255,255,.95); font-size: 12.5px; margin: 6px 0 0; line-height: 1.6; }
.auth-body { padding: 24px 28px 28px; position: relative; z-index: 1; }
.auth-box label { display: block; color: var(--mut); font-size: 13px; margin: 14px 0 6px; }
.auth-box input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--txt); outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.auth-box .btn { width: 100%; margin-top: 22px; border: none; padding: 13px 16px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #ffb703); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 18px rgba(245,158,11,.35); }
.auth-box .btn:active { transform: scale(.98); }
.auth-alt { text-align: center; margin-top: 16px; color: var(--mut); font-size: 14px; }
.auth-alt a { color: var(--red); font-weight: 700; }
.alert { background: #fff0f3; border: 1px solid #ffc2d1; color: #c21e56; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--mut); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wx-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg, #07c160, #06ad56); color: #fff;
  font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(7,193,96,.3);
}
.wx-btn:active { opacity: .85; transform: scale(.98); }
.wx-logo { font-size: 21px; line-height: 1; }
/* 3-تەرەپ (聚合登录) كۇنۇپكىسى — ئۈندىدار 公众号 كۇنۇپكىسىدىن پەرقلىنىش ئۈچۈن كۆك گرادىيېنت */
.wx-btn.third { background: linear-gradient(135deg, #4f8cff, #3b6ff5); box-shadow: 0 6px 18px rgba(59,111,245,.3); }

/* ---- ھېسابىم ---- */
.profile-page { display: flex; flex-direction: column; gap: 16px; }

/* ھېساب باش قىسمى */
.p-hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, #ffe4ec 0%, #f3e8ff 50%, #fce7f3 100%);
  box-shadow: 0 8px 28px rgba(255, 77, 141, .15);
}
.p-hero-bg {
  position: absolute; inset: 0; opacity: .4;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,77,141,.35), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(139,92,246,.35), transparent 35%);
}
:root.dark-theme .p-hero { background: linear-gradient(135deg, #4c1d95 0%, #831843 50%, #1e1b4b 100%); }
:root.dark-theme .p-hero-bg { opacity: .55; }

.p-hero-content {
  position: relative; z-index: 1; padding: 24px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.p-avatar-wrap { position: relative; }
.p-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(255,77,141,.35); border: 3px solid #fff;
}
.vip-crown {
  position: absolute; top: -4px; inset-inline-end: -6px;
  font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.p-id h2 {
  font-size: 22px; color: var(--txt); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.vip-tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  background: linear-gradient(135deg, var(--gold), #f97316); color: #fff;
  border-radius: 8px;
}
.p-join { font-size: 12px; color: var(--mut); }

.p-points-card {
  width: 100%; max-width: 360px; padding: 14px 18px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-radius: 16px; border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
:root.dark-theme .p-points-card { background: rgba(15,15,25,.55); border-color: rgba(255,255,255,.1); }
.p-points-num {
  font-size: 32px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--red), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.p-points-lbl { font-size: 12px; color: var(--mut); margin-top: 2px; }
.p-points-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.p-points-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--purple)); transition: width .4s; }

/* سىتاتىستىكا */
.p-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.p-stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; color: var(--txt); box-shadow: var(--shadow); transition: transform .2s;
}
.p-stat:hover { transform: translateY(-2px); }
.p-stat-ico {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.p-stat strong { font-size: 20px; font-weight: 800; }
.p-stat small { font-size: 11px; color: var(--mut); }

/* كۈندىلىك چېلىش */
.p-checkin {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.p-checkin.done { background: linear-gradient(135deg, #f0fdf4, #ecfeff); border-color: #86efac; }
:root.dark-theme .p-checkin.done { background: linear-gradient(135deg, #064e3b, #164e63); border-color: #047857; }
.p-checkin-info { flex: 1; min-width: 0; }
.p-checkin-title { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 4px; }
.p-checkin-sub { font-size: 13px; color: var(--mut); }
.p-checkin-btn {
  flex-shrink: 0; padding: 10px 22px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; border: 0; border-radius: 12px; font-weight: 700;
  font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(255,77,141,.3);
}
.p-checkin-btn:hover:not(:disabled) { filter: brightness(1.06); }
.p-checkin-btn.disabled, .p-checkin-btn:disabled {
  background: #d1d5db; color: #6b7280; cursor: default; box-shadow: none;
}
:root.dark-theme .p-checkin-btn.disabled { background: #374151; color: #9ca3af; }

/* تېز مېنۇ */
.p-menu {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.p-menu-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); color: var(--txt); transition: background .2s;
}
.p-menu-item:last-child { border-bottom: 0; }
.p-menu-item:hover { background: var(--bg); }
.p-menu-item.danger:hover { background: #fef2f2; color: #ef4444; }
:root.dark-theme .p-menu-item.danger:hover { background: #450a0a; }
.p-menu-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.p-menu-txt { flex: 1; min-width: 0; }
.p-menu-txt strong { display: block; font-size: 14px; font-weight: 600; }
.p-menu-txt small { display: block; font-size: 11px; color: var(--mut); margin-top: 2px; }
.p-menu-arrow { font-size: 20px; color: var(--mut); }

/* چەمبەرلىنىش خاتىرىسى */
.p-recs {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 8px; box-shadow: var(--shadow);
}
.p-recs-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.p-recs-h h3 { font-size: 16px; }
.p-recs-h span { font-size: 12px; color: var(--mut); }
.p-rec-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
.p-rec {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg); border-radius: 12px;
}
.p-rec-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.p-rec-mid { flex: 1; min-width: 0; }
.p-rec-mid strong { display: block; font-size: 14px; }
.p-rec-mid small { display: block; font-size: 11px; color: var(--mut); margin-top: 2px; }
.p-rec-pts { font-size: 16px; font-weight: 700; color: var(--mut); }
.p-rec-pts.gain { color: #10b981; }

@media (max-width: 600px) {
  .p-hero-content { padding: 20px 16px; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-checkin { flex-direction: column; align-items: stretch; text-align: center; }
  .p-checkin-btn { width: 100%; }
}

/* ---- چاقپەلەك (زامانىۋى) ---- */
.wheel-page { max-width: 980px; margin: 0 auto; }
.wheel-head { display: flex; align-items: center; gap: 14px; padding: 20px 4px 22px; flex-wrap: nowrap; min-width: 0; }
.wheel-head-txt { flex: 1 1 auto; min-width: 0; }
.wheel-head-ico {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 27px; line-height: 1; overflow: hidden;
  background: linear-gradient(135deg, #ffe08a, #f59e0b 60%, #e67e22);
  box-shadow: 0 10px 24px rgba(245,158,11,.38), inset 0 1px 0 rgba(255,255,255,.6);
}
.wheel-head h1 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: .3px;
  background: linear-gradient(120deg, var(--red), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wheel-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--mut); }
.wheel-cols { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.wheel-left { flex: 1; min-width: 0; text-align: center; }
.wheel-card {
  position: relative; padding: 16px; border-radius: 30px;
  background: linear-gradient(165deg, rgba(255,255,255,.05), transparent 45%), var(--bg2);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wheel-wrap { position: relative; width: min(440px, 100%); margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: auto; display: block; border-radius: 50%; }
.wheel-wrap::before { /* پارقىراق سايە ھالقىسى */
  content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,77,109,.30), rgba(139,92,246,.22) 55%, transparent 74%);
  filter: blur(8px);
}
.spin-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 106px; height: 106px; border-radius: 50%; border: 6px solid rgba(255,255,255,.92);
  background: radial-gradient(circle at 32% 26%, #ff93a6, #ff4d6d 55%, #d6336c);
  color: #fff; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(255,77,109,.55), inset 0 -8px 14px rgba(0,0,0,.2), inset 0 5px 10px rgba(255,255,255,.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.spin-btn::before { /* تۇرغۇنلۇق پارقىراق ھالقا */
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid rgba(255,77,109,.55); animation: spinPulse 1.8s ease-out infinite;
}
.spin-btn .spin-btn-in { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.spin-btn b { font-size: 17px; font-weight: 900; }
.spin-btn small { font-size: 10.5px; opacity: .88; letter-spacing: 1px; }
.spin-btn:hover { box-shadow: 0 14px 40px rgba(255,77,109,.72), inset 0 -8px 14px rgba(0,0,0,.2), inset 0 5px 10px rgba(255,255,255,.35); }
.spin-btn:active { transform: translate(-50%, -50%) scale(.93); }
.spin-btn.spinning { pointer-events: none; opacity: .9; }
@keyframes spinPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.32); opacity: 0; } }
.wheel-status { margin-top: 16px; }
.wheel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ws-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 6px; box-shadow: var(--shadow); text-align: center;
}
.ws-item .ws-ico { font-size: 21px; display: block; }
.ws-item b { display: block; margin-top: 5px; font-size: 18px; color: var(--gold); }
.ws-item em { font-style: normal; font-size: 11px; color: var(--mut); display: block; margin-top: 2px; }
.wheel-login { background: linear-gradient(135deg, rgba(255,77,109,.1), rgba(139,92,246,.1)); border: 1px dashed var(--line); border-radius: 16px; padding: 14px; font-size: 13px; color: var(--mut); }
.wheel-login a { color: var(--red); font-weight: 700; }
/* تەڭگە چىقىم ئەسكەرتىشى — ھەقسىز تۈگىگەندە تەڭگە ئىشلىتىلىدۇ */
.wheel-warn { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: var(--gold); font-size: 12px; line-height: 1.6; text-align: center; }
/* تۆلەپ ئايلاندۇرۇش — ئۈندىدار تۆلەم (微信支付) كۇنۇپكىسى */
.wheel-pay { margin-top: 14px; }
.pay-spin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(7,193,96,.35);
}
.pay-spin-btn small { font-size: 12px; opacity: .92; }
.pay-spin-btn:active { transform: scale(.98); }
.pay-spin-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 易支付 كۇنۇپكىسى — بىنەپشە رەڭ بىلەن ئۈندىداردىن ئايرىلىدۇ */
.pay-spin-btn.yi { background: linear-gradient(135deg, #8a6dff, #6c4dff); box-shadow: 0 6px 16px rgba(108,77,255,.35); margin-top: 8px; }
.pay-note { margin-top: 8px; font-size: 12px; color: var(--gold); }
.wheel-right { width: 340px; display: flex; flex-direction: column; gap: 16px; }
.w-card { position: relative; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.w-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--purple), var(--gold)); opacity: .85; }
.w-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.wh-ico { font-size: 17px; }
.w-rules ul { list-style: none; }
.w-rules li { padding: 7px 0; color: var(--mut); font-size: 13px; line-height: 1.7; display: flex; gap: 8px; align-items: flex-start; }
.w-rules li::before { content: "✦"; color: var(--gold); flex: 0 0 auto; }
.w-prizes ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.w-prizes li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt); background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 8px 10px; min-width: 0; }
.w-prizes li span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-prizes .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.w-winners ul { list-style: none; max-height: 220px; overflow-y: auto; }
.w-winners li { padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.w-winners li:last-child { border-bottom: 0; }
.w-winners b { color: var(--gold); flex: 0 0 auto; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-winners span { color: var(--txt); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-winners em { font-style: normal; color: var(--mut); font-size: 11px; flex: 0 0 auto; }
.w-winners li.w-empty { justify-content: center; color: var(--mut); font-size: 13px; padding: 16px 4px; }
/* ئېرىشكۈچىلەر — مۇكاپاتلارنىڭ ئاستىدا (ئەسلى ئورنىدا)، 3 قۇر كۆرۈنىدۇ، 20 خاتىرە ئۈستى-تۆۋەن ئالمىشىپ تۇرىدۇ */
.w-winners-top {
  padding: 0;
}
.w-winners-top h3 { margin: 0; padding: 10px 14px 4px; font-size: 13px; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.w-winners-top h3 .wh-ico { filter: none; }
/* تىزىملىك ئۆز رامكىسى ئىچىدە كېسىلىدۇ — مېڭىش جەريانىدا باشلىقنى بېسىپ قالماسلىقى ئۈچۈن */
.w-winners-top .w-winners-scroll {
  height: 72px;
  overflow: hidden;
}
.w-winners-top ul {
  margin: 0;
  padding: 0 14px;
  list-style: none;
  max-height: none;
  overflow: visible;
  /* ئېگىزلىك تەبىئىي — translateY(-50%) ئارقىلىق يېرىم ئېگىزلىككە يۆتكىلىپ seamless قايتا ئايلىنىدۇ؛ كېسىش .w-winners-scroll (72px) دا بولىدۇ */
}
.w-winners-top li {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  padding: 0;
  border-bottom: 0;
}
.w-winners-top li.w-empty { justify-content: center; height: 72px; color: var(--mut); }
.w-winners-top b { font-weight: 600; color: var(--txt); flex: 0 0 auto; max-width: 35%; overflow: hidden; text-overflow: ellipsis; }
.w-winners-top span { flex: 1 1 auto; color: var(--primary); overflow: hidden; text-overflow: ellipsis; }
.w-winners-top em { flex: 0 0 auto; color: var(--mut); font-size: 11px; font-style: normal; }
/* ئۈستى-تۆۋەن ئالمىشىش animation */
@keyframes winnersScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.w-winners-top ul.scroll {
  animation: winnersScroll 26s linear infinite;
}
.w-winners-top:hover ul.scroll {
  animation-play-state: paused;
}
.win-modal { position: fixed; inset: 0; background: rgba(15,18,30,.68); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; }
.win-modal.on { display: flex; }
.win-box { position: relative; overflow: hidden; background: var(--bg2); border-radius: 26px; padding: 34px 26px 30px; text-align: center; max-width: 380px; width: 100%; box-shadow: 0 26px 70px rgba(0,0,0,.35); animation: winPop .45s cubic-bezier(.34,1.56,.64,1); }
.win-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold), var(--purple)); }
@keyframes winPop { from { transform: scale(.6); opacity: 0; } }
.win-emoji { display: inline-block; font-size: 64px; line-height: 1; margin-bottom: 6px; animation: winBounce .65s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 8px 18px rgba(255,77,109,.35)); }
@keyframes winBounce { 0% { transform: scale(0) rotate(-15deg); opacity: 0; } 60% { transform: scale(1.22) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.win-box h2 { margin: 12px 0 10px; font-size: 19px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(120deg, var(--red), var(--gold), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--red); }
.win-box p { color: var(--mut); margin-bottom: 22px; line-height: 1.85; font-size: 13px; font-weight: 500; }
.win-box .btn { padding: 12px 38px; border-radius: 30px; font-size: 14px; }
@media (max-width: 900px) {
  .wheel-cols { flex-direction: column; }
  .wheel-head { justify-content: center; }
}

/* ---- يېڭى تەپسىلات / قۇيۇش بېتى ---- */
.detail-hero {
  position: relative; height: 260px; background-size: cover; background-position: center;
  margin-top: -20px; margin-inline: -16px;
}
.detail-hero .detail-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, var(--bg) 100%);
}
.detail-topbar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; color: #fff;
}
.d-back, .d-share {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.35);
  color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; backdrop-filter: blur(4px);
}
.d-back { text-decoration: none; }
.d-title-top {
  font-size: 16px; flex: 1; text-align: center; margin: 0 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-wrap { position: relative; z-index: 3; margin-top: -90px; }
.detail-card {
  display: flex; gap: 16px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.detail-poster {
  width: 110px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.15);
  object-fit: cover; aspect-ratio: 2 / 3; height: auto;
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-size: 20px; margin-bottom: 8px; line-height: 1.3; }
.detail-meta { color: var(--mut); font-size: 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dot-sep { opacity: .6; }
.detail-rate { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.detail-rate b { font-size: 22px; color: var(--gold); }
.detail-rate .stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.detail-actions { display: flex; flex-direction: row; gap: 6px; align-items: stretch; }
.detail-actions button {
  flex: 1 1 0; min-width: 0; width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px; font-size: 11px; color: var(--mut); cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.detail-actions button span { font-size: 17px; color: #fff; }
.detail-actions button.on span { color: #fff; }
.detail-actions .p-act-fav { background: linear-gradient(135deg, #ff4d6d, #ff8a5b); border-color: transparent; color: #fff; }
.detail-actions .p-act-fav.on { background: linear-gradient(135deg, #e11d48, #ff4d6d); }
.detail-actions .p-act-dl { background: linear-gradient(135deg, #8b5cf6, #6366f1); border-color: transparent; color: #fff; }
.detail-actions .p-act-share { background: linear-gradient(135deg, #10b981, #06b6d4); border-color: transparent; color: #fff; }

.detail-sec { margin-top: 24px; }
.episode-sec { margin-top: 20px; }
.episode-header { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 10px; }
.episode-header h3 { justify-self: start; margin: 0; }
.episode-header > span { justify-self: end; text-align: end; }
.continue-play {
  height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(135deg, var(--red), var(--purple)); border: 0; border-radius: 8px;
  box-shadow: 0 4px 10px rgba(215, 61, 117, .2); color: #fff; cursor: pointer; font-family: inherit;
}
.continue-play:hover { filter: brightness(1.04); box-shadow: 0 6px 14px rgba(215, 61, 117, .28); }
.continue-play:active { transform: translateY(1px); }
.continue-play-icon {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.22); color: #fff; font-size: 9px; padding-inline-start: 1px;
}
.continue-play strong { color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.detail-sec .sec-h { margin-bottom: 12px; }
.detail-sec .sec-h h3 { font-size: 16px; }
.detail-sec .sec-h span { color: var(--mut); font-size: 12px; }
.sec-title { font-size: 16px; margin-bottom: 12px; }
.episode-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.episode-list::-webkit-scrollbar { display: none; }
.ep-num {
  min-width: 44px; height: 44px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--txt);
}
.ep-num.on { background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; border-color: transparent; }
.detail-desc { color: #4b5563; font-size: 14px; line-height: 1.8; max-height: 84px; overflow: hidden; position: relative; }
.detail-desc.open { max-height: none; }
.detail-desc::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.detail-desc.open::after { display: none; }
.detail-desc .desc-none { color: var(--mut); font-style: italic; opacity: .85; }
.desc-more {
  background: none; border: 0; color: var(--red); font-size: 13px; margin-top: 6px; cursor: pointer; font-family: inherit;
}
.cast-list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.cast-list::-webkit-scrollbar { display: none; }
.cast-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.cast-ava {
  width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.cast-item span { font-size: 12px; color: var(--txt); text-align: center; }

.play-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
  margin-top: -20px; color: var(--txt);
}
.play-topbar .d-back, .play-topbar .d-share { background: var(--bg2); color: var(--txt); border: 1px solid var(--line); }
.player-wrap { padding-bottom: 30px; }
.play-info { margin: 16px 0; }
.play-info h1 { font-size: 18px; margin-bottom: 6px; }
.play-info p { color: var(--mut); font-size: 13px; }

/* قۇيۇش بېتى — باش بەت ئۈستى/ئاستىنى يوشۇرۇش */
.play-page .topbar,
.play-page .catline,
.play-page .announce,
.play-page .foot,
.detail-page .catline,
.detail-page .announce,
.detail-page .foot { display: none; }
.play-page .main { padding-top: 0; padding-bottom: 28px; }
.play-page .play-topbar { margin-top: 0; }
.detail-page .main { padding-bottom: 28px; }

/* مېنىڭ / sub بەتلىرى — باش بەتنىڭ ئاستى يولباشچىسى */
.profile-page .bottom-nav,
.sub-page .bottom-nav { display: none; }
body.profile-page .main > .bottom-nav,
body.sub-page .main > .bottom-nav { display: flex !important; position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; background: var(--bg2); border-top: 1px solid var(--line); box-shadow: 0 -2px 14px rgba(31,35,51,.06); padding: 8px 0 12px; }
body.profile-page .main > .bottom-nav .wrap,
body.sub-page .main > .bottom-nav .wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: none; padding: 0 8px; gap: 0; box-sizing: border-box; }
.bottom-nav .wrap > a { flex: 1 1 0; max-width: 25%; min-width: 0; }
body.profile-page .main > .bottom-nav a,
body.sub-page .main > .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--nf, var(--mut)); background: var(--nb, transparent); font-size: 11px; padding: 6px 4px; border-radius: 12px; flex: 1 1 0; max-width: 25%; min-width: 0; }
body.profile-page .main > .bottom-nav a.on,
body.sub-page .main > .bottom-nav a.on { color: var(--onf, var(--red)); background: var(--onb, rgba(255,77,109,.08)); font-weight: 700; }
body.profile-page .main > .bottom-nav a.on::before,
body.sub-page .main > .bottom-nav a.on::before {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px; background: var(--onf, var(--red));
}
body.profile-page .main > .bottom-nav a.on .ico,
body.sub-page .main > .bottom-nav a.on .ico,
body.profile-page .main > .bottom-nav a.on .nav-img,
body.sub-page .main > .bottom-nav a.on .nav-img,
body.profile-page .main > .bottom-nav a.on .svg-ico,
body.sub-page .main > .bottom-nav a.on .svg-ico { transform: scale(1.15); }
.profile-page { padding-bottom: 24px; }
.sub-page { padding-bottom: 24px; }
body.profile-page { padding-bottom: 92px; }
body.sub-page { padding-bottom: 92px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chips a { padding: 8px 16px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; color: var(--txt); }
.cat-chips a:hover { background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; border-color: transparent; }

/* ---- ئاستى ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 20px; }
.foot .wrap { padding-top: 20px; padding-bottom: 16px; }
.foot-brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.foot-brand h4 { font-size: 15px; white-space: nowrap; }
.foot-brand p { color: var(--mut); font-size: 13px; text-align: end; }
.foot-links { display: flex; gap: 8px; margin-top: 14px; }
.foot-links a { flex: 1; text-align: center; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--mut); font-size: 12px; }
.foot-links a:hover { border-color: var(--red); color: var(--red); }
.copy { color: var(--mut); font-size: 11px; text-align: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }

/* ---- ئېكران ماسلاشتۇرۇش ---- */
@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  .cols { flex-direction: column; }
  .rank { width: 100%; }
  .detail { flex-direction: column; }
  .d-poster { width: 180px; }
  .wheel-right { width: 100%; }
  .nav, .desktop-user { display: none; }
  .uarea { display: flex; order: 3; margin-inline-start: 0; }
  .theme-wrap { display: flex; }
  .theme-toggle { display: flex; }
  .menu-btn { display: block; }
  .search { order: 2; flex: 1; max-width: none; margin-inline-start: 0; }
  .logo { order: 1; }
  .search input { min-width: 0; }
  .search button { width: 42px; padding: 0; flex: 0 0 42px; }
  .slide h2 { font-size: 24px; }
  .hero { height: 260px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
  .bottom-nav { display: block; }
}
@media (max-width: 600px) {
  .bar-in { height: 56px; gap: 10px; }
  .logo { font-size: 18px; }
  .search { display: flex; }
  .search input { font-size: 13px; padding: 9px 12px; }
  .hero { height: 220px; border-radius: 14px; }
  .s-in { padding: 18px; }
  .slide h2 { font-size: 20px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .grid-sm .thumb { border-radius: 6px; }
  .grid-sm .cname { font-size: 12px; }
  .catline .wrap { justify-content: center; flex-wrap: wrap; }
  .quick-cats { justify-content: center; flex-wrap: wrap; }
  .main { padding: 16px 12px 18px; }
  .foot { margin-top: 6px; }
  .foot .wrap { padding-top: 16px; padding-bottom: 12px; }
  .foot-brand { align-items: flex-start; }
  .foot-brand p { font-size: 12px; line-height: 1.5; }
  .foot-links { margin-top: 12px; }
  .copy { margin-top: 12px; padding-top: 10px; }
  .play-page .main { padding: 0; }
  .play-page .player-box { border-radius: 0; margin-inline: -16px; }
  .play-page .player-wrap { padding: 0 16px 20px; }
}

/* ===== QR پوستېر ھەمبەھىرلەش ===== */
.topbar-share {
  width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--mut); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: transform .15s;
}
.topbar-share:active { transform: scale(.9); }

.share-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.78);
  z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.share-modal.on { display: flex; }
.share-modal-box {
  background: var(--bg2); border-radius: 20px; max-width: 380px; width: 100%;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: translateY(-5vh);
}
.share-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.share-modal-head h3 { font-size: 16px; }
.share-modal-close {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--mut); cursor: pointer; font-size: 13px;
}
.share-modal-body { padding: 16px 16px 4px; }
.share-modal-loading {
  height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--mut); font-size: 14px; gap: 10px;
}
.share-spinner {
  width: 26px; height: 26px; border: 3px solid var(--line);
  border-top-color: var(--red); border-radius: 50%;
  animation: share-spin .8s linear infinite;
}
@keyframes share-spin { to { transform: rotate(360deg); } }
.share-modal-img { width: auto; height: auto; max-width: 100%; max-height: 62vh; display: block; margin: 0 auto; border-radius: 12px; }
.share-modal-hint { text-align: center; color: var(--mut); font-size: 12.5px; margin-top: 10px; line-height: 1.8; }
.share-modal-hint b { color: var(--red); }
.share-modal-actions { display: flex; gap: 10px; padding: 12px 16px 18px; }
.share-modal-btn {
  flex: 1; padding: 11px 10px; border-radius: 12px; border: 0;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.share-modal-copy { background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; }
.share-modal-close2 { background: var(--bg); color: var(--txt); border: 1px solid var(--line); }
.share-toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(20,22,30,.92); color: #fff; padding: 10px 18px;
  border-radius: 20px; font-size: 13px; z-index: 400; white-space: nowrap;
}

/* ===== كىرمىگەن ئەزا ھەمبەھىرلەش ئەسكەرتىش كۆزنىكى (share.js) ===== */
.share-login-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  z-index: 320; display: none; align-items: center; justify-content: center; padding: 24px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.share-login-modal.on { display: flex; animation: shareLoginFade .25s ease; }
.share-login-box {
  position: relative; width: 100%; max-width: 320px; text-align: center;
  background: var(--bg2); border-radius: 22px; padding: 36px 24px 26px;
  box-shadow: 0 26px 70px rgba(0,0,0,.5); border: 1px solid var(--line);
  animation: shareLoginPop .38s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes shareLoginFade { from { opacity: 0; } }
@keyframes shareLoginPop { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.share-login-icon {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, #ff9f43, #ff4d6d);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 10px 26px rgba(255,77,109,.4); position: relative;
}
.share-login-icon::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(255,77,109,.35);
  animation: shareLoginPulse 1.8s ease-out infinite;
}
@keyframes shareLoginPulse {
  0% { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
.share-login-icon svg { width: 34px; height: 34px; }
.share-login-box h3 { font-size: 18px; margin: 0 0 8px; }
.share-login-box p { color: var(--mut); font-size: 13.5px; line-height: 1.8; margin: 0 0 24px; }
.share-login-actions { display: flex; gap: 10px; }
.share-login-btn {
  flex: 1; padding: 12px 10px; border-radius: 14px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700;
  transition: transform .12s, filter .15s;
}
.share-login-btn:active { transform: scale(.95); }
.share-login-btn.primary { background: linear-gradient(135deg, var(--red), var(--purple)); color: #fff; box-shadow: 0 6px 16px rgba(229,9,20,.3); }
.share-login-btn.ghost { background: var(--bg); color: var(--txt); border: 1px solid var(--line); }
.share-login-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--mut); cursor: pointer; font-size: 13px; line-height: 1;
}

/* ===== باش بەت ئۈستى قۇرى + چىرايلىق ھەمبەھىرلەش كۇنۇپكىسى ===== */
.topbar-home .brand-row {
  display: flex; justify-content: center; align-items: center;
  padding: 13px 12px 4px;
  position: relative;
}
/* ئاۋاتار — كىنوخانا نامىنىڭ سول تەرەپ ئۈستى (كېچە-كۈندۈز كۇنۇپكىسىنىڭ ئۈستىگە توغرىلىنىدۇ) */
.topbar-avatar {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg);
  overflow: visible; display: flex; align-items: center; justify-content: center;
}
.topbar-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.topbar-avatar .vip-badge {
  position: absolute; bottom: -3px; inset-inline-end: -3px;
  min-width: 22px; height: 15px; padding: 0 4px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffd34d, #f5a623); color: #5b3a00;
  font-size: 9px; font-weight: 800; border-radius: 8px;
  border: 1px solid #fff; line-height: 1;
}
.topbar-home .brand-row .logo { font-size: 26px; letter-spacing: 1px; }
.topbar-home .brand-row .logo-img { height: 46px; max-width: 220px; }
.share-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border: 0; border-radius: 22px;
  font-family: inherit; font-size: 13.5px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--purple));
  background-size: 200% 200%;
  white-space: nowrap; flex: 0 0 auto;
  animation: cta-float 2.2s ease-in-out infinite, cta-glow 2.2s ease-in-out infinite, cta-bgmove 3s ease infinite;
}
.share-cta::before { /* يورۇقلۇق سىزىق سۈپۈرۈش — تېخنولوگىيەلىك كۆرۈنۈش */
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
.share-cta:active { filter: brightness(1.15); }
.share-cta .cta-ico { display: inline-block; animation: cta-wiggle 2s ease-in-out infinite; }
@keyframes cta-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,77,109,.4), 0 0 8px rgba(255,77,109,.25); }
  50% { box-shadow: 0 10px 26px rgba(168,85,247,.65), 0 0 14px rgba(168,85,247,.35); }
}
@keyframes cta-bgmove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes cta-shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}
@keyframes cta-wiggle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
@media (max-width: 600px) {
  .topbar-home .brand-row { padding: 10px 12px 2px; }
  .topbar-home .brand-row .logo { font-size: 21px; }
  .share-cta { padding: 5px 11px; font-size: 12px; gap: 4px; border-radius: 18px; }
}

/* ===== ئۈستىگە قايتىش كۇنۇپكىسى ===== */
#backTop {
  position: fixed;
  left: 18px;
  bottom: 180px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  color: #fff;
  background: linear-gradient(135deg, #e50914, #ff5f6d);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 12px rgba(229,9,20,.55);
  animation: backTopGlow 2.2s ease-in-out infinite;
}
#backTop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#backTop:hover { background: linear-gradient(135deg, #ff1f2d, #ff7a85); }
#backTop:active { transform: translateY(0) scale(.92); }
@keyframes backTopGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 10px rgba(229,9,20,.45); }
  50% { box-shadow: 0 4px 18px rgba(0,0,0,.4), 0 0 24px rgba(255,80,95,.85); }
}
@media (max-width: 600px) {
  #backTop { width: 46px; height: 46px; left: 12px; }
  #backTop svg { width: 21px; height: 21px; }
}
