/**
 * RAAZ VIP AUDIO PORTAL - PREMIUM DESIGN SYSTEM & STYLESHEET
 * Dark Noir (#060608), Crimson (#e11d48), Luxury Amber (#fbbf24)
 * Glassmorphic UI with micro-animations & mobile-first responsiveness.
 */

/* ==========================================================================
   1. CSS VARIABLES & THEME TOKENS
   ========================================================================== */
:root {
  --bg-deep-noir: #060608;
  --bg-surface: #0e0e14;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2b;
  --bg-glass: rgba(14, 14, 20, 0.78);
  --bg-glass-elevated: rgba(22, 22, 34, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --border-crimson: rgba(225, 29, 72, 0.35);

  --accent-crimson: #e11d48;
  --accent-crimson-hover: #f43f5e;
  --accent-crimson-dark: #be123c;
  --accent-crimson-glow: rgba(225, 29, 72, 0.45);

  --accent-gold: #fbbf24;
  --accent-gold-dark: #f59e0b;
  --accent-gold-glow: rgba(251, 191, 36, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-hint: #64748b;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px var(--accent-crimson-glow);
  --shadow-gold: 0 0 20px var(--accent-gold-glow);

  --header-height: 68px;
  --player-height: 82px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep-noir);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 0%, #16121d 0%, var(--bg-deep-noir) 50%, #030305 100%);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--player-height) + 30px + env(safe-area-inset-bottom, 0px));
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-noir);
}
::-webkit-scrollbar-thumb {
  background: #2a2a3c;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-crimson);
}

/* ==========================================================================
   3. REGULATORY CLASSIFICATION STRIP (IT RULES 2021)
   ========================================================================== */
.compliance-strip {
  background: linear-gradient(90deg, #120911 0%, #1c0f1b 50%, #120911 100%);
  border-bottom: 1px solid rgba(225, 29, 72, 0.2);
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fda4af;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.4px;
}

.compliance-strip .badge-18 {
  background: var(--accent-crimson);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.68rem;
}

/* ==========================================================================
   4. TOP NAVIGATION BAR
   ========================================================================== */
.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.brand-icon-moon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.7));
  animation: pulse-moon 4s infinite ease-in-out;
}

@keyframes pulse-moon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8)); }
}

.brand-logo-text {
  background: linear-gradient(135deg, #ffffff 40%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* VIP Member Pill */
.vip-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(225, 29, 72, 0.15) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

.vip-status-pill:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(225, 29, 72, 0.25) 100%);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.vip-timer-badge {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

/* Discreet Button */
.btn-discreet {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* User Avatar */
.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-crimson), #881337);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  border: 2px solid rgba(251, 191, 36, 0.5);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   5. HERO FEATURED SECTION
   ========================================================================== */
.featured-hero-section {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  margin: 0.75rem auto 1.75rem;
  max-width: 1360px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background-color: #060608;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 60% 12%;
  background-repeat: no-repeat;
  filter: brightness(0.92) contrast(1.06) saturate(1.15);
  transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
  transform: scale(1.02);
  will-change: transform;
}

.featured-hero-section:hover .hero-backdrop {
  transform: scale(1.06);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  /* Cinematic vertical fade: upper 50% lets artwork shine, lower 50% ensures high text contrast */
  background: linear-gradient(
    180deg,
    rgba(6, 6, 8, 0.4) 0%,
    rgba(6, 6, 8, 0.05) 18%,
    rgba(6, 6, 8, 0.08) 36%,
    rgba(6, 6, 8, 0.72) 58%,
    rgba(6, 6, 8, 0.96) 82%,
    #060608 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.25rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.badge-exclusive {
  background: linear-gradient(135deg, var(--accent-crimson), #9f1239);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
}

.badge-rating {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-mature {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fca5a5;
}

.badge-episodes {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.3px;
}

.hero-hindi-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-synopsis {
  display: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.hero-btn-play {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-secondary-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.hero-btn-episodes,
.hero-btn-read {
  flex: 1;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-resume-pill {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

/* Tablet & Desktop Layout for Hero Section */
@media (min-width: 768px) {
  .featured-hero-section {
    min-height: 480px;
    margin: 1.25rem auto 2rem;
  }

  .hero-backdrop {
    background-position: right 25% center;
  }

  .hero-overlay-gradient {
    background: 
      linear-gradient(90deg, #060608 0%, rgba(6, 6, 8, 0.94) 40%, rgba(6, 6, 8, 0.45) 62%, rgba(6, 6, 8, 0.08) 85%, transparent 100%),
      linear-gradient(180deg, rgba(6, 6, 8, 0.35) 0%, transparent 40%, rgba(6, 6, 8, 0.85) 100%);
  }

  .hero-content {
    max-width: 680px;
    padding: 2.5rem 3rem;
  }

  .hero-badges-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .badge-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .hero-hindi-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .hero-tagline {
    font-size: 1.02rem;
    margin-bottom: 10px;
  }

  .hero-synopsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: auto;
    margin-top: 0;
  }

  .hero-btn-play {
    width: auto;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-secondary-actions {
    width: auto;
    display: flex;
    gap: 10px;
  }

  .hero-btn-episodes,
  .hero-btn-read {
    flex: initial;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .featured-hero-section {
    min-height: 520px;
  }

  .hero-backdrop {
    background-position: right 30% center;
  }

  .hero-content {
    max-width: 740px;
    padding: 3rem 3.5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-synopsis {
    -webkit-line-clamp: 3;
  }
}

/* Standard Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-crimson) 0%, #be123c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--accent-crimson-glow);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-crimson-hover) 0%, var(--accent-crimson) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-bright);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   6. CONTROLS, SEARCH & FILTER BAR
   ========================================================================== */
.portal-main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.controls-filter-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .controls-filter-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.search-input-field {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input-field:focus {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 12px var(--accent-crimson-glow);
  background: var(--bg-card-hover);
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  pointer-events: none;
}

.category-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-bright);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--accent-crimson) 0%, #9f1239 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-crimson-glow);
}

/* ==========================================================================
   7. STORY GRID & 3:4 PORTRAIT CARDS
   ========================================================================== */
.section-headline-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-hint);
}

.stories-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .stories-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stories-grid-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.story-card-portrait {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.story-card-portrait:hover {
  transform: translateY(-6px);
  border-color: var(--border-crimson);
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.9), 0 0 20px var(--accent-crimson-glow);
}

.card-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09090d;
}

@media (min-width: 640px) {
  .card-media-wrapper {
    aspect-ratio: 4 / 3;
  }
}

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

.story-card-portrait:hover .card-cover-img {
  transform: scale(1.06);
}

.card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.card-play-quick-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.story-card-portrait:hover .card-play-quick-overlay {
  opacity: 1;
}

.card-quick-play-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--accent-crimson);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.8);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.card-quick-play-btn:hover {
  transform: scale(1.08);
  background: var(--accent-crimson-hover);
}

/* Live Equalizer indicator on card */
.card-live-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(6, 6, 8, 0.85);
  border: 1px solid var(--accent-crimson);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-crimson);
}

.card-live-indicator .bar {
  width: 3px;
  height: 12px;
  background: var(--accent-crimson);
  border-radius: 2px;
  animation: barPulse 0.8s infinite ease-in-out alternate;
}

.card-live-indicator .bar-2 { animation-delay: 0.25s; }
.card-live-indicator .bar-3 { animation-delay: 0.5s; }

@keyframes barPulse {
  0% { height: 4px; }
  100% { height: 14px; }
}

.card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-genre-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-genre-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-mature-flag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
  padding: 1px 6px;
  border-radius: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-hindi-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-hint);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-bottom: 12px;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.btn-card-action {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-bright);
}

.btn-card-play {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.3);
  color: #fda4af;
}

.btn-card-play:hover {
  background: var(--accent-crimson);
  color: #fff;
}

/* ==========================================================================
   8. PERSISTENT FLOATING AUDIO PLAYER (SPOTIFY STYLE)
   ========================================================================== */
.persistent-player-bar {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  max-width: 1360px;
  margin: 0 auto;
  z-index: 950;
  background: var(--bg-glass-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 29, 72, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.persistent-player-bar.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.persistent-player-bar.active {
  transform: translateY(0);
  opacity: 1;
}

/* Left: Track Info */
.player-left-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 260px;
}

.player-cover-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.player-meta-texts {
  overflow: hidden;
}

.player-track-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-story-title {
  font-size: 0.75rem;
  color: var(--text-hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#playerVisualizerCanvas {
  display: none;
  width: 60px;
  height: 24px;
}

@media (min-width: 900px) {
  #playerVisualizerCanvas {
    display: block;
  }
}

/* Center: Controls & Scrubbing */
.player-center-col {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.player-controls-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-full);
}

.ctrl-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.ctrl-btn-seek {
  font-size: 0.72rem;
  font-weight: 700;
}

.ctrl-btn-play {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-crimson);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px var(--accent-crimson-glow);
  transition: all 0.2s ease;
}

.ctrl-btn-play:hover {
  background: var(--accent-crimson-hover);
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.7);
}

/* Scrubber Bar */
.player-scrubber-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-stamp {
  font-size: 0.7rem;
  color: var(--text-hint);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
}

.seek-bar-container {
  position: relative;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.seek-bar-container:hover {
  height: 8px;
}

.player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
  border-radius: var(--radius-full);
  pointer-events: none;
}

.player-seek-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* Right: Tools */
.player-right-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-speed-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

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

.btn-player-script {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-player-script:hover {
  background: rgba(251, 191, 36, 0.22);
}

@media (max-width: 680px) {
  .persistent-player-bar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .player-left-col {
    max-width: calc(100% - 100px);
  }
  .player-right-col {
    order: 2;
  }
  .player-center-col {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }
}

/* ==========================================================================
   9. MODALS & DRAWERS (EPISODES, READING MODE, ACCOUNT MANDATE)
   ========================================================================== */
.raaz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.raaz-modal.active {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .raaz-modal {
    align-items: center;
    padding: 2rem;
  }
}

.raaz-modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
  .raaz-modal-sheet {
    border-radius: var(--radius-lg);
    transform: scale(0.95) translateY(20px);
    max-height: 85vh;
  }
}

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

@media (min-width: 768px) {
  .raaz-modal.active .raaz-modal-sheet {
    transform: scale(1) translateY(0);
  }
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 14, 20, 0.95);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-cover {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.modal-title-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle-text {
  font-size: 0.78rem;
  color: var(--text-hint);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.modal-body-scrollable {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Episodes Drawer Specifics */
.episode-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.episode-list-item:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.episode-list-item.is-active-playing {
  border-color: var(--accent-crimson);
  background: rgba(225, 29, 72, 0.1);
}

.ep-number-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ep-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-hint);
}

.ep-play-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-crimson);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--accent-crimson-glow);
}

.ep-details-col {
  flex: 1;
}

.ep-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.ep-duration-badge {
  font-size: 0.7rem;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.ep-hindi-title {
  font-size: 0.8rem;
  color: var(--text-hint);
}

.ep-synopsis-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.ep-progress-bar-wrapper {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.ep-progress-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.ep-progress-percent {
  display: none;
}

.btn-text-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
}

.btn-text-action:hover {
  background: rgba(251, 191, 36, 0.18);
}

/* ==========================================================================
   10. READING / SCRIPT MODE (DUAL-MODE EXPERIENCE)
   ========================================================================== */
#readingModeModal .raaz-modal-sheet {
  max-width: 860px;
  height: 90vh;
}

.reading-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reading-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.reading-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.font-size-label {
  font-size: 0.75rem;
  color: var(--text-hint);
  min-width: 32px;
  text-align: center;
}

/* Reading Theme: Sepia Amber */
.raaz-modal-sheet.theme-sepia-amber {
  background: #14110e;
  color: #f7eedf;
}

.raaz-modal-sheet.theme-sepia-amber .modal-header-row {
  background: #1b1713;
}

.raaz-modal-sheet.theme-sepia-amber .script-narration {
  color: #eedcc6;
}

.raaz-modal-sheet.theme-sepia-amber .script-dialogue {
  background: #211c18;
  border-color: #3b3026;
  color: #fff2e0;
}

/* Reading Banner */
.reading-hero-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(0, 0, 0, 0.4));
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.reading-meta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-crimson);
  margin-bottom: 6px;
}

.reading-banner-hindi {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.reading-banner-synopsis {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.reading-sync-play-btn {
  margin: 0 auto;
}

/* Script Dialogues */
.script-block {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.script-scene {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-gold);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88em;
  color: var(--accent-gold);
  font-style: italic;
}

.script-sfx {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid var(--accent-crimson);
  padding: 6px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85em;
  color: #fca5a5;
  font-weight: 600;
}

.script-narration {
  font-size: 1em;
  color: var(--text-secondary);
}

.speaker-tag {
  font-weight: 800;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.script-dialogue {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.speaker-character {
  color: var(--accent-crimson);
}

.dialogue-body {
  font-size: 1em;
  color: #fff;
}

/* Active Speaking Line Karaoke Glow */
.script-block {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.script-block:hover {
  filter: brightness(1.1);
}

.script-block.active-speaking-line {
  border-left: 3px solid var(--accent-gold) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
  transform: translateX(4px);
  border-radius: var(--radius-sm);
  padding-left: 12px;
}

.script-block.active-speaking-line .speaker-tag::after {
  content: ' 🎙️ (Now Speaking)';
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* AI Female Voice Selector Badge in Floating Player */
.btn-voice-badge {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(251, 191, 36, 0.2));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voice-badge:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(251, 191, 36, 0.35));
  border-color: var(--accent-gold);
  transform: scale(1.04);
}


/* ==========================================================================
   11. ACCOUNT & MANDATE MANAGEMENT DRAWER
   ========================================================================== */
.account-overview-card {
  background: linear-gradient(135deg, rgba(22, 22, 34, 0.8) 0%, rgba(14, 14, 20, 0.95) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.account-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phone-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.verified-vip-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.account-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.acc-detail-item {
  display: flex;
  flex-direction: column;
}

.acc-detail-label {
  font-size: 0.7rem;
  color: var(--text-hint);
  text-transform: uppercase;
}

.acc-detail-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mandate-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-revoked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Reassurance & Revoke Guide */
.mandate-reassurance-box {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid var(--border-crimson);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.mandate-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mandate-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fda4af;
}

.mandate-box-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.mandate-steps-list {
  list-style: none;
  counter-reset: mandate-step;
  margin-bottom: 1.25rem;
}

.mandate-steps-list li {
  counter-increment: mandate-step;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mandate-steps-list li::before {
  content: counter(mandate-step);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-danger-outline {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: #ef4444;
  color: #fff;
}

/* Grievance Card */
.grievance-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--text-hint);
  line-height: 1.5;
}

.grievance-contact-card strong {
  color: var(--text-secondary);
}

/* ==========================================================================
   12. FOOTER & STATUTORY DISCLOSURES
   ========================================================================== */
.portal-footer {
  background: #040406;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.25rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-hint);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-statutory-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-hint);
  line-height: 1.6;
}

.footer-statutory-block p {
  margin-bottom: 8px;
}

/* ==========================================================================
   13. DISCREET BROWSING MODE (PRIVACY MASK)
   ========================================================================== */
body.discreet-mode-active .badge-mature {
  opacity: 0.2;
}

body.discreet-mode-active .hero-badges-row .badge-tag {
  opacity: 0.4;
}

body.discreet-mode-active .compliance-strip {
  background: #0d0d12;
  color: #64748b;
  border-color: #1e1e2d;
}

body.discreet-mode-active .compliance-strip .badge-18 {
  background: #475569;
}

/* ==========================================================================
   14. TOAST NOTIFICATIONS
   ========================================================================== */
.portal-toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.raaz-toast {
  background: var(--bg-glass-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-color: rgba(34, 197, 94, 0.5); }
.toast-warning { border-color: rgba(251, 191, 36, 0.5); }
.toast-info { border-color: var(--accent-crimson); }

.toast-fadeout {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
