/* Catholics Online TV – public site styles (v40)
   One stylesheet for all public pages. The admin panel keeps using style.css. */

:root {
  --brand: #c40000;
  --brand-ink: #fff;
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1d1d22;
  --surface-3: #26262d;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f2ee;
  --muted: #a4a3ab;
  --gold: #e0b45a;
  --ok: #3ccf8e;
  --radius: 12px;
  --radius-lg: 18px;
  --gutter: 16px;
  --max: 1320px;
  --topbar-h: 60px;
  --bottom-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gutter: 32px; --topbar-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
body.modal-open { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lucide-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Buttons & pills ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-weight: 650; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn .lucide-icon { width: 18px; height: 18px; }
.btn .lucide-icon path[d^="m8 5"] { fill: currentColor; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-whatsapp { background: #1fa855; }
.btn-gift { background: var(--brand); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip-btn:hover { background: var(--surface-3); }
.chip-btn .lucide-icon { width: 18px; height: 18px; }
.chip-btn.is-on { border-color: var(--brand); }
.chip-btn.is-on .lucide-icon { color: var(--brand); fill: currentColor; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.pill-live { background: var(--brand); color: #fff; }
.pill-xs { padding: 1px 7px; font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } * { scroll-behavior: auto; } }

/* ── Top bar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  background: rgba(11, 11, 13, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand-name { font-weight: 750; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); background: var(--surface-3); }
.search { display: none; position: relative; margin-left: auto; }
.search input {
  width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); outline: none;
}
.search input:focus { border-color: var(--text); }
.search input::-webkit-search-cancel-button { display: none; }
.search-btn { position: absolute; right: 2px; top: 1px; }
.search-toggle { margin-left: auto; }
body.search-open .search {
  display: block; position: absolute; left: 0; right: 0; top: var(--topbar-h);
  padding: 10px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
}
body.search-open .search .search-btn { right: calc(var(--gutter) + 2px); top: 11px; }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .search { display: block; width: 300px; }
  .search-toggle { display: none; }
  body.search-open .search { position: relative; top: 0; padding: 0; border: 0; background: none; }
  body.search-open .search .search-btn { right: 2px; top: 1px; }
}
@media (min-width: 1200px) { .search { width: 360px; } }

/* ── Bottom navigation (phones & tablets) ────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 11, 13, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 650; }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active .lucide-icon { color: var(--brand); }
.bottom-nav .lucide-icon { width: 22px; height: 22px; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ── Hero / featured slider (immersive: everything sits on the image) ── */
.hero { position: relative; margin: 0 calc(var(--gutter) * -1); background: #000; overflow: hidden; }
.hero-slide { display: none; position: relative; height: min(82svh, 125vw); min-height: 420px; }
.hero-slide.active { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } }
.hero-media { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; }
.hero-backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) saturate(1.25) brightness(.5); z-index: -1; }
/* Photos fill the frame; wide logo banners stay whole (JS picks the mode) */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-img.fit-contain { object-fit: contain; object-position: center 38%; padding-bottom: 34%; }
.hero-stage { position: absolute; inset: 0; z-index: 1; }
.hero-stage video, .hero-stage iframe { width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.hero-stage iframe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-slide.is-previewing .hero-img { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 11, 13, .55) 0, rgba(11, 11, 13, 0) 22%),
    linear-gradient(to top, var(--bg) 0, rgba(11, 11, 13, .92) 20%, rgba(11, 11, 13, .35) 48%, rgba(11, 11, 13, 0) 66%);
}
.hero-top {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(var(--topbar-h) + 14px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none;
}
.hero-top > * { pointer-events: auto; }
.pill-glass { background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-top .pill { font-size: 13px; padding: 5px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.hero-sound {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px);
}
.hero-sound .lucide-icon { width: 18px; height: 18px; }
.hero-sound[aria-pressed="true"] { background: var(--brand); }
.hero-copy {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 44px;
  display: grid; gap: 10px; justify-items: start;
}
.hero-copy h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .5); font-size: clamp(26px, 7.4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }
.hero-copy h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-copy p { color: #e4e2de; max-width: 56ch; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: none; }
.btn-glass:hover { background: rgba(255, 255, 255, .26); filter: none; }
.hero-slide.is-previewing [data-preview-start] { display: none; }
.hero-empty { height: auto; min-height: 0; padding: calc(var(--topbar-h) + 48px) 0 32px; background: radial-gradient(circle at 20% 0, rgba(196, 0, 0, .35), transparent 60%); }
.hero-empty .hero-copy { position: static; padding: 0 var(--gutter); }
.hero-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-arrow { display: none; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .2s, background .2s; }
.hero-dots button.active { width: 22px; background: #fff; }

/* Home: the top bar floats over the hero, then turns solid when you scroll */
body.has-hero .topbar { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s, border-color .25s; }
body.has-hero .topbar.is-solid, body.has-hero.search-open .topbar { background: rgba(11, 11, 13, .9); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
body.has-hero .brand img { box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

@media (min-width: 900px) {
  .hero { width: 100vw; margin: 0 calc(50% - 50vw); max-width: 100vw; }
  .hero-slide { height: min(86vh, 760px, 56.25vw); min-height: 500px; }
  .hero-slide.is-previewing .hero-stage {
    left: auto; right: 0; width: min(100%, calc(min(86vh, 760px, 56.25vw) * 16 / 9 + 1px));
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
  .hero-slide.is-previewing .hero-backdrop { filter: blur(40px) saturate(1.1) brightness(.35); }
  .hero-slide.is-previewing .hero-img { visibility: visible; opacity: .0; }
  .hero-img.fit-contain { padding: calc(var(--topbar-h) + 20px) 0 0 38%; object-position: center; }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(11, 11, 13, .6) 0, rgba(11, 11, 13, 0) 18%),
      linear-gradient(to right, rgba(11, 11, 13, .92) 0, rgba(11, 11, 13, .55) 34%, rgba(11, 11, 13, 0) 62%),
      linear-gradient(to top, var(--bg) 0, rgba(11, 11, 13, 0) 30%);
  }
  .hero-top, .hero-copy { left: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))); right: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))); }
  .hero-copy { bottom: 72px; gap: 14px; }
  .hero-copy p { font-size: 16px; -webkit-line-clamp: 3; }
  .hero-controls { bottom: 28px; }
  .hero-arrow { display: inline-grid; background: rgba(0, 0, 0, .4); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide.active { animation: none; } }

/* ── Rows & cards ────────────────────────────────────────────── */
.row { margin-top: 28px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { font-size: 19px; font-weight: 750; }
.row-more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.row-more:hover { color: var(--text); }
.row-more .lucide-icon { width: 16px; height: 16px; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
@media (min-width: 600px) { .row-track { grid-auto-columns: 210px; gap: 14px; } }
@media (min-width: 900px) {
  .row { margin-top: 40px; }
  .row-head h2 { font-size: 22px; }
  .row-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; margin: 0; padding: 0 0 6px; scroll-padding: 0; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
}
@media (min-width: 1200px) { .row-track { grid-auto-columns: calc((100% - 5 * 16px) / 6); } }

.card { display: block; min-width: 0; }
.card-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.card-badge {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .66); color: #fff;
  font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card-badge.is-live { background: var(--brand); }
.card-badge .dot { width: 6px; height: 6px; }
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.card-progress i { display: block; height: 100%; background: var(--brand); }
.card-body { padding: 8px 2px 0; }
.card-body h3 {
  font-size: 14px; font-weight: 650; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: 3px; color: var(--muted); font-size: 12.5px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.page-head { padding: 22px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; }
.empty { text-align: center; padding: 56px 16px; display: grid; gap: 10px; justify-items: center; }
.empty .lucide-icon { width: 36px; height: 36px; color: var(--muted); }
.empty h1, .empty h2 { font-size: 22px; }
.empty .btn { margin-top: 8px; }

/* ── Watch page ──────────────────────────────────────────────── */
.watch-layout { display: grid; gap: 24px; }
.watch-main { min-width: 0; }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
}
.player > iframe, .player > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-cta {
  position: absolute; left: 12px; top: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, .75); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  animation: cta-in .3s ease;
}
.player-cta .lucide-icon { width: 18px; height: 18px; }
.player-cta-center { left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 56px; padding: 0 24px 0 18px; font-size: 16px; background: var(--brand); }
.player-cta-center .lucide-icon { fill: currentColor; }
@keyframes cta-in { from { opacity: 0; } }
.player-note { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .78); font-size: 14px; }
.player-radio { aspect-ratio: auto; padding: 0; background: #0d0d10; }

/* ── Audio / radio player ───────────────────────────────────── */
.ap { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 20px; padding: 28px var(--gutter) 24px; text-align: center; }
.ap-bg { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(48px) saturate(1.4) brightness(.42); z-index: -2; transform: scale(1.05); }
.ap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0, rgba(196, 0, 0, .22), transparent 60%), linear-gradient(to bottom, rgba(13, 13, 16, .2), rgba(13, 13, 16, .85)); }
.ap-art { position: relative; width: min(56vw, 220px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .4s ease; }
.ap-art img { width: 100%; height: 100%; object-fit: cover; }
.ap.is-playing .ap-art { transform: scale(1.02); }
.ap-eq { position: absolute; right: 10px; bottom: 10px; display: none; align-items: flex-end; gap: 3px; height: 22px; padding: 5px 7px; border-radius: 8px; background: rgba(0, 0, 0, .6); }
.ap-eq i { width: 3px; height: 30%; border-radius: 2px; background: #fff; animation: eq 1s ease-in-out infinite; }
.ap-eq i:nth-child(2) { animation-delay: -.4s; } .ap-eq i:nth-child(3) { animation-delay: -.2s; } .ap-eq i:nth-child(4) { animation-delay: -.7s; } .ap-eq i:nth-child(5) { animation-delay: -.5s; }
.ap.is-playing .ap-eq { display: flex; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.ap-body { width: 100%; max-width: 560px; display: grid; justify-items: center; gap: 6px; }
.ap-tag { display: flex; align-items: center; gap: 10px; }
.ap-status { color: var(--muted); font-size: 13px; font-weight: 600; }
.ap-status.is-error { color: #ff8a8a; }
.ap-title { font-size: clamp(19px, 4.6vw, 26px); font-weight: 800; line-height: 1.2; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-sub { color: #cfcdc8; font-size: 14px; }
.ap-seek { width: 100%; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-seek span:first-child { text-align: right; } .ap-seek span:last-child { text-align: left; }
.ap input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, .22) var(--p, 0%)); outline: none; cursor: pointer; }
.ap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.ap input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.ap input[type=range]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ap-controls { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.ap-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; opacity: .9; }
.ap-btn:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
.ap-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-btn .lucide-icon { width: 22px; height: 22px; }
.ap-play { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .15s; }
.ap-play:hover { transform: scale(1.05); }
.ap-play:active { transform: scale(.96); }
.ap-play svg { width: 30px; height: 30px; fill: currentColor; }
.ap-play .i-pause, .ap.is-playing .ap-play .i-play { display: none; }
.ap.is-playing .ap-play .i-pause { display: block; }
.ap-spin { position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--brand); display: none; animation: spin .9s linear infinite; }
.ap.is-loading .ap-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ap-vol { display: none; align-items: center; gap: 6px; margin-left: auto; }
.ap-vol input { width: 64px; }
.ap.is-muted [data-ap-mute] { color: #ff8a8a; }
@media (min-width: 700px) {
  .ap { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 32px; padding: 36px; text-align: left; }
  .ap-art { width: 220px; }
  .ap-body { justify-items: start; max-width: none; }
  .ap-controls { justify-content: flex-start; gap: 14px; }
  .ap-vol { display: flex; }
}
/* Action buttons inside the audio player card */
.ap-side { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; width: 100%; padding-top: 14px; margin-top: 2px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ap-act { display: grid; justify-items: center; gap: 5px; min-width: 52px; padding: 0; border: 0; background: none; color: #e9e7e3; cursor: pointer; font-size: 11.5px; font-weight: 650; }
.ap-act i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .15s, transform .1s; }
.ap-act span, .ap-act em { font-style: normal; }
.ap-act:hover i { background: rgba(255, 255, 255, .22); }
.ap-act:active i { transform: scale(.94); }
.ap-act .lucide-icon { width: 19px; height: 19px; }
.ap-act.is-on .lucide-icon { fill: currentColor; color: #ff4d4d; }
.ap-act-gift i { background: linear-gradient(135deg, var(--brand), #e3262f); box-shadow: 0 6px 16px rgba(196, 0, 0, .45); }
.ap-act-gift:hover i { background: linear-gradient(135deg, #d40000, #f03a43); }
.ap-sub .viewers b { color: #fff; }
.watch-info.is-audio { padding-top: 12px; }
@media (min-width: 700px) {
  .ap { grid-template-columns: auto 1fr auto; }
  .ap-side { display: grid; grid-template-columns: repeat(2, 56px); align-content: center; width: auto; gap: 14px 10px; padding: 0 0 0 26px; margin: 0; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .ap-eq i, .ap-spin { animation: none; } }
.locked { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(196, 0, 0, .35), #050505 70%); }
.locked > .lucide-icon { width: 34px; height: 34px; }
.locked p { color: #ddd; max-width: 46ch; }
.player-radio .locked { position: relative; }
.preroll { position: absolute; inset: 0; z-index: 5; background: #000; }
.preroll video, .preroll img { width: 100%; height: 100%; object-fit: contain; }
.preroll-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.preroll-bar small { display: block; color: #ccc; font-size: 12px; }
.preroll-bar .btn[disabled] { opacity: .7; cursor: default; }

.watch-info { padding-top: 16px; display: grid; gap: 12px; }
.watch-info h1 { font-size: clamp(19px, 4.4vw, 26px); font-weight: 750; line-height: 1.25; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.viewers { display: inline-flex; align-items: center; gap: 6px; }
.viewers b { color: var(--text); }
.viewers .lucide-icon { width: 16px; height: 16px; }
.watch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.watch-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.watch-owner img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.watch-owner-text { display: grid; min-width: 0; line-height: 1.25; }
.watch-owner-text b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.watch-owner-text small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.live-text { display: inline-flex; align-items: center; gap: 5px; color: #ff4d4d; font-weight: 700; }
.live-text .dot { width: 6px; height: 6px; }
.watch-owner-text .viewers .lucide-icon { display: none; }
.watch-actions { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.watch-actions::-webkit-scrollbar { display: none; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--surface-3); color: var(--text); font-size: 14px; font-weight: 650; line-height: 1; cursor: pointer;
  transition: background .15s, transform .1s;
}
.pill-btn:hover { background: #33333b; }
.pill-btn:active { transform: scale(.97); }
.pill-btn .lucide-icon { width: 18px; height: 18px; }
.pill-icon { width: 36px; padding: 0; }
.pill-light { background: #f4f2ee; color: #111; margin-left: 4px; }
.pill-light:hover { background: #fff; }
.pill-light.is-on { background: var(--surface-3); color: var(--text); }
.pill-btn.is-on .lucide-icon { fill: currentColor; }
.pill-btn[data-like].is-on { color: #fff; }
.pill-btn[data-like].is-on .lucide-icon { color: var(--brand); }
.pill-gift { background: linear-gradient(135deg, var(--brand), #e3262f); color: #fff; box-shadow: 0 4px 14px rgba(196, 0, 0, .35); }
.pill-gift:hover { background: linear-gradient(135deg, #d40000, #f03a43); }
@media (max-width: 599px) {
  .watch-bar { gap: 12px; }
  .watch-owner { width: 100%; }
  .watch-owner .pill-light { margin-left: auto; }
  .watch-actions { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); max-width: none; }
}
.description { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.description summary { cursor: pointer; font-weight: 650; }
.description p { margin-top: 8px; color: #d6d4cf; white-space: normal; }

.guide { margin-top: 28px; }
.guide-now { display: grid; gap: 10px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.guide-card.is-now { border-color: rgba(196, 0, 0, .55); }
.guide-card h3 { font-size: 16px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--brand); }
.schedule { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.schedule li.is-now time { color: var(--brand); font-weight: 750; }
.schedule time { color: var(--muted); font-variant-numeric: tabular-nums; }
.schedule p { font-size: 13px; }
.guide-empty { padding: 14px; background: var(--surface); border-radius: var(--radius); }

.watch-side h2 { font-size: 17px; font-weight: 750; margin-bottom: 12px; }
.side-list { display: grid; gap: 12px; }
.side-item { display: grid; grid-template-columns: 148px 1fr; gap: 12px; align-items: start; }
.side-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .card-badge { left: 6px; top: 6px; }
.side-text { display: grid; gap: 4px; min-width: 0; }
.side-text b { font-size: 14px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-text small { color: var(--muted); font-size: 12.5px; }
.side-item:hover b { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 600px) { .guide-now { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 24px; }
  .player { margin: 0; border-radius: var(--radius-lg); }
}
@media (min-width: 900px) and (max-width: 1100px) { .watch-layout { grid-template-columns: minmax(0, 1fr) 300px; } .side-item { grid-template-columns: 120px 1fr; } }

/* ── Sheets (gift / share) ───────────────────────────────────── */
.sheet {
  position: fixed; inset: 0; z-index: 60; display: grid; align-items: end;
  background: rgba(0, 0, 0, 0); transition: background .2s;
}
.sheet.open { background: rgba(0, 0, 0, .6); }
.sheet-card {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line-strong);
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 14px;
  transform: translateY(100%); transition: transform .22s ease;
}
.sheet.open .sheet-card { transform: none; }
.sheet-card h3 { font-size: 18px; padding-right: 40px; }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.sheet-head img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; flex: none; }
.sheet-head h1, .sheet-head h3 { font-size: 18px; }
.sheet form, .panel form { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .sheet { align-items: center; justify-items: center; padding: 24px; }
  .sheet-card { max-width: 460px; border-radius: 20px; border: 1px solid var(--line-strong); padding: 26px; transform: translateY(16px); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet.open .sheet-card { opacity: 1; }
}

.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.amount {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-weight: 700; cursor: pointer;
}
.amount.active { border-color: var(--brand); background: rgba(196, 0, 0, .18); }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface-2); outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); }

/* ── Simple pages (gift, report, payment status) ─────────────── */
.page-narrow { max-width: 520px; margin: 0 auto; padding: 28px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px; }
.panel h1 { font-size: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #d6d4cf; font-size: 14px; }
.ticks li { display: flex; gap: 8px; align-items: center; }
.ticks .lucide-icon { width: 16px; height: 16px; color: var(--ok); }
.alert { padding: 10px 14px; border-radius: 10px; background: rgba(196, 0, 0, .16); border: 1px solid rgba(196, 0, 0, .45); }
.alert-ok { background: rgba(60, 207, 142, .12); border-color: rgba(60, 207, 142, .4); }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--text); }
.status-panel { text-align: center; justify-items: center; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.status-icon .lucide-icon { width: 30px; height: 30px; }
.status-panel.is-ok .status-icon { background: rgba(60, 207, 142, .16); color: var(--ok); }
.status-line { font-weight: 700; font-size: 17px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── Ads ─────────────────────────────────────────────────────── */
.ad-slot { margin-top: 24px; }
.ad-banner { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ad-banner img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ad-banner small { display: block; color: var(--muted); }
.ad-label { position: absolute; right: 10px; top: 8px; font-size: 10px; font-weight: 750; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.ad-ticker { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 12px; border-radius: 10px; background: var(--surface); overflow: hidden; font-size: 14px; }
.ad-ticker > span { flex: none; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.ad-ticker marquee { flex: 1; }

/* ── Footer & install prompt ─────────────────────────────────── */
.site-footer { max-width: var(--max); margin: 56px auto 0; padding: 24px var(--gutter); border-top: 1px solid var(--line); color: #d6d4cf; display: grid; gap: 4px; font-size: 14px; }
.install {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s;
}
.install.show { transform: none; opacity: 1; }
.install div { flex: 1; display: grid; }
.install span { color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .install { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* ── Vatican News widget ─────────────────────────────────────── */
.vn-widget vaticannews-widget { display: block; width: 100%; min-height: 200px; border-radius: var(--radius); overflow: hidden; }
.watch-side .vn-widget { margin-top: 28px; }
.watch-side .vn-widget .row-head h2 { font-size: 17px; }
.watch-info.is-audio { display: none; }
