/* CloudWorship Church - Main Stylesheet */

:root {
  --bg-primary: #0A2540;
  --bg-darker: #081D33;
  --bg-card: #ffffff;
  --text-dark: #0A2540;
  --text-light: #ffffff;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #b8972e;
  --accent-blue: #8ED3FF;
  --border-glass: rgba(255, 255, 255, 0.18);
  --shadow-main: 0 14px 34px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-light);
  min-height: 100vh;
}

/* ===== UTILITIES & BUTTONS ===== */
.btn {
  background: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-outline-sm {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hidden {
  display: none !important;
}

/* ===== LANDING PAGE STYLES ===== */
.top-bar {
  display: flex;
  align-items: center;
  padding: 20px 24px;
}

.logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  padding: 40px 20px 70px;
  text-align: center;
}

.church-name {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  margin: 20px 0 0;
}

.hero-main {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  margin-top: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  margin-top: 8px;
  opacity: 0.95;
}

.hero-tagline {
  margin-top: 18px;
  font-size: clamp(14px, 1.8vw, 18px);
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-link {
  display: inline-block;
  margin-top: 26px;
  padding: 16px 30px;
  border-radius: 16px;
  background: var(--accent-gold);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  box-shadow: var(--shadow-main);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 40px 24px;
}

.card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ai-section {
  background: var(--bg-darker);
  padding: 50px 24px 70px;
  text-align: center;
}

textarea {
  width: min(800px, 94%);
  height: 100px;
  margin-top: 14px;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  outline: none;
  font-family: inherit;
}

#answer {
  margin: 20px auto 0;
  max-width: 800px;
  background: rgba(255,255,255,0.96);
  color: var(--text-dark);
  padding: 18px;
  border-radius: 14px;
  text-align: left;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ===== SUNDAY SERVICE INTERFACE STYLES ===== */
.service-body {
  background: #061526;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #081d33;
  border-bottom: 1px solid var(--border-glass);
}

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

.back-link {
  color: #8ed3ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.service-logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 18px;
}

.cross-icon {
  color: var(--accent-gold);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-broadcast-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.live-pulse {
  color: #ef4444;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.live-info {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.live-timer {
  font-weight: 800;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.service-stage-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.stage-badge {
  background: var(--accent-gold);
  color: var(--text-dark);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-name {
  font-weight: 700;
  font-size: 14px;
}

/* SERVICE TIMELINE BAR */
.service-timeline {
  display: flex;
  background: #09233f;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  gap: 8px;
  overflow-x: auto;
}

.timeline-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.timeline-step:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.timeline-step.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.timeline-step.active .step-num {
  background: var(--accent-gold);
  color: var(--text-dark);
}

/* MAIN SERVICE LAYOUT GRID */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  overflow: hidden;
}

/* LEFT STAGE / NATURE CANVAS CONTAINER */
.main-screen-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.nature-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.nature-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.92;
  transition: opacity 0.5s ease;
}

#natureCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* EXIT FULLSCREEN & FULLSCREEN STAGE STYLES */
.exit-fullscreen-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: var(--accent-gold);
  color: #0c1b33;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}

.exit-fullscreen-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.btn-gold-sm {
  background: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold-sm:hover {
  background: #fff;
  transform: translateY(-1px);
}

.nature-stage.stage-fullscreen, .nature-stage:fullscreen, .nature-stage:-webkit-full-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
}

/* SCENE BADGE */
.scene-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(8, 29, 51, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 700;
}

/* LYRICS OVERLAY */
.lyrics-overlay {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 800px;
  pointer-events: none;
}

.song-title-display {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.song-biblical-ref {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.lyrics-scroll-viewport {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.lyrics-scroll-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  padding-top: 70px;
}

.lyric-line-item {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: all 0.5s ease;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.lyric-line-item.past-line {
  opacity: 0.35;
  transform: scale(0.9);
  color: rgba(255, 255, 255, 0.6);
}

.lyric-line-item.active-line {
  opacity: 1;
  transform: scale(1.08);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.8), 0 4px 16px rgba(0, 0, 0, 0.9);
}

.lyric-line-item.future-line {
  opacity: 0.65;
  transform: scale(0.95);
  color: rgba(255, 255, 255, 0.85);
}

.lyric-next {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* CONTENT OVERLAY FOR NON-WORSHIP STEPS */
.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 64px);
  z-index: 15;
  background: rgba(8, 29, 51, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.stage-card-content {
  background: rgba(255,255,255,0.96);
  color: var(--text-dark);
  padding: 32px;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.stage-card-content h2 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 900;
  color: #0c1b33;
}

.lead-verse {
  font-size: 18px;
  font-style: italic;
  color: #2c4b75;
  margin: 16px 0;
  line-height: 1.5;
}

.video-placeholder-box {
  background: #09233f;
  color: #fff;
  padding: 24px;
  border-radius: 14px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.play-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.highlight-box {
  background: #f0f6ff;
  border-left: 4px solid var(--accent-gold);
  padding: 14px;
  margin: 16px 0;
  text-align: left;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
}

.benediction-text {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
  color: #0A2540;
  margin: 20px 0;
}

/* WORSHIP CONTROLS BAR */
.worship-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 20;
  background: rgba(8, 29, 51, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.08);
}

.song-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.song-select-wrap select {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  font-weight: 600;
}

.song-select-wrap select option {
  background: #081d33;
  color: #fff;
}

.ctrl-label {
  font-size: 12px;
  opacity: 0.7;
}

.theme-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.theme-btn.active {
  background: var(--accent-gold);
  color: var(--text-dark);
  border-color: var(--accent-gold);
}

.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  opacity: 0.85;
}

.icon-btn:hover {
  opacity: 1;
}

/* RIGHT SIDEBAR PANEL */
.service-sidebar {
  background: #081d33;
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab-header {
  display: flex;
  background: #061729;
  border-bottom: 1px solid var(--border-glass);
}

.tab-btn {
  flex: 1;
  padding: 14px 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  background: rgba(255,255,255,0.03);
}

.tab-content {
  display: none;
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.card-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0a2540;
}

.card-sub {
  font-size: 13px;
  color: #556b85;
  margin: -4px 0 12px 0;
}

.scripture-box {
  margin: 0;
  padding: 12px 14px;
  background: #f4f8fc;
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
}

.scripture-box p {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}

.scripture-box cite {
  font-size: 12px;
  font-weight: 800;
  color: #2c4b75;
}

.sermon-details h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #0c1b33;
}

.sermon-speaker {
  font-size: 12px;
  color: #667c99;
  margin: 0 0 10px 0;
}

.outline-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-card textarea {
  width: 100%;
  height: 80px;
  margin: 0 0 10px 0;
  box-sizing: border-box;
  color: var(--text-dark);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.saved-msg {
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
  margin-left: 10px;
}

.status-msg {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.qa-answer-box {
  margin-top: 12px;
  padding: 12px;
  background: #f0f6ff;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #0c1b33;
}

.song-list-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f4f8fc;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.song-item:hover {
  background: #e2eeff;
}

.song-info {
  display: flex;
  flex-direction: column;
}

.song-name {
  font-weight: 800;
  font-size: 14px;
}

.song-meta {
  font-size: 11px;
  color: #64748b;
}

.btn-play-mini {
  background: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* GIVING MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  background: #ffffff;
  color: var(--text-dark);
  padding: 32px;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.modal-large {
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
}

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

.schedule-rotation-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: #0c1b33;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.admin-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.admin-card h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0c1b33;
}

.admin-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.admin-song-select-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-song-select-group select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-form textarea {
  height: 90px;
}

.repo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.repo-category {
  background: #f8fafc;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.repo-cat-title {
  margin-top: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0c1b33;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.repo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repo-song-card {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.repo-song-card:hover {
  border-color: var(--accent-gold);
  background: #f0f6ff;
  transform: translateX(4px);
}

.repo-song-card h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #0a2540;
}

.repo-song-card p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
}

.giving-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.give-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.give-card h3 {
  margin-top: 0;
  font-size: 16px;
}

.give-card p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

/* PUBLIC Q&A & FELLOWSHIP BOARD STYLES */
.comment-input-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.comment-input-form input, .comment-input-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  box-sizing: border-box;
}

.comment-input-form textarea {
  height: 80px;
}

.public-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 4px;
}

.public-comment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

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

.comment-author {
  font-weight: 800;
  font-size: 13px;
  color: #0c1b33;
}

.comment-time {
  font-size: 11px;
  color: #94a3b8;
}

.comment-question {
  font-size: 13px;
  color: #1e293b;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.4;
}

.ai-pastor-reply {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.reply-badge {
  font-size: 11px;
  font-weight: 800;
  color: #856404;
  margin-bottom: 4px;
}

.reply-body {
  font-size: 12px;
  color: #0c1b33;
  line-height: 1.45;
}

.comment-footer {
  display: flex;
  justify-content: flex-end;
}

.like-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

/* SUNDAY SERVICE ARCHIVES STYLES */
.archive-replay-banner {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  backdrop-filter: blur(8px);
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.archive-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.archive-date {
  font-size: 12px;
  font-weight: 800;
  color: #856404;
}

.archive-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(212, 175, 55, 0.2);
  color: #0c1b33;
  padding: 3px 8px;
  border-radius: 6px;
}

.archive-title {
  font-size: 16px;
  font-weight: 800;
  color: #0c1b33;
  margin: 0 0 8px 0;
}

.archive-scripture {
  font-size: 12px;
  color: #475569;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.4;
}

.archive-setlist {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

/* PWA INSTALL BUTTON & MOBILE STYLES */
.pwa-install-btn {
  background: rgba(212, 175, 55, 0.25) !important;
  color: var(--accent-gold) !important;
  border: 1px solid var(--accent-gold) !important;
  font-weight: 800 !important;
}

/* ADVANCED MOBILE OPTIMIZATION */
@media (max-width: 900px) {
  .service-body {
    height: auto;
    overflow-y: auto;
  }

  .service-header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }

  .header-left, .header-center, .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .header-right button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .service-timeline {
    overflow-x: auto;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .timeline-step {
    flex-shrink: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .main-screen-container {
    height: 480px;
    min-height: 480px;
    padding: 10px;
  }

  .nature-stage {
    min-height: 460px;
  }

  .worship-controls-bar {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 10px;
    gap: 8px;
  }

  .control-group {
    width: 100%;
    justify-content: space-between;
  }

  .song-select-wrap select {
    max-width: 180px;
  }

  .lyrics-overlay {
    width: 95%;
  }

  .lyric-line-item {
    font-size: 18px;
    line-height: 1.35;
  }

  .service-sidebar {
    height: auto;
    overflow: visible;
  }

  .tab-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .giving-options, .archive-grid, .admin-grid, .repo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .song-title-display {
    font-size: 11px;
  }
  .song-biblical-ref {
    font-size: 11px;
  }
  .lyric-line-item {
    font-size: 16px;
  }
}
