/* Un espacio cálido de escucha: conserva la identidad institucional compartida. */
.gallery-page { background:#f7f4ec; }
.gallery-page .devotional-hero { background:radial-gradient(ellipse at 5% 0%,#f6e9ce 0,transparent 55%),#f5f0e5; color:#153e4d; border-bottom:0; padding:66px 0 48px; overflow:hidden; }
.gallery-page .devotional-hero::before,.gallery-page .devotional-hero::after { display:none; }
.gallery-page .devotional-hero .gallery-hero-inner { display:grid; grid-template-columns:1.1fr .9fr; gap:75px; align-items:center; }
.devotional-eyebrow { display:block; color:#8a6a33; font:800 10px/1.5 'DM Sans',sans-serif; letter-spacing:3px; margin-bottom:22px; }
.gallery-page .devotional-hero h1 { color:#173e4c; font-size:clamp(42px,4.5vw,66px); line-height:1.08; letter-spacing:-2.5px; margin:0 0 24px; max-width:650px; }
.devotional-hero h1 em { color:#92703b; font-family:Georgia,serif; font-weight:400; }
.devotional-intro > p { color:#5d706f; max-width:470px; font-size:16px; line-height:1.85; margin:0 0 28px; }
.devotional-cta { display:inline-flex; align-items:center; gap:24px; padding:15px 22px; background:#193f4c; color:#fff; border-radius:9px; font-size:13px; font-weight:700; text-decoration:none; }
.devotional-cta:hover { background:#2a5963; }
.devotional-cta:focus-visible { outline:3px solid #b58535; outline-offset:4px; }
.devotional-intro > small { display:block; margin-top:16px; color:#77827a; font-size:11px; }
.devotional-cover { position:relative; margin:0; height:400px; border-radius:130px 14px 14px 14px; overflow:hidden; box-shadow:18px 18px 0 #e6decc; }
.devotional-cover img { width:100%;height:100%;object-fit:cover;object-position:28% center; }
.devotional-cover::after { content:'';position:absolute;inset:0;background:linear-gradient(transparent 30%,#102f39dd); }
.devotional-cover figcaption { position:absolute;z-index:1;bottom:26px;left:30px;color:#fff; }
.devotional-cover figcaption span { font-size:9px;font-weight:700;letter-spacing:2px;color:#ecd8ae; }
.devotional-cover figcaption p { font:400 27px/1.25 Georgia,serif;margin:10px 0 0; }
.devotional-note { display:flex;align-items:center;gap:16px;padding-top:30px;padding-bottom:30px;border-bottom:1px solid #dfd9ca;color:#6e776e; }
.devotional-note > span:first-child { color:#ad864b;font-size:23px; }
.devotional-note p { flex:1;font:italic 18px/1.5 Georgia,serif;margin:0; }
.devotional-note > span:last-child { font-size:9px;letter-spacing:2px;color:#8f7855; }
.gallery-page .gallery-library { background:transparent;padding:36px 0 80px;scroll-margin-top:125px; }
.gallery-page .gallery-toolbar { background:#fffdf8;border:1px solid #e3dfd4;box-shadow:none;border-radius:14px;padding:12px;margin-bottom:28px; }
.gallery-page .gallery-search { border-color:#e1ded4;background:#fffdf9; }
.gallery-page .gallery-filters { background:#efebe1; }
.gallery-page .gallery-filters button.is-active { background:#d5bb85;color:#173e4c; }
.gallery-page .gallery-featured { border:1px solid #ded9cd;border-radius:20px;box-shadow:0 15px 40px #263a2b09;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);background:#fffdf8; }
.gallery-page .gallery-featured-copy { padding:36px;background:#fffdf8; }
.gallery-page .gallery-featured-copy > span { color:#9a7540;letter-spacing:2px;font-size:9px; }
.gallery-page .gallery-featured-copy h3 { font-size:clamp(27px,3vw,39px);line-height:1.18;color:#173e4c;margin:16px 0; }
.gallery-page .gallery-featured-copy p { color:#758078;line-height:1.8; }
.gallery-page .gallery-featured-copy a { background:transparent;border:1px solid #d4c7ac;color:#34545c;border-radius:8px; }
.gallery-page .podcast-audio .gallery-featured-art { background:radial-gradient(ellipse at 65% 30%,#46716c,#153c48 80%); }
.gallery-page .podcast-audio .gallery-featured-art > img { opacity:.85; }
.gallery-page .podcast-controls { background:#153a46 !important; }
.gallery-page .gallery-results-heading { margin-top:42px;border-bottom-color:#dfd9ca; }
.gallery-page .gallery-results-heading h3 { color:#173e4c; }
.gallery-page .gallery-media-row { border:1px solid #e4dfd2;border-radius:13px;box-shadow:none;background:#fffdf8; }
.gallery-page .gallery-media-row.is-playing { border-color:#b69c69;box-shadow:inset 3px 0 #b69c69; }
.gallery-page .gallery-row-play { background:#e9eee7;color:#274b4d;border-radius:11px; }
.gallery-page .gallery-row-copy h3 { color:#23434a; }
.gallery-page .gallery-row-copy p { color:#788078; }
.gallery-page .gallery-row-download { border-color:#ddd4c3;color:#63756d; }
@media(max-width:800px) {
 .gallery-page .devotional-hero { padding:38px 0; }
 .gallery-page .devotional-hero .gallery-hero-inner { gap:30px;grid-template-columns:1fr 0.8fr; }
 .devotional-cover { height:330px;border-top-left-radius:85px; }
 .gallery-page .devotional-hero h1 { font-size:43px;letter-spacing:-1.5px; }
 .devotional-intro > p { font-size:14px; }
 .devotional-note > span:last-child { display:none; }
 .gallery-page .gallery-featured { grid-template-columns:1fr; }
}
@media(max-width:560px) {
 .gallery-page .devotional-hero .gallery-hero-inner { grid-template-columns:1fr;gap:28px; }
 .devotional-cover { height:250px;max-width:100%;box-shadow:8px 8px 0 #e6decc; }
 .devotional-cover img { object-position:center 40%; }
 .gallery-page .devotional-hero h1 { font-size:44px; }
 .devotional-note { padding-top:22px;padding-bottom:22px; }
 .devotional-note p { font-size:16px; }
 .gallery-page .gallery-featured-copy { padding:25px; }
}

/* Bienvenida simplificada: imagen y un solo mensaje. */
.devotional-cover::after { background:linear-gradient(transparent 65%,#173c4922); }
.gallery-page .devotional-hero h1 { margin-bottom:30px; }

/* Ambiente sereno y botón de escucha más suave. */
.gallery-page .devotional-hero { background:radial-gradient(ellipse at 12% 18%,#f2e6cc80,transparent 62%),#f8f5ed; padding-top:58px; padding-bottom:58px; }
.devotional-cta { background:#41675f; color:#fffdf6; border:1px solid #41675f; border-radius:30px; padding:16px 27px; box-shadow:0 5px 15px #3c615815; font-weight:600; }
.devotional-cta:hover { background:#32564f; border-color:#32564f; }
.devotional-cover { box-shadow:12px 12px 0 #e8e0ce80; }
@media(max-width:560px) { .gallery-page .devotional-hero { padding-top:35px;padding-bottom:38px; } }
/* Portada de entrada sin recorte; avance automático cancelable desde JS. */
.gallery-page .devotional-hero { min-height:calc(88svh - 110px);display:flex;align-items:center;padding:35px 0; }
.gallery-page .devotional-hero .gallery-hero-inner { width:min(1180px,calc(100% - 48px));margin-inline:auto; }
.devotional-cover { height:min(65svh,560px);border-radius:22px;box-shadow:none;background:#f6f0e4; }
.devotional-cover img { object-fit:contain;object-position:center; }
.devotional-cover::after { display:none; }
.gallery-page .podcast-audio .gallery-featured-art { background:#f6f0e4; height:280px;min-height:280px;padding:12px;display:flex;align-items:center;justify-content:center; }
.gallery-page .podcast-audio .gallery-featured-art .sound-rings { display:none; }
.gallery-page .podcast-audio .gallery-featured-art > img { width:100%;height:100%;max-height:270px;object-fit:contain;opacity:1;filter:none;position:static;transform:none; }
.gallery-page .podcast-media audio { display:none!important; }
.gallery-featured-copy > span[hidden] { display:none!important; }
.podcast-lesson { margin-bottom:24px; }
.podcast-lesson-title { color:#274b4d;font-size:20px;margin:12px 0 15px; }
.podcast-lesson-items { display:grid;gap:12px; }
.gallery-page .gallery-row-play b { color:#274b4d; }
@media(max-width:560px) {
 .gallery-page .devotional-hero { min-height:calc(90svh - 80px);padding:26px 0; }
 .gallery-page .devotional-hero .gallery-hero-inner { gap:18px; }
 .gallery-page .devotional-hero h1 { font-size:36px;margin:0; }
 .devotional-cover { height:43svh; }
}
/* Portada panorámica compuesta: fotografía completa, sin caja pequeña. */
.gallery-page .devotional-hero { display:block;min-height:0;padding:0;background:#153d46; }
.gallery-page .devotional-hero .gallery-hero-inner { position:relative;display:block;width:100%;max-width:none;margin:0; }
.devotional-cover { width:100%;height:auto;aspect-ratio:2/1;margin:0;border-radius:0;box-shadow:none;background:transparent; }
.devotional-cover img { display:block;width:100%;height:100%;object-fit:contain;object-position:center; }
.devotional-intro { position:absolute;z-index:2;left:27%;top:60%;width:29%;padding:0 12px; }
.gallery-page .devotional-hero h1 { color:#fff9e9;font-size:clamp(30px,3.4vw,62px);line-height:1.05;letter-spacing:-1.4px;margin:0;text-shadow:0 2px 18px #061a24cc; }
.devotional-hero h1 em { color:#ffe1a0; }
@media(max-width:700px) {
 .devotional-intro { position:relative;left:auto;top:auto;width:100%;padding:23px 24px 27px;background:#f7f2e7; }
 .gallery-page .devotional-hero .gallery-hero-inner { display:flex;flex-direction:column-reverse;gap:0; }
 .gallery-page .devotional-hero h1 { color:#173e4c;font-size:34px;text-shadow:none; }
 .devotional-hero h1 em { color:#92703b; }
 .devotional-cover { height:auto;aspect-ratio:2/1; }
}
/* Ajuste a pantalla con foto íntegra y titular legible. */
.devotional-cover { position:relative;height:calc(100svh - 110px);min-height:350px;max-height:900px;aspect-ratio:auto;overflow:hidden;background:#21434a; }
.devotional-cover::before { content:'';position:absolute;inset:-25px;background:url('../img/podcast-oracion-microfono.png') center/cover;filter:blur(20px);opacity:.55; }
.devotional-cover img { position:relative;z-index:1;object-fit:contain; }
.devotional-intro { left:24%;top:57%;width:34%; }
.gallery-page .devotional-hero h1 { font-size:clamp(44px,5.2vw,100px);letter-spacing:-2px;line-height:1.02; }
.gallery-page .gallery-filters button { min-width:80px;min-height:40px; }
@media(max-width:700px) {
 .devotional-cover { height:auto;min-height:0;max-height:none;aspect-ratio:2/1; }
 .devotional-intro { left:auto;top:auto;width:100%; }
 .gallery-page .devotional-hero h1 { font-size:40px;letter-spacing:-1px; }
}
/* Portada de audio ampliada sin recortar el emblema. */
.gallery-page .podcast-audio .gallery-featured-art { height:clamp(260px,30vw,370px);min-height:0;padding:10px; }
.gallery-page .podcast-audio .gallery-featured-art > img { max-height:none;object-fit:contain; }
@media(max-width:560px) { .gallery-page .podcast-audio .gallery-featured-art { height:270px; } }
/* Audio como disco: contenedor estable, sin recorte en móvil. */
.gallery-featured-media.podcast-media.podcast-audio { display:grid;grid-template-rows:auto auto;min-height:0;overflow:hidden; }
.gallery-page .podcast-audio .gallery-featured-art { display:flex;align-items:center;justify-content:center;height:auto!important;min-height:0;max-height:none;padding:26px;box-sizing:border-box;overflow:visible;background:radial-gradient(ellipse at center,#f8f0dc,#e6dfcf); }
.podcast-record { width:min(72%,290px);aspect-ratio:1;border-radius:50%;border:12px solid #163845;box-sizing:border-box;overflow:hidden;box-shadow:0 10px 30px #183c4530,0 0 0 3px #b89c62;animation:podcast-record-turn 26s linear infinite;animation-play-state:paused;flex:none;background:#f8efd9; }
.podcast-record img { display:block!important;position:static!important;transform:none!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;filter:none!important;opacity:1!important; }
.is-playing .podcast-record { animation-play-state:running; }
@keyframes podcast-record-turn { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .podcast-record { animation:none; } }
.gallery-custom-controls.podcast-controls [data-media-fullscreen] { display:inline-flex!important; }
/* Pantalla grande nativa y alternativa para navegadores sin Fullscreen API. */
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) { display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;width:100vw;height:100dvh;max-width:none;min-height:0;background:#092936;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box; }
.gallery-featured-media.podcast-media.is-expanded { position:fixed;inset:0;z-index:10000; }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) .gallery-featured-art { min-height:0;background:radial-gradient(ellipse at center,#436b67,#092936); }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) .podcast-record { width:min(65vw,52dvh,470px); }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) video { width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain; }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) .podcast-controls { width:100%;max-width:1000px;justify-self:center; }
.podcast-header-badge { margin-left:auto;display:flex;align-items:center;gap:10px;color:#41675f;font:700 15px/1.2 'DM Sans',sans-serif;letter-spacing:.3px; }
.podcast-header-badge svg { width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round; }
.podcast-header-badge i { width:6px;height:6px;background:#b89752;border-radius:50%; }
.site-header.is-scrolled .podcast-header-badge { color:#f2e4be; }
@media(max-width:600px) {
 .gallery-page .gallery-toolbar { display:flex;flex-direction:column;gap:12px;padding:12px;margin-bottom:20px; }
 .gallery-page .gallery-toolbar .gallery-search { width:100%;margin:0;min-height:46px; }
 .gallery-page .gallery-toolbar .gallery-filters { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;padding:4px;gap:5px; }
 .gallery-page .gallery-filters button { min-width:0;min-height:40px;width:100%; }
 .gallery-page .podcast-audio .gallery-featured-art { padding:24px 18px; }
 .podcast-record { width:min(76%,235px);border-width:9px; }
 .gallery-page .gallery-featured-copy { padding:23px; }
 .gallery-page .gallery-featured-copy h3 { font-size:28px; }
 .podcast-header-badge { gap:6px;font-size:12px; }
 .podcast-header-badge svg { width:21px;height:21px; }
 .podcast-header-badge i { display:none; }
}
/* Neutraliza la posición absoluta del arte que heredaba el diseño anterior. */
.gallery-featured-media.podcast-media.podcast-audio { grid-template-columns:minmax(0,1fr)!important;padding:0!important;aspect-ratio:auto; }
.gallery-page .podcast-audio .gallery-featured-art { position:relative!important;inset:auto!important;grid-column:1;grid-row:1;width:100%;aspect-ratio:auto; }
.gallery-featured-media.podcast-audio .podcast-controls { grid-column:1;grid-row:2;max-width:100%; }
.gallery-featured-media.podcast-audio:is(.is-expanded,:fullscreen) .gallery-featured-art { grid-row:1; }
/* Tocadiscos vectorial propio: base, vinilo y brazo decorativo. */
.gallery-page .podcast-audio .gallery-featured-art { background:radial-gradient(ellipse at 25% 10%,#f8f1df,#dfd6c2);padding:24px; }
.podcast-turntable { position:relative;box-sizing:border-box;width:min(100%,460px);aspect-ratio:1.4;background:linear-gradient(145deg,#376360,#21454c 70%);border:9px solid #c6ad7c;border-radius:20px;box-shadow:0 12px 22px #193b4428,inset 0 0 0 2px #f9e1a24d;display:flex;align-items:center;padding:5%;isolation:isolate; }
.podcast-turntable .podcast-record { position:relative;width:75%;aspect-ratio:1;border:4px solid #bca16d;background:repeating-radial-gradient(circle,#15242a 0px,#15242a 3px,#2a393c 4px,#122126 5px);box-shadow:0 5px 12px #0005,0 0 0 3px #10242b;overflow:hidden; }
.podcast-turntable .podcast-record img { position:absolute!important;inset:18%!important;width:64%!important;height:64%!important;border-radius:50%;box-shadow:0 0 0 3px #d3b67b; }
.podcast-tonearm { position:absolute;inset:0;width:100%;height:100%;z-index:2;fill:none;stroke:#f1d99d;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(2px 3px 2px #092c3866);transform:rotate(-9deg);transform-origin:86% 18%;transition:transform .7s ease;pointer-events:none; }
.podcast-tonearm .tonearm-pivot { fill:#173a43;stroke:#c8ad73;stroke-width:3; }
.podcast-tonearm .tonearm-head { fill:#e2ca93;stroke:#f1ddae;stroke-width:1; }
.is-playing .podcast-tonearm { transform:rotate(0deg); }
.turntable-light { position:absolute;right:9%;bottom:10%;width:8px;height:8px;border-radius:50%;background:#8d9a80;box-shadow:0 0 0 3px #153840; }
.is-playing .turntable-light { background:#f3ce77;box-shadow:0 0 9px #f3ce77aa; }
.turntable-mark { position:absolute;left:7%;top:9%;height:5px;width:22px;border-top:1px solid #ddc58d;border-bottom:1px solid #ddc58d;opacity:.65; }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) .podcast-turntable { width:min(88vw,70dvh,650px); }
.gallery-featured-media.podcast-media:is(.is-expanded,:fullscreen) .podcast-turntable .podcast-record { width:75%; }
.podcast-header-wave { flex:1;max-width:260px;min-width:25px;margin:0 38px;color:#b29a66;opacity:.58; }
.podcast-header-wave svg { display:block;width:100%;height:44px;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round; }
.podcast-header-wave .wave-baseline { stroke-width:.5;opacity:.3; }
.site-header.is-scrolled .podcast-header-wave { color:#ecd9a9;opacity:.65; }
@media(max-width:600px) {
 .gallery-page .podcast-audio .gallery-featured-art { padding:20px 15px; }
 .podcast-turntable { border-width:6px;border-radius:16px; }
 .podcast-header-wave { margin:0 10px;max-width:95px; }
 .podcast-header-wave svg { height:30px; }
 .turntable-light { width:6px;height:6px; }
}
@media(prefers-reduced-motion:reduce) { .podcast-tonearm { transition:none; } }
.podcast-header-badge { white-space:nowrap;flex-shrink:0; }
.podcast-header-wave { min-width:0; }
@media(max-width:420px) { .podcast-header-wave { margin:0 5px;max-width:55px; } }
/* Partitura suave detrás de la cabecera; no compite con logo o menú. */
.site-header:has(.podcast-header-music) { isolation:isolate; }
.podcast-header-music { position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;color:#b29861;opacity:.17; }
.podcast-header-music svg { display:block;width:100%;height:100%; }
.site-header:has(.podcast-header-music) .navbar { position:relative;z-index:1; }
.site-header.is-scrolled .podcast-header-music { color:#e9ce8d;opacity:.12; }
/* Luz de escucha cálida, sin destellos. */
.is-playing .podcast-turntable { box-shadow:0 12px 24px #193b4430,0 0 28px #e9be6330,inset 0 0 0 2px #f9e1a255; }
.podcast-turntable { transition:box-shadow .8s ease; }
.gallery-custom-controls.podcast-controls .podcast-episode-nav { display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-top:1px solid #ffffff1c;padding-top:10px; }
.gallery-custom-controls.podcast-controls .podcast-episode-nav button { width:auto;min-width:82px;height:36px;border:1px solid #ffffff30;border-radius:8px;padding:7px 12px;font:600 11px 'DM Sans',sans-serif; }
.gallery-custom-controls.podcast-controls .podcast-episode-nav button:disabled { opacity:.35;cursor:default; }
.podcast-episode-nav span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;color:#ead7ad!important;text-align:center; }
.gallery-featured-copy .podcast-resume { border:1px solid #b99d61;background:#e8d6ac;color:#24464a;border-radius:8px;padding:12px 15px;font:600 12px 'DM Sans',sans-serif;cursor:pointer; }
.gallery-featured-copy .podcast-resume[hidden] { display:none!important; }
.gallery-featured-copy > div { flex-wrap:wrap;gap:10px; }
@media(max-width:600px) { .podcast-header-music { opacity:.12; } .podcast-episode-nav { gap:6px!important; } .podcast-episode-nav span { max-width:110px; } }
@media(prefers-reduced-motion:reduce) { .podcast-turntable { transition:none; } }
/* Colecciones: mismo emblema, tonos estables y etiquetas por episodio. */
[data-collection-tone] { --collection-base:#376360;--collection-deep:#21454c;--collection-paper:#e8eee5; }
[data-collection-tone="clay"] { --collection-base:#906458;--collection-deep:#573f3b;--collection-paper:#f2e5dd; }
[data-collection-tone="honey"] { --collection-base:#967b45;--collection-deep:#594c32;--collection-paper:#f4ecd5; }
[data-collection-tone="ocean"] { --collection-base:#456c80;--collection-deep:#243f53;--collection-paper:#e4edf0; }
.podcast-turntable[data-collection-tone] { background:linear-gradient(145deg,var(--collection-base),var(--collection-deep) 70%); }
.podcast-turntable .podcast-record img { inset:18%!important;width:64%!important;height:64%!important;aspect-ratio:1;object-fit:cover!important;border-radius:50%!important;clip-path:circle(50%); }
.podcast-record-label { position:absolute;left:19%;right:19%;bottom:12%;max-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;padding:4px 7px;border-radius:12px;background:var(--collection-paper,#e8eee5);color:#24464a;font:700 clamp(8px,1vw,11px)/1.3 'DM Sans',sans-serif; }
.podcast-collection-heading { display:flex;align-items:center;gap:16px;margin:18px 0;padding:16px 20px;border:1px solid #dfd7c8;border-radius:16px;background:linear-gradient(110deg,var(--collection-paper),#fffcf6); }
.podcast-collection-heading .podcast-lesson-title { margin:0 0 5px;padding:0;border:0; }
.podcast-collection-heading span { color:#6c7c78;font:500 12px 'DM Sans',sans-serif; }
.podcast-collection-disc { flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:repeating-radial-gradient(circle,#17292c 0 3px,#344043 4px,#17292c 5px);border:2px solid #bfa36a;box-shadow:0 3px 8px #183b4324; }
.podcast-collection-disc img { width:63%;height:63%;object-fit:contain;border-radius:50%; }
/* El plato sigue en su sitio mientras se intercambian los dos vinilos. */
.podcast-turntable { overflow:hidden; }
.podcast-turntable.is-changing-record > .podcast-record:not(.podcast-record-departing) { animation:podcast-record-arrive 1.05s both; }
.podcast-turntable > .podcast-record-departing { position:absolute;left:5%;top:50%;width:67.5%;margin:0;z-index:3;animation:podcast-record-depart .5s both!important;pointer-events:none; }
.is-changing-record .podcast-tonearm { animation:podcast-arm-exchange 1.05s both;z-index:4; }
@keyframes podcast-record-depart { from { transform:translateY(-50%) rotate(0);opacity:1; } to { transform:translate(-115%,-65%) rotate(-24deg);opacity:0; } }
@keyframes podcast-record-arrive { 0%,40% { transform:translateX(130%) rotate(30deg);opacity:0; } 85%,100% { transform:translateX(0) rotate(0);opacity:1; } }
@keyframes podcast-arm-exchange { 0%,75% { transform:rotate(-16deg); } 100% { transform:rotate(0); } }
@media(max-width:600px) {
 .podcast-collection-heading { padding:12px;gap:12px; }
 .podcast-collection-disc { width:52px;height:52px; }
 .podcast-collection-heading .podcast-lesson-title { font-size:20px; }
 .podcast-turntable.is-changing-record > .podcast-record:not(.podcast-record-departing),.is-changing-record .podcast-tonearm { animation-duration:.7s; }
 .podcast-turntable > .podcast-record-departing { animation-duration:.33s!important; }
}
@media(prefers-reduced-motion:reduce) {
 .podcast-turntable.is-changing-record > .podcast-record:not(.podcast-record-departing),.is-changing-record .podcast-tonearm { animation:none; }
 .podcast-turntable > .podcast-record-departing { display:none; }
}
/* Videos en televisión clásica: pantalla plana, sin filtros sobre el contenido. */
.gallery-featured-media.podcast-media.podcast-video { display:grid;grid-template-rows:1fr auto;min-width:0; }
.podcast-tv-stage { min-width:0;display:flex;flex-direction:column;justify-content:center;padding:32px 24px 22px;background:radial-gradient(ellipse at 35% 15%,#f8efdc,#ded4be); }
.podcast-tv { position:relative;display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:13px;padding:18px;border:5px solid #72523b;border-radius:23px;background:repeating-linear-gradient(2deg,#987249 0px,#9e794e 3px,#967047 6px,#a17b51 8px);box-shadow:0 13px 20px #45362830,inset 0 0 0 2px #d0ad78; }
.podcast-tv-screen { display:grid;place-items:center;min-width:0;overflow:hidden;background:#07171b;border:7px solid #283d3d;border-radius:24px;box-shadow:0 0 0 2px #c2a476,inset 0 0 15px #000; }
.podcast-media.podcast-video .podcast-tv-screen video { width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#07171b; }
.podcast-tv-panel { display:flex;align-items:center;flex-direction:column;gap:15px;padding:5px 0; }
.podcast-tv-dial { display:block;width:38px;height:38px;border-radius:50%;border:3px solid #d7bd87;background:linear-gradient(120deg,#3f5652,#203735);box-shadow:2px 3px 4px #38261670;position:relative; }
.podcast-tv-dial::after { content:'';position:absolute;width:3px;height:25px;left:17px;top:6px;border-radius:2px;background:#dcc48e;transform:rotate(28deg); }
.podcast-tv-dial.small { width:29px;height:29px; }
.podcast-tv-dial.small::after { left:13px;top:4px;height:21px; }
.podcast-tv-speaker { width:38px;flex:1;min-height:32px;border-radius:5px;background:repeating-linear-gradient(0deg,#3a4439 0 2px,transparent 2px 5px);opacity:.8; }
.podcast-tv-light { width:7px;height:7px;border-radius:50%;background:#6e7960;box-shadow:0 0 0 2px #644f38; }
.is-playing .podcast-tv-light { background:#f0cc75;box-shadow:0 0 9px #f0cc75a0; }
.podcast-tv-feet { height:12px;margin:0 12%;border-left:13px solid #574b37;border-right:13px solid #574b37; }
.podcast-media-section { min-width:0;margin-bottom:32px; }
.podcast-media-section-title { margin:18px 0 12px;color:#24464a;font:700 25px/1.3 'DM Sans',sans-serif; }
.podcast-collection-disc.podcast-collection-tv { border-radius:12px;background:var(--collection-deep);border:4px solid #b69b6c;box-shadow:inset 0 0 0 3px #d3c099; }
.podcast-collection-tv span { color:#ead5a7;font-size:20px; }
/* Al ampliar se retira el mueble para dar todo el espacio al video. */
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-stage { min-height:0;height:100%;padding:0;background:#07171b; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv { display:flex;flex:1;min-height:0;height:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen { flex:1;min-height:0;border:0;border-radius:0;box-shadow:none; }
.podcast-video:is(.is-expanded,:fullscreen) :is(.podcast-tv-panel,.podcast-tv-feet) { display:none; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen video { width:100%;height:100%;max-height:100%;aspect-ratio:auto;object-fit:contain; }
@media(max-width:600px) {
 .podcast-tv-stage { padding:20px 12px 14px; }
 .podcast-tv { padding:10px;grid-template-columns:minmax(0,1fr) 28px;gap:8px;border-width:3px;border-radius:16px; }
 .podcast-tv-screen { border-width:4px;border-radius:15px; }
 .podcast-tv-panel { gap:10px;padding:2px 0; }
 .podcast-tv-dial { width:23px;height:23px;border-width:2px; }
 .podcast-tv-dial::after { left:10px;top:4px;height:15px;width:2px; }
 .podcast-tv-dial.small { width:19px;height:19px; }
 .podcast-tv-dial.small::after { left:9px;top:3px;height:13px; }
 .podcast-tv-speaker { width:23px;min-height:20px; }
 .podcast-media-section-title { font-size:23px; }
}
/* Pantalla grande: desactiva la posición absoluta heredada del antiguo video directo. */
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) { grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;justify-items:stretch!important; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-stage { width:100%;min-width:0;box-sizing:border-box;overflow:hidden;align-self:stretch; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen { width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden; }
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen video { position:static!important;inset:auto!important;display:block;width:100%;height:100%;min-height:0;max-width:none;max-height:none;object-fit:contain; }
/* Acabado cálido del mueble y controles de video. */
.podcast-tv { border-color:#684b36;background:repeating-linear-gradient(1deg,#947049 0px,#9c7750 2px,#a17c53 5px,#98734d 8px);box-shadow:0 14px 25px #49332130,inset 0 0 0 2px #dbbf91,inset 0 5px 8px #e9d2a63d; }
.podcast-tv-screen { border-color:#2d423f;box-shadow:0 0 0 2px #d6b985,0 2px 6px #3b281e66; }
.podcast-tv-dial { background:radial-gradient(circle at 35% 25%,#557069,#253c38 75%); }
.gallery-featured-media.podcast-video .gallery-custom-controls.podcast-controls { background:linear-gradient(130deg,#35534c,#233f3b)!important;color:#f8edda;border-top:1px solid #cfb37a77;padding:20px 24px;gap:16px; }
.podcast-video .podcast-controls .podcast-timeline span { color:#eee3cd; }
.podcast-video .podcast-controls .podcast-timeline input { background:linear-gradient(to right,#d8b878 var(--played,0%),#6c8075 var(--played,0%)); }
.podcast-video .podcast-controls input::-webkit-slider-thumb { background:#dec18a;border-color:#f6e4bb; }
.podcast-video .podcast-controls input::-moz-range-thumb { background:#dec18a;border-color:#f6e4bb; }
.podcast-video .gallery-custom-controls.podcast-controls button { color:#f4ead6;border-radius:12px; }
.podcast-video .gallery-custom-controls.podcast-controls button:hover { background:#ffffff12; }
.podcast-video .gallery-custom-controls.podcast-controls [data-media-toggle] { background:linear-gradient(145deg,#f0d9a6,#d2af6b);color:#25443e;border-radius:50%;box-shadow:0 3px 10px #102c3540,inset 0 1px 0 #fff9; }
.podcast-video .podcast-controls select { background:#ffffff0a;border-color:#c9b88d66;color:#f2e7d0;border-radius:10px; }
.podcast-video .podcast-controls .podcast-episode-nav { border-top-color:#ddc59630; }
.podcast-video .podcast-controls .podcast-episode-nav button { border-color:#ddc59640; }
@media(max-width:600px) { .gallery-featured-media.podcast-video .gallery-custom-controls.podcast-controls { padding:15px 12px;gap:12px; } }
/* Pantalla completa de video: imagen protagonista y controles superpuestos. */
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) { position:fixed;grid-template-rows:minmax(0,1fr)!important;background:#000;padding:0;overflow:hidden; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-stage { grid-row:1;grid-column:1;height:100%;background:#000; }
.podcast-video:is(.is-expanded,:fullscreen) :is(.podcast-tv,.podcast-tv-screen) { border:0;border-radius:0;background:#000;box-shadow:none; }
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen video { border:0;border-radius:0;background:#000; }
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) .gallery-custom-controls.podcast-controls { position:absolute;left:0;right:0;bottom:0;width:100%;max-width:none;grid-row:1;grid-column:1;z-index:5;box-sizing:border-box;padding:42px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));gap:6px;border:0;background:linear-gradient(transparent,#000b 45%,#000e)!important;opacity:1;transition:opacity .2s ease; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-controls .podcast-episode-nav { display:none; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-controls .podcast-actions { flex-wrap:nowrap; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-controls .podcast-timeline input { height:4px; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-controls [data-media-toggle] { width:42px;height:42px;box-shadow:none; }
.gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen).podcast-controls-idle:not(:has(:focus-visible)) .podcast-controls { opacity:0;pointer-events:none; }
.podcast-video:is(.is-expanded,:fullscreen).podcast-controls-idle { cursor:none; }
@media(max-width:600px) {
 .gallery-featured-media.podcast-video:is(.is-expanded,:fullscreen) .gallery-custom-controls.podcast-controls { padding:30px 12px max(10px,env(safe-area-inset-bottom));gap:4px; }
 .podcast-video:is(.is-expanded,:fullscreen) .podcast-controls .podcast-timeline { gap:8px; }
}
@media(prefers-reduced-motion:reduce) { .podcast-video:is(.is-expanded,:fullscreen) .podcast-controls { transition:none!important; } }
/* Álbumes desplegables: cabecera completa accionable, indicador y teclado nativos. */
.podcast-album > summary { cursor:pointer;list-style:none;user-select:none; }
.podcast-album > summary::-webkit-details-marker { display:none; }
.podcast-album > summary:focus-visible { outline:3px solid #b79a5f;outline-offset:4px; }
.podcast-album .podcast-album-cue { margin-left:auto;display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:12px;color:#45665e; }
.podcast-album-cue b { font-size:24px; }
.podcast-album .album-hide { display:none; }
.podcast-album[open] .album-hide { display:inline; }
.podcast-album[open] .album-show { display:none; }
.podcast-album[open] .podcast-album-cue b { transform:rotate(180deg); }
.podcast-album .podcast-lesson-items { padding:0 2px 12px; }
/* Identidad institucional por delante del programa. */
.podcast-church-identity { display:flex;align-items:center;gap:9px;flex:none;text-decoration:none;color:#244a5a; }
.podcast-church-identity img { width:54px;height:54px;object-fit:contain; }
.podcast-church-identity span { font:600 15px/1.2 'DM Sans',sans-serif; }
.podcast-church-identity small { display:block;font:400 13px/1.3 'DM Sans',sans-serif; }
.site-header:has(.podcast-church-identity) .navbar { gap:24px; }
.site-header:has(.podcast-church-identity) .brand-sigueme { margin-right:auto; }
.site-header:has(.podcast-church-identity) .brand-sigueme img { max-width:170px; }
.site-header.is-scrolled .podcast-church-identity { color:#fff; }
.site-header.is-scrolled .podcast-church-identity img { filter:brightness(0) invert(1); }
/* Tocar el objeto reproduce; los controles inferiores siguen disponibles. */
.podcast-tv-screen { position:relative; }
.podcast-art-toggle { position:absolute;inset:0;z-index:6;border:0;border-radius:inherit;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center;width:100%;height:100%; }
.podcast-art-hint { display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#173d37c9;color:#f4d79e;font-size:20px;opacity:0;transition:opacity .15s; }
.podcast-art-toggle:hover .podcast-art-hint,.podcast-art-toggle:focus-visible .podcast-art-hint { opacity:1; }
.podcast-art-toggle:focus-visible { outline:3px solid #d7b67a;outline-offset:-5px; }
.is-playing .podcast-art-hint { font-size:0; }
.is-playing .podcast-art-hint::after { content:'Ⅱ';font-size:23px; }
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen .podcast-art-toggle { border-radius:0; }
@media(max-width:600px) {
 .site-header:has(.podcast-church-identity) .navbar { gap:10px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px; }
 .podcast-church-identity img { width:36px;height:40px; }
 .podcast-church-identity span { font-size:11px; }
 .podcast-church-identity small { font-size:10px; }
 .site-header:has(.podcast-church-identity) .brand-sigueme img { max-width:110px; }
 .site-header:has(.podcast-church-identity) .podcast-header-badge { display:none; }
 .podcast-album .podcast-album-cue { gap:6px; }
 .podcast-album-cue .album-show,.podcast-album-cue .album-hide { font-size:10px; }
 .podcast-collection-heading > div:nth-child(2) { min-width:0; }
}
@media(prefers-reduced-motion:reduce) { .podcast-art-hint { transition:none; } }
.podcast-tv-screen .podcast-art-toggle { z-index:1; }
/* Acabado discreto y coherente en superficies accionables. */
.podcast-art-hint { width:50px;height:50px;background:#183d36d9;border:1px solid #f1d9a580;box-shadow:0 4px 16px #08262730;backdrop-filter:blur(4px); }
.podcast-art-hint svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.is-playing .podcast-art-hint::after { content:none; }
.podcast-art-toggle:not(:hover):not(:focus-visible) .podcast-art-hint { opacity:0; }
.podcast-album > summary { margin:12px 0;border-radius:18px;transition:border-color .18s,box-shadow .18s; }
.podcast-album > summary:hover { border-color:#bea56e;box-shadow:0 4px 14px #294b4110; }
.podcast-album .podcast-album-cue { padding:8px 12px;border:1px solid #c8b58b70;border-radius:24px;background:#fffaf17a;gap:9px;color:#4c665b; }
.podcast-album-cue b { display:grid;place-items:center;width:20px;height:20px;font-size:inherit; }
.podcast-album-cue b svg { width:18px;height:18px; }
.podcast-church-logo { display:block;position:relative;width:250px;height:88px;overflow:hidden; }
.podcast-church-identity .podcast-church-logo img { position:absolute;left:-105%;top:50%;transform:translateY(-50%);width:205%;height:auto;max-width:none;object-fit:contain; }
.site-header:has(.podcast-church-identity) .brand-sigueme { display:flex;align-items:center;justify-content:center;width:250px;height:88px;flex:none; }
.site-header:has(.podcast-church-identity) .brand-sigueme img { width:100%;height:88px;max-width:250px;object-fit:contain; }
@media(max-width:600px) {
 .podcast-church-logo { width:150px;height:58px; }
 .site-header:has(.podcast-church-identity) .brand-sigueme { width:150px;height:58px; }
 .site-header:has(.podcast-church-identity) .brand-sigueme img { width:150px;max-width:150px;height:58px; }
 .podcast-album .podcast-album-cue { padding:7px;gap:4px; }
 .podcast-album .album-show,.podcast-album .album-hide { font-size:10px; }
 .podcast-collection-heading { gap:9px; }
}
/* Recorta el separador de la imagen original y alinea identidad con la portada. */
.podcast-church-identity .podcast-church-logo img { left:-125%;width:225%; }
@media(min-width:601px) {
 .site-header:has(.podcast-church-identity) .navbar.container { width:100%;max-width:min(100%,calc(clamp(350px,100svh - 110px,900px) * 2));box-sizing:border-box;padding-left:20px;padding-right:20px;margin-inline:auto; }
}
.podcast-header-music svg > g:first-child { opacity:.15; }
/* Ritmo uniforme del catálogo, con espacio reservado entre secciones. */
.gallery-page #galleryGrid { display:flex;flex-direction:column;gap:36px; }
.podcast-media-section { margin:0;display:flex;flex-direction:column;gap:14px; }
.podcast-media-section-title { margin:0 0 2px; }
.podcast-album.podcast-lesson { margin:0; }
.podcast-album > .podcast-collection-heading { margin:0; }
.podcast-album .podcast-lesson-items { box-sizing:border-box;padding:14px 2px 0;gap:12px; }
.podcast-album-cue b { transition:transform .24s ease; }
@media(max-width:600px) {
 .gallery-page #galleryGrid { gap:28px; }
 .podcast-media-section { gap:12px; }
 .podcast-album .podcast-lesson-items { padding-top:12px;gap:10px; }
}
@media(prefers-reduced-motion:reduce) { .podcast-album-cue b { transition:none; } }
.gallery-page #galleryGrid { align-items:stretch; }
.gallery-page #galleryGrid > .podcast-media-section { width:100%;box-sizing:border-box; }
.podcast-media-section > .podcast-album { width:100%;box-sizing:border-box; }
/* El marco mantiene su ancho desde antes de recibir los metadatos. */
.gallery-featured-media.podcast-media.podcast-video:not(.is-expanded):not(:fullscreen){grid-template-columns:minmax(0,1fr)!important;justify-items:stretch;align-items:stretch;padding:0;background:#e6dcc6}
.podcast-video:not(.is-expanded):not(:fullscreen) .podcast-tv-stage{width:100%;box-sizing:border-box;min-width:0}
.podcast-video:not(.is-expanded):not(:fullscreen) .podcast-tv-screen{aspect-ratio:16/9;width:100%;box-sizing:border-box}
.podcast-video:not(.is-expanded):not(:fullscreen) .podcast-tv-screen video{width:100%;height:100%;min-width:0;object-fit:contain}
/* Oculta también el botón superpuesto, incluso si el cursor sigue sobre el video. */
.podcast-video:is(.is-expanded,:fullscreen).podcast-controls-idle .podcast-art-hint{opacity:0!important;visibility:hidden!important}
.podcast-video:is(.is-expanded,:fullscreen).podcast-controls-idle{cursor:none}
.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen,.podcast-video:is(.is-expanded,:fullscreen) .podcast-tv-screen video{border:0!important;border-radius:0!important;box-shadow:none!important}
.podcast-video:is(.is-expanded,:fullscreen).podcast-controls-idle:has(:focus-visible){cursor:auto}
