/* ============================================================
   CÂNTICOS DA MISSA — Folha Litúrgica
   Design: Elegante, litúrgico, dark mode, modo celebração
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens: Light Mode ── */
:root {
  --gold:           #c9922a;
  --gold-light:     #e8c97a;
  --gold-dark:      #8a6018;
  --gold-glow:      rgba(201,146,42,.3);

  --bg:             #faf8f3;
  --bg-card:        #ffffff;
  --bg-controls:    #f5f0e8;
  --bg-modal:       #f5f0e8;

  --text-dark:      #1e1612;
  --text-mid:       #4a3f35;
  --text-light:     #7a6e65;
  --text-inv:       #ffffff;

  --border:         #d4c5a9;
  --border-subtle:  rgba(0,0,0,.06);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,.11);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.17);

  --radius:    12px;
  --radius-lg: 20px;
  --tr:        .24s ease;
}

/* ── Tokens: Dark Mode ── */
[data-theme="dark"] {
  --bg:             #12100e;
  --bg-card:        #1e1a16;
  --bg-controls:    #1a1610;
  --bg-modal:       #1e1a16;

  --text-dark:      #f0e8d8;
  --text-mid:       #c8b99a;
  --text-light:     #8a7d70;
  --border:         #3a3028;
  --border-subtle:  rgba(255,255,255,.06);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 6px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.55);
}

/* ── Global ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
  transition: background var(--tr), color var(--tr);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 4px; opacity: .6; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: relative;
  background: linear-gradient(160deg, #110a04 0%, #2a1608 45%, #110a04 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(201,146,42,.22) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9922a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header-inner { position: relative; z-index: 1; }

.header-cross {
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: .4rem;
  animation: glow 3.5s ease-in-out infinite;
}

@keyframes glow {
  0%,100% { text-shadow: 0 0 18px rgba(201,146,42,.5); }
  50%      { text-shadow: 0 0 36px rgba(201,146,42,.9), 0 0 55px rgba(201,146,42,.35); }
}

.site-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1.2;
}

.site-subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(.8rem, 2vw, 1rem);
  color: var(--gold-light);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: .4rem;
  opacity: .85;
}

/* Stats bar */
.header-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.3rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: .25rem .7rem;
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(4px);
}

.stat-pill.stat-total {
  background: rgba(201,146,42,.2);
  border-color: rgba(201,146,42,.35);
  color: var(--gold-light);
}

/* Header actions */
.header-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
  z-index: 2;
}

.hdr-btn {
  position: relative;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--tr);
  backdrop-filter: blur(4px);
}

.hdr-btn:hover {
  background: rgba(201,146,42,.3);
  border-color: rgba(201,146,42,.5);
  color: #fff;
}

.fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e05555;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.header-ornament {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  margin-top: 1.8rem;
}

/* ══════════════════════════════════════════════════════════
   CONTROLS BAR
══════════════════════════════════════════════════════════ */
.controls-bar {
  background: var(--bg-controls);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--tr), border-color var(--tr);
}

.controls-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* Search */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: .9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  padding: .6rem 2.4rem .6rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}

.search-input::placeholder { color: var(--text-light); }
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.clear-btn {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px;
  transition: color var(--tr), opacity var(--tr);
}
.clear-btn:hover { color: var(--gold-dark); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tab-btn {
  font-family: 'Lato', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .32rem .85rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(201,146,42,.07);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px var(--gold-glow);
}

[data-theme="dark"] .tab-btn.active { color: #fff; }

/* ══════════════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════════════ */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
  width: 100%;
}

.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-light);
}
.no-results i { font-size: 2.8rem; margin-bottom: .8rem; opacity: .35; display: block; }
.no-results p { font-size: 1.15rem; font-style: italic; }
.hidden { display: none !important; }

/* ── GRID ── */
.canticos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

/* ── Section Divider ── */
.section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: .8rem 0 .2rem;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-divider-label {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ══════════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════════ */
.cantico-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), border-color var(--tr);
  animation: fadeUp .38s ease both;
  cursor: pointer;
}

.cantico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-header {
  padding: 1.1rem 1.3rem .7rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .5rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  padding: .22rem .7rem;
  border-radius: 50px;
}

/* Botão favoritar no card */
.btn-fav {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .95rem;
  cursor: pointer;
  padding: 3px 4px;
  line-height: 1;
  transition: color var(--tr), transform var(--tr);
  flex-shrink: 0;
}

.btn-fav:hover  { color: #e05555; transform: scale(1.15); }
.btn-fav.fav-active { color: #e05555; }

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-accent-bar {
  height: 2px;
  width: 40px;
  border-radius: 2px;
  margin-top: .6rem;
  opacity: .5;
}

.card-body {
  flex: 1;
  padding: .9rem 1.3rem;
}

.card-preview-text {
  font-family: 'EB Garamond', serif;
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.65;
  white-space: pre-line;
  margin-bottom: .4rem;
}

.card-preview-text.refrão {
  font-style: italic;
  color: var(--gold-dark);
}

[data-theme="dark"] .card-preview-text.refrão { color: var(--gold-light); }

.card-footer {
  padding: .7rem 1.3rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.btn-ver {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  padding: .36rem 1rem;
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-ver:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 10px var(--gold-glow);
}

[data-theme="dark"] .btn-ver { color: var(--gold-light); }
[data-theme="dark"] .btn-ver:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,5,2,.65);
  backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .28s ease;
}

.modal-overlay.active { opacity: 1; }

.modal-box {
  background: var(--bg-modal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transform: translateY(18px) scale(.97);
  transition: transform .28s ease;
}

.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

/* Toolbar do modal */
.modal-toolbar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-modal);
  position: sticky;
  top: 0;
  z-index: 5;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-toolbar-center {
  flex: 1;
  text-align: center;
}

.modal-counter {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: .06em;
}

.modal-toolbar-right {
  display: flex;
  gap: .3rem;
}

.modal-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--tr);
  flex-shrink: 0;
}

.modal-nav-btn:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.modal-nav-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.modal-action-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--tr);
}

.modal-action-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.modal-action-btn.fav-active {
  color: #e05555;
  border-color: #e05555;
}

.modal-action-btn.fav-active:hover {
  background: #e05555;
  color: #fff;
}

.modal-close-btn:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

/* Conteúdo do modal */
.modal-content { padding: 0 2rem 2.5rem; }

.modal-header {
  padding-top: 1rem;
  text-align: center;
  margin-bottom: 1.4rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: .28rem .85rem;
  border-radius: 50px;
  margin-bottom: .85rem;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: .7rem;
}

.modal-divider {
  height: 3px;
  width: 70px;
  margin: 0 auto;
  border-radius: 2px;
  opacity: .65;
}

/* Blocos de letra */
.modal-letra {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bloco-refrao,
.bloco-verso,
.bloco-texto {
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  position: relative;
}

.bloco-refrao {
  background: rgba(201,146,42,.08);
  border-left: 3px solid var(--gold);
}

[data-theme="dark"] .bloco-refrao { background: rgba(201,146,42,.12); }

.bloco-verso {
  background: var(--border-subtle);
  border-left: 3px solid var(--border);
}

.bloco-texto {
  background: transparent;
}

.bloco-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .35rem;
  opacity: .85;
}

[data-theme="dark"] .bloco-label { color: var(--gold-light); }

.bloco-verso .bloco-label { color: var(--text-light); }

.bloco-texto-p {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.bloco-refrao .bloco-texto-p {
  font-style: italic;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   MODO CELEBRAÇÃO
══════════════════════════════════════════════════════════ */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: #0b0806;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  padding: 2rem;
}

.celebration-overlay.active { opacity: 1; }

/* Controles topo */
.celebration-controls {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 5;
  opacity: .35;
  transition: opacity var(--tr);
}

.celebration-overlay:hover .celebration-controls { opacity: 1; }

.cel-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--tr);
}

.cel-btn:hover:not(:disabled) {
  background: rgba(201,146,42,.35);
  border-color: rgba(201,146,42,.6);
  color: #fff;
}

.cel-btn:disabled { opacity: .25; cursor: not-allowed; }

.cel-exit {
  background: rgba(255,255,255,.08);
}

/* Corpo */
.celebration-body {
  max-width: 720px;
  width: 100%;
  text-align: center;
  animation: celFadeIn .5s ease both;
}

@keyframes celFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cel-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  opacity: .9;
}

.cel-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 1.8rem;
  text-shadow: 0 0 30px rgba(201,146,42,.3);
}

.cel-letra {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 .5rem;
}

/* Scrollbar dentro da celebração */
.cel-letra::-webkit-scrollbar { width: 4px; }
.cel-letra::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
.cel-letra::-webkit-scrollbar-thumb { background: rgba(201,146,42,.4); border-radius: 2px; }

.cel-bloco-refrao,
.cel-bloco-verso,
.cel-bloco-texto {
  padding: .9rem 1.2rem;
  border-radius: 10px;
}

.cel-bloco-refrao {
  background: rgba(201,146,42,.12);
  border-left: 3px solid var(--gold);
}

.cel-bloco-verso {
  background: rgba(255,255,255,.05);
  border-left: 3px solid rgba(255,255,255,.15);
}

.cel-bloco-texto {
  background: rgba(255,255,255,.03);
}

.cel-bloco-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .3rem;
  opacity: .7;
}

.cel-bloco-verso .cel-bloco-label {
  color: rgba(255,255,255,.45);
}

.cel-bloco-refrao p,
.cel-bloco-verso p,
.cel-bloco-texto p {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.9;
  color: rgba(255,255,255,.88);
}

.cel-bloco-refrao p {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}

/* Footer celebração */
.celebration-footer {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: .3;
  transition: opacity var(--tr);
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .06em;
}

.celebration-overlay:hover .celebration-footer { opacity: 1; }

.cel-counter { font-weight: 700; }

.cel-hint {
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-dark);
  color: var(--bg);
  font-family: 'Lato', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  padding: .6rem 1.4rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .toast {
  background: var(--gold-light);
  color: #1e1612;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, #110a04, #2a1608);
  color: rgba(255,255,255,.4);
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  letter-spacing: .05em;
}

.footer-ornament {
  font-size: 1rem;
  color: var(--gold-light);
  opacity: .5;
  margin-bottom: .4rem;
  letter-spacing: .4em;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .controls-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .search-wrapper { flex: 0 0 280px; }
}

@media (max-width: 480px) {
  .canticos-grid  { grid-template-columns: 1fr; }
  .modal-content  { padding: 0 1.1rem 1.8rem; }
  .tab-btn        { font-size: .7rem; padding: .28rem .65rem; }
  .header-actions { top: .7rem; right: .7rem; }
  .celebration-body { padding: 0; }
  .cel-title { font-size: 1.4rem; }
}

@media (max-width: 360px) {
  .cel-hint { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════ */
@media print {
  .controls-bar,
  .header-actions,
  .header-stats,
  .header-ornament,
  .btn-ver,
  .btn-fav,
  .site-footer { display: none !important; }

  .site-header { padding: 1.2rem; background: #fff; color: #000; }
  .site-title  { color: #000; font-size: 1.8rem; }
  .site-subtitle { color: #555; }
  .header-cross  { color: #888; animation: none; }

  .canticos-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cantico-card  { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
