/* Ver ejercicio del Gym (2026-11-07). A: en la serie, el video se ve completo. B: el visor de técnica dentro de la app. */

/* A · La portada de la serie: el video vertical completo al centro y su póster difuminado a los lados.
   El nombre y el avance bajan debajo del video para no tapar el título que el video ya trae. */
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique{overflow:visible;background:transparent;border-radius:0}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique::after{display:none}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique>details:has(video){position:relative;overflow:hidden;border-radius:0 0 22px 22px;background:#0b0d18}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique .gym-cover-blur{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(20px) brightness(.5) saturate(1.15);pointer-events:none}
/* Portada al estilo YouCan (David, 2026-11-09): cuerpo completo, ~media pantalla, estudio carbón que se funde a negro. */
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique>details:has(video){border-radius:0;background:radial-gradient(120% 80% at 50% 35%,#2b2d31 0%,#16171a 55%,#000 100%)}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique>details:has(video)::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:22%;background:linear-gradient(transparent,#000);pointer-events:none}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique .gym-cover-blur{display:none}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c>.gym-technique .gym-demo-video{position:relative;z-index:1;display:block;width:100%;height:48svh;min-height:300px;max-height:460px;aspect-ratio:auto;object-fit:contain;background:transparent;border-radius:0;cursor:zoom-in}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c .gym-cover{position:static;padding:12px 16px 0}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c .gym-cover :is(h3,.gym-session-count){text-shadow:none}

/* «Ver técnica»: en la portada, abajo a la derecha del video; fuera de la sesión, debajo del video. */
.wellness.is-gym .gym-technique .gym-technique-open{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 14px;border-radius:99px;border:1.5px solid #ffffff38;background:#0d0f1cd9;color:#fff;font-size:14px;font-weight:800}
.wellness.is-gym .gym-technique .gym-technique-open:hover{background:#0d0f1c;border-color:#ffffff66}
.wellness.is-gym .gym-technique .gym-technique-open .gym-icon{width:16px;height:16px;stroke-width:2.2}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c .gym-technique-open{position:absolute;z-index:2;right:10px;bottom:10px;width:44px;height:44px;padding:0}
/* En la portada solo el icono: con texto tapaba la esquina del video (la etiqueta queda en aria-label). */
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c .gym-technique-open span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wellness.is-gym .gym-exercise-screen.gym-session-active.gym-serie-c .gym-technique-open .gym-icon{width:20px;height:20px}
.wellness.is-gym .gym-exercise-screen:not(.gym-serie-c) .gym-technique-open{display:flex;margin:10px auto 0}
.wellness.is-gym .gym-technique .gym-demo-video{cursor:zoom-in}

/* B · El visor: pantalla propia sobre todo (también sobre la barra de abajo). */
html.gym-viewer-open,html.gym-viewer-open body{overflow:hidden}
dialog.gym-viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:#f3f4f6;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;font-family:'Nunito Sans',system-ui,sans-serif}
dialog.gym-viewer::backdrop{background:#000}
dialog.gym-viewer button{min-height:44px;margin:0;border:0;border-radius:99px;background:transparent;color:#fff;font:inherit;font-weight:800;box-shadow:none;transform:none}
dialog.gym-viewer button:hover{background:transparent}
dialog.gym-viewer button:focus-visible,dialog.gym-viewer input:focus-visible{outline:3px solid #f0775a;outline-offset:2px}
dialog.gym-viewer .gym-icon{width:22px;height:22px}

.gym-viewer-stage{position:sticky;top:0;z-index:2;background:#000;padding-top:env(safe-area-inset-top,0px)}
.gym-viewer-media{position:relative;display:flex;align-items:center;justify-content:center;height:calc(100svh - 172px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:260px;padding:58px 12px 0;transition:height .22s ease}
.gym-viewer.is-compact .gym-viewer-media{height:36svh;min-height:200px;padding-top:8px}
.gym-viewer-video{display:block;flex:none;height:100%;width:auto;max-width:100%;max-height:100%;aspect-ratio:9/16;object-fit:contain;border-radius:14px;background:#0b0d18;cursor:pointer}
.gym-viewer-media.is-missing{height:auto;min-height:0;padding:64px 12px 8px}
.gym-viewer-missing{margin:0;padding:24px;text-align:center;color:#d9d7e6;font-size:15px}
.gym-viewer-top{position:absolute;top:8px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}
.gym-viewer-top button{pointer-events:auto}
dialog.gym-viewer .gym-viewer-round,dialog.gym-viewer .gym-viewer-round:hover{display:grid;place-items:center;width:44px;height:44px;padding:0;background:#ffffff1f;color:#fff}
.gym-viewer.is-compact .gym-viewer-top{top:12px}
.gym-viewer.is-compact .gym-viewer-round{background:#0d0f1cd0}

.gym-viewer-controls{padding:8px 16px 12px}
.gym-viewer-seek{display:block;width:100%;height:28px;min-height:28px;margin:0;padding:0;border:0;background:transparent;accent-color:#f0775a}
.gym-viewer-times{display:flex;justify-content:space-between;margin-top:2px;font-size:12px;font-weight:700;color:#c9c8d4;font-variant-numeric:tabular-nums}
.gym-viewer-row{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.gym-viewer-speed{display:flex;gap:2px;padding:3px;border-radius:99px;background:#ffffff1f}
dialog.gym-viewer .gym-viewer-speed button{min-width:54px;padding:0 12px;color:#ecebf3;font-size:15px}
dialog.gym-viewer .gym-viewer-speed button[aria-pressed=true],dialog.gym-viewer .gym-viewer-speed button[aria-pressed=true]:hover{background:#f0775a;color:#1f2340}
dialog.gym-viewer .gym-viewer-play,dialog.gym-viewer .gym-viewer-play:hover{display:grid;place-items:center;width:58px;height:58px;padding:0;background:#fff;color:#000}
.gym-viewer.is-compact .gym-viewer-controls{padding-bottom:8px}

/* Debajo: cómo se hace y tu historial. */
.gym-viewer-info{position:relative;min-height:100svh;padding:4px 16px calc(28px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:#000}
dialog.gym-viewer .gym-viewer-handle{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:6px 0 4px;border-radius:0;color:#c9c6d8;font-size:13px;font-weight:700}
.gym-viewer-handle::before{content:'';width:38px;height:4px;border-radius:9px;background:#ffffff55}
.gym-viewer.is-compact .gym-viewer-handle{visibility:hidden;height:12px;min-height:12px;padding:0}
.gym-viewer-info h2{margin:10px 0 0;font:800 24px/1.15 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.02em;color:#fff}
.gym-viewer-muscles{margin:4px 0 0;color:#b9b6cb;font-size:14px;font-weight:600}
.gym-viewer-tabs{display:grid;grid-template-columns:1fr 1fr;margin:14px 0 0;border-bottom:1px solid #353a5a}
dialog.gym-viewer .gym-viewer-tabs button{min-height:48px;border-radius:0;color:#b9b6cb;font-size:15px}
dialog.gym-viewer .gym-viewer-tabs button[aria-selected=true]{color:#fff;box-shadow:inset 0 -3px #f0775a}
.gym-viewer-panel{padding:16px 0 0}
.gym-viewer-key{padding:12px 14px;border-radius:14px;background:#f0775a1f}
.gym-viewer-key small{display:block;margin-bottom:4px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#f59a82}
.gym-viewer-key p{margin:0;font-size:15.5px;line-height:1.45;font-weight:700;color:#fff}
.gym-viewer-notes{margin:14px 0 0;font-size:15px;line-height:1.55;color:#e2e0ee;white-space:pre-line}
.gym-viewer-empty{margin:4px 0 0;font-size:15px;line-height:1.5;color:#c9c6d8}
.gym-viewer-history{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.gym-viewer-history li{display:grid;gap:3px;padding:11px 13px;border-radius:14px;background:#242842}
.gym-viewer-history strong{font-size:13px;color:#b9b6cb}
.gym-viewer-history strong::first-letter{text-transform:uppercase}
.gym-viewer-history span{font-size:15px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}

@media (min-width:760px){.gym-viewer-info{max-width:640px;margin:0 auto}.gym-viewer-controls{max-width:640px;margin:0 auto}}
@media (prefers-reduced-motion:reduce){.gym-viewer-media{transition:none}}
