/**
 * Anime Telegram WebApp - Premium Anime Glassmorphism & Neon Style
 * Optimized for Mobile Telegram Mini Apps
 */

:root {
  --bg-primary: #0a0b12;
  --bg-secondary: #121422;
  --glass-bg: rgba(22, 26, 44, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --accent-cyan: #00f2fe;
  --accent-purple: #9d4edd;
  --accent-pink: #ff007f;
  --accent-gold: #ffb703;
  --text-main: #f0f3f8;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --card-radius: 18px;
  --btn-radius: 14px;
  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.4);
  --glow-pink: 0 0 25px rgba(255, 0, 127, 0.45);
  --glow-purple: 0 0 20px rgba(157, 78, 221, 0.35);
  --bottom-nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
  overflow-x: hidden;
  user-select: none;
}

/* Scrollbar dizayni */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 11, 18, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(157, 78, 221, 0.5);
  border-radius: 4px;
}

/* Glassmorphism asosiy sinfi */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

/* Yuqori Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 11, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-pink);
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 16px;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--glow-cyan);
}

/* ========================================================
   CUSTOM GLASSMORPISM TIL TANLASH (DROPDOWN LIST)
   ======================================================== */
.glass-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.glass-dropdown-trigger {
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(157, 78, 221, 0.12) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.glass-dropdown-trigger:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 242, 254, 0.12) 100%);
  border-color: rgba(0, 242, 254, 0.4);
}

.glass-dropdown-trigger:active {
  transform: scale(0.96);
}

.glass-dropdown.open .glass-dropdown-trigger {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(22, 26, 44, 0.9) 0%, rgba(157, 78, 221, 0.2) 100%);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.45);
}

.globe-icon {
  color: var(--accent-cyan);
  font-size: 13px;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.active-flag {
  font-size: 15px;
  line-height: 1;
}

.active-lang-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.arrow-icon {
  font-size: 10px;
  color: #a78bfa;
  margin-left: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.glass-dropdown.open .arrow-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Ochiladigan Menyuning Shaffof Neon Dizayni */
.glass-dropdown-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: rgba(15, 17, 30, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(157, 78, 221, 0.3);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.94);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.glass-dropdown.open .glass-dropdown-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.glass-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.glass-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.glass-dropdown-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-dropdown-option:active {
  transform: scale(0.97);
}

.glass-dropdown-option.active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.35) 0%, rgba(0, 242, 254, 0.2) 100%);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.opt-flag {
  font-size: 20px;
  line-height: 1;
}

.opt-text {
  display: flex;
  flex-direction: column;
}

.opt-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.opt-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

.opt-check {
  margin-left: auto;
  color: var(--accent-cyan);
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-dropdown-option.active .opt-check {
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
}

/* Qismlar Sarlavhalari (Section headers) */
.section {
  padding: 18px 16px 6px 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.section-title i {
  color: var(--accent-cyan);
}

.section-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(157, 78, 221, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(157, 78, 221, 0.4);
}

/* Hero Slayder - Premium Cinematic Dizayn */
.hero-container {
  padding: 14px 16px 0 16px;
  position: relative;
}

/* Slayder atrofida to'liq aylanuvchi neon chiziq konteyneri (Border Beam) */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 22px;
  padding: 2.5px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(157, 78, 221, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

/* Slayder perimetri bo'ylab to'liq aylanuvchi neon nur */
.hero-slider-wrapper::before {
  content: '';
  position: absolute;
  top: -65%;
  left: -65%;
  width: 230%;
  height: 230%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 45deg,
    var(--accent-cyan) 105deg,
    var(--accent-pink) 175deg,
    transparent 235deg,
    transparent 360deg
  );
  animation: heroBorderRotate 8s linear infinite;
  z-index: 1;
}

/* Tashqi aylanuvchi neon nurlanish (Glow Aura) */
.hero-slider-wrapper::after {
  content: '';
  position: absolute;
  top: -65%;
  left: -65%;
  width: 230%;
  height: 230%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 45deg,
    var(--accent-cyan) 105deg,
    var(--accent-pink) 175deg,
    transparent 235deg,
    transparent 360deg
  );
  filter: blur(14px);
  opacity: 0.75;
  animation: heroBorderRotate 8s linear infinite;
  z-index: 1;
}

@keyframes heroBorderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.swiper-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0f111d;
  border: none;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Fon effekti - blur va to'yingan ranglar */
.hero-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.32) saturate(1.8);
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 11, 20, 0.92) 0%, rgba(10, 11, 20, 0.6) 45%, rgba(10, 11, 20, 0.88) 100%),
              radial-gradient(circle at 85% 15%, rgba(0, 242, 254, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(255, 0, 127, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* Asosiy kontent qismi */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 26px 18px;
  box-sizing: border-box;
}

/* Chap tomondagi vertikal poster kartasi */
.hero-poster-wrap {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 164px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  background: #141726;
  transform: scale(0.9) translateX(-14px);
  opacity: 0.6;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.7s ease;
}

.hero-slide.swiper-slide-active .hero-poster-wrap {
  transform: scale(1) translateX(0);
  opacity: 1;
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-slide:hover .hero-poster-img,
.hero-slide:active .hero-poster-img {
  transform: scale(1.05);
}

.hero-rating-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(12, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* O'ng tomondagi tafsilotlar */
.hero-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Matn va tugmalarning kaskadli kirib kelishi (Uzaytirilgan mayin animatsiya) */
.hero-badges-row,
.hero-title,
.hero-meta-row,
.hero-action-row {
  transform: translateX(20px);
  opacity: 0.6;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
}

.hero-badges-row { transition-delay: 0.08s; }
.hero-title { transition-delay: 0.14s; }
.hero-meta-row { transition-delay: 0.20s; }
.hero-action-row { transition-delay: 0.26s; }

.hero-slide.swiper-slide-active .hero-badges-row,
.hero-slide.swiper-slide-active .hero-title,
.hero-slide.swiper-slide-active .hero-meta-row,
.hero-slide.swiper-slide-active .hero-action-row {
  transform: translateX(0);
  opacity: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-pill-fire {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(157, 78, 221, 0.25));
  border: 1px solid rgba(255, 0, 127, 0.5);
  color: #ff4da6;
}

.hero-pill-type {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.hero-pill-year {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.hero-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-genre-pill {
  color: #a78bfa;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-action-row {
  margin-top: 4px;
}

.hero-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--accent-pink) 0%, #7928ca 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(255, 0, 127, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.22s ease;
}

.hero-watch-btn .btn-play-icon {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  padding-left: 1.5px;
}

.hero-slide:hover .hero-watch-btn,
.hero-slide:active .hero-watch-btn {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 7px 22px rgba(255, 0, 127, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Slayder Pagination Bullets */
.swiper-hero .swiper-pagination {
  bottom: 7px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 10;
}

.swiper-hero .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-hero .swiper-pagination-bullet-active {
  width: 22px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  border-radius: 6px;
}

/* Kichik va katta ekranlar uchun moslashuvchanlik */
@media (max-width: 360px) {
  .hero-slider-wrapper,
  .swiper-hero {
    height: 225px;
  }
  .hero-content {
    gap: 12px;
    padding: 14px 14px 22px 14px;
  }
  .hero-poster-wrap {
    width: 95px;
    min-width: 95px;
    max-width: 95px;
    height: 145px;
  }
  .hero-title {
    font-size: 14.5px;
  }
  .hero-watch-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (min-width: 500px) {
  .hero-slider-wrapper,
  .swiper-hero {
    height: 260px;
  }
  .hero-poster-wrap {
    width: 125px;
    min-width: 125px;
    max-width: 125px;
    height: 185px;
  }
  .hero-title {
    font-size: 18px;
  }
  .hero-watch-btn {
    padding: 9px 20px;
    font-size: 13px;
  }
}

/* Standart nishonlar */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-pink {
  background: rgba(255, 0, 127, 0.15);
  color: #ff3399;
  border: 1px solid rgba(255, 0, 127, 0.3);
}

.badge-gold {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Gorizontal Slayderlar (Updates & Movies) */
.horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.anime-card-small {
  flex: 0 0 135px;
  scroll-snap-align: start;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.anime-card-small:active {
  transform: scale(0.96);
  border-color: var(--accent-purple);
}

.card-poster-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #181b2d;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anime-card-small:hover .card-poster {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  z-index: 3;
}

.card-badge-top .badge {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;

  background: rgba(0, 0, 0, 0.40);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.card-badge-rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.25);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.card-body {
  padding: 8px 10px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-subtext {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* TOP Animelar Bo'limi & Tablar */
.tab-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 14px;
}

.tab-pill {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-pill.active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.4), rgba(0, 242, 254, 0.3));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.top-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.top-card {
  flex: 0 0 145px;
  scroll-snap-align: start;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.top-card:active {
  transform: scale(0.96);
  border-color: var(--accent-cyan);
}

.top-card-poster-wrap {
  width: 100%;
  height: 195px;
  position: relative;
  overflow: hidden;
  background: #181b2d;
}

.top-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.top-card:hover .top-card-poster {
  transform: scale(1.06);
}

/* Katta ko'rinarli reyting nishoni */
.top-badge-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.top-rank-1 {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #1a0f00;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.top-rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #8a8a8a);
  color: #1a1a1a;
  box-shadow: 0 0 12px rgba(224, 224, 224, 0.5);
}

.top-rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
  box-shadow: 0 0 12px rgba(205, 127, 50, 0.5);
}

.top-rank-other {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-card-body {
  padding: 8px 10px;
}

.top-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.top-card-subtext {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-views-chip {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Tasodifiy Anime Banner Kartasi */
.random-box {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25) 0%, rgba(0, 242, 254, 0.2) 100%);
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  box-shadow: var(--glow-purple);
  cursor: pointer;
  transition: all 0.25s ease;
}

.random-box:active {
  transform: scale(0.97);
  box-shadow: var(--glow-pink);
}

.random-info h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
  color: #fff;
}

.random-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.random-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--glow-pink);
}

/* Janrlar chiplari (Katalog) */
.genre-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px 0;
}
.genre-chips::-webkit-scrollbar { display: none; }

.genre-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-chip.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

/* Qidiruv Natijalari Grid */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 360px) {
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MODAL OYNA (ANIME DETAIL MODAL) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #111322;
  border-radius: 26px 26px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  overflow-y: auto;
  padding: 20px 18px calc(var(--safe-bottom) + 20px) 18px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 0 auto 16px auto;
}

.sheet-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.detail-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-poster-wrap {
  position: relative;
  flex: 0 0 110px;
  height: 155px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
}

.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.detail-original-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Parametrlar jadvali (Grid of stats) */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 10px 8px;
  margin-bottom: 14px;
  text-align: center;
}

.stat-item h6 {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}

.stat-item p {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Qo'shimcha parametrlar satri */
.detail-extra-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.extra-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
}

/* Janrlar ro'yxati */
.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.genre-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

/* Tafsif (Description & Read more) */
.detail-desc-box {
  margin-bottom: 20px;
}

.detail-desc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-desc-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  position: relative;
}

.detail-desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  display: inline-block;
}

/* Qismlar tanlash bloki (Episodes Selector in Detail Modal) */
.detail-episodes-section {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 14px;
}

.episodes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.selected-episode-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

/* Qismlar sahifalari boshqaruvi (Pagination Bar) */
.episodes-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 10px;
  gap: 8px;
}

.ep-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ep-nav-btn:hover:not(:disabled) {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.ep-nav-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.ep-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ep-page-indicator {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.episodes-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
}

.episodes-chips-grid::-webkit-scrollbar {
  width: 4px;
}
.episodes-chips-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.ep-chip {
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ep-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
}

.ep-chip:active {
  transform: scale(0.92);
}

.ep-chip.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-color: rgba(0, 242, 254, 0.3);
  color: #ffffff;
  box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.5);
}

/* ANIMATSIYALI YUKLAB OLISH TUGMASI (GLOW CTA) */
.btn-download-glow {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 30%, #9d4edd 70%, #ff007f 100%);
  background-size: 300% 300%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(0, 242, 254, 0.5), 0 0 40px rgba(255, 0, 127, 0.3);
  animation: gradientShift 4s ease infinite, pulseGlow 2s infinite alternate;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.btn-download-glow:active {
  transform: scale(0.97);
}

.btn-download-glow i {
  font-size: 20px;
  animation: bounceDown 1.5s infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4), 0 0 30px rgba(255, 0, 127, 0.2);
  }
  100% {
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.7), 0 0 50px rgba(255, 0, 127, 0.5);
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* PASTKI NAVIGATSIYA (BOTTOM NAV BAR) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(12, 14, 25, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 65px;
  height: 48px;
  border-radius: 12px;
}

.nav-item i {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
}

/* Qidiruv Modali */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 11, 18, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 16px;
  display: none;
  flex-direction: column;
}

.search-modal.active {
  display: flex;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.search-results-box {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

/* Yuklanish skeleti (Skeleton loader) */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

/* Xatcho'p (Bookmark) tugmasi */
.btn-bookmark {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-bookmark.saved {
  color: var(--accent-pink);
  background: rgba(255, 0, 127, 0.2);
  border-color: var(--accent-pink);
}

/* Tab sahifalari */
.page-view {
  display: none;
}
.page-view.active {
  display: block;
}

/* -------------------------------------------------------------
   BILDIRISHNOMA (TOAST) - 5 SONIYALIK ANIMATSIYA
   ------------------------------------------------------------- */
.app-toast-container {
  position: fixed;
  top: calc(env(safe-area-inset-top, 12px) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 999999;
  width: calc(100% - 32px);
  max-width: 440px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.app-toast-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.app-toast-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(22, 26, 48, 0.96), rgba(12, 15, 30, 0.98));
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
}

.app-toast-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), #00b4d8);
  color: #0a0b12;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
  animation: toastPulse 1.5s infinite ease-in-out;
}

@keyframes toastPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.app-toast-body {
  flex: 1;
  min-width: 0;
}

.app-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.3;
}

.app-toast-sub {
  font-size: 12px;
  color: var(--accent-cyan);
  line-height: 1.3;
  opacity: 0.95;
}

.app-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.app-toast-close:hover {
  color: #ffffff;
}

.app-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  animation: toastCountdown linear forwards;
}

@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   PROFIL SAHIFASI (PAGE PROFILE) STILLARI
   ========================================================================== */

/* Asosiy Profil Hero Kartochkasi */
.profile-hero-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(157, 78, 221, 0.12);
  margin-bottom: 16px;
}

.profile-hero-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(255, 0, 127, 0.18) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* Avatar Konteneri va Nurli Hoshiya */
.profile-avatar-container {
  position: relative;
  margin-bottom: 14px;
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink), var(--accent-purple));
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4), 0 0 30px rgba(255, 0, 127, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #121422;
  border: 2px solid #0a0b12;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2338 0%, #0d0f1a 100%);
  border: 2px solid #0a0b12;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 30px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.profile-status-badge-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #181b2e;
  border: 2px solid #0a0b12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.profile-status-badge-icon.premium {
  background: linear-gradient(135deg, #ffb703, #ff007f);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.6);
}

/* Foydalanuvchi Ismi, Username va ID */
.profile-info-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-fullname {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  max-width: 90%;
  word-break: break-word;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.profile-username {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.profile-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-id-chip:active {
  transform: scale(0.96);
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

.profile-id-label {
  color: var(--text-muted);
  font-weight: 600;
}

.profile-id-val {
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Premium Status Kartochkasi */
.profile-premium-box {
  margin-bottom: 16px;
}

.premium-status-card {
  border-radius: var(--card-radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.premium-status-card.active-vip {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.14) 0%, rgba(255, 0, 127, 0.12) 100%), var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 183, 3, 0.4);
  box-shadow: 0 10px 25px rgba(255, 183, 3, 0.15);
}

.premium-status-card.standard {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.prem-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prem-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prem-crown-icon {
  font-size: 24px;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(255, 183, 3, 0.6));
}

.prem-standard-icon {
  font-size: 22px;
  color: var(--text-muted);
}

.prem-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.prem-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.prem-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffb703, #ff007f);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

.prem-badge-standard {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.prem-expiry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.prem-perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prem-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
}

.prem-standard-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.prem-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2) 0%, rgba(255, 0, 127, 0.2) 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.2);
}

.prem-cta-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.3) 0%, rgba(255, 0, 127, 0.3) 100%);
}

.prem-cta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profil Statistikalar Gridi */
.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.profile-stat-card:active {
  transform: scale(0.97);
  border-color: var(--accent-purple);
}

.pstat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pstat-purple {
  background: rgba(157, 78, 221, 0.18);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.pstat-cyan {
  background: rgba(0, 242, 254, 0.18);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.pstat-info {
  flex: 1;
  min-width: 0;
}

.pstat-info h5 {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0 0 2px 0;
  font-weight: 600;
}

.pstat-info p {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pstat-arrow {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Profil Menyu va Harakatlar Ro'yxati */
.profile-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-action-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.profile-action-item:active {
  transform: scale(0.98);
  border-color: rgba(255, 255, 255, 0.2);
}

.paction-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.paction-blue {
  background: rgba(0, 136, 204, 0.2);
  color: #29b6f6;
  border: 1px solid rgba(0, 136, 204, 0.35);
}

.paction-pink {
  background: rgba(255, 0, 127, 0.18);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 0, 127, 0.35);
}

.paction-text {
  flex: 1;
  min-width: 0;
}

.paction-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.paction-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.paction-arrow {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ========================================================
   PREMIUM VIP SOTIB OLISH MODALI (BUY VIP SHEET)
   ======================================================== */
.header-vip-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
  transition: all 0.25s ease;
}

.header-vip-btn:active {
  transform: scale(0.95);
}

.header-vip-btn i {
  font-size: 13px;
  color: #ffd700;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.premium-sheet {
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: calc(20px + var(--safe-bottom));
}

.prem-modal-hero {
  text-align: center;
  position: relative;
  padding: 10px 0 16px 0;
}

.prem-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.prem-hero-crown {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  animation: floatCrown 3s ease-in-out infinite;
}

@keyframes floatCrown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.prem-hero-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.vip-glow-text {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.prem-hero-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Faqat bitta VIP imtiyoz banneri: VIP animelar tomosha qilish */
.prem-feature-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(157, 78, 221, 0.12));
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.feature-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #0a0b12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.feature-banner-content {
  flex: 1;
}

.feature-banner-content h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 3px 0;
  letter-spacing: 0.2px;
}

.feature-banner-content p {
  font-size: 11px;
  color: var(--accent-gold);
  opacity: 0.9;
  margin: 0;
  line-height: 1.35;
}

/* Plan tanlash ro'yxati */
.prem-plans-select-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prem-plans-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.prem-plan-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.prem-plan-item:hover, .prem-plan-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.prem-plan-item.selected {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(245, 158, 11, 0.08));
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.2);
}

.plan-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.prem-plan-item.selected .plan-radio-circle {
  border-color: #ffd700;
}

.prem-plan-item.selected .plan-radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 6px #ffd700;
}

.plan-info-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.plan-item-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  letter-spacing: 0.4px;
}

.plan-item-days {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.plan-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan-item-stars {
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plan-item-uzs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* To'lov usullari */
.prem-method-selector {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.prem-method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.prem-method-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.method-badge-auto {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pay-note-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.pay-note-text b {
  color: #fff;
}

/* To'lov tugmalari */
.btn-buy-stars {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.btn-buy-stars:active {
  transform: scale(0.98);
}

.btn-buy-stars i {
  font-size: 16px;
}

.btn-buy-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Karta to'lovi qutisi */
.card-details-box {
  background: rgba(18, 20, 36, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.card-label {
  color: var(--text-dim);
}

.card-val {
  color: #fff;
  font-weight: 700;
}

.card-val.highlight {
  color: #10b981;
  font-size: 15px;
  font-weight: 800;
}

.card-copy-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(0, 242, 254, 0.3);
}

.id-chip-sm {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.btn-buy-card {
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.25s ease;
}

.btn-buy-card:active {
  transform: scale(0.98);
}

/* ==========================================
   VIP / EKSKLYUZIV ANIMELAR & CINEMA PLAYER
   ========================================== */

.nav-item-vip i {
  color: var(--accent-gold) !important;
}
.nav-item-vip.active {
  color: var(--accent-gold) !important;
}
.nav-item-vip.active i {
  text-shadow: 0 0 15px rgba(255, 183, 3, 0.6) !important;
}

/* VIP Header */
.vip-page-header {
  text-align: center;
  margin: 10px 0 20px 0;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12) 0%, rgba(157, 78, 221, 0.1) 100%);
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
}

.vip-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  margin-bottom: 8px;
}

.vip-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.vip-header-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Qulflangan VIP Foydalanuvchilar Banneri */
.vip-locked-promo {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 18, 44, 0.95), rgba(35, 20, 28, 0.95));
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(255, 183, 3, 0.15);
  overflow: hidden;
}

.vip-promo-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.vip-promo-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  background: linear-gradient(135deg, #ffb703, #ff007f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.4);
}

.vip-locked-promo h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.vip-locked-promo p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.btn-vip-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ffb703, #f59e0b);
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.4);
  transition: all 0.25s ease;
}

.btn-vip-buy:active {
  transform: scale(0.97);
}

/* VIP Animes Grid */
.vip-animes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.vip-anime-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.vip-anime-card.unlocked {
  border-color: rgba(255, 183, 3, 0.35);
  box-shadow: 0 4px 20px rgba(255, 183, 3, 0.08);
}

.vip-anime-card:active {
  transform: scale(0.98);
}

.vip-card-banner-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #000;
}

.vip-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vip-anime-card:hover .vip-card-banner-img {
  transform: scale(1.05);
}

.vip-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 18, 0.95) 0%, rgba(10, 11, 18, 0.2) 60%, transparent 100%);
}

.vip-card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.vip-badge-pill {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
}

.vip-views-pill {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
}

.vip-play-center-icon,
.vip-lock-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3;
}

.vip-play-center-icon {
  background: linear-gradient(135deg, #ff007f, #9d4edd);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.5);
}

.vip-lock-center-icon {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 183, 3, 0.5);
  color: var(--accent-gold);
}

.vip-card-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vip-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.vip-card-genre {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 6px;
}

.vip-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vip-card-action {
  margin-top: auto;
}

.vip-anime-play-btn,
.vip-anime-lock-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-anime-play-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #000;
}

.vip-anime-lock-btn {
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: var(--accent-gold);
}

/* ==========================================
   IN-APP CINEMA VIDEO PLAYER MODAL
   ========================================== */

.cinema-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cinema-modal-container {
  width: 100%;
  max-width: 800px;
  background: #0d0f1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  display: flex;
  flex-direction: column;
}

.cinema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.cinema-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.cinema-vip-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  white-space: nowrap;
}

.cinema-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.cinema-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cinema-close-btn:active {
  transform: scale(0.9);
}

.cinema-video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

.cinema-footer {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
}

.cinema-genre {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 6px;
}

.cinema-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  max-height: 60px;
  overflow-y: auto;
}


