/* ==========================================================================
   Hindu Calender - Illustrated Stories & Audio Narration Styles
   Cinematic devotional presentation, ambient glow, audio dock & responsive layout
   ========================================================================== */

/* Full Screen Story Reader Modal */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: var(--bg-app);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  font-family: var(--font-gujarati);
}

.story-modal.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Top Navigation Bar */
.story-top-bar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 10;
}

.story-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.story-back-btn:hover {
  background: rgba(255, 179, 0, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateX(-2px);
}

.story-back-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.story-header-meta {
  display: flex;
  flex-direction: column;
}

.story-meta-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-meta-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-gold);
  box-shadow: 0 0 8px var(--primary-gold);
}

.story-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.story-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header Action Buttons */
.story-action-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.story-action-pill:hover {
  background: rgba(255, 179, 0, 0.18);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.story-action-pill.active {
  background: linear-gradient(135deg, var(--primary-saffron), var(--primary-gold));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(245, 124, 0, 0.4);
}

.story-action-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Scene Progress Strip */
.story-progress-strip {
  height: 4px;
  background: var(--border-subtle);
  display: flex;
  gap: 4px;
  padding: 0 16px;
  flex-shrink: 0;
}

.progress-segment {
  flex: 1;
  height: 100%;
  background: var(--border-highlight);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.progress-segment.active {
  background: linear-gradient(90deg, var(--primary-saffron), var(--primary-gold));
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.6);
}

.progress-segment.completed {
  background: var(--primary-gold);
}

/* Main Cinematic Viewer Body */
.story-viewer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.story-stage-container {
  max-width: 1240px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin: 0 auto;
}

/* Visual Canvas Frame (Left on desktop) */
.story-canvas-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 179, 0, 0.25);
  display: flex;
  flex-direction: column;
}

/* Ambient Backlight Glow */
.story-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background-size: cover;
  background-position: center;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  transition: all 0.6s ease;
}

.story-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  z-index: 1;
  background: #090c13;
}

.story-scene-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.story-canvas-frame:hover .story-scene-image {
  transform: scale(1.02);
}

/* Floating Scene Number Tag */
.story-scene-counter-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary-gold);
  border: 1px solid rgba(255, 179, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick Navigation Arrows on Canvas */
.canvas-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 15, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.canvas-nav-btn:hover:not(:disabled) {
  opacity: 1;
  background: var(--primary-saffron);
  border-color: var(--primary-gold);
  transform: translateY(-50%) scale(1.08);
}

.canvas-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.canvas-nav-btn.prev {
  left: 14px;
}

.canvas-nav-btn.next {
  right: 14px;
}

.canvas-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Sanskrit Shloka Box */
.story-shloka-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-card));
  border-top: 1px solid var(--border-highlight);
  padding: 16px 20px;
}

.shloka-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shloka-sanskrit {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #FFE082;
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

[data-mode="light"] .shloka-sanskrit {
  color: #92400e;
  text-shadow: none;
}

.shloka-meaning {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* Narrative Text Card (Right on desktop) */
.story-narrative-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-narrative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.narrative-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.narrative-scene-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.narrative-scene-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

.narrative-prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary);
  white-space: pre-line;
  transition: font-size 0.2s ease;
}

.narrative-prose.size-sm {
  font-size: 14px;
  line-height: 1.75;
}

.narrative-prose.size-lg {
  font-size: 18px;
  line-height: 1.95;
}

.narrative-prose.size-xl {
  font-size: 20px;
  line-height: 2.05;
}

/* ==========================================================================
   Clean Reader Navigation Dock (Distraction-Free)
   ========================================================================== */
.story-reader-dock {
  position: sticky;
  bottom: 16px;
  margin: 16px auto 0;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 179, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 20;
}

.story-dock-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.story-dock-btn:hover:not(:disabled) {
  background: rgba(255, 179, 0, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.story-dock-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.story-dock-btn.primary {
  background: linear-gradient(135deg, var(--primary-saffron), var(--primary-gold));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(245, 124, 0, 0.4);
}

.story-dock-btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.6);
}

.story-dock-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reader-scene-indicator {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-gold);
  white-space: nowrap;
}

/* Scene Navigation Buttons on Bottom */
.story-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.story-nav-btn:hover:not(:disabled) {
  background: rgba(255, 179, 0, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.story-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.story-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Home / Utility Tab Story Launcher Card (In "More" Tab)
   ========================================================================== */
.story-featured-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.15), rgba(255, 179, 0, 0.08));
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.story-featured-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.2), transparent 70%);
  pointer-events: none;
}

.story-featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 24px rgba(245, 124, 0, 0.25);
}

.story-featured-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.story-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.katha-list-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 179, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background: #111;
}

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

.katha-list-card:hover .katha-list-thumb img {
  transform: scale(1.08);
}

.story-featured-info {
  flex: 1;
}

.story-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #e65100, #ff8f00);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-featured-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.story-featured-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.story-featured-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-gold);
  font-weight: 600;
}

.story-play-pill {
  background: var(--primary-gold);
  color: #000;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.4);
}

.story-play-pill svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .story-stage-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-narrative-card {
    padding: 20px;
  }

  .story-header-title {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .story-top-bar {
    padding: 0 12px;
    height: 56px;
  }

  .story-header-title {
    font-size: 14px;
    max-width: 160px;
  }

  .story-action-pill span.btn-label {
    display: none;
  }

  .story-viewer-body {
    padding: 14px 10px 100px;
  }

  .story-audio-dock {
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    bottom: 10px;
  }

  .audio-status-label {
    font-size: 12px;
  }

  .audio-voice-tag {
    font-size: 10px;
  }

  .auto-advance-wrap {
    display: none;
  }

  .narrative-scene-title {
    font-size: 18px;
  }

  .narrative-prose {
    font-size: 15px;
  }

  .story-featured-card {
    flex-direction: column;
    text-align: center;
  }

  .story-featured-thumb {
    width: 100%;
    height: 140px;
  }

  .story-featured-footer {
    justify-content: center;
  }
}

/* ==========================================================================
   Stories Page / Tab View Styles (#view-stories)
   ========================================================================== */
.stories-tab-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.stories-page-hero {
  text-align: center;
  padding: 18px 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stories-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-saffron), var(--primary-gold));
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.35);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stories-hero-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.stories-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.stories-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Flagship Story Hero Card */
.story-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 179, 0, 0.12);
  transition: all var(--transition-normal);
  position: relative;
}

.story-hero-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 179, 0, 0.22);
  border-color: var(--primary-gold);
}

.story-hero-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #000;
}

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

.story-hero-card:hover .story-hero-img {
  transform: scale(1.03);
}

.story-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.story-hero-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-gold);
  border: 1px solid rgba(255, 179, 0, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.story-hero-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.story-hero-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.story-hero-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.story-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-story-btn {
  background: linear-gradient(135deg, var(--primary-saffron), var(--primary-gold));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.45);
  transition: all var(--transition-fast);
}

.primary-story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.65);
}

.primary-story-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.secondary-story-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--primary-gold);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.secondary-story-btn:hover {
  background: rgba(255, 179, 0, 0.16);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

.secondary-story-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Scenes Grid Header */
.scenes-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.scenes-grid-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.scenes-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  background: rgba(255, 179, 0, 0.15);
  border: 1px solid rgba(255, 179, 0, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Scenes Cards Grid */
.scenes-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.scene-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.scene-item-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 179, 0, 0.15);
}

.scene-item-thumb {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #000;
}

.scene-item-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scene-item-card:hover .scene-item-thumb img {
  transform: scale(1.06);
}

.scene-pill-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(6px);
  color: var(--primary-gold);
  border: 1px solid rgba(255, 179, 0, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.scene-item-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scene-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.scene-item-shloka {
  font-size: 11px;
  color: var(--primary-gold);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.scene-item-snippet {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  flex: 1;
}

.scene-read-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.scene-item-card:hover .scene-read-btn {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
}

@media (max-width: 1024px) {
  .scenes-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-hero-card {
    grid-template-columns: 1fr;
  }
  .story-hero-media {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .scenes-cards-grid {
    grid-template-columns: 1fr;
  }
  .stories-hero-title {
    font-size: 20px;
  }
  .story-hero-heading {
    font-size: 18px;
  }
}

/* ==========================================================================
   Sacred Vrat Katha Reader Modal Styles
   ========================================================================== */
.katha-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: var(--bg-app);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  overflow: hidden;
  font-family: var(--font-gujarati);
}

.katha-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.katha-modal-topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 10;
}

.katha-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.katha-back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.katha-back-btn:hover {
  background: var(--primary-saffron);
  border-color: var(--primary-saffron);
  color: #fff;
}

.katha-back-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.katha-topbar-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.katha-badge-pill {
  font-size: 10.5px;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.katha-reader-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.katha-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.katha-ctrl-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition-fast);
  min-width: 34px;
  height: 34px;
}

.katha-ctrl-pill:hover {
  background: rgba(255, 179, 0, 0.2);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.katha-ctrl-pill.close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.katha-ctrl-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Katha Selector Dropdown Bar */
.katha-selector-strip {
  background: var(--bg-surface);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.katha-select-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-gold);
  white-space: nowrap;
}

.katha-select-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.katha-dropdown {
  flex: 1;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font-gujarati);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.katha-dropdown:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

.katha-dropdown option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Tabs Bar */
.katha-tabs-bar {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
}

.katha-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.katha-tab:hover {
  color: var(--primary-gold);
}

.katha-tab.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

/* Reader Body */
.katha-reader-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 40px;
  -webkit-overflow-scrolling: touch;
}

.katha-reader-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Hero Banner with Katha Photo */
.katha-reader-hero-wrap {
  position: relative;
  width: calc(100% + 56px);
  margin: -24px -28px 24px -28px;
  height: 240px;
  overflow: hidden;
  background: #0d1117;
  border-bottom: 2px solid var(--primary-gold);
}

.katha-reader-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.92);
}

.katha-reader-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.4) 50%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.katha-hero-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-saffron), var(--primary-gold));
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.katha-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  line-height: 1.3;
}

.katha-hero-timing {
  font-size: 12.5px;
  color: #ffca28;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Font Sizing Toggles */
.katha-reader-inner.font-size-sm {
  font-size: 13px;
  line-height: 1.7;
}

.katha-reader-inner.font-size-md {
  font-size: 15px;
  line-height: 1.8;
}

.katha-reader-inner.font-size-lg {
  font-size: 17.5px;
  line-height: 1.9;
}

.katha-content-card {
  color: var(--text-primary);
  font-weight: 400;
}

.katha-story-para {
  margin-bottom: 16px;
  line-height: 1.85;
  text-align: justify;
  color: var(--text-primary);
}

.katha-chapter-lead {
  font-weight: 700;
  color: var(--primary-gold);
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(255, 179, 0, 0.1);
  border-left: 3px solid var(--primary-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-mode="light"] .katha-chapter-lead {
  color: #b45309;
  background: rgba(230, 81, 0, 0.08);
  border-left-color: #d97706;
}

.katha-content-section-title {
  color: var(--primary-gold);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-mode="light"] .katha-content-section-title {
  color: #c2410c;
  border-bottom-color: rgba(230, 81, 0, 0.2);
}

.katha-vidhi-box {
  background: rgba(230, 81, 0, 0.1);
  border-left: 3px solid var(--primary-saffron);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0 20px;
  color: #ffcc80;
  white-space: pre-line;
}

[data-mode="light"] .katha-vidhi-box {
  background: rgba(230, 81, 0, 0.07);
  color: #9a3412;
}

.katha-mahatmya-box {
  background: rgba(255, 179, 0, 0.1);
  border-left: 3px solid var(--primary-gold);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0 20px;
  color: #ffe082;
  white-space: pre-line;
}

[data-mode="light"] .katha-mahatmya-box {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #d97706;
  color: #92400e;
}

.katha-aarti-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 12px 0 20px;
  color: #fef3c7;
  white-space: pre-line;
  text-align: center;
  font-style: italic;
}

[data-mode="light"] .katha-aarti-box {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.3);
  color: #78350f;
}

/* Modal Footer Navigation */
.katha-modal-footer {
  height: 58px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.katha-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.katha-nav-btn:hover {
  background: var(--primary-saffron);
  border-color: var(--primary-saffron);
  color: #ffffff;
}

.katha-nav-btn.close-btn {
  background: none;
  border-color: transparent;
  color: var(--text-muted);
}

.katha-nav-btn.close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

@media (max-width: 640px) {
  .katha-modal-topbar {
    padding: 0 12px;
  }
  .katha-reader-heading {
    font-size: 14px;
    max-width: 180px;
  }
  .katha-reader-scrollable {
    padding: 14px 12px 30px;
  }
  .katha-reader-inner {
    padding: 16px 14px;
  }
  .katha-selector-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .katha-nav-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

