/* ==========================================================================
   PAGE TEMPLATES — shared utilities
   ========================================================================== */

main#primary {
  padding-top: 8rem;
  padding-bottom: 5rem;
  min-height: 60vh;
}
@media (min-width: 1024px) {
  main#primary {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.page-hero {
  margin-bottom: 3.5rem;
  max-width: 64rem;
}
.page-hero--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-hero-icon {
  display: block;
  margin: 0 auto 1.25rem;
  color: hsl(var(--primary));
}
.page-eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.page-eyebrow--center { text-align: center; }
.page-eyebrow--chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--dream-panel));
  border-radius: 999px;
  padding: 0.35rem 1rem;
  letter-spacing: 0.35em;
  font-size: 0.625rem;
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
}
.page-title-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) {
  .page-title-display { font-size: 4.5rem; }
}
.page-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
}
.page-tagline--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.gold-rule {
  display: block;
  width: 7rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.6), transparent);
}
.gold-rule-flex {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.6), transparent);
}
.micro-label {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.micro-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-top: 1.5rem;
}
.micro-link:hover { color: hsl(var(--primary) / 0.8); }
.text-primary { color: hsl(var(--primary)); }

.btn-outline-small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s;
}
.btn-outline-small:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: hsl(var(--primary)); }

/* ==========================================================================
   DREAM ROOM
   ========================================================================== */

.dream-of-week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}
@media (min-width: 1024px) {
  .dream-of-week-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.dream-of-week {
  background: hsl(var(--dream-panel));
  padding: 2.5rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dream-of-week .big-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 1.5rem 0 0;
  border: none;
  padding: 0;
}
@media (min-width: 768px) {
  .dream-of-week .big-quote { font-size: 3rem; }
}

.dream-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}
@media (min-width: 640px) {
  .dream-types-grid { grid-template-columns: repeat(2, 1fr); }
}
.dream-type-card {
  background: hsl(var(--card));
  border: none;
  text-align: left;
  padding: 1.75rem;
  min-height: 180px;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: filter 0.3s;
}
.dream-type-card:hover { filter: brightness(1.1); }
.dream-type-card .dream-sparkle { color: hsl(var(--primary)); margin-bottom: 2rem; }
.dream-type-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: hsl(var(--foreground));
}
.dream-type-tone {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.dt-dream { background: hsl(var(--dream-panel)); }
.dt-ember { background: hsl(var(--ember-panel)); }
.dt-card  { background: hsl(var(--card)); }
.dt-raga  { background: hsl(var(--raga-panel)); }

.dreams-mid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .dreams-mid-grid { grid-template-columns: repeat(3, 1fr); }
}
.dream-mid-card {
  background: hsl(var(--card));
  padding: 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dream-mid-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin: 0;
}

.dream-prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  margin-top: 4rem;
}
@media (min-width: 1024px) {
  .dream-prompt-grid { grid-template-columns: 0.8fr 1.2fr; }
}
.dream-prompt-card {
  background: hsl(var(--dream-panel));
  padding: 2.5rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dream-prompt-icon { color: hsl(var(--primary)); margin-bottom: 2rem; }
.dream-prompt-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
}
.dream-prompt-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.dream-prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}
@media (min-width: 640px) {
  .dream-prompts-grid { grid-template-columns: repeat(2, 1fr); }
}
.dream-prompt-cell {
  background: hsl(var(--card));
  padding: 1.75rem;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
}
.dream-prompt-cell p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: hsl(var(--foreground) / 0.8);
  margin: 0;
}

.dream-archive { margin-top: 4rem; }
.dream-archive-label {
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}
.dream-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}
@media (min-width: 768px) {
  .dream-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dream-archive-grid { grid-template-columns: repeat(4, 1fr); }
}
.dream-archive-card {
  background: hsl(var(--background));
  padding: 1.75rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.5s;
}
.dream-archive-card:hover { background: hsl(var(--card)); }
.dream-archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}
.dream-archive-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   MOODS PAGE
   ========================================================================== */
.moods-shelf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 3.5rem;
}
@media (min-width: 1024px) {
  .moods-shelf-grid { grid-template-columns: 1.3fr 0.7fr; }
}
.moods-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  border-radius: 2px;
}
.moods-set-card { box-shadow: 0 0 24px hsl(40 70% 60% / 0.12); }
.moods-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
}
.moods-card-head-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-weight: normal;
}
.moods-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .moods-options-grid { grid-template-columns: repeat(2, 1fr); }
}
.mood-option {
  text-align: left;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}
.mood-option:hover { border-color: hsl(var(--primary) / 0.6); }
.mood-option.is-active {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 24px hsl(40 70% 60% / 0.18);
}
.mood-option-label {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.mood-option-line {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
.mood-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.mood-save-btn:hover { background: hsl(var(--primary) / 0.9); }
.mood-trail-empty {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0;
}
.mood-trail-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--primary) / 0.15);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.mood-trail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mood-trail-row .date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}
.mood-trail-row .label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.moods-stories { max-width: 64rem; margin: 0 auto; }
.moods-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.moods-divider-label {
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}
.moods-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .moods-stories-grid { grid-template-columns: repeat(2, 1fr); }
}
.moods-story-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: 1.75rem;
  transition: all 0.3s;
  display: block;
}
.moods-story-card:hover {
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 24px hsl(40 70% 60% / 0.18);
}
.moods-story-meta {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}
.moods-story-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.moods-story-card:hover .moods-story-title { color: hsl(var(--primary)); }
.moods-story-excerpt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   RAGA PAGE
   ========================================================================== */
.page-raga { padding-top: 0 !important; }
.raga-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid hsl(var(--primary) / 0.1);
  overflow: hidden;
  padding-top: 5rem;
}
.raga-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, hsl(var(--primary) / 0.16), transparent 60%),
    radial-gradient(ellipse at bottom left, hsl(var(--ember-panel) / 0.55), transparent 65%),
    linear-gradient(180deg, hsl(var(--ink-panel)), hsl(var(--background)));
}
.raga-hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18vw;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--primary) / 0.04);
  white-space: nowrap;
}
.raga-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
}
.raga-time-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid hsl(var(--primary) / 0.1);
  margin-bottom: 2.5rem;
}
.raga-time-cell {
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-right: 1px solid hsl(var(--primary) / 0.1);
  color: hsl(var(--muted-foreground) / 0.4);
}
.raga-time-cell:last-child { border-right: none; }
.raga-time-cell.is-active {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}
.raga-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .raga-hero-grid { grid-template-columns: 1fr 280px; }
}
.raga-eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
}
.raga-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .raga-title { font-size: 6rem; }
}
.raga-aka {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}
.raga-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.raga-tag {
  border: 1px solid hsl(var(--primary) / 0.25);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--primary) / 0.8);
}
.raga-swara {
  border: 1px solid hsl(var(--primary) / 0.15);
  background: hsl(var(--primary) / 0.05);
  padding: 1.5rem;
}
.raga-swara-label { margin-bottom: 1rem; }
.raga-swara-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid hsl(var(--primary) / 0.1);
  padding: 0.5rem 0;
}
.raga-swara-row:last-child { border-bottom: none; }
.raga-swara-key { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.raga-swara-val { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 0.875rem; color: hsl(var(--foreground) / 0.8); }

.raga-body { padding: 4rem 0 6rem; }
.raga-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .raga-body-grid { grid-template-columns: 1fr 300px; }
}

.raga-listen { margin-bottom: 3rem; }
.raga-listen-card {
  border: 1px solid hsl(var(--primary) / 0.15);
  background: hsl(var(--card));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.raga-play-btn {
  height: 3rem;
  width: 3rem;
  border: 1px solid hsl(var(--primary) / 0.4);
  background: transparent;
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.raga-play-btn:hover { background: hsl(var(--primary) / 0.1); }
.raga-listen-meta { flex: 1; }
.raga-listen-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--foreground) / 0.7);
  margin: 0 0 0.5rem;
}
.raga-bars { height: 32px; display: flex; align-items: center; gap: 0.25rem; }
.raga-bar { width: 4px; background: hsl(var(--primary) / 0.35); }

.raga-feeling, .raga-history, .raga-howto, .raga-feature { margin-bottom: 3rem; }
.raga-feeling-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 2;
  color: hsl(var(--foreground) / 0.75);
  margin: 0;
}
.raga-feeling-text::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.75rem;
  color: hsl(var(--primary));
  float: left;
  padding-right: 0.75rem;
  line-height: 1;
}
.raga-history-text, .raga-howto-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.raga-phrases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .raga-phrases { grid-template-columns: repeat(2, 1fr); }
}
.raga-phrase-cell {
  background: hsl(var(--background));
  padding: 1.5rem;
}
.raga-phrase-key {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: hsl(var(--primary) / 0.7);
  margin: 0 0 0.75rem;
}
.raga-phrase-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: hsl(var(--foreground) / 0.8);
  margin: 0;
}
.raga-feature {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2.5rem;
}
.raga-feature-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  margin: 0 0 1.5rem;
}
.raga-feature-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.raga-inspired-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}
@media (min-width: 768px) {
  .raga-inspired-grid { grid-template-columns: repeat(3, 1fr); }
}
.raga-inspired-card {
  background: hsl(var(--card));
  padding: 1.75rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.raga-inspired-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}
.raga-inspired-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

.raga-aside { position: sticky; top: 7rem; align-self: start; }
.raga-related {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.5rem;
}
.raga-related-item {
  display: block;
  border-top: 1px solid hsl(var(--border));
  padding: 1rem 0;
  transition: color 0.3s;
}
.raga-related-item:first-of-type { border-top: none; }
.raga-related-item:hover { color: hsl(var(--primary)); }
.raga-related-time {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary) / 0.7);
  margin: 0 0 0.5rem;
}
.raga-related-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}
.raga-related-mood {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ==========================================================================
   VIDEOS
   ========================================================================== */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}
@media (min-width: 768px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card-tile {
  position: relative;
  aspect-ratio: 16/9;
  background: hsl(var(--card));
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.video-card-tile.tone-yaman    { background: hsl(var(--raga-yaman)); }
.video-card-tile.tone-raga     { background: hsl(var(--raga-panel)); }
.video-card-tile.tone-bhairavi { background: hsl(var(--raga-bhairavi)); }
.video-card-tile.tone-dream    { background: hsl(var(--dream-panel)); }
.video-card-tile.tone-ember    { background: hsl(var(--ember-panel)); }
.video-card-tile.tone-card     { background: hsl(var(--card)); }
.video-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(var(--background) / 0.1), hsl(var(--background) / 0.8));
}
.video-tile-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-tile-play svg {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--background) / 0.3);
  backdrop-filter: blur(6px);
  color: hsl(var(--primary));
  transition: transform 0.3s, border-color 0.3s;
}
.video-card-tile:hover .video-tile-play svg {
  transform: scale(1.1);
  border-color: hsl(var(--primary));
}
.video-tile-meta {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}
.video-tile-meta .micro-label { margin-bottom: 0.5rem; }
.video-tile-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0;
  color: hsl(var(--foreground));
}
.video-card-tile:hover .video-tile-title { color: hsl(var(--primary)); }

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.video-modal.is-open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.85);
}
.video-modal-content {
  position: relative;
  max-width: 64rem;
  width: 90%;
  border: 1px solid hsl(var(--primary) / 0.25);
  background: hsl(var(--background));
  overflow: hidden;
}
.video-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 5;
  height: 2.25rem;
  width: 2.25rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--background) / 0.7);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal-stage {
  position: relative;
  aspect-ratio: 16/9;
  background: hsl(var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-bg { position: absolute; inset: 0; }
.video-modal-text {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
}
.video-modal-text svg { color: hsl(var(--primary)); margin-bottom: 1.75rem; }
.video-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  margin: 0;
}
@media (min-width: 768px) {
  .video-modal-title { font-size: 3.75rem; }
}

/* ==========================================================================
   BOOK REVIEWS
   ========================================================================== */
.book-search {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 3rem;
}
.book-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}
.book-search input {
  height: 3rem;
  width: 100%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 0 1rem 0 2.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--foreground));
  outline: none;
  transition: border 0.3s;
}
.book-search input::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.book-search input:focus { border-color: hsl(var(--primary)); }

.book-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
}
@media (min-width: 640px) {
  .book-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .book-reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.book-review-tile {
  background: hsl(var(--background));
  padding: 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.5s;
}
.book-review-tile:hover { background: hsl(var(--card)); }
.book-review-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .book-review-title { font-size: 1.875rem; }
}
.book-review-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}
.book-review-foot {
  margin-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
}
.book-review-detail {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
  margin: 0;
}

.book-recommend {
  margin-top: 4rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
  padding: 2.5rem;
}
.book-recommend-head { text-align: center; margin-bottom: 2rem; }
.book-recommend-head svg { display: block; margin: 0 auto 1.25rem; color: hsl(var(--primary)); }
.book-recommend-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  margin: 0 0 0.75rem;
}
@media (min-width: 768px) {
  .book-recommend-title { font-size: 2.25rem; }
}
.book-recommend-tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}
.book-recommend-form {
  max-width: 36rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.book-recommend-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .book-recommend-row { grid-template-columns: repeat(2, 1fr); }
}
.book-recommend-form input,
.book-recommend-form textarea {
  width: 100%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  outline: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.book-recommend-form input:focus,
.book-recommend-form textarea:focus { border-color: hsl(var(--primary)); }
.book-recommend-form input { height: 2.75rem; }
.book-recommend-success {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--primary));
  margin: 0;
}

/* ==========================================================================
   FULL LIBRARY (Stories index)
   ========================================================================== */
.stories-search {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.stories-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}
.stories-search input {
  height: 3rem;
  width: 100%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: 0 1rem 0 2.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--foreground));
  outline: none;
}
.stories-search input:focus {
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

.stories-cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}
.stories-cat-pill {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 999px;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}
.stories-cat-pill:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.stories-cat-pill.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.stories-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stories-list { grid-template-columns: repeat(2, 1fr); }
}
.story-row-card {
  display: flex;
  gap: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 2px;
  padding: 1.75rem;
  transition: all 0.3s;
}
.story-row-card:hover {
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 24px hsl(40 70% 60% / 0.18);
}
.story-row-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--primary) / 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  color: hsl(var(--primary));
}
@media (max-width: 640px) {
  .story-row-num { display: none; }
}
.story-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}
.story-row-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.story-row-card:hover .story-row-title { color: hsl(var(--primary)); }
.story-row-excerpt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   WRITE WITH US
   ========================================================================== */
.page-write { padding-bottom: 5rem; }
.write-inner { max-width: 42rem; margin: 0 auto; }
.write-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1.25rem;
}
.write-type-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
}
.write-type {
  height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: hsl(var(--background));
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}
.write-type:hover { color: hsl(var(--primary)); }
.write-type.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.write-clear {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
}
.write-clear:hover { color: hsl(var(--primary)); }
.write-textarea {
  width: 100%;
  min-height: 50vh;
  background: transparent;
  border: 0;
  resize: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: hsl(var(--foreground));
  outline: none;
}
.write-textarea::placeholder { color: hsl(var(--muted-foreground) / 0.6); }
.write-foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.write-counter {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
#write-done:disabled { opacity: 0.3; cursor: not-allowed; }
.write-note {
  margin-top: 2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}
.write-note a { color: hsl(var(--primary)); }

/* ==========================================================================
   SHARED THOUGHTS
   ========================================================================== */
.shared-inner { max-width: 42rem; margin: 0 auto; }
.shared-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
}
.shared-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: hsl(var(--border));
}
.shared-item { background: hsl(var(--background)); padding: 2rem; }
.shared-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--foreground) / 0.9);
  margin: 0 0 1.5rem;
}
.shared-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.shared-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.shared-byline .muted { color: hsl(var(--muted-foreground) / 0.4); }

/* ==========================================================================
   PRIVACY TERMS
   ========================================================================== */
.privacy-inner { max-width: 48rem; margin: 0 auto; }
.privacy-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 2;
  color: hsl(var(--muted-foreground));
}
.privacy-body p { margin: 0 0 2rem; }
