﻿:root {
  --bg: #0a0a0a;
  --bg-deep: #020202;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, .08);
  --text: #f7f7f7;
  --muted: #9b9b9b;
  --soft: #d6d6d6;
  --red: #e50914;
  --red-2: #ff2430;
  --gold: #f3c43b;
  --shadow: 0 22px 60px rgba(0, 0, 0, .54);
  color-scheme: dark;
}

@font-face {
  font-family: "ChaqmaqUyghur";
  src: url("/assets/fonts/MicrosoftUighur.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  height: 100%;
  width: 100%;
  min-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

body[data-font-scale="small"] {
  font-size: 14px;
}

body[data-font-scale="large"] {
  font-size: 17px;
}

body[data-card-radius="sharp"] .movie-card,
body[data-card-radius="sharp"] .promo-card,
body[data-card-radius="sharp"] .menu-item,
body[data-card-radius="sharp"] .plan-card {
  border-radius: 6px;
}

body[data-card-radius="round"] .movie-card,
body[data-card-radius="round"] .promo-card,
body[data-card-radius="round"] .menu-item,
body[data-card-radius="round"] .plan-card {
  border-radius: 16px;
}

body[data-card-shadow="none"] .movie-card,
body[data-card-shadow="none"] .promo-card,
body[data-card-shadow="none"] .plan-card {
  box-shadow: none;
}

body[data-card-shadow="neon"] .movie-card,
body[data-card-shadow="neon"] .promo-card,
body[data-card-shadow="neon"] .plan-card {
  box-shadow: 0 18px 42px rgba(229,9,20,.24);
}

body[data-button-style="flat"] .single-buy,
body[data-button-style="flat"] .load-more,
body[data-button-style="flat"] .nav-item.active {
  box-shadow: none;
}

body[data-button-style="gold"] .single-buy,
body[data-button-style="gold"] .load-more {
  color: #1a1000;
  background: linear-gradient(135deg, var(--gold), #ffe39a);
}

body[data-nav-style="compact"] .bottom-nav {
  height: 58px;
  width: min(calc(100vw - 32px), 368px);
}

body[data-nav-style="floating"] .bottom-nav {
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 40px), 370px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "ChaqmaqUyghur", Inter, "SF Pro Display", "Microsoft Uighur", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  width: 100vw;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 18%),
    var(--bg);
}

.app-copyright {
  position: relative;
  z-index: 2;
  padding: 8px 18px calc(92px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.34);
  text-align: center;
  font: 700 10px/1.4 Inter, "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  direction: ltr;
  user-select: none;
}

.app-back {
  position: fixed;
  top: max(82px, calc(env(safe-area-inset-top) + 76px));
  left: max(8px, env(safe-area-inset-left));
  z-index: 105;
  width: 34px;
  height: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 0 999px 999px 0;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(229,9,20,.32), rgba(255,255,255,.06)),
    rgba(10,10,10,.72);
  border: 1px solid rgba(255,255,255,.14);
  border-left: 0;
  box-shadow: 0 18px 38px rgba(0,0,0,.42), 0 0 24px rgba(229,9,20,.22);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  pointer-events: auto;
}

.app-back span {
  display: block;
  transform: translateY(-1px);
  font: 900 34px/1 Inter, Arial, sans-serif;
}

.app-back:active {
  transform: scale(.94);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: .25;
  z-index: 2;
}

.app-view {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 110px;
  width: 100vw;
  margin: 0;
  position: relative;
  z-index: 3;
  animation: pageImpact .34s cubic-bezier(.2, .8, .2, 1);
  will-change: transform, opacity;
  overflow: visible;
}

body.wechat-locked .bottom-nav {
  display: none;
}

body.auth-locked .bottom-nav {
  display: none;
}

body:has(.short-player) .bottom-nav {
  display: none;
}

body.short-player-active .bottom-nav {
  display: none;
}

body.wechat-locked .app-view,
body.auth-locked .app-view {
  max-width: none;
  padding-bottom: 0;
}

.topbar {
  min-height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 5, 5, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 180;
  transform: translateZ(0);
  box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 -1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.top-search {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  text-align: right;
  background:
    radial-gradient(circle at 6% 50%, rgba(255,36,48,.34), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.115), rgba(255,255,255,.045)),
    rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.24);
  transform-origin: top center;
}

.top-search span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--red-2), var(--red));
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(229,9,20,.5);
}

.top-search b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 650;
}

@keyframes pageImpact {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.app-view[data-transition="left"] {
  animation-name: slideLeft;
}

.app-view[data-transition="right"] {
  animation-name: slideRight;
}

.app-view[data-transition="up"] {
  animation-name: slideUp;
}

.app-view[data-transition="down"] {
  animation-name: slideDown;
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(42px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-42px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-42px) scale(.97); filter: blur(10px); }
  62% { opacity: 1; transform: translateY(8px) scale(1.01); filter: blur(0); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

button {
  transition: transform .22s cubic-bezier(.2,.8,.2,1), filter .22s, background .22s, border-color .22s;
}

button:active {
  transform: scale(.96);
}

.brand {
  flex: 0 0 auto;
  color: #ff493f;
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 0 28px rgba(229, 9, 20, .35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-bolt {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-2), var(--red));
  box-shadow: 0 0 24px rgba(229,9,20,.58), inset 0 1px 0 rgba(255,255,255,.22);
  font-size: 22px;
  line-height: 1;
}

.icon-btn,
.avatar-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border-radius: 8px;
}

.icon-btn {
  font-size: 23px;
}

.avatar-btn {
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(145deg, #c60812, #8f0610);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px rgba(229, 9, 20, .32);
  font-weight: 900;
}

.hero-flip {
  position: relative;
  margin: 8px 10px 4px;
  overflow: hidden;
  border-radius: 16px;
  background: #050505;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 66px rgba(0,0,0,.52);
}

.hero-track {
  display: flex;
  direction: ltr;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  perspective: 1100px;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero {
  flex: 0 0 100%;
  direction: rtl;
  min-height: 408px;
  padding: 186px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transform-origin: center center;
  animation: heroPageIn .46s cubic-bezier(.2,.8,.2,1);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes heroPageIn {
  from {
    opacity: 0;
    transform: rotateY(-7deg) translateX(28px) scale(.975);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: rotateY(0) translateX(0) scale(1);
    filter: blur(0);
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.28) 42%, #0a0a0a 96%),
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.12) 54%, rgba(0,0,0,.7));
}

.hero::after {
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-index {
  position: absolute;
  top: 20px;
  left: 16px;
  z-index: 1;
  color: rgba(255,255,255,.9);
  font: 900 34px/1 Inter, "SF Pro Display", Arial, sans-serif;
  text-shadow: 0 18px 36px rgba(0,0,0,.72), 0 0 24px rgba(229,9,20,.26);
}

.hero-dots {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: auto;
}

.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  box-shadow: 0 0 14px rgba(0,0,0,.5);
  transition: width .24s cubic-bezier(.2,.8,.2,1), background .24s;
}

.hero-dots span.active {
  width: 25px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 0 18px rgba(229,9,20,.48);
}

.pill-red {
  width: max-content;
  min-height: 20px;
  padding: 4px 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(229, 9, 20, .38);
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .88);
}

.meta {
  color: #b8b8b8;
  font-size: 12px;
  line-height: 1.55;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
}

.tagline {
  margin: 12px 0 14px;
  color: #e2e2e2;
  font-size: 13px;
  line-height: 1.65;
  max-width: 30ch;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(12px);
}

.btn.primary {
  color: #050505;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .34);
}

.hero .btn {
  min-width: 118px;
}

.btn.danger,
.chip.active {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(229, 9, 20, .32);
}

.section {
  padding: 18px 20px 0;
}

.section-title {
  min-height: 24px;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  font-size: 17px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  color: var(--red);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar,
.poster-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #bdbdbd;
  background: linear-gradient(180deg, #222, #191919);
  border: 1px solid rgba(255, 255, 255, .1);
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.poster {
  min-height: 126px;
  aspect-ratio: 9 / 13.5;
  border-radius: 7px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
  box-shadow:
    inset 0 -52px 48px rgba(0, 0, 0, .48),
    0 14px 30px rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
}

.poster b {
  position: absolute;
  top: 7px;
  left: 7px;
  min-height: 18px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.52);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  font: 800 9px/1 Inter, "SF Pro Display", Arial, sans-serif;
}

.poster span,
.poster small {
  width: 100%;
  display: block;
}

.poster small {
  margin-top: 4px;
  color: #cfcfcf;
  font-size: 9px;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
}

.search-page {
  padding: 8px 20px 0;
}

.app-view[data-transition="down"] .search-page {
  animation: searchDrop .38s cubic-bezier(.18,.9,.2,1);
}

@keyframes searchDrop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-title {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.1;
}

.search-box {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 8% 50%, rgba(229,9,20,.26), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
    #151515;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.28);
}

.search-box span {
  color: #868686;
  font-size: 20px;
}

.search-box input {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
  caret-color: var(--red-2);
}

.trend-list {
  margin-top: 14px;
  padding: 0 14px;
  background: #121212;
  border: 1px solid rgba(255,255,255,.05);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-lead {
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.filter-board {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 8px 0 2px;
  max-height: min(48vh, 390px);
  overflow-y: auto;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: none;
}

.compact-section {
  padding-top: 10px;
}

.shorts-head {
  margin: 12px 12px 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0, rgba(229,9,20,.22), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
}

.shorts-head h1 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.05;
}

.shorts-head p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255,255,255,.66);
  line-height: 1.5;
  font-size: 13px;
}

.short-feature-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 46%);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 5px;
  direction: ltr;
  scrollbar-width: none;
}

.short-feature-row::-webkit-scrollbar {
  display: none;
}

.short-feature-card,
.short-poster-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 -86px 70px rgba(0,0,0,.84), 0 18px 38px rgba(0,0,0,.32);
  text-align: right;
  isolation: isolate;
  direction: rtl;
}

.short-feature-card::before,
.short-poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.16) 38%, rgba(0,0,0,.86)),
    radial-gradient(circle at 12% 0, rgba(229,9,20,.18), transparent 34%);
}

.short-feature-card {
  min-height: 174px;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.short-feature-card span,
.short-poster-card b {
  width: max-content;
  min-height: 20px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font: 900 10px/1 Inter, Arial, sans-serif;
  box-shadow: 0 10px 22px rgba(229,9,20,.32);
}

.short-feature-card strong,
.short-poster-card span {
  margin-top: 8px;
  display: block;
  min-height: 2.15em;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.08;
  text-shadow: 0 10px 24px rgba(0,0,0,.7);
}

.short-feature-card small,
.short-poster-card small {
  margin-top: 5px;
  color: #ddd;
  font: 800 11px/1.2 Inter, Arial, sans-serif;
}

.short-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.short-poster-card {
  min-height: 132px;
  aspect-ratio: 9 / 14;
  padding: 7px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.short-poster-card span {
  font-size: 13px;
  min-height: 2.1em;
  line-height: 1.05;
}

.short-poster-card small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.short-player {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #fff;
  touch-action: none;
}

.short-video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.short-video-frame video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.short-video-frame::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: 1;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.2);
  opacity: .38;
  transform: scale(1.08);
}

.short-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.58), transparent 21%, transparent 52%, rgba(0,0,0,.86)),
    linear-gradient(90deg, rgba(0,0,0,.34), transparent 28%, transparent 72%, rgba(0,0,0,.32));
}

.short-topbar {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  z-index: 7;
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.short-topbar > div {
  min-width: 0;
  text-align: right;
}

.short-topbar strong {
  display: block;
  color: #fff;
  font: 950 14px/1.2 Inter, "SF Pro Display", Arial, sans-serif;
  letter-spacing: .4px;
}

.short-topbar small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.short-round,
.short-quality {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.17), rgba(255,255,255,.055)),
    rgba(10,10,10,.44);
  border: 1px solid rgba(255,255,255,.17);
  box-shadow: 0 14px 34px rgba(0,0,0,.38);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

.short-round {
  width: 40px;
  font: 950 30px/1 Inter, Arial, sans-serif;
}

.short-quality {
  padding: 0 12px;
  font: 900 12px/1 Inter, Arial, sans-serif;
}

.short-quality-panel {
  top: max(66px, calc(env(safe-area-inset-top) + 56px));
  right: 12px;
  z-index: 9;
}

.short-play-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(145deg, rgba(229,9,20,.82), rgba(115,4,10,.78));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 54px rgba(0,0,0,.45), 0 0 34px rgba(229,9,20,.28);
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 950;
  transition: opacity .24s cubic-bezier(.2,.8,.2,1), transform .24s cubic-bezier(.2,.8,.2,1);
}

.short-video-frame.is-playing .short-play-center {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.76);
}

.short-side-actions {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(132px, calc(env(safe-area-inset-bottom) + 120px));
  z-index: 7;
  display: grid;
  gap: 12px;
}

.short-side-actions button {
  width: 52px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #fff;
  background: transparent;
  text-shadow: 0 8px 18px rgba(0,0,0,.72);
}

.short-side-actions span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.045)),
    rgba(12,12,12,.48);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 34px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
  font-size: 19px;
  font-weight: 950;
}

.short-side-actions small {
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  font-weight: 850;
}

.short-copy {
  position: absolute;
  left: 14px;
  right: 82px;
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 74px));
  z-index: 7;
  text-align: right;
}

.short-copy h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 8vw, 36px);
  line-height: 1.02;
  text-shadow: 0 12px 30px rgba(0,0,0,.72);
}

.short-copy p {
  display: -webkit-box;
  max-height: 48px;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.55;
}

.short-meta {
  margin-top: 8px;
  color: rgba(255,255,255,.7);
  font: 850 12px/1.2 Inter, "SF Pro Display", Arial, sans-serif;
}

.short-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(52px, calc(env(safe-area-inset-bottom) + 40px));
  z-index: 8;
  min-height: 28px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  direction: ltr;
  color: rgba(255,255,255,.76);
  font: 850 10px/1 Inter, Arial, sans-serif;
}

.short-progress .bar {
  position: relative;
  height: 18px;
  display: block;
}

.short-progress .bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.short-progress .bar span {
  position: absolute;
  left: 0;
  top: 8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 18px rgba(229,9,20,.6);
}

.short-progress input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.short-progress .bar::after {
  content: "⚡";
  position: absolute;
  left: var(--short-progress, 0%);
  top: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--red-2), var(--red));
  box-shadow: 0 0 20px rgba(229,9,20,.7);
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.short-episode-strip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  direction: ltr;
  scrollbar-width: none;
}

.short-episode-strip::-webkit-scrollbar {
  display: none;
}

.short-episode-strip button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  font: 900 12px/1 Inter, Arial, sans-serif;
  backdrop-filter: blur(12px);
}

.short-episode-strip button.active {
  color: #fff;
  background: linear-gradient(145deg, var(--red), var(--red-2));
  box-shadow: 0 0 24px rgba(229,9,20,.4);
}

.short-episode-strip button.locked {
  color: rgba(255,255,255,.58);
  background: rgba(0,0,0,.48);
  border-color: rgba(255,181,71,.28);
}

.filter-group {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  margin: 0;
  color: #f6f6f6;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.filter-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  white-space: nowrap;
  line-height: 1;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.filter-chips button.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(229,9,20,.78), rgba(255,36,48,.32)),
    rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 12px 24px rgba(229,9,20,.18);
}

.filter-actions {
  margin-top: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 112px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 9px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 90% 0, rgba(229,9,20,.28), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    #151515;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 38px rgba(0,0,0,.32);
  overflow: hidden;
}

.feature-card > button:first-child {
  width: 100%;
  min-height: 94px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  background: transparent;
  text-align: inherit;
}

.hero,
.poster,
.feature-card,
.category-card,
.profile-hero,
.settings-panel {
  transform: translateZ(0);
}

.poster:hover,
.feature-card:hover,
.category-card:hover {
  filter: brightness(1.08);
}

.feature-card span {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
}

.feature-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.feature-card small {
  color: #aaa;
}

.category-card {
  min-height: 88px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(229,9,20,.2), rgba(255,255,255,.055)),
    #151515;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.category-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}

.category-card span {
  color: #aaa;
  font-size: 12px;
}

.trend-item {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0;
  color: #f2f2f2;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
}

.trend-item:last-child {
  border-bottom: 0;
}

.rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #303030;
  color: #ccc;
  font-weight: 900;
}

.rank.top-1 {
  background: var(--red);
  color: #fff;
}

.rank.top-2 {
  background: #ff6534;
}

.rank.top-3 {
  background: var(--gold);
  color: #111;
}

.views {
  color: #c9c9c9;
  font-size: 11px;
}

.player {
  background: var(--bg);
  width: 100%;
}

.video-area {
  height: min(62.5vw, 360px);
  min-height: 228px;
  width: 100%;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.58);
}

.player-chrome {
  position: relative;
  z-index: 6;
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.045)),
    radial-gradient(circle at 18% 0, rgba(229,9,20,.32), transparent 34%),
    rgba(8,8,8,.48);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 42px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.player-play,
.player-mini {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(229,9,20,.86), rgba(255,36,48,.34)),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(229,9,20,.22);
  font-size: 14px;
  font-weight: 950;
}

.video-empty {
  margin: auto;
  max-width: min(88vw, 260px);
  padding: 10px 14px;
  border-radius: 8px;
  color: #ddd;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.video-area video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  z-index: 3;
  background: #000;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  will-change: transform;
}

.trial-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(229,9,20,.24), transparent 30%),
    rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
}

.trial-overlay strong {
  font-size: 28px;
  line-height: 1;
}

.trial-overlay p {
  max-width: min(88vw, 260px);
  margin: 0;
  color: #d8d8d8;
  line-height: 1.45;
}

.trial-plan-row {
  width: min(94vw, 340px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trial-plan {
  min-height: 72px;
  padding: 8px 6px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
}

.trial-plan span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.trial-plan b,
.trial-plan small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-lock-overlay {
  z-index: 9;
}

.login-gate {
  min-height: calc(100vh - 150px);
  padding: 34px 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  text-align: center;
}

.gate-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 30%),
    linear-gradient(145deg, var(--red), #7f050d);
  box-shadow: 0 24px 70px rgba(229,9,20,.28);
  font-size: 28px;
  font-weight: 950;
}

.login-gate h1 {
  max-width: min(88vw, 320px);
  color: #fff;
  font-size: 25px;
  line-height: 1.25;
}

.login-gate p {
  max-width: min(90vw, 330px);
  color: var(--muted);
  line-height: 1.7;
}

.ghost-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 850;
}

.video-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.04) 38%, rgba(0,0,0,.22) 72%, rgba(0,0,0,.62)),
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(0,0,0,.28));
}

.video-area.is-playing {
  background-image: none !important;
}

.video-area.is-playing::before {
  opacity: .72;
}

.video-controls {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .26s cubic-bezier(.2,.8,.2,1), transform .26s cubic-bezier(.2,.8,.2,1);
}

.video-controls > div {
  display: flex;
  gap: 8px;
}

.video-controls .icon-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    rgba(8,8,8,.38);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px) saturate(1.35);
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.16);
}

.video-controls .quality-btn {
  width: auto;
  min-width: 50px;
  padding: 0 10px;
  border-radius: 999px;
  font: 850 11px/1 Inter, "SF Pro Display", Arial, sans-serif;
}

.quality-panel {
  position: absolute;
  top: max(58px, calc(env(safe-area-inset-top) + 46px));
  right: 16px;
  z-index: 8;
  min-width: 112px;
  padding: 7px;
  display: grid;
  gap: 6px;
  border-radius: 13px;
  background: rgba(8,8,8,.72);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
  backdrop-filter: blur(16px);
}

.quality-panel[hidden] {
  display: none;
}

.quality-panel button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: 850 12px/1 Inter, "SF Pro Display", Arial, sans-serif;
}

.quality-panel button.active {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 10px 24px rgba(229,9,20,.24);
}

.play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(10,10,10,.62);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
  font-size: 20px;
  font-weight: 950;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .26s cubic-bezier(.2,.8,.2,1), transform .26s cubic-bezier(.2,.8,.2,1);
}

.player-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  min-width: 128px;
  min-height: 76px;
  padding: 12px 16px;
  display: grid;
  place-items: center;
  gap: 6px;
  border-radius: 14px;
  color: #fff;
  background: rgba(6,6,6,.62);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 58px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
}

.player-status.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

.player-status span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red-2), var(--red));
  box-shadow: 0 0 24px rgba(229,9,20,.56);
  animation: boltPulse .8s ease-in-out infinite alternate;
}

.player-status b {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.player-status.error span {
  background: #fff;
  color: #111;
  animation: none;
}

.player-status.error {
  pointer-events: auto;
}

.player-status button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-size: 12px;
  font-weight: 850;
}

@keyframes boltPulse {
  from { transform: scale(.94); filter: brightness(.9); }
  to { transform: scale(1.08); filter: brightness(1.25); }
}

.video-area.controls-hidden:not(.paused) .video-controls,
.video-area.controls-hidden:not(.paused) .player-chrome {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.video-area.controls-hidden:not(.paused) .player-chrome {
  transform: translateY(8px);
}

.video-area.controls-hidden:not(.paused) .play-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  pointer-events: none;
}

.video-area.is-playing .play-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  pointer-events: none;
}

.video-area.locked .progress,
.video-area.locked .play-toggle,
.video-area.locked .video-controls .icon-btn:not([data-player-lock]) {
  opacity: 0;
  pointer-events: none;
}

.video-area:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.video-area:fullscreen video {
  object-fit: contain;
}

.play-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #fff;
  font-size: 30px;
  text-shadow: 0 8px 22px rgba(0,0,0,.72);
}

.pause {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  color: #e8e8e8;
  font-size: 11px;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
  direction: ltr;
  position: relative;
  z-index: 6;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .26s cubic-bezier(.2,.8,.2,1), transform .26s cubic-bezier(.2,.8,.2,1);
}

.bar {
  height: 24px;
  border-radius: 999px;
  position: relative;
  display: block;
  cursor: pointer;
  direction: ltr;
  overflow: visible;
}

.bar span {
  position: absolute;
  left: 0;
  right: auto;
  top: 50%;
  display: block;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
  box-shadow: 0 0 16px rgba(229,9,20,.5);
}

.bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transform: translateY(-50%);
}

.bar span::after {
  content: "";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  position: absolute;
  right: -11px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(229,9,20,.72), 0 8px 18px rgba(0,0,0,.3);
}

.bar span::before {
  content: "";
  position: absolute;
  right: -4px;
  left: auto;
  top: 50%;
  z-index: 1;
  width: 9px;
  height: 13px;
  background: #fff;
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 100% 42%, 28% 100%, 42% 54%, 0 54%);
  transform: translateY(-50%);
  pointer-events: none;
}

.bar input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  direction: ltr;
}

.progress b,
.progress > span {
  font-size: 11px;
  color: #d7d7d7;
}

.detail {
  padding: 20px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.heart {
  font-size: 30px;
  color: var(--red);
  background: transparent;
}

.heart.active {
  text-shadow: 0 0 22px rgba(229,9,20,.68);
  transform: scale(1.04);
}

.vip {
  width: max-content;
  padding: 3px 8px;
  border-radius: 4px;
  color: #111;
  background: linear-gradient(135deg, #ffe368, var(--gold));
  font-size: 11px;
  font-weight: 900;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0 10px;
}

.tool {
  min-height: 58px;
  color: #ddd;
  background: transparent;
}

.tool span {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.settings-panel {
  margin: 12px -20px 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent),
    #101010;
}

.episode-panel {
  margin: 12px -20px 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 0, rgba(229,9,20,.16), transparent 28%),
    #0f0f0f;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.episode-card {
  min-height: 78px;
  padding: 10px 8px;
  border-radius: 7px;
  color: #ddd;
  background: #191919;
  border: 1px solid rgba(255,255,255,.09);
  text-align: right;
}

.episode-card.active {
  color: #fff;
  border-color: rgba(229,9,20,.72);
  background:
    linear-gradient(145deg, rgba(229,9,20,.32), rgba(255,255,255,.045)),
    #171717;
  box-shadow: 0 14px 28px rgba(229,9,20,.16);
}

.episode-card span,
.episode-card small {
  display: block;
  color: #999;
  font-size: 11px;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
}

.episode-card strong {
  display: block;
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.2;
}

.episode-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.episode-actions::-webkit-scrollbar {
  display: none;
}

.mini-buy {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(229,9,20,.24);
}

.category-price-card .mini-buy {
  width: calc(100% - 20px);
  margin: 0 10px 10px;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.option-grid button {
  min-width: 72px;
  min-height: 36px;
  border-radius: 5px;
  color: #cfcfcf;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, .1);
}

.option-grid button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-color: transparent;
  font-weight: 900;
}

.copy {
  color: #d8d8d8;
  line-height: 1.65;
  font-size: 14px;
}

.profile-hero {
  padding: 88px 20px 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(229,9,20,.28), transparent 28%),
    radial-gradient(circle at 86% 0, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(180deg, #161616, #080808 78%, var(--bg));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-card h2 {
  margin: 0 0 6px;
}

.profile-card .vip {
  width: max-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffd76c;
  background: linear-gradient(135deg, rgba(255,215,108,.16), rgba(229,9,20,.14));
  border: 1px solid rgba(255,215,108,.22);
}

.profile-card .vip.active {
  color: #fff0a8;
  box-shadow: 0 10px 28px rgba(255, 184, 56, .16);
}

.vip-expiry {
  margin-top: 6px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 800;
}

.big-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    linear-gradient(145deg, #e50914, #9a0610);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 34px rgba(229, 9, 20, .3);
  font-size: 30px;
  font-weight: 900;
  overflow: hidden;
}

.big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -8px 20px 4px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.stat {
  padding: 14px 0;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 20px;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
}

.stat small {
  color: #888;
}

.subtitle-status {
  min-height: 40px;
  width: max-content;
  max-width: 100%;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-weight: 900;
}

.subtitle-status span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  font-size: 13px;
}

.menu-list {
  margin: 16px 20px 0;
  display: grid;
  gap: 10px;
}

.menu-item {
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #eee;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  width: 100%;
  text-align: inherit;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.menu-item > span:first-child {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(229,9,20,.62), rgba(255,36,48,.2)),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.menu-item b {
  margin-left: auto;
  color: #777;
  font-size: 24px;
  font-weight: 300;
}

.badge {
  min-width: 24px;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.empty {
  margin: 32px 20px;
  padding: 32px 20px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 8px;
  color: #aaa;
  text-align: center;
  background: rgba(255,255,255,.03);
}

.empty.compact {
  margin: 12px 0;
  padding: 18px 14px;
}

.load-more {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #202020, #151515);
  border: 1px solid rgba(255,255,255,.1);
  font-weight: 850;
}

.video-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 54px;
  z-index: 5;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(229,9,20,.86);
  box-shadow: 0 16px 34px rgba(0,0,0,.45);
  text-align: center;
}

.history-list,
.order-list {
  display: grid;
  gap: 12px;
}

.history-item {
  width: 100%;
  min-height: 86px;
  padding: 10px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: inherit;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.075), rgba(255,255,255,.02)),
    #111;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.history-cover {
  width: 62px;
  height: 66px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.history-copy {
  min-width: 0;
}

.history-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.history-copy small {
  display: block;
  margin-top: 7px;
  color: #8f8f8f;
  font: 12px Inter, Arial, sans-serif;
}

.history-item b {
  color: var(--red);
  font-size: 24px;
  font-weight: 300;
}

.order-card {
  min-height: 82px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229,9,20,.11), rgba(255,255,255,.035)),
    #101010;
  border: 1px solid rgba(255,255,255,.08);
}

.order-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.order-card small {
  display: block;
  margin-top: 7px;
  color: #8f8f8f;
  font: 12px Inter, Arial, sans-serif;
}

.order-side {
  flex: 0 0 auto;
  text-align: left;
}

.order-side b {
  display: block;
  color: #fff;
  font: 900 16px Inter, Arial, sans-serif;
}

.order-side span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  margin-top: 7px;
  padding: 0 8px;
  border-radius: 999px;
  color: #f5c8c8;
  background: rgba(229,9,20,.16);
  font-size: 11px;
  font-weight: 850;
}

.order-side span.paid {
  color: #c9ffd7;
  background: rgba(42, 185, 95, .16);
}

.pay-test {
  min-height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(229,9,20,.2);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 95;
  width: min(calc(100vw - 24px), 392px);
  height: 64px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(42,42,42,.84), rgba(10,10,10,.9)),
    radial-gradient(circle at 18% 0, rgba(229,9,20,.28), transparent 38%),
    rgba(18, 18, 18, .86);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, .68),
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -18px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(229,9,20,.2), transparent 32%, rgba(255,255,255,.08) 54%, transparent);
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 42px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: slideUp .22s cubic-bezier(.2,.8,.2,1);
}

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  animation: slideUp .24s cubic-bezier(.2,.8,.2,1);
}

.ad-card {
  width: min(330px, 100%);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
}

.ad-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.55);
  font-size: 24px;
}

[dir="rtl"] .ad-close {
  right: auto;
  left: 10px;
}

.ad-body {
  width: 100%;
  padding: 0 0 16px;
  color: #fff;
  background: transparent;
  text-align: right;
}

.ad-body img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.ad-body strong {
  display: block;
  padding: 14px 16px 4px;
  font-size: 28px;
  line-height: .95;
}

.ad-body span {
  display: block;
  padding: 0 16px;
  color: #aaa;
  direction: ltr;
  text-align: left;
  font: 12px Inter, Arial, sans-serif;
}

.purchase-panel {
  padding-top: 20px;
}

.plan-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  min-height: 108px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(145deg, rgba(229,9,20,.26), rgba(255,255,255,.045)),
    #151515;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}

.plan-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.plan-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.plan-card b {
  color: #fff;
  font-size: 16px;
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
}

.single-buy {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(229,9,20,.28);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.network-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 38%, rgba(229,9,20,.22), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(255,255,255,.08), transparent 18%),
    rgba(2,2,2,.82);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity .28s cubic-bezier(.2,.8,.2,1), transform .28s cubic-bezier(.2,.8,.2,1);
}

.network-loader.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.loader-orbit {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, rgba(255,255,255,.14), transparent 44%),
    linear-gradient(145deg, rgba(229,9,20,.36), rgba(255,255,255,.04));
  box-shadow: 0 0 54px rgba(229,9,20,.46);
}

.loader-orbit::before,
.loader-orbit::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--red-2);
  border-right-color: rgba(255,255,255,.42);
  animation: spinBolt 1s linear infinite;
}

.loader-orbit::after {
  inset: 7px;
  border-top-color: rgba(255,255,255,.75);
  border-right-color: transparent;
  animation-duration: 1.45s;
  animation-direction: reverse;
}

.bolt-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-2), #9b0610);
  font-size: 44px;
  line-height: 1;
  box-shadow: 0 18px 38px rgba(229,9,20,.42), inset 0 1px 0 rgba(255,255,255,.22);
  animation: boltPulse .85s cubic-bezier(.2,.8,.2,1) infinite alternate;
}

.network-loader strong {
  font-size: 26px;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(229,9,20,.55);
}

.network-loader span {
  color: #aaa;
  font-size: 13px;
}

@keyframes spinBolt {
  to { transform: rotate(360deg); }
}

@keyframes boltPulse {
  from { transform: scale(.94); filter: brightness(.95); }
  to { transform: scale(1.06); filter: brightness(1.25); }
}

.nav-item {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #7d7d7d;
  background: transparent;
  position: relative;
  border-radius: 999px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  pointer-events: auto;
}

.nav-item.active {
  margin: 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 28px rgba(229, 9, 20, .44), inset 0 1px 0 rgba(255,255,255,.22);
}

.nav-item .icon {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.nav-item small {
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

[dir="rtl"] {
  font-family: "ChaqmaqUyghur", "Microsoft Uighur", "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  text-rendering: geometricPrecision;
}

[dir="rtl"] body {
  letter-spacing: 0;
}

[dir="rtl"] .section-title {
  padding-left: 0;
  padding-right: 12px;
  border-left: 0;
  border-right: 3px solid var(--red);
}

[dir="rtl"] .brand {
  font-family: Inter, "SF Pro Display", Arial, sans-serif;
  letter-spacing: 0;
  font-size: 24px;
  line-height: 1;
}

[dir="rtl"] .topbar {
  gap: 10px;
}

[dir="rtl"] .top-search {
  text-align: right;
}

[dir="rtl"] .progress,
[dir="rtl"] .bar,
[dir="rtl"] .bar input {
  direction: ltr;
}

[dir="rtl"] .trend-item,
[dir="rtl"] .poster,
[dir="rtl"] .category-card,
[dir="rtl"] .feature-card {
  text-align: right;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .page-title,
[dir="rtl"] .detail h2 {
  line-height: .95;
  font-weight: 700;
  font-size: clamp(24px, 8vw, 34px);
  text-shadow: 0 16px 34px rgba(0,0,0,.88), 0 0 24px rgba(229,9,20,.18);
}

[dir="rtl"] .hero {
  min-height: 412px;
  padding-top: 188px;
}

[dir="rtl"] .hero .pill-red {
  font-size: 12px;
  padding: 4px 8px;
}

[dir="rtl"] .hero .tagline {
  max-width: 30ch;
  font-size: 14px;
}

[dir="rtl"] .actions {
  gap: 10px;
}

[dir="rtl"] .btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
}

[dir="rtl"] .chip-row {
  padding-top: 2px;
}

[dir="rtl"] .chip {
  min-height: 38px;
  padding: 0 18px;
}

[dir="rtl"] .feature-grid,
[dir="rtl"] .category-grid {
  gap: 11px;
}

[dir="rtl"] .feature-card {
  min-height: 104px;
  padding: 0;
}

[dir="rtl"] .tagline,
[dir="rtl"] .copy,
[dir="rtl"] .menu-item {
  line-height: 1.42;
  font-size: 15px;
}

[dir="rtl"] .meta,
[dir="rtl"] .nav-item small,
[dir="rtl"] .chip,
[dir="rtl"] .btn,
[dir="rtl"] .option-grid button,
[dir="rtl"] .subtitle-status {
  font-size: 13px;
}

[dir="rtl"] .section-title {
  font-size: 22px;
  line-height: 1.05;
}

[dir="rtl"] .poster {
  font-size: 15px;
  line-height: .98;
}

[dir="rtl"] .poster small,
[dir="rtl"] .episode-card small,
[dir="rtl"] .episode-card span {
  font-size: 12px;
}

[dir="rtl"] .episode-card strong {
  font-size: 15px;
  line-height: .98;
}

[dir="rtl"] .mini-buy {
  font-size: 13px;
}

[dir="rtl"] .feature-card strong,
[dir="rtl"] .category-card strong {
  font-size: 18px;
  line-height: .94;
}

[dir="rtl"] .feature-card small,
[dir="rtl"] .category-card span {
  font-size: 13px;
}

[dir="rtl"] .bottom-nav {
  height: 58px;
}

[dir="rtl"] .nav-item .icon {
  margin-bottom: 2px;
}

[dir="rtl"] .profile-card h2 {
  font-size: 32px;
  line-height: .95;
}

[dir="rtl"] .search-box input {
  font-size: 22px;
}

