/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0f;
  --bg2:         #12121a;
  --bg3:         #1a1a25;
  --card:        #16161f;
  --border:      #ffffff12;
  --accent:      #7c3aed;
  --accent2:     #a855f7;
  --accent-glow: #7c3aed40;
  --red:         #ef4444;
  --green:       #22c55e;
  --yellow:      #eab308;
  --text:        #f1f1f1;
  --text2:       #a0a0b0;
  --text3:       #60607a;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px #00000060;
  --shadow-sm:   0 4px 16px #00000040;
  --transition:  .2s ease;

  /* Tipografiya shkalasi — barcha yangi/tahrirlanadigan CSS shu qiymatlardan foydalanishi kerak */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   16px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  48px;

  /* Spacing shkalasi — 4px asosida */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-14: 56px;
}

html { scroll-behavior: smooth; }
img.emoji {
  height: 1em; width: 1em; margin: 0 .05em 0 .1em;
  vertical-align: -0.1em; display: inline-block;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(to bottom, #0a0a0fee, #0a0a0f88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 64px;
}
.logo { flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-accent { color: var(--accent2); }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }

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

.search-btn {
  color: var(--text2); padding: 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.search-btn:hover { color: var(--text); background: var(--bg3); }

/* User menu */
.nav-user { position: relative; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; position: relative;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.premium-badge {
  position: absolute; bottom: -2px; right: -2px;
  background: var(--yellow); color: #000;
  font-size: 8px; font-weight: 700;
  padding: 1px 3px; border-radius: 3px;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 180px; box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px;
}
.user-dropdown.open { display: flex; }
.user-dropdown a {
  padding: 8px 12px; border-radius: 6px; font-size: 14px;
  color: var(--text2); transition: var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}
.user-dropdown a:hover { background: var(--bg); color: var(--text); }
.user-dropdown .premium-link { color: var(--accent2); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.badge {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent2); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text2);
}
.btn-outline:hover { background: var(--bg3); color: var(--text); }

/* Search bar */
.search-bar {
  display: none; padding: 12px 24px;
  border-top: 1px solid var(--border); position: relative;
}
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-bar input {
  flex: 1; padding: 10px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
}
.search-bar input:focus { outline: none; border-color: var(--accent); }
.search-bar button {
  padding: 10px 20px; background: var(--accent);
  color: white; border-radius: var(--radius-sm); font-weight: 600;
}
.search-results {
  position: absolute; top: 100%; left: 24px; right: 24px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); max-height: 400px; overflow-y: auto;
  z-index: 10; display: none;
}
.search-results.open { display: block; }
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text2);
}
.mobile-menu a:hover { background: var(--bg3); color: var(--text); }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative; height: 80vh; min-height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #0a0a0fcc 40%, transparent 100%),
              linear-gradient(to top, #0a0a0f 0%, transparent 50%);
}
.hero-content {
  position: absolute; bottom: 80px; left: 5%;
  max-width: 520px; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); border: 1px solid var(--accent);
  color: var(--accent2); padding: 4px 12px; border-radius: var(--radius-lg);
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  color: var(--text2); font-size: 14px; margin-bottom: 16px;
}
.hero-meta .rating { color: var(--yellow); font-weight: 600; }
.hero-desc {
  color: var(--text2); font-size: 15px; line-height: 1.6;
  margin-bottom: 24px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-play {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: white; color: #000;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  transition: var(--transition);
}
.btn-play:hover { background: #ffffffcc; }
.btn-more {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #ffffff20;
  border: 1px solid #ffffff30; color: white;
  border-radius: var(--radius-sm); font-weight: 600;
  backdrop-filter: blur(8px); transition: var(--transition);
}
.btn-more:hover { background: #ffffff30; }

.hero-dots {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: #ffffff40; transition: var(--transition);
}
.hero-dot.active { width: 24px; background: var(--accent2); }

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; margin-bottom: 20px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.section-title {
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 20px;
  background: var(--accent2); border-radius: 2px;
}
.section-more {
  font-size: 13px; color: var(--accent2); font-weight: 500;
}
.section-more:hover { text-decoration: underline; }

/* Cards row */
.cards-row {
  display: flex; gap: 16px;
  padding: 0 5% 8px;
  overflow-x: auto; scrollbar-width: none;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.cards-row::-webkit-scrollbar { display: none; }

/* ===== MOVIE CARD ===== */
.movie-card {
  flex-shrink: 0; width: 160px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px #00000080;
  z-index: 2;
}
.card-poster {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
}
.card-info { padding: 10px; }
.card-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.card-year { font-size: 12px; color: var(--text3); }
.card-rating {
  font-size: 12px; color: var(--yellow);
  display: flex; align-items: center; gap: 3px;
  font-weight: 700;
}
.card-rating--high { color: var(--green); }
.card-rating--mid  { color: var(--yellow); }
.card-rating--low  { color: var(--text2); }
.card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.card-badge {
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.badge-hd  { background: var(--accent); color: white; }
.badge-4k  { background: #f59e0b; color: #000; }
.badge-pro { background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #000000e0 0%, #00000060 45%, transparent 75%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.movie-card:hover .card-overlay { opacity: 1; }
.play-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  transform: scale(.8); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 20px #00000060;
}
.movie-card:hover .play-icon { transform: scale(1); }
.play-icon svg { margin-left: 3px; }

.card-hover-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px; z-index: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.movie-card:hover .card-hover-info { opacity: 1; transform: translateY(0); }
.card-hover-genres {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px;
}
.card-hover-genre {
  font-size: 10px; font-weight: 600; color: var(--text);
  background: #ffffff20; backdrop-filter: blur(4px);
  padding: 2px 8px; border-radius: var(--radius-sm);
}
.card-hover-actions { display: flex; gap: 6px; pointer-events: auto; }
.card-hover-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff20; backdrop-filter: blur(4px);
  border: 1px solid #ffffff30; color: white;
  transition: var(--transition);
}
.card-hover-btn:hover { background: var(--accent2); border-color: var(--accent2); }
.card-hover-btn.active { background: var(--accent); border-color: var(--accent); }

/* ===== CATALOG ===== */
.catalog-page { max-width: 1400px; margin: 0 auto; padding: 32px 5%; }
.catalog-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.filter-select {
  padding: 8px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--accent); }

/* ===== CUSTOM DROPDOWN (replaces native <select> appearance) ===== */
.dsys-select {
  position: relative; display: inline-block; min-width: 168px;
}
.dsys-select select {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; border: none; outline: none;
}
.dsys-select-display {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  position: relative; z-index: 2;
}
.dsys-select:hover .dsys-select-display {
  border-color: #ffffff30;
}
.dsys-select.open .dsys-select-display {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.dsys-select-chevron {
  flex-shrink: 0; transition: transform 0.2s ease; color: var(--text3);
}
.dsys-select.open .dsys-select-chevron { transform: rotate(180deg); color: var(--accent2); }

.dsys-select-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: #16161fe6; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid #ffffff1a; border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 280px; overflow-y: auto; padding: 6px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dsys-select.open .dsys-select-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.dsys-select-option {
  padding: 9px 12px; border-radius: 6px; font-size: 13px; color: var(--text2);
  cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
}
.dsys-select-option:hover { background: var(--bg3); color: var(--text); }
.dsys-select-option.selected { background: var(--accent-glow); color: var(--accent2); font-weight: 600; }
.filter-tag {
  padding: 6px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-size: 13px; color: var(--text2); transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active {
  background: var(--accent); border-color: var(--accent); color: white;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.cards-grid .movie-card { width: 100%; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px;
}
.page-btn {
  min-width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--text2);
  font-size: 14px; transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--accent); color: white;
}

/* ===== DETAIL PAGE ===== */
.detail-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: flex-end;
}
.detail-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.detail-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, #0a0a0fee 50%, #0a0a0f80),
              linear-gradient(to top, #0a0a0f 0%, transparent 60%);
}
.detail-content {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: 48px 5%; width: 100%;
  display: flex; gap: 48px; align-items: flex-end;
}
.detail-poster {
  width: 220px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.detail-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, #000000b0 0%, transparent 40%);
  pointer-events: none;
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-poster-badges {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
}
.quality-badge {
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  background: var(--green); color: #06280f;
  box-shadow: 0 2px 6px #00000060;
  width: fit-content;
}
.quality-badge.q-4k  { background: var(--yellow); color: #2b1c00; }
.quality-badge.q-hd  { background: var(--green);  color: #06280f; }
.quality-badge.q-sd  { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.detail-info { flex: 1; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.genre-tag {
  padding: 4px 12px; background: var(--accent-glow);
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  font-size: 12px; color: var(--accent2); font-weight: 500;
}
.detail-title {
  font-size: clamp(24px, 4vw, 48px); font-weight: 800;
  line-height: 1.1; margin-bottom: 8px;
}
.detail-title-orig { font-size: 16px; color: var(--text2); margin-bottom: 16px; }
.detail-stats {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-bottom: 20px; color: var(--text2); font-size: 14px;
}
.detail-stats span { display: flex; align-items: center; gap: 6px; }
.detail-stats .star { color: var(--yellow); }
.detail-desc {
  font-size: 15px; line-height: 1.7; color: var(--text2);
  max-width: 600px; margin-bottom: 28px;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-watch {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--accent);
  color: white; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; transition: var(--transition);
}
.btn-watch:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-watchlist {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 600; transition: var(--transition);
}
.btn-watchlist:hover { border-color: var(--accent); }
.btn-watchlist.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent2); }

/* Tabs */
.detail-tabs { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.tabs-header { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-btn {
  padding: 14px 24px; font-size: 15px; font-weight: 600;
  color: var(--text3); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: var(--transition);
}
.tab-btn:hover { color: var(--text2); }
.tab-btn.active { color: var(--text); border-color: var(--accent2); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Seasons */
.seasons-nav { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.season-btn {
  padding: 8px 18px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text2);
  transition: var(--transition);
}
.season-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.episodes-list { display: flex; flex-direction: column; gap: 8px; }
.episode-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); cursor: pointer;
}
.episode-item:hover { border-color: var(--accent); background: var(--bg3); }
.ep-num {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.ep-info { flex: 1; }
.ep-title { font-size: 14px; font-weight: 600; }
.ep-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* Cast */
.cast-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.cast-card { text-align: center; }
.cast-photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 8px;
  border: 2px solid var(--border);
}
.cast-name { font-size: 13px; font-weight: 600; }
.cast-char { font-size: 12px; color: var(--text3); }

/* ===== VIDEO PLAYER ===== */
.player-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16/9; max-height: 80vh;
  background: #000;
}
#videoPlayer { width: 100%; height: 100%; }

/* ===== LIVE TV ===== */
.live-page { max-width: 1400px; margin: 0 auto; padding: 32px 5%; }
.live-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.live-tab {
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text2);
  border: 1px solid var(--border); transition: var(--transition);
}
.live-tab.active { background: var(--accent); border-color: var(--accent); color: white; }
.channels-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.channel-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-align: center; cursor: pointer; transition: var(--transition);
}
.channel-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.channel-logo { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; }
.channel-name { font-size: 14px; font-weight: 600; }
.channel-viewers { font-size: 12px; color: var(--text3); margin-top: 4px; }
.live-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--red); font-size: 11px; font-weight: 700;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== PREMIUM PAGE ===== */
.premium-page { max-width: 900px; margin: 0 auto; padding: 60px 5%; text-align: center; }
.premium-title { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.premium-subtitle { font-size: 18px; color: var(--text2); margin-bottom: 48px; }
.premium-plans { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.plan-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; min-width: 260px;
  transition: var(--transition); position: relative;
}
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg3), #7c3aed15);
}
.plan-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 4px 16px; border-radius: var(--radius-lg); font-size: 12px; font-weight: 700;
}
.plan-name { font-size: 16px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.plan-period { font-size: 14px; color: var(--text3); margin-bottom: 24px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.btn-subscribe {
  width: 100%; padding: 14px;
  background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  transition: var(--transition);
}
.btn-subscribe:hover { background: var(--accent2); transform: translateY(-2px); }

/* Payment methods */
.payment-methods { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.payment-method {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover, .payment-method.selected {
  border-color: var(--accent); background: var(--accent-glow);
}

/* ===== PROFILE ===== */
.profile-page { max-width: 1000px; margin: 0 auto; padding: 40px 5%; }
.profile-header {
  display: flex; align-items: center; gap: 24px;
  padding: 32px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 28px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 32px; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-meta { font-size: 14px; color: var(--text2); }
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px;
}
.stat-item { text-align: center; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--accent2); }
.stat-label { font-size: 12px; color: var(--text3); }

/* XP bar */
.xp-bar-wrap { margin-top: 16px; }
.xp-bar-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text2); margin-bottom: 6px;
}
.xp-bar { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(to right, var(--accent), var(--accent2)); border-radius: 4px; }

/* ===== ALERTS ===== */
.messages-container { max-width: 800px; margin: 16px auto; padding: 0 5%; }
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 8px;
  border: 1px solid transparent;
}
.alert-success { background: #22c55e20; border-color: var(--green); color: var(--green); }
.alert-error   { background: #ef444420; border-color: var(--red); color: var(--red); }
.alert-info    { background: var(--accent-glow); border-color: var(--accent); color: var(--accent2); }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 48px 5%; display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 14px; color: var(--text2); margin-top: 12px; line-height: 1.6; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px 20px;
  background: #2AABEE20; border: 1px solid #2AABEE40;
  border-radius: var(--radius-sm); color: #2AABEE; font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.tg-btn:hover { background: #2AABEE30; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--text2); transition: var(--transition); }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 5%;
  text-align: center; font-size: 13px; color: var(--text3);
  max-width: 1400px; margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.main-content { min-height: calc(100vh - 64px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .detail-content { flex-direction: column; align-items: center; text-align: center; }
  .detail-genres { justify-content: center; }
  .detail-stats { justify-content: center; }
}
@media (max-width: 600px) {
  .detail-poster { width: 160px; }
}

@media (max-width: 900px) and (min-width: 769px) {
  .nav-inner { gap: 12px; padding: 0 16px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .btn { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .btn-primary, .btn-outline { display: none; }
  .hero { height: 60vh; }
  .hero-content { bottom: 60px; }
  .cards-row { padding: 0 4% 8px; gap: 12px; }
  .movie-card { width: 130px; }
  .section-header { padding: 0 4%; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .premium-plans { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 32px; }
  /* iOS Safari 16px dan kichik input font-size'da avtomatik zoom qiladi */
  input, textarea, select { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .movie-card { width: 120px; }
  .hero-btns .btn-more { display: none; }
  .detail-stats { gap: 12px; }
}

/* ===== UTILITIES ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.text-muted  { color: var(--text2); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.hidden { display: none !important; }
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== VIDEO PLAYER CONTROLS ===== */
.controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, #000000cc, transparent);
  padding: 16px 20px 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity .25s ease;
}
.player-wrap:hover .controls { opacity: 1; }
.controls-row {
  display: flex; align-items: center; gap: 12px;
}
.ctrl-btn {
  color: white; padding: 6px; border-radius: 6px;
  transition: var(--transition); background: none;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { background: #ffffff20; }
.ctrl-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.progress-fill {
  height: 100%; background: var(--accent2);
  border-radius: 2px; pointer-events: none;
}

/* ===== TMA (TELEGRAM MINI APP) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 50;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 6px 16px;
  font-size: 11px; color: var(--text3); transition: var(--transition);
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--accent2); }
.bottom-nav svg { width: 22px; height: 22px; }
.btn-premium {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-weight: 700; font-size: 14px;
  transition: var(--transition);
}
.btn-premium:hover { opacity: .9; transform: translateY(-1px); }
.btn-save {
  padding: 8px 16px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text2); font-size: 14px; font-weight: 600;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.btn-save:hover { border-color: var(--accent); color: var(--text); }
.btn-save.saved { border-color: var(--green); color: var(--green); }
.loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.loader::after {
  content: ''; width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== WATCH PARTY ===== */
.member-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.member-item:hover { background: var(--bg3); }
.member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
  overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== LIVE SECTION ===== */
.live-section { padding: 40px 0; }

/* ===== FOOTER TG ===== */
.footer-tg { margin-top: 12px; }

/* ===== EXTRA BUTTONS ===== */

/* ===== SOCIAL COUNTS ===== */

/* ===== SHORTS ===== */
.short-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #000000cc 30%, transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.short-title { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ===== NOTIFICATION ===== */

/* ===== REFERRAL ===== */

/* ===== MODAL ===== */
.modal-back {
  position: fixed; inset: 0; background: #00000080;
  z-index: 200; display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 480px; width: 90%;
  position: relative; box-shadow: var(--shadow);
}
.modal-content { text-align: center; }
.modal-meta { color: var(--text2); font-size: 14px; margin: 8px 0 20px; }
.modal-desc { color: var(--text2); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* ===== BOTTOM MENU ===== */
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--text2); font-size: 15px;
  transition: var(--transition); cursor: pointer;
}
.menu-item:hover { background: var(--bg3); color: var(--text); }
.menu-item.active { color: var(--accent2); }
.menu-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== ONBOARDING ===== */
.ob-step { display: none; }
.ob-step.active { display: block; }
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: var(--transition);
}
.ob-dot.active { width: 20px; background: var(--accent2); border-radius: 4px; }

/* ===== DYNAMIC ID CLASSES ===== */
/* like-count-{id} va dislike-count-{id} — base stillar */
[class^="like-count-"], [class*=" like-count-"] {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--text2); cursor: pointer;
  transition: var(--transition);
}
[class^="dislike-count-"], [class*=" dislike-count-"] {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--text2); cursor: pointer;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   PLAYER PAGE — to'liq komponentlar
═══════════════════════════════════════════ */
.player-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.progress-wrap {
  position: relative; width: 100%; height: 4px;
  background: rgba(255,255,255,.25); border-radius: 2px;
  cursor: pointer; margin-bottom: 8px;
}
.progress-wrap:hover { height: 6px; }
.progress-thumb {
  position: absolute; top: 50%; right: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent2); transform: translateY(-50%);
  opacity: 0; transition: opacity .2s;
}
.progress-wrap:hover .progress-thumb { opacity: 1; }
.time-display { font-size: 13px; color: rgba(255,255,255,.9); white-space: nowrap; }
.quality-select {
  background: rgba(0,0,0,.6); color: white;
  border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  padding: 4px 8px; font-size: 12px; cursor: pointer;
}
.player-info {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 5%; display: flex;
  align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.player-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.player-episode { font-size: 14px; color: var(--text2); }
.player-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.party-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text2); font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.party-btn:hover { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════════════════
   WATCH PARTY — sidebar layout
═══════════════════════════════════════════ */
.party-layout {
  display: flex; height: 100vh; overflow: hidden;
  background: #000;
}
.party-player {
  flex: 1; position: relative; min-width: 0;
}
.party-player video {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.party-sidebar {
  width: 320px; flex-shrink: 0;
  background: var(--bg2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.party-header {
  padding: 16px; border-bottom: 1px solid var(--border);
}
.party-code {
  font-size: 13px; color: var(--text2); margin-bottom: 6px;
}
.party-code strong { color: var(--accent2); }
.party-title { font-size: 15px; font-weight: 600; }
.party-members {
  flex: 1; overflow-y: auto; padding: 12px;
}
.party-controls {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}

@media (max-width: 768px) {
  .party-layout { flex-direction: column; height: auto; }
  .party-sidebar { width: 100%; height: 300px; border-left: none; border-top: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════
   TMA — page layout, nav-item, toast
═══════════════════════════════════════════ */
.page { display: none; padding: 12px; min-height: calc(100vh - 120px); }
.page.active { display: block; }
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 8px 0;
  font-size: 10px; color: var(--text3); cursor: pointer;
  transition: var(--transition); border-radius: var(--radius-sm);
}
.nav-item:hover, .nav-item.active { color: var(--accent2); }
.nav-item svg { width: 22px; height: 22px; }
.search-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
  margin-bottom: 12px;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.profile-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; text-align: center;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.profile-id { font-size: 12px; color: var(--text3); margin-top: 4px; }
.premium-banner {
  background: linear-gradient(135deg, #7c3aed20, #a855f720);
  border: 1px solid var(--accent); border-radius: 12px;
  padding: 16px; text-align: center; margin: 12px 0;
}
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 20px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  z-index: 500; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; }
.modal-poster {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent2);
  animation: spin .7s linear infinite; margin: 0 auto;
}
/* title va year — TMA kichik card ichida */
.title { font-size: 12px; font-weight: 600; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.year { font-size: 11px; color: var(--text3); }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* ═══════════════════════════════════════════
   SHORTS FEED — vertical scroll player
═══════════════════════════════════════════ */
.shorts-container {
  height: 100vh; overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.shorts-container::-webkit-scrollbar { display: none; }
.short-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.short-info { position: relative; z-index: 2; }
.short-movie {
  display: inline-flex; align-items: center; gap: 6px;
  color: white; font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.4); padding: 4px 10px;
  border-radius: var(--radius-lg); margin-top: 6px;
}
.short-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.short-play-btn.show { opacity: 1; }
.short-play-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
}
.short-actions {
  position: absolute; right: 12px; bottom: 120px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 3;
}
.short-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: white; font-size: 11px; background: none;
  border: none; cursor: pointer; transition: var(--transition);
}
.short-action-btn svg { filter: drop-shadow(0 1px 2px #000); }
.short-action-btn.liked svg { fill: var(--red); color: var(--red); }
.short-skeleton {
  height: 100vh; background: var(--bg3);
  scroll-snap-align: start;
  animation: shimmer 1.5s infinite;
}

/* ═══════════════════════════════════════════
   WHEEL (Spin/Wheel) komponent
═══════════════════════════════════════════ */
.wheel-wrap {
  position: relative; width: 300px; height: 300px;
  margin: 0 auto 24px;
}
.wheel-pointer {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--accent2);
  z-index: 2;
}
.spin-btn {
  padding: 14px 36px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; border-radius: 12px; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.spin-btn:hover:not(:disabled) { transform: translateY(-2px); }
.spin-btn:disabled { opacity: .5; cursor: not-allowed; }
.prize-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 300; display: none; align-items: center; justify-content: center;
}
.prize-modal.show { display: flex; }
.prize-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  max-width: 360px; width: 90%;
  animation: popIn .3s ease;
}
@keyframes popIn {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

/* ═══════════════════════════════════════════
   USERS — stats
═══════════════════════════════════════════ */
.stat { text-align: center; padding: 16px; }
.stat-val { font-size: 28px; font-weight: 800; color: var(--accent2); }
.stat-lbl { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ═══════════════════════════════════════════
   DETAIL — season episodes, watchlist text
═══════════════════════════════════════════ */
.season-episodes { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.wl-text { font-size: 13px; font-weight: 600; }

/* ═══════════════════════════════════════════
   ACTOR DETAIL PAGE
═══════════════════════════════════════════ */
.actor-page {
  max-width: 1000px; margin: 0 auto; padding: 40px 5%;
}
.actor-header {
  display: flex; gap: 32px; margin-bottom: 40px;
  align-items: flex-start; flex-wrap: wrap;
}
.actor-photo {
  width: 160px; height: 160px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--border); flex-shrink: 0;
}
.actor-photo-placeholder {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; font-size: 56px; flex-shrink: 0;
}
.actor-name { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.actor-bio {
  font-size: 15px; line-height: 1.7; color: var(--text2);
  max-width: 600px;
}

@media (max-width: 600px) {
  .actor-photo, .actor-photo-placeholder { width: 110px; height: 110px; }
  .actor-header { gap: 20px; }
  .actor-name  { font-size: 24px; }
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES — inline style replacements
═══════════════════════════════════════════ */
.f-1 { flex: 1 }
.c-accent { color: var(--accent2) }
.c-muted { color: var(--text2) }
.text-xs-dim { font-size: 12px; color: var(--text3) }
.text-sm-muted { font-size: 13px; color: var(--text2) }
.text-sm-bold { font-size: 14px; font-weight: 600 }
.h3 { font-size: 24px; font-weight: 800; margin-bottom: 24px }
.h3-sm { font-size: 24px; font-weight: 800; margin-bottom: 6px }
.h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px }
.big-accent { font-size: 32px; font-weight: 800; color: var(--accent2) }
.emoji-xl { font-size: 64px; margin-bottom: 16px }
.flex-8 { display: flex; gap: 8px }
.flex-row-sm { display: flex; align-items: center; gap: 8px; font-size: 14px }
.flex-col-12 { display: flex; flex-direction: column; gap: 12px }
.empty-state { text-align: center; padding: 80px 20px }
.section-label { font-size: 15px; font-weight: 700; margin-bottom: 16px }
.muted-mb { color: var(--text2); margin-bottom: 28px }

/* ═══ GENERATED UTILITY CLASSES ═══ */
.big-accent-lg { font-size:28px; font-weight:800; color:var(--accent2); }
.page-800 { max-width:800px; margin:0 auto; padding:32px 20px; }
.h5-mb { font-size:16px; font-weight:700; margin-bottom:14px; }
.divider { flex:1; height:1px; background:var(--border); }
.text-lg-muted { font-size:18px; color:var(--text2); }
.center-pad { padding:32px; text-align:center; }
.text-muted-sm { font-size:14px; color:var(--text2); }
.muted-mb-20 { color:var(--text2); margin-bottom:20px; }
.h2-center { font-size:24px; font-weight:800; margin-bottom:4px; text-align:center; }
.caption { font-size:12px; color:var(--text3); margin-bottom:10px; }
.text-sm-600 { font-size:13px; font-weight:600; }
.text-hint { font-size:13px; color:var(--text2); margin-top:4px; }
.flex-col-10 { display:flex; flex-direction:column; gap:10px; }
.text-tiny-dim { font-size:11px; color:var(--text3); }
.flex-12 { display:flex; align-items:center; gap:12px; }
.section-label-sm { font-size:15px; font-weight:700; margin-bottom:14px; }
.mb-24 { margin-bottom:24px; }
.dim-center { color:var(--text3); text-align:center; padding:20px; }
.text-xl { font-size:20px; }
.emoji-2xl { font-size:72px; margin-bottom:16px; }
.text-2xl { font-size:24px; }
.auth-wrap { max-width:420px; margin:60px auto; padding:0 20px; position:relative; z-index:2; }
.auth-page-bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center 20%;
  filter: saturate(0.85);
}
.auth-page-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #0a0a0fcc 0%, #0a0a0fee 55%, var(--bg) 100%),
    linear-gradient(90deg, #0a0a0ff2 0%, #0a0a0f99 45%, #0a0a0f99 55%, #0a0a0ff2 100%),
    linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
}
.dsys-card--auth {
  background: #16161fb3; backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #ffffff1a; border-radius: var(--radius-lg);
  padding: var(--sp-8); box-shadow: var(--shadow);
}
.flex-col-14 { display:flex; flex-direction:column; gap:14px; }
.page-narrow { max-width:700px; margin:0 auto; padding:32px 20px; }
.subtitle-center { color:var(--text2); text-align:center; font-size:14px; margin-bottom:28px; }
.caption-mb { font-size:13px; color:var(--text3); margin-bottom:6px; }
.muted-mb-24 { color:var(--text2); margin-bottom:24px; }
.h2-card { font-size:22px; font-weight:800; margin-bottom:10px; }
.c-dim { color:var(--text3); }
.flex-col-8 { display:flex; flex-direction:column; gap:8px; }
.body-muted { color:var(--text2); font-size:15px; line-height:1.6; }
.label-sm2 { font-size:13px; color:var(--text2); display:block; margin-bottom:6px; }
.card-box-16 { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow: var(--shadow-sm); }

/* ═══ EXTRA UTILITY ═══ */
.card-box-16-lg { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:24px; box-shadow: var(--shadow-sm); }
.thumb-160 { height:160px; border-radius:16px; }
.mb-14 { margin-bottom:14px; }

/* ═══ AFFILIATE DASHBOARD (real usage) ═══ */
.aff-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.aff-stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.aff-earned { font-size: 28px; font-weight: 800; color: var(--green); }
.link-label { font-size: 12px; color: var(--text3); display: block; margin-bottom: 6px; }
.link-input {
  flex: 1; padding: 10px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 13px;
}
.copy-btn { padding: 10px 16px; font-size: 13px; }
.step-row { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.step-desc { font-size: 14px; color: var(--text2); padding-top: 4px; }
.conv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
}
.conv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-weight: 700; flex-shrink: 0;
}
.conv-amount { color: var(--green); font-weight: 700; white-space: nowrap; }

/* ═══════════════════════════════════════════
   SCREENSHOTS GALLERY + LIGHTBOX
═══════════════════════════════════════════ */
.screenshots-section { margin-top: 40px; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.screenshot-thumb {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: zoom-in; border: 1px solid var(--border);
  transition: var(--transition);
}
.screenshot-thumb:hover { border-color: var(--accent); transform: scale(1.02); }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screenshot-thumb::after {
  content: '🔍'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #00000000;
  opacity: 0; transition: var(--transition);
}
.screenshot-thumb:hover::after { opacity: 1; background: #00000060; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: #000000e6;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 10px 60px #00000080;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #00000080; border: 1px solid #ffffff30;
  color: white; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--text2);
  background: #00000080; padding: 6px 16px; border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
}

/* ═══════════════════════════════════════════
   SECTION EMPTY STATE — premium placeholder
   Bo'lim uchun kontent hali bo'lmaganda ko'rsatiladi
═══════════════════════════════════════════ */
.section-empty {
  position: relative; overflow: hidden;
  margin: 0 5%; padding: 48px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px;
}
.section-empty-glow {
  position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px; border-radius: 50%;
  filter: blur(60px); opacity: .35;
  animation: sectionGlowPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sectionGlowPulse {
  0%, 100% { opacity: .25; transform: translateX(-50%) scale(1); }
  50%      { opacity: .45; transform: translateX(-50%) scale(1.15); }
}
.section-empty-icon {
  font-size: 44px; margin-bottom: 6px;
  filter: drop-shadow(0 4px 16px #00000060);
  animation: sectionIconFloat 3s ease-in-out infinite;
}
@keyframes sectionIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.section-empty-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  position: relative; z-index: 1;
}
.section-empty-text {
  font-size: 13px; color: var(--text2);
  max-width: 340px; line-height: 1.5;
  position: relative; z-index: 1;
}

/* Rang variantlari — har bir bo'lim o'z ohangida */
.section-empty--accent  .section-empty-glow { background: var(--accent2); }
.section-empty--accent  { border-color: #a855f730; }

.section-empty--yellow  .section-empty-glow { background: var(--yellow); }
.section-empty--yellow  { border-color: #eab30830; }
.section-empty--yellow  .section-empty-icon { filter: drop-shadow(0 4px 16px #eab30850); }

.section-empty--green   .section-empty-glow { background: var(--green); }
.section-empty--green   { border-color: #22c55e30; }

.section-empty--red     .section-empty-glow { background: var(--red); }
.section-empty--red     { border-color: #ef444430; }

.section-empty--blue    .section-empty-glow { background: #3b82f6; }
.section-empty--blue    { border-color: #3b82f630; }

.section-empty--pink    .section-empty-glow { background: #ec4899; }
.section-empty--pink    { border-color: #ec489930; }

@media (max-width: 600px) {
  .section-empty { padding: 36px 20px; margin: 0 4%; }
  .section-empty-icon { font-size: 36px; }
  .section-empty-title { font-size: 15px; }
}

/* ═══════════════════════════════════════════
   HERO EMPTY STATE — is_featured kontent
   hali belgilanmaganda ko'rsatiladigan
   brendlangan xush kelibsiz ekrani
═══════════════════════════════════════════ */
.hero-empty {
  position: relative; height: 60vh; min-height: 420px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #7c3aed25 0%, var(--bg) 65%);
}
.hero-empty-orb {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  filter: blur(80px); opacity: .3; top: -10%; left: 50%;
  transform: translateX(-50%);
  animation: heroOrbPulse 6s ease-in-out infinite;
}
@keyframes heroOrbPulse {
  0%, 100% { opacity: .25; transform: translateX(-50%) scale(1); }
  50%      { opacity: .4;  transform: translateX(-50%) scale(1.2); }
}
.hero-empty-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 560px; padding: 0 24px;
}
.hero-empty-logo {
  font-size: 56px; margin-bottom: 16px;
  animation: sectionIconFloat 3.5s ease-in-out infinite;
}
.hero-empty-title {
  font-size: clamp(24px, 4vw, 38px); font-weight: 800;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px; letter-spacing: -.5px;
}
.hero-empty-text {
  font-size: 15px; color: var(--text2); line-height: 1.6;
  margin-bottom: 24px;
}
.hero-empty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: var(--transition);
}
.hero-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--accent-glow); }

@media (max-width: 600px) {
  .hero-empty { height: 46vh; min-height: 340px; }
  .hero-empty-logo { font-size: 42px; }
}

/* ═══════════════════════════════════════════
   DESIGN SYSTEM UTILITIES
   Eng ko'p takrorlanadigan naqshlar — inline
   style o'rniga shu klasslar ishlatilishi kerak
═══════════════════════════════════════════ */
.dsys-list-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: var(--fs-base); font-weight: 600;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.dsys-list-row:hover {
  border-color: var(--accent); background: var(--accent-glow);
  transform: translateY(-1px);
}
.dsys-stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.dsys-stat-card:hover { transform: translateY(-2px); border-color: #ffffff20; }

/* ═══════════════════════════════════════════
   FORM ELEMENTS — izchil input/button uslub
═══════════════════════════════════════════ */
.dsys-input {
  width: 100%; padding: var(--sp-3) 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-base);
}
.dsys-input:focus { outline: none; border-color: var(--accent); }
.dsys-btn-primary {
  padding: 13px; background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-size: var(--fs-lg); font-weight: 700;
  text-align: center; transition: var(--transition);
}
.dsys-btn-primary:hover { background: var(--accent2); }
.dsys-btn-outline {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-base);
  transition: var(--transition);
}
.dsys-btn-outline:hover { border-color: var(--accent); }
.dsys-link-center {
  text-align: center; margin-top: var(--sp-5);
  font-size: var(--fs-base); color: var(--text2);
}

/* ═══════════════════════════════════════════
   AVATAR — foydalanuvchi/a'zo doira ikonasi
═══════════════════════════════════════════ */
.dsys-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.dsys-avatar--emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xl); background: var(--bg3); border-radius: var(--radius);
}

/* ═══════════════════════════════════════════
   CARD BLOCKS — turli padding/margin variantlari
═══════════════════════════════════════════ */
.dsys-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.dsys-card:hover { border-color: #ffffff20; }
.dsys-card--lg { padding: var(--sp-6); }
.dsys-card--mb24 { margin-bottom: var(--sp-6); }
.dsys-card--overflow {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.dsys-row-bg3 {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); background: var(--bg3); border-radius: var(--radius-sm);
}
.dsys-row-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.dsys-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border);
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   TEXT HELPERS
═══════════════════════════════════════════ */
.dsys-h3-mb8   { font-size: var(--fs-xl); font-weight: 800; margin-bottom: var(--sp-2); }
.dsys-h2-mb6   { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.dsys-h2-mb24  { font-size: 22px; font-weight: 800; margin-bottom: var(--sp-6); }
.dsys-emoji-lg { font-size: var(--fs-2xl); margin-bottom: 10px; }
.dsys-emoji-xl { font-size: 22px; }
.dsys-caption-dim  { color: var(--text3); font-size: var(--fs-base); }
.dsys-caption-mt   { font-size: var(--fs-xs); color: var(--text3); margin-top: var(--sp-1); }
.dsys-caption-mt6  { font-size: var(--fs-sm); color: var(--text2); margin-bottom: 10px; }
.dsys-accent-xs    { font-size: var(--fs-xs); color: var(--accent2); }
.dsys-accent-mt    { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--accent2); }
.dsys-green-xs     { color: var(--green); font-size: var(--fs-xs); }
.dsys-title-sm     { font-size: 15px; font-weight: 700; }
.dsys-title-md     { font-size: var(--fs-lg); font-weight: 700; }

/* ═══════════════════════════════════════════
   MISC LAYOUT
═══════════════════════════════════════════ */
.dsys-progress-track { height: 4px; background: var(--bg3); }
.dsys-divider-row     { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; }
.dsys-page-narrow     { max-width: 600px; margin: 0 auto; padding: var(--sp-8) var(--sp-5); }
.dsys-empty-cell      { grid-column: 1/-1; text-align: center; padding: var(--sp-10); color: var(--text3); }
.dsys-badge-accent    { font-size: 11px; background: var(--accent); color: white; padding: 3px 10px; border-radius: var(--radius-sm); }
.dsys-grid-2          { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dsys-grid-stats      { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: var(--sp-3); margin-bottom: var(--sp-8); }
.dsys-flex-col-6      { display: flex; flex-direction: column; gap: 6px; }

/* ═══════════════════════════════════════════
   COMMENT/REACTION SPECIFIC (detail.html)
═══════════════════════════════════════════ */
.spoiler-text {
  font-size: var(--fs-base); color: var(--text2); line-height: 1.6;
  filter: blur(4px); transition: .3s;
}
.reaction-btn {
  font-size: var(--fs-xs); color: var(--text3);
  background: none; border: none; cursor: pointer;
}
.sort-btn-inactive {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  font-size: var(--fs-base); background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2);
}

/* ═══════════════════════════════════════════
   NOTIFICATION SETTINGS TOGGLE
   (JS onchange bilan .on klass qo'shiladi —
   checkbox:checked emas, chunki checkbox
   ko'rinmas overlay sifatida ishlatiladi)
═══════════════════════════════════════════ */
.notif-toggle-wrap { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.notif-toggle-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; z-index: 2;
}
.toggle-track {
  position: absolute; inset: 0; background: var(--bg3);
  border-radius: 12px; transition: var(--transition); border: 1px solid var(--border);
}
.toggle-track.on { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; transition: var(--transition);
}
.toggle-track.on .toggle-thumb { left: calc(100% - 19px); }

.dsys-submit-full { width: 100%; margin-top: var(--sp-5); padding: 14px; font-size: var(--fs-md); }

/* ═══════════════════════════════════════════
   FEATURED SECTION — bosh sahifadagi birinchi
   mazmunli qator, boshqalardan ajralib turadi
═══════════════════════════════════════════ */
.section--featured { padding-top: var(--sp-6); }
.section-title--featured {
  font-size: var(--fs-xl);
}
.section-title--featured::before {
  width: 5px; height: 26px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.cards-row--featured { gap: var(--sp-5); }
.movie-card--featured { width: 200px; }
.movie-card--featured .card-title { font-size: var(--fs-md); }
@media (max-width: 600px) {
  .movie-card--featured { width: 150px; }
}
