@charset "UTF-8";

/* =========================================================
   Axe Lyrics For Church - OBS Browser Source Stylesheet
   Branded for Axe Media (axemedia.in)
   Auto-Responsive & Transparent Lyrics Overlay
   ========================================================= */

:root {
  --scale-factor: 1;
  --telugu-font-size: 46px;
  --english-font-size: 28px;
  --box-pos-offset: 4vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: transparent !important;
  background: transparent !important;
  font-family: 'Noto Sans Telugu', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Master Stage Viewport - Transparent Canvas */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 2.5vh, 48px) clamp(16px, 4vw, 64px);
  background: transparent !important;
  pointer-events: none;
  transition: justify-content 0.25s ease, padding 0.25s ease;
}

/* Dynamic Responsive Positioning */
.stage.pos-bottom {
  justify-content: flex-end;
  padding-bottom: clamp(16px, var(--box-pos-offset, 4.5vh), 90px);
}

.stage.pos-center {
  justify-content: center;
  padding-top: 2vh;
  padding-bottom: 2vh;
}

.stage.pos-top {
  justify-content: flex-start;
  padding-top: clamp(16px, var(--box-pos-offset, 4.5vh), 90px);
}

/* Fluid Auto Width & Auto Height Lyrics Container */
.lyrics-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: min(260px, 80vw);
  max-width: min(94vw, 1720px);
  height: auto;
  min-height: auto;
  box-sizing: border-box;
  background: transparent;
  padding: clamp(10px, calc(16px * var(--scale-factor, 1)), 28px) clamp(18px, calc(34px * var(--scale-factor, 1)), 64px);
  border-radius: clamp(8px, calc(14px * var(--scale-factor, 1)), 24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(12px * var(--scale-factor, 1))) scale(0.98);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s ease,
              background 0.2s ease,
              padding 0.2s ease,
              max-width 0.2s ease;
  word-wrap: break-word;
  white-space: pre-line;
  text-align: center;
}

/* Continuous Active State - Stays Visible until changed/cleared */
.lyrics-box.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Background options */
.lyrics-box.bg-transparent {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: none !important;
}

.lyrics-box.bg-subtle-dark {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lyrics-box.bg-subtle-light {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Typography Container */
.lyrics-content {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, calc(8px * var(--scale-factor, 1)), 16px);
}

/* Telugu Primary Text - Fluid Responsive Font with Balanced Line Wrapping */
.lyrics-telugu {
  font-size: calc(var(--telugu-font-size, 46px) * var(--scale-factor, 1));
  font-weight: 700;
  color: #000000; /* Default Black */
  line-height: 1.48; /* Ensures Telugu vattulu and vowel marks are NEVER cut off */
  letter-spacing: 0.3px;
  text-wrap: balance;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 2px 4px;
  transition: color 0.15s ease, font-size 0.2s ease, line-height 0.2s ease;
}

.lyrics-telugu.has-outline {
  -webkit-text-stroke-width: calc(var(--outline-width, 3px) * var(--scale-factor, 1));
  -webkit-text-stroke-color: var(--outline-color, #ffffff);
  paint-order: stroke fill;
}

/* English Transliteration / Secondary Text - Fluid Responsive Font */
.lyrics-english {
  font-size: calc(var(--english-font-size, 28px) * var(--scale-factor, 1));
  font-weight: 600;
  color: #111111;
  line-height: 1.35;
  opacity: 0.94;
  letter-spacing: 0.2px;
  text-wrap: balance;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 1px 4px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: color 0.15s ease, font-size 0.2s ease;
}

.lyrics-english.has-outline {
  -webkit-text-stroke-width: calc(max(1px, var(--outline-width, 3px) * var(--scale-factor, 1) * 0.7));
  -webkit-text-stroke-color: var(--outline-color, #ffffff);
  paint-order: stroke fill;
}

/* Section and Verse Badges */
.section-badge {
  display: none;
  font-size: clamp(11px, calc(13px * var(--scale-factor, 1)), 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  margin-bottom: 6px;
  width: fit-content;
}

.verse-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, calc(16px * var(--scale-factor, 1)), 22px);
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: clamp(3px, calc(5px * var(--scale-factor, 1)), 8px) clamp(10px, calc(18px * var(--scale-factor, 1)), 26px);
  border-radius: 24px;
  background: rgba(10, 14, 23, 0.9);
  color: #fbbf24; /* Elegant gold scripture citation */
  border: 1px solid rgba(251, 191, 36, 0.48);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  margin-bottom: clamp(6px, calc(10px * var(--scale-factor, 1)), 16px);
  width: fit-content;
  text-transform: none;
  transition: font-size 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}

.show-badge .section-badge {
  display: inline-block;
}
