/* ==========================================================================
   DRACINGRAM — INSTAGRAM MOBILE IOS STYLING (LATEST VERSION)
   ========================================================================== */

:root {
  /* Glassmorphism 2.0 Design System Tokens */
  --bg-primary: #07080d;
  --bg-secondary: rgba(16, 19, 30, 0.62);
  --bg-tertiary: rgba(24, 28, 44, 0.55);
  --bg-surface: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(12, 14, 24, 0.65);
  --bg-glass-card: rgba(22, 26, 40, 0.52);
  
  /* Glass 2.0 Optical Properties */
  --glass-surface: rgba(255, 255, 255, 0.06);
  --glass-surface-hover: rgba(255, 255, 255, 0.12);
  --glass-surface-active: rgba(255, 255, 255, 0.18);
  --glass-border: 1px solid rgba(255, 255, 255, 0.16);
  --glass-border-hairline: 1px solid rgba(255, 255, 255, 0.1);
  --glass-border-glow: 1px solid rgba(255, 255, 255, 0.32);
  --glass-blur: blur(28px) saturate(200%);
  --glass-blur-deep: blur(40px) saturate(220%);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  --glass-shadow-lg: 0 28px 65px rgba(0, 0, 0, 0.72), inset 0 1px 1px 0 rgba(255, 255, 255, 0.32);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --text-link: #38bdf8;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-purple: #bc1888;
  --ig-pink: #cc2366;
  --ig-red: #dc2743;
  --ig-orange: #e6683c;
  --ig-yellow: #f09433;
  --ig-blue: #0095f6;
  --ig-heart: #ff3040;
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --transition-spring: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
body.light-mode {
  --bg-primary: #f0f2f8;
  --bg-secondary: rgba(255, 255, 255, 0.7);
  --bg-tertiary: rgba(240, 242, 250, 0.75);
  --bg-surface: rgba(0, 0, 0, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-card: rgba(255, 255, 255, 0.65);
  
  --glass-surface: rgba(255, 255, 255, 0.65);
  --glass-surface-hover: rgba(255, 255, 255, 0.85);
  --glass-surface-active: #ffffff;
  --glass-border: 1px solid rgba(0, 0, 0, 0.1);
  --glass-border-hairline: 1px solid rgba(0, 0, 0, 0.06);
  --glass-border-glow: 1px solid rgba(0, 0, 0, 0.2);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.18), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  
  --text-primary: #0f172a;
  --text-secondary: rgba(15, 23, 42, 0.7);
  --text-tertiary: rgba(15, 23, 42, 0.45);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   GLASSMORPHISM 2.0 AMBIENT AURORA CANVAS
   ========================================================================== */
.glass-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  will-change: transform, opacity;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.glass-orb-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -70px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.28) 50%, transparent 75%);
  animation-duration: 22s;
}

.glass-orb-2 {
  width: 280px;
  height: 280px;
  top: 18%;
  right: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(59, 130, 246, 0.22) 50%, transparent 75%);
  animation-duration: 18s;
  animation-delay: -5s;
}

.glass-orb-3 {
  width: 340px;
  height: 340px;
  bottom: 12%;
  left: -90px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38) 0%, rgba(244, 63, 94, 0.18) 50%, transparent 75%);
  animation-duration: 25s;
  animation-delay: -10s;
}

.glass-orb-4 {
  width: 270px;
  height: 270px;
  bottom: -40px;
  right: -50px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, rgba(14, 165, 233, 0.22) 50%, transparent 75%);
  animation-duration: 20s;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, 32px) scale(1.1);
  }
  100% {
    transform: translate(-18px, -22px) scale(0.95);
  }
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: #0b0c10;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Utility Gradients & Icons */
.text-gradient {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   DESKTOP BAR / FRAME CONTROLLER
   ========================================================================== */
.desktop-controls {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-controls-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.version-tag {
  font-size: 10px;
  background: var(--ig-gradient);
  color: #fff;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.controls-actions {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   IPHONE FRAME & RESPONSIVE CONTAINER
   ========================================================================== */
.iphone-wrapper {
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  overflow: hidden;
}

/* iPhone Frame when bezel mode is active */
body.device-bezel .iphone-frame {
  width: 412px;
  height: 870px;
  max-height: calc(100vh - 80px);
  background: radial-gradient(130% 120% at 50% -10%, #161a2b 0%, #0a0c14 55%, #050609 100%);
  border-radius: 54px;
  border: 11px solid #1a1c24;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 25px 60px -10px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(99, 102, 241, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}

/* Fullscreen / Mobile Mode */
body:not(.device-bezel) .desktop-controls {
  display: none;
}

body:not(.device-bezel) .iphone-wrapper {
  top: 0;
  padding: 0;
}

body:not(.device-bezel) .iphone-frame {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: radial-gradient(130% 120% at 50% -10%, #161a2b 0%, #0a0c14 55%, #050609 100%);
  border-radius: 0;
  border: none;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Mobile Media Query for viewport < 500px */
@media (max-width: 500px) {
  .desktop-controls {
    display: none !important;
  }
  .iphone-wrapper {
    top: 0 !important;
    padding: 0 !important;
  }
  .iphone-frame {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   INSTAGRAM TOP HEADER (Clean Native Header - Glassmorphism 2.0)
   ========================================================================== */
.ig-top-bar {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(12, 15, 24, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 90;
  flex-shrink: 0;
  position: relative;
}

body.light-mode .ig-top-bar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Brand Name & Logo on Left: Cindoku */
.ig-brand-brandmark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cindoku-header-logo {
  height: 33px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(255, 69, 0, 0.45));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cindoku-header-logo:hover {
  transform: scale(1.04);
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

body.light-mode .brand-title {
  background: linear-gradient(135deg, #0f172a 60%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-nav-icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: transform 0.15s ease;
}

.top-nav-icon-btn:active {
  transform: scale(0.85);
}

/* ==========================================================================
   INSTAGRAM TOP BAR PROVIDER SELECTOR & DROPDOWN (Right Aligned)
   ========================================================================== */
.ig-provider-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.25);
  outline: none;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-provider-selector:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 6px 20px rgba(99, 102, 241, 0.25);
}

.ig-provider-selector:active {
  transform: scale(0.96);
  opacity: 0.9;
}

body.light-mode .ig-provider-selector {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.provider-current-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
}

body.light-mode .provider-current-name {
  color: #000000;
}

.provider-chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
}

body.light-mode .provider-chevron {
  color: rgba(0, 0, 0, 0.6);
}

.ig-provider-selector.open .provider-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

body.light-mode .ig-provider-selector.open .provider-chevron {
  color: #000000;
}

/* Backdrop */
.provider-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.provider-dropdown-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* iOS Provider Dropdown Menu Popover - Anchored Right */
.provider-dropdown-menu {
  position: absolute;
  top: 54px;
  right: 14px;
  left: auto;
  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;
  width: 320px;
  max-width: calc(100vw - 28px);
  max-height: 480px;
  background: rgba(15, 18, 30, 0.78);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode .provider-dropdown-menu {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.provider-dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.provider-menu-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

body.light-mode .provider-menu-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.provider-menu-drag-pill {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}

body.light-mode .provider-menu-drag-pill {
  background: rgba(0, 0, 0, 0.2);
}

.provider-menu-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.provider-menu-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

body.light-mode .provider-menu-title {
  color: #000000;
}

.provider-menu-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

body.light-mode .provider-menu-badge {
  color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.06);
}

/* Quick search filter in provider dropdown */
.provider-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 10px 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

body.light-mode .provider-search-box {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.provider-search-box i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

body.light-mode .provider-search-box i {
  color: rgba(0, 0, 0, 0.4);
}

.provider-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12px;
  width: 100%;
}

body.light-mode .provider-search-box input {
  color: #000000;
}

.provider-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.light-mode .provider-search-box input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.provider-menu-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 400px;
}

.provider-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.provider-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.light-mode .provider-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.provider-option:active {
  transform: scale(0.98);
}

.provider-option.active {
  background: rgba(255, 255, 255, 0.1);
}

body.light-mode .provider-option.active {
  background: rgba(0, 0, 0, 0.07);
}

.provider-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dramabox-badge { 
  background: #ff2d55; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 85, 0.4);
}
.shortmax-badge { 
  background: #111; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 0, 0.4);
}
.starshort-badge { 
  background: #fbc02d; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 192, 45, 0.4);
}
.bilitv-badge { 
  background: #ff1c44; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 60, 90, 0.4);
}
.dotdrama-badge { 
  background: #111409; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(254, 240, 40, 0.4);
}
.provider-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.provider-trigger-logo {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.stardusttv-badge { 
  background: #f75267; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 80, 0.4);
}
.reelife-badge { 
  background: #ff1c1c; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 60, 60, 0.4);
}
.dramabite-badge { 
  background: #1e1b2e; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(80, 240, 60, 0.4);
}
.flextv-badge { 
  background: #f72c67; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 70, 120, 0.4);
}
.freereels-badge { 
  background: #ff5040; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 100, 70, 0.4);
}
.vigloo-badge { 
  background: #000; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.4);
}
.fundrama-badge { 
  background: #39b54a; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(76, 217, 100, 0.4);
}
.microdrama-badge { 
  background: #111422; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 0, 0.4);
}
.rapidtv-badge { 
  background: #ff1f5a; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 31, 90, 0.4);
}
.shortwave-badge { 
  background: #2f69ff; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 105, 255, 0.4);
}
.happyshort-badge { 
  background: #ff3366; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 51, 102, 0.4);
}
.dramanova-badge { 
  background: #ffffff; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cubetv-badge { 
  background: #0f101f; 
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(78, 84, 200, 0.4);
}
.velolo-badge { background: linear-gradient(135deg, #c31432, #240b36); }

.provider-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.provider-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.provider-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
}

body.light-mode .provider-name {
  color: #000000;
}

.provider-pill-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.provider-pill-badge.primary {
  background: rgba(255, 75, 43, 0.2);
  color: #ff5e3a;
}

.provider-pill-badge.secondary {
  background: rgba(0, 198, 255, 0.2);
  color: #38bdf8;
}

.provider-pill-badge.accent {
  background: rgba(131, 58, 180, 0.25);
  color: #d946ef;
}

.provider-pill-badge.neutral {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .provider-pill-badge.neutral {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

.provider-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .provider-desc {
  color: rgba(0, 0, 0, 0.55);
}

.provider-check {
  font-size: 13px;
  color: #38bdf8;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  padding-right: 4px;
}

.provider-option.active .provider-check {
  opacity: 1;
  transform: scale(1);
}

.provider-divider {
  display: flex;
  align-items: center;
  margin: 6px 4px 2px;
  padding: 4px 6px;
}

.provider-divider span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

body.light-mode .provider-divider span {
  color: rgba(0, 0, 0, 0.4);
}

.ig-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.top-icon-btn:active {
  transform: scale(0.85);
}

.badge-dot {
  position: absolute;
  top: 0;
  right: -1px;
  width: 7px;
  height: 7px;
  background: var(--ig-heart);
  border-radius: 50%;
  border: 1.5px solid var(--bg-primary);
}

.dm-svg-icon {
  fill: currentColor;
}

.dm-badge-num {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--ig-heart);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1.5px solid var(--bg-primary);
}

.lang-code-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   APP VIEWPORT & TAB PAGES
   ========================================================================== */
.app-viewport {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}

.tab-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  padding-bottom: 80px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.tab-page.active {
  display: block;
}

/* Custom Minimalist Scrollbar */
.tab-page::-webkit-scrollbar {
  width: 4px;
}
.tab-page::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* Pull to Refresh */
.pull-refresh-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   INSTAGRAM STORIES TRAY (Exact Screenshot Match)
   ========================================================================== */
.ig-stories-tray {
  display: flex;
  gap: 16px;
  padding: 10px 14px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-primary);
  scrollbar-width: none;
}

.ig-stories-tray::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
}

.story-avatar-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 2.8px;
  background: conic-gradient(from 180deg at 50% 50%, #feda75 0deg, #fa7e1e 60deg, #d62976 120deg, #962fbf 240deg, #4f5bd5 300deg, #feda75 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.story-item:active .story-avatar-wrap {
  transform: scale(0.93);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #000000;
  background: #111;
}

.story-avatar-my {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #000000;
  overflow: hidden;
  background: #2a0808;
}

.story-avatar-my img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-plus-icon {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.story-username {
  font-size: 11.5px;
  color: #ffffff;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  font-weight: 400;
}

/* ==========================================================================
   HERO 3D COVERFLOW CAROUSEL (Exact Screenshot Match - Glassmorphism 2.0)
   ========================================================================== */
.hero-carousel-section {
  width: 100%;
  padding: 16px 0 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-coverflow-container {
  position: relative;
  width: 100%;
  height: 226px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.coverflow-card {
  position: absolute;
  width: 154px;
  height: 218px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coverflow-card.current {
  transform: translateX(0) scale(1.06) translateZ(0);
  z-index: 10;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(99, 102, 241, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.coverflow-card.prev {
  transform: translateX(-100px) scale(0.86) rotateY(16deg);
  z-index: 5;
  opacity: 0.5;
  filter: brightness(0.6);
}

.coverflow-card.next {
  transform: translateX(100px) scale(0.86) rotateY(-16deg);
  z-index: 5;
  opacity: 0.5;
  filter: brightness(0.6);
}

.hero-meta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  padding: 0 20px;
}

.hero-drama-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-watch-btn {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 12px 38px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3), inset 0 1px 1px #ffffff;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.hero-watch-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.45), inset 0 1px 1px #ffffff;
}

.hero-watch-btn:active {
  transform: scale(0.96);
  filter: brightness(0.9);
}

.hero-dots-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 20px;
  border-radius: 6px;
  background: #ff5722;
}

/* ==========================================================================
   DRAMA HORIZONTAL SECTIONS (Exact Screenshot Match)
   ========================================================================== */
.drama-section {
  margin-top: 24px;
  padding: 0 16px;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-icon {
  font-size: 16px;
}

.section-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.horizontal-drama-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

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

.drama-poster-card {
  width: 112px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.drama-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(22, 26, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.drama-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.drama-poster-card:hover .drama-poster-wrap {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 25px rgba(99, 102, 241, 0.3);
}

.drama-poster-card:hover .drama-poster-img {
  transform: scale(1.04);
}

.drama-badge-ep {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(10, 13, 22, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.drama-badge-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.drama-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 580px;
  background: #050505;
  overflow: hidden;
  cursor: pointer;
}

.post-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlaid Post Header on Media */
.post-media-top-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.post-overlay-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-overlapping-avatars {
  position: relative;
  width: 38px;
  height: 38px;
}

.post-overlapping-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.post-overlay-meta {
  display: flex;
  flex-direction: column;
}

.post-overlay-author {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.post-overlay-audio {
  font-size: 11.5px;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-overlay-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-follow-btn {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.post-dots-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Bottom Overlays on Media */
.post-media-bottom-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 10;
}

.post-remix-badge {
  position: relative;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.post-remix-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.remix-mini-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #6366f1;
  color: #ffffff;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #000;
}

.post-mute-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}

/* Skeletons */
.story-skeleton {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-surface);
  flex-shrink: 0;
  animation: pulse-skeleton 1.5s infinite;
}

@keyframes pulse-skeleton {
  0% { opacity: 0.6; }
  50% { opacity: 0.25; }
  100% { opacity: 0.6; }
}

/* Feed Chips Filter Bar */
.feed-chips-bar {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.feed-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip-item {
  padding: 6px 12px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.chip-item.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   INSTAGRAM FEED POST CARDS
   ========================================================================== */
.ig-feed-container {
  display: flex;
  flex-direction: column;
}

.feed-post-card {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 8px;
}

/* Post Header */
.post-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

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

.post-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-gradient);
  cursor: pointer;
}

.post-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--bg-primary);
}

.post-user-meta {
  display: flex;
  flex-direction: column;
}

.post-username-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.verified-blue {
  color: #3897f0;
  font-size: 11px;
}

.post-location {
  font-size: 11px;
  color: var(--text-secondary);
}

.post-more-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}

/* Post Media / Cover Frame */
.post-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

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

.feed-post-card:hover .post-cover-image {
  transform: scale(1.02);
}

/* Media Overlay Badges */
.post-badge-episodes {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-badge-provider {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-audio-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Double Tap Heart Animation */
.post-heart-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 90px;
  color: #ff3040;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 0 15px rgba(255, 48, 64, 0.6));
}

.post-heart-pop.animate {
  animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Post Actions Bar */
.post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}

.post-actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.post-action-btn:active {
  transform: scale(0.8);
}

.post-action-btn.liked {
  color: var(--ig-heart);
  animation: heartBounce 0.3s ease;
}

@keyframes heartBounce {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.post-action-btn.saved {
  color: var(--text-primary);
}

/* Post Content & Text */
.post-content-area {
  padding: 0 14px;
}

.post-likes-count {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-caption {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.post-caption strong {
  font-weight: 700;
  margin-right: 6px;
}

.caption-more-btn {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  margin-left: 4px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.post-tag-item {
  color: var(--text-link);
  font-size: 12px;
  cursor: pointer;
}

/* Watch CTA Button */
.post-cta-row {
  margin: 10px 0 8px;
}

.post-watch-btn {
  width: 100%;
  background: var(--ig-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.post-watch-btn:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

.post-comments-summary {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 4px;
}

.post-timestamp {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Skeleton Card */
.feed-card-skeleton {
  width: 100%;
  height: 520px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  animation: pulse-skeleton 1.5s infinite;
}

.feed-infinite-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ==========================================================================
   TAB 2: EXPLORE & SEARCH
   ========================================================================== */
.explore-search-bar {
  padding: 10px 14px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 8px 12px;
  gap: 8px;
}

.search-icon {
  color: var(--text-secondary);
  font-size: 14px;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  font-size: 14px;
}

.clear-search-btn.show {
  display: block;
}

.explore-tags-tray {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.explore-tags-tray::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

.provider-switch-tabs {
  display: flex;
  padding: 4px 14px 10px;
  gap: 6px;
}

.provider-tab-btn {
  flex: 1;
  padding: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.provider-tab-btn.active {
  background: var(--ig-gradient);
  color: #fff;
  border-color: transparent;
}

/* Explore Grid */
.explore-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 2px;
}

.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
}

.grid-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
}

.grid-item-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  font-size: 14px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.grid-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.grid-item:hover .grid-item-overlay {
  opacity: 1;
}

.grid-overlay-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.grid-overlay-ep {
  font-size: 10px;
  color: var(--text-secondary);
}

/* ==========================================================================
   TAB 3: REELS VERTICAL VIDEO PLAYER
   ========================================================================== */
#tabReels {
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.reels-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.reel-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#reelVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.reel-poster-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.6);
  z-index: 1;
  display: none;
}

.play-pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 15;
  pointer-events: none;
}

.play-pause-indicator.show {
  animation: playRipple 0.5s ease forwards;
}

@keyframes playRipple {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.reels-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 110px;
  color: #ff3040;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 0 25px rgba(255, 48, 64, 0.8));
}

.reels-heart-burst.pop {
  animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

//* ==========================================================================
   CINDOKU VERTICAL DRAMA STREAMING PLAYER (GLASSMORPIHSM 2.0)
   ========================================================================== */

/* Hide Floating Dock when watching drama */
body.watching-player .floating-pill-dock {
  transform: translateY(120px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}

/* Top Player Bar */
.player-top-bar {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 30;
  pointer-events: auto;
}

.player-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.player-back-btn:hover {
  background: rgba(249, 115, 22, 0.35);
  border-color: rgba(249, 115, 22, 0.6);
  transform: scale(1.06);
}

.player-top-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-top-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.2px;
}

.player-top-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #d1d5db;
  margin-top: 1px;
}

.player-provider-tag {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(245, 158, 11, 0.3));
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fbbf24;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  text-transform: uppercase;
}

.player-bullet {
  opacity: 0.5;
}

.player-ep-tag {
  font-weight: 600;
  color: #e5e7eb;
}

.player-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.player-control-pill {
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-control-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.player-control-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-control-icon-btn:hover {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.5);
}

/* Floating Quick Navigation (Left edge: Prev / Next EP) */
.player-quick-nav {
  position: absolute;
  left: 12px;
  top: 42%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 28;
}

.quick-nav-btn {
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 8px 6px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.quick-nav-btn span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

.quick-nav-btn:hover {
  background: rgba(249, 115, 22, 0.3);
  border-color: rgba(249, 115, 22, 0.6);
  transform: scale(1.08);
}

/* Right-side Action Column */
.player-side-column {
  position: absolute;
  right: 12px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 28;
}

.player-side-btn {
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease;
}

.player-side-btn:active {
  transform: scale(0.88);
}

.side-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  transition: all 0.2s ease;
}

.player-side-btn:hover .side-btn-circle {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.player-side-btn.liked .side-btn-circle {
  color: #ff334b;
  border-color: rgba(255, 51, 75, 0.5);
  background: rgba(255, 51, 75, 0.18);
}

.side-btn-label {
  font-size: 10.5px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  color: #f3f4f6;
}

/* Episode highlight button */
.ep-highlight-btn .side-btn-circle {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5);
  animation: epPulseGlow 2.5s infinite;
}

@keyframes epPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Bottom Player Panel */
.player-bottom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 20px;
  background: linear-gradient(to top, rgba(10, 11, 16, 0.96) 0%, rgba(10, 11, 16, 0.8) 60%, transparent 100%);
  z-index: 26;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.player-drama-title-row {
  display: flex;
  align-items: center;
  padding-right: 64px;
}

.player-drama-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.3px;
}

.player-drama-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-right: 64px;
}

.player-tag-ep {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.player-tag-sub {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
}

.player-tag-quality {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.player-synopsis {
  font-size: 11.5px;
  color: #d1d5db;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  padding-right: 64px;
}

/* Timeline & Scrubber */
.player-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.player-time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: #9ca3af;
}

.player-time-display #reelsCurrentTime {
  color: #ffffff;
}

.time-sep {
  opacity: 0.5;
}

.player-scrub-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.player-scrub-bar:hover {
  height: 6px;
}

.player-scrub-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #fbbf24);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
  position: relative;
}

.player-scrub-progress::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.player-scrub-bar:hover .player-scrub-progress::after {
  opacity: 1;
}

/* Quick Bottom Controls Row */
.player-quick-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.player-quick-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.player-quick-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(249, 115, 22, 0.4);
}

.player-quick-btn i {
  font-size: 12px;
  flex-shrink: 0;
}

.player-quick-btn span {
  white-space: nowrap;
}

.player-quick-btn.primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  flex: 1.25;
}

.player-quick-btn.primary:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: translateY(-1px);
}

.player-quick-btn.outline {
  flex: 0 0 44px;
  padding: 9px 0;
  font-size: 14px;
}

.reels-buffer-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 34px;
  z-index: 10;
  display: none;
}

/* ==========================================================================
   TAB 3 (SAVED): CINDOKU KOLEKSI & RIWAYAT HUB (GLASSMORPHIISM 2.0)
   ========================================================================== */
.saved-header {
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.saved-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.saved-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.saved-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

.saved-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

.saved-clear-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.saved-clear-history-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.saved-segmented-control,
.saved-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  gap: 4px;
}

body.light-mode .saved-segmented-control,
body.light-mode .saved-tabs {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.saved-tab-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.saved-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.saved-tab-btn.active {
  background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}

body.light-mode .saved-tab-btn.active {
  background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.35);
}

.saved-tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.saved-tab-btn.active .saved-tab-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.saved-subtab-view {
  display: none;
  padding: 14px 14px 100px;
  animation: fadeIn 0.2s ease-out;
}

.saved-subtab-view.active {
  display: block;
}

/* Watchlist Grid (2-Column Glass Cards) */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.saved-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

body.light-mode .saved-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.saved-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.18);
}

.saved-card-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d0f15;
}

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

.saved-card:hover .saved-card-thumb img {
  transform: scale(1.05);
}

.saved-play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.6);
}

.saved-card:hover .saved-play-pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.saved-provider-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fbbf24;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.saved-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saved-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.saved-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.saved-card-eps {
  font-size: 10.5px;
  color: #fb923c;
  font-weight: 700;
}

.saved-card-sub {
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* History List (Streaming Cards) */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.light-mode .history-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.history-item:hover {
  transform: translateX(3px);
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.history-thumb-wrap {
  position: relative;
  width: 58px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0d0f15;
}

.history-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.history-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.history-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-provider-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  flex-shrink: 0;
}

.history-ep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.history-ep {
  color: #fb923c;
  font-weight: 700;
}

.history-pct {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 10px;
}

.history-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

body.light-mode .history-progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

.history-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #fbbf24);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
}

.history-resume-btn {
  background: none;
  border: none;
  color: #fb923c;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.15s ease;
}

.history-resume-btn:hover {
  transform: scale(1.15);
  color: #f97316;
}

/* Empty State Cards (Glassmorphism 2.0 & iOS Feel) */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52vh;
  padding: 40px 24px;
  gap: 10px;
}

.empty-icon-glow-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.empty-icon-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-icon-circle:hover {
  transform: scale(1.06);
}

.empty-icon-circle.bookmark-empty {
  background: radial-gradient(circle, rgba(255, 119, 0, 0.22) 0%, rgba(255, 69, 0, 0.08) 65%, transparent 100%);
  border: 1.5px solid rgba(255, 119, 0, 0.4);
  color: #ff8c00;
  box-shadow: 0 12px 36px rgba(255, 69, 0, 0.25), inset 0 0 18px rgba(255, 140, 0, 0.15);
}

.empty-icon-circle.history-empty {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.08) 65%, transparent 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.25), inset 0 0 18px rgba(59, 130, 246, 0.15);
}

.empty-title, .empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 2px 0;
  letter-spacing: -0.3px;
}

body.light-mode .empty-title, body.light-mode .empty-state h3 {
  color: #1a1a1a;
}

.empty-desc, .empty-state p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
  max-width: 290px;
}

body.light-mode .empty-desc, body.light-mode .empty-state p {
  color: rgba(0, 0, 0, 0.6);
}

.empty-action-btn {
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
  border: none;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 69, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-action-btn:hover {
  background: linear-gradient(135deg, #ff5722 0%, #ffa000 100%);
  box-shadow: 0 8px 26px rgba(255, 69, 0, 0.55);
  transform: translateY(-2px);
}

.empty-action-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   TAB 5: PROFILE & SETTING    ========================================================================== */
.cindoku-profile-container {
  padding: 16px 14px 100px;
  max-width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
}

/* Header */
.cindoku-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 14px;
}

.profile-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-header-h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.4px;
}

.profile-header-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.profile-header-badge.free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-header-badge.vip {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(245, 158, 11, 0.2));
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.profile-glass-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-glass-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(249, 115, 22, 0.5);
  color: #fb923c;
  transform: rotate(30deg);
}

/* VIP Member Card */
.cindoku-vip-card {
  position: relative;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(245, 158, 11, 0.25) 50%, rgba(217, 119, 6, 0.5) 100%);
  box-shadow: 0 10px 28px -6px rgba(249, 115, 22, 0.22), 0 0 15px rgba(245, 158, 11, 0.08);
  margin-bottom: 14px;
}

.vip-card-glow {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.vip-card-inner {
  background: rgba(20, 20, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 19px;
  padding: 16px;
  position: relative;
  z-index: 1;
}

body.light-mode .vip-card-inner {
  background: rgba(255, 255, 255, 0.92);
}

.vip-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vip-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.vip-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  background: #0d0f15;
}

.vip-crown-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #14141c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.vip-details {
  flex: 1;
  min-width: 0;
}

.vip-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.vip-gold-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vip-uid {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 3px 0 5px;
  font-family: inherit;
}

.vip-status-row {
  display: flex;
  align-items: center;
}

.vip-active-indicator {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.vip-benefits-pill {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 8px 6px;
  gap: 6px;
}

body.light-mode .vip-benefits-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.vip-benefit-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Stats Row */
.cindoku-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.cindoku-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

body.light-mode .cindoku-stat-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cindoku-stat-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-card-icon.saved-icon {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.stat-card-icon.history-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.stat-card-icon.liked-icon {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.stat-card-arrow {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Settings Group Cards */
.profile-settings-group {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

body.light-mode .profile-settings-group {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  padding: 12px 14px 6px;
  display: flex;
  align-items: center;
}

.profile-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

body.light-mode .profile-setting-item {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.profile-setting-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.light-mode .profile-setting-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.setting-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.setting-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.setting-item-icon.provider-bg {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.setting-item-icon.quality-bg {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.setting-item-icon.subtitle-bg {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.setting-item-icon.api-bg {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.setting-item-icon.cache-bg {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.setting-item-icon.share-bg {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.setting-item-icon.ver-bg {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.setting-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.setting-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-desc {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.setting-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.setting-badge-gold {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.setting-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.setting-badge-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-badge-green {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.setting-badge-neutral {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.setting-badge-neutral:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.setting-version-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: monospace;
}

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

/* Footer Brandmark */
.profile-branding-footer {
  text-align: center;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.3));
}

.profile-footer-copy {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   BOTTOM TAB BAR (INSTAGRAM IOS)
   ========================================================================== */
.ig-tab-bar {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 95;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s ease;
}

.tab-btn:active {
  transform: scale(0.85);
}

.tab-btn .active-icon {
  display: none;
}
.tab-btn .inactive-icon {
  display: block;
}

.tab-btn.active .active-icon {
  display: block;
}
.tab-btn.active .inactive-icon {
  display: none;
}

.reels-icon-pill {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-profile-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid transparent;
}

.tab-btn.active .tab-profile-avatar {
  border-color: var(--text-primary);
}

.tab-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iOS Home Indicator Bar */
.ios-home-indicator {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 96;
  pointer-events: none;
}

.home-bar {
  width: 134px;
  height: 4.5px;
  background: #ffffff;
  border-radius: 4px;
  opacity: 0.6;
}

body.light-mode .home-bar {
  background: #000000;
}

/* ==========================================================================
   MODALS, SHEETS & DIALOGS
   ========================================================================== */

/* Fullscreen Story Viewer */
.story-viewer-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.story-viewer-modal.open {
  display: flex;
}

.story-viewer-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 880px;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-progress-bars {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.progress-segment {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
}

.progress-segment.done .progress-fill {
  width: 100%;
}

.progress-segment.active .progress-fill {
  animation: storyProgress 5s linear forwards;
}

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

.story-header {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  color: #fff;
}

.story-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-creator-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

.story-creator-title {
  font-size: 13px;
  font-weight: 700;
}

.story-time-ago {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.story-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.story-media-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-caption-overlay {
  position: absolute;
  bottom: 74px;
  left: 16px;
  right: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 16px;
  border-radius: 16px;
}

.story-caption-overlay h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.story-caption-overlay p {
  font-size: 12px;
  line-height: 1.4;
  color: #ddd;
  margin-bottom: 12px;
}

.story-cta-btn {
  width: 100%;
  background: var(--ig-gradient);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.story-tap-left, .story-tap-right {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 40%;
  z-index: 5;
}

.story-tap-left { left: 0; }
.story-tap-right { right: 0; }

.story-reply-tray {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.story-reply-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.story-reaction-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.15s;
}

.story-reaction-btn:active {
  transform: scale(1.3);
}

/* Bottom Sheet Drawers */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet-backdrop.open {
  display: flex;
}

.bottom-sheet-drawer {
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  background: var(--bg-secondary);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpDrawer 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--text-tertiary);
  border-radius: 2px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.sheet-header-info {
  display: flex;
  flex-direction: column;
}

.sheet-title {
  font-size: 15px;
  font-weight: 700;
}

.sheet-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.sheet-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.episodes-range-selector {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.ep-range-pill {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ep-range-pill.active {
  background: var(--ig-gradient);
  color: #fff;
  border-color: transparent;
}

.episodes-sheet-grid {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ep-cell-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.ep-cell-btn:hover {
  background: var(--border-color);
}

.ep-cell-btn.active {
  background: var(--ig-gradient);
  color: #fff;
  border-color: transparent;
}

.ep-cell-btn.locked {
  opacity: 0.5;
}

.ep-loading-spinner {
  grid-column: span 4;
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

/* Comments Modal */
.comments-scroll-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.comment-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.comment-heart-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.comment-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.comment-input-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.comment-input-bar input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.comment-post-btn {
  background: none;
  border: none;
  color: var(--ig-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* iOS Settings Card Dialog */
.ios-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ios-dialog-backdrop.open {
  display: flex;
}

.ios-dialog-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scaleDialog 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

@keyframes scaleDialog {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dialog-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dialog-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.dialog-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-with-copy {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.input-with-copy input {
  flex: 1;
  background: none;
  border: none;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: monospace;
  outline: none;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0 12px;
  cursor: pointer;
}

.input-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.ios-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.gateway-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-indicator-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.dialog-footer {
  display: flex;
  gap: 10px;
}

.dialog-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.dialog-btn.secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.dialog-btn.primary {
  background: var(--ig-gradient);
  color: #fff;
}

/* Toast */
.ios-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3000;
}

.ios-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  color: #10b981;
}

/* ==========================================================================
   FLOATING CAPSULE TAB BAR (Glassmorphism 2.0 Signature Piece)
   ========================================================================== */
.floating-pill-dock {
  position: absolute;
  bottom: 22px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.dock-capsule {
  pointer-events: auto;
  background: rgba(18, 22, 36, 0.65);
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

body.light-mode .dock-capsule {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.pill-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.65);
  width: 50px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 0;
}

.pill-nav-btn:hover {
  color: #ffffff;
}

body.light-mode .pill-nav-btn {
  color: rgba(0, 0, 0, 0.6);
}

body.light-mode .pill-nav-btn:hover {
  color: #000000;
}

/* Active Highlight Pill - Applies Consistently to ALL Buttons */
.pill-nav-btn.active {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 14px rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.light-mode .pill-nav-btn.active {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #000000;
}

.pill-profile-avatar {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: visible;
}

.pill-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dock-red-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  background: #ff3040;
  border-radius: 50%;
  border: 1.5px solid #202126;
}



.ios-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 121;
  pointer-events: none;
}

.home-bar {
  width: 136px;
  height: 4.5px;
  background: #ffffff;
  border-radius: 4px;
  opacity: 0.85;
}

/* ==========================================================================
   JELAJAH SCREEN (Exact Match with Screenshot 2026-10-31 053853.png)
   ========================================================================== */
#tabJelajah {
  padding-bottom: 110px;
}

.jelajah-header {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .jelajah-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jelajah-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.jelajah-compass-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.jelajah-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
  font-family: var(--font-family);
}

body.light-mode .jelajah-title {
  color: #0f172a;
}

/* Filter Chips Bar (Pills: Beranda, Rekomendasi, Teater) */
.jelajah-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jelajah-filter-bar::-webkit-scrollbar {
  display: none;
}

.jelajah-chip {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e4e4e7;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  user-select: none;
}

body.light-mode .jelajah-chip {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

.jelajah-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.jelajah-chip.active {
  background: #ffffff;
  color: #09090b;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
}

body.light-mode .jelajah-chip.active {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* 2-Column Drama Grid */
.jelajah-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
  padding: 2px 16px 120px;
}

.jelajah-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.jelajah-card:active {
  transform: scale(0.97);
}

.jelajah-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.4;
  border-radius: 16px;
  overflow: hidden;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

body.light-mode .jelajah-poster-wrap {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.jelajah-card:hover .jelajah-poster-wrap {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 87, 34, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.jelajah-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center Orange Play Orb (Exact match on featured card) */
.jelajah-play-orb {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(230, 81, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 138, 101, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b50df;
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  animation: subtlePulse 2.4s infinite ease-in-out;
}

.jelajah-play-orb i {
  font-size: 15px;
  margin-left: 2px;
}

@keyframes subtlePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Poster Bottom Shadow Gradient */
.jelajah-poster-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

/* Bottom Left Badges */
.jelajah-poster-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
}

.jelajah-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.2px;
}

.jelajah-red-square {
  width: 14px;
  height: 14px;
  background: #e50914;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.jelajah-red-square i {
  font-size: 7px;
  color: #ffffff;
  margin-left: 1px;
}

.jelajah-ep-count {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.2px;
}

/* Card Title Below Poster */
.jelajah-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-top: 8px;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light-mode .jelajah-card-title {
  color: #0f172a;
}

/* ==========================================================================
   PENCARIAN DRAMA SCREEN (Exact Match with Screenshot 2026-10-31 054024.png)
   ========================================================================== */
#tabExplore {
  padding-bottom: 110px;
}

.search-page-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .search-page-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-page-title {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
  font-family: var(--font-family);
}

body.light-mode .search-page-title {
  color: #0f172a;
}

.search-page-body {
  padding: 18px 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Search Input Card */
.search-input-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(22, 25, 38, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  height: 48px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.light-mode .search-input-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.05);
}

.search-input-card:focus-within {
  border-color: rgba(255, 69, 0, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 69, 0, 0.25);
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  padding-right: 8px;
  font-family: var(--font-family);
}

body.light-mode .search-input-field {
  color: #0f172a;
}

.search-input-field::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

body.light-mode .search-input-field::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.search-icon-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.15s ease;
}

.search-icon-btn:active {
  transform: scale(0.9);
}

/* Source Toggle Row */
.search-source-toggle-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.source-toggle-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

body.light-mode .source-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
}

.source-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.source-toggle-btn.active {
  background: linear-gradient(135deg, #ff4500 0%, #ff7043 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 69, 0, 0.42);
}

/* Suggestion Keywords */
.search-keywords-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.search-keywords-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

body.light-mode .search-keywords-label {
  color: rgba(0, 0, 0, 0.45);
}

.search-keywords-tray {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.search-keywords-tray::-webkit-scrollbar {
  display: none;
}

.keyword-pill {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

body.light-mode .keyword-pill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.keyword-pill:hover,
.keyword-pill:active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* Empty State */
.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 65px 20px 40px;
}

.search-sparkle-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.search-empty-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

body.light-mode .search-empty-title {
  color: #0f172a;
}

.search-empty-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
  max-width: 290px;
  margin: 0;
}

body.light-mode .search-empty-desc {
  color: rgba(0, 0, 0, 0.55);
}

/* Search Results Grid */
.search-results-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

body.light-mode .search-results-meta {
  color: rgba(0, 0, 0, 0.5);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 12px;
}

/* Broadcast Announcement Banner */
.broadcast-banner {
  margin: 10px 14px 4px 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.broadcast-banner.info { background: rgba(0, 122, 255, 0.18); border: 1px solid rgba(0, 122, 255, 0.35); color: #70b8ff; }
.broadcast-banner.promo { background: rgba(255, 204, 0, 0.18); border: 1px solid rgba(255, 204, 0, 0.35); color: #ffd84d; }
.broadcast-banner.warning { background: rgba(255, 149, 0, 0.18); border: 1px solid rgba(255, 149, 0, 0.35); color: #ffb86c; }
.broadcast-banner.success { background: rgba(52, 199, 89, 0.18); border: 1px solid rgba(52, 199, 89, 0.35); color: #6fe38d; }
.broadcast-icon { font-size: 14px; flex-shrink: 0; }
.broadcast-text { flex: 1; line-height: 1.35; font-size: 0.82rem; }
.broadcast-close { background: none; border: none; color: inherit; cursor: pointer; opacity: 0.7; font-size: 13px; padding: 4px; }
.broadcast-close:hover { opacity: 1; }

/* ==========================================================================
   VIP PAYWALL BOTTOM SHEET & MEMBERSHIP STYLING
   ========================================================================== */
.vip-paywall-drawer {
  background: linear-gradient(180deg, #151828 0%, #0c0e18 100%);
  border-top: 1px solid rgba(255, 183, 3, 0.4);
  box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 183, 3, 0.15);
  max-height: 88vh;
  overflow-y: auto;
  padding: 16px 20px 32px 20px;
  position: relative;
}

.vip-sheet-close-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.vip-sheet-close-x:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.vip-paywall-header {
  text-align: center;
  margin-bottom: 18px;
}

.vip-crown-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #ff416c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #000;
  margin: 0 auto 12px auto;
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.45);
  animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 6px 18px rgba(255, 183, 3, 0.4); }
  100% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(255, 183, 3, 0.7); }
}

.vip-paywall-title {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #ffb703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.vip-paywall-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  max-width: 380px;
  margin: 0 auto;
}

/* VIP Perks List */
.vip-perks-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.vip-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 183, 3, 0.15);
  color: #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.vip-perk-text {
  display: flex;
  flex-direction: column;
}

.vip-perk-text strong {
  font-size: 0.86rem;
  color: #fff;
}

.vip-perk-text span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.vip-plans-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* VIP Plans Grid */
.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.vip-plan-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 8px 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.vip-plan-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 183, 3, 0.4);
}

.vip-plan-card.active {
  background: rgba(255, 183, 3, 0.12);
  border: 1.5px solid #ffb703;
  box-shadow: 0 4px 18px rgba(255, 183, 3, 0.25);
  transform: translateY(-2px);
}

.vip-plan-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.vip-plan-badge.popular-badge {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
}

.vip-plan-badge.best-badge {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #000;
}

.vip-plan-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.vip-plan-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffb703;
  margin-bottom: 4px;
}

.vip-plan-daily {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Actions */
.vip-actions-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-cta-btn {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #ff416c 100%);
  color: #000 !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.vip-cta-btn:active {
  transform: scale(0.98);
}

.vip-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  padding: 8px;
  cursor: pointer;
  text-align: center;
}

.vip-close-btn:hover {
  color: #fff;
}

/* Locked Episode Styling */
.ep-cell-btn.vip-locked {
  background: rgba(255, 183, 3, 0.08) !important;
  border: 1px solid rgba(255, 183, 3, 0.35) !important;
  color: #ffb703 !important;
  position: relative;
}

.ep-cell-btn.vip-locked i {
  color: #ffb703 !important;
}

.ep-lock-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  color: #ffb703;
}

/* ==========================================================================
   QRIS PAYMENT GATEWAY & VIP UPGRADE STYLES
   ========================================================================== */
.vip-user-id-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 14px;
}

.vip-user-id-box label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.vip-id-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-id-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.vip-id-input:focus {
  border-color: #ffb703;
}

.vip-id-tag {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.vip-id-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 5px;
}

/* Supported Methods Banner */
.qris-supported-banner {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 183, 3, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 12px 0 16px;
}

.qris-banner-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  font-weight: 600;
}

.qris-partner-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.partner-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.qris-gradient-btn {
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 50%, #ff416c 100%) !important;
  color: #000 !important;
  cursor: pointer;
  border: none;
}

.vip-tg-secondary-btn {
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* VIEW 2: QRIS REALTIME INVOICE */
.qris-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.qris-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: #ffb703;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.qris-dot-pulse {
  width: 7px;
  height: 7px;
  background: #ffb703;
  border-radius: 50%;
  animation: qrisPulse 1.4s infinite;
}

@keyframes qrisPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.qris-timer-pill {
  background: rgba(255, 65, 108, 0.15);
  border: 1px solid rgba(255, 65, 108, 0.35);
  color: #ff416c;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qris-invoice-details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.qris-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.qris-detail-label {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

.qris-detail-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.qris-total-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffb703;
  letter-spacing: 0.5px;
}

.qris-invoice-code {
  font-family: monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* QRIS Frame with Official Logo & Scanner line */
.qris-qr-display-box {
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}

.qris-qr-frame {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 183, 3, 0.25);
  color: #000;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qris-qr-top-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e11d48;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.qris-logo-text {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #e11d48;
}

.qris-gpn-text {
  background: #1e3a8a;
  color: #fff;
  font-weight: 900;
  font-size: 0.62rem;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.qris-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  min-height: 200px;
}

.qris-code-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}

.qris-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e11d48, transparent);
  box-shadow: 0 0 8px #e11d48;
  animation: qrisScanAnim 2.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes qrisScanAnim {
  0% { top: 4px; }
  50% { top: calc(100% - 6px); }
  100% { top: 4px; }
}

.qris-qr-bottom-hint {
  font-size: 0.65rem;
  color: #4b5563;
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.25;
}

/* QRIS Actions */
.qris-actions-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-status-btn {
  background: #34c759 !important;
  color: #fff !important;
  cursor: pointer;
  border: none;
}

.qris-aux-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qris-text-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qris-text-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* SUCCESS VIEW */
.vip-success-card {
  text-align: center;
  padding: 24px 12px 16px;
}

.vip-success-circle {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #34c759, #30d158);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 0 25px rgba(52, 199, 89, 0.5);
  animation: successPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.vip-success-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.vip-success-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.vip-success-perk-summary {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.8rem;
  color: #fff;
}

/* ==========================================================================
   PROVIDER SWITCH LOADING OVERLAY & SKELETON LOADERS
   ========================================================================== */
.provider-switch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999 !important;
  background: rgba(10, 12, 22, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.provider-switch-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.provider-switch-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  max-width: 320px;
  animation: scaleUpIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.provider-switch-logo-ring {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-switch-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.provider-loader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 69, 0, 0.15);
  border-top-color: #ff4500;
  border-right-color: #ff8c00;
  animation: providerSpin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

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

.provider-switch-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0 0 6px 0;
}

.provider-switch-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.provider-switch-bar {
  width: 160px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.provider-switch-bar-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #ff4500, #ff8c00, #fbbf24);
  border-radius: 999px;
  animation: providerBarShimmer 1.2s ease-in-out infinite;
}

@keyframes providerBarShimmer {
  0% { left: -50%; width: 30%; }
  50% { left: 25%; width: 60%; }
  100% { left: 100%; width: 30%; }
}

/* Skeleton Loaders for Drama Cards */
.skeleton-card {
  pointer-events: none;
  opacity: 0.85;
}

.skeleton-shimmer-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.4s infinite;
}

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

.skeleton-text-line {
  height: 12px;
  width: 85%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.skeleton-text-line-short {
  height: 10px;
  width: 50%;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 5px;
  position: relative;
  overflow: hidden;
}



