/* public/layout-scenes.css
 *
 * Diseño "Video" en el CELULAR: pantalla de inicio simple (opciones grandes) y, al tocar una, una "escena" a pantalla completa con
 * transicion tipo animacion (destello + entrada), como en los videos promo. Solo aplica con html[data-layout="video"].is-big.
 * No cambia ningun control: la escena muestra el panel de siempre y esconde lo demas. En PC no existe.
 */
#svHome, #svBack, #svFlash, #svHead, #svEmpty { display: none; }

html[data-layout="video"].is-big #svHome.sv-on {
  display: block;
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 16px 120px;
  background:
    radial-gradient(700px 700px at 20% 0%, rgba(var(--accent-rgb) / .28), transparent 70%),
    radial-gradient(800px 800px at 90% 80%, rgba(var(--accent-2-rgb) / .22), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0%, var(--bg) 52%, color-mix(in srgb, var(--accent-2) 12%, var(--bg)) 100%);
}
.sv-home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sv-logo { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.14); box-shadow: 0 0 30px rgba(var(--accent-2-rgb) / .5); background: #000; }
.sv-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-top-r { display: flex; align-items: center; gap: 8px; }
.sv-pillbtn { appearance: none; font: inherit; cursor: pointer; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.10); color: var(--text); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.sv-tag { padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 2px; color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px rgba(var(--accent-rgb) / .4); }
.sv-h1 { margin: 22px 0 6px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 10.5vw, 46px); line-height: 1.05; letter-spacing: -1px; color: var(--text); }
.sv-g { background: linear-gradient(90deg, var(--accent-2), var(--accent-3) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sv-sub { text-align: center; margin: 0 0 18px; color: var(--muted); font-weight: 600; font-size: 16px; }
.sv-tiles { display: flex; flex-direction: column; gap: 12px; }
.sv-tile {
  appearance: none; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 28px; width: 100%;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1.5px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
  animation: sv-tile-in .6s cubic-bezier(.2,.9,.3,1.25) both;
  animation-delay: calc(var(--d, 0) * 70ms + 120ms);
  -webkit-tap-highlight-color: transparent;
}
.sv-tile:active { transform: scale(.97); }
.sv-tile.is-hero { background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); border-color: rgba(255,255,255,.4); }
.sv-ic { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #100a06; background: var(--c, var(--accent-3)); }
.sv-tile.is-hero .sv-ic { background: #fff; }
.sv-ic2 { font-size: 20px; letter-spacing: -3px; padding-right: 3px; }
.sv-tx b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; }
.sv-tx small { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78); }
.sv-tile.is-hero .sv-tx small { color: rgba(255,255,255,.92); }
.sv-more { display: block; margin: 18px auto 0; }
@keyframes sv-tile-in { from { opacity: 0; transform: translateX(-90px) scale(.96); } to { opacity: 1; transform: none; } }

/* destello de la transicion */
html[data-layout="video"].is-big #svFlash { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #fff 0, var(--accent-3) 14%, var(--accent) 34%, transparent 66%); }

/* boton volver */
html[data-layout="video"].is-big.sv-scene-on #svBack { display: flex; position: fixed; top: 12px; left: 12px; z-index: 45; width: 46px; height: 46px; align-items: center; justify-content: center; font-size: 26px; line-height: 1; cursor: pointer; appearance: none; color: var(--text); border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); background: rgba(20,12,8,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* la escena: solo se ve la pieza elegida */
html[data-layout="video"].is-big .tab-bar, html[data-layout="video"].is-big #toolsBar { display: none !important; }
html[data-layout="video"].is-big.sv-scene-on header.app-header, html[data-layout="video"].is-big.sv-scene-on footer { display: none !important; }
html[data-layout="video"].is-big.sv-scene-on main .sv-fp > :not(.sv-keep) { display: none !important; }
html[data-layout="video"].is-big.sv-scene-on main { padding-top: 6px; }
html[data-layout="video"].is-big.sv-scene-on .panel > h2 { display: none !important; }
html[data-layout="video"].is-big.sv-scene-on .sv-target { display: block !important; }
html[data-layout="video"].is-big.sv-scene-on #svHead { display: block; margin: 54px 0 14px; padding: 0 8px; text-align: center; }
html[data-layout="video"].is-big.sv-scene-on #svHead .sv-h1 { margin: 0; }
html[data-layout="video"].is-big.sv-scene-on .panel { box-shadow: none; }
html[data-layout="video"].is-big.sv-scene-on #svEmpty.sv-on { display: block; margin: 8px 8px 0; padding: 26px 20px; text-align: center; border-radius: 28px; border: 1.5px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
#svEmpty p { margin: 0 0 14px; font-weight: 700; font-size: 17px; }
#svEmpty .sv-pillbtn { margin: 4px; }
.sv-in { animation: sv-in .55s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes sv-in { from { opacity: 0; transform: translateY(36px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sv-tile, .sv-in { animation: none; } }
/* "Clonar mi voz" sin cancion abierta: lista para elegirla ahi mismo */
.sv-choose { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.sv-choose-t { margin: 0; font-weight: 800; font-size: 1rem; text-align: center; }
.sv-choose-l { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sv-choose-i { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; font-weight: 700; text-align: left;
  background: rgba(255, 255, 255, 0.07); color: var(--text, #fff); border: 1.5px solid rgba(255, 255, 255, 0.16); box-shadow: none; }
.sv-choose-i span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-choose-i i { flex: none; font-style: normal; min-width: 84px; text-align: center; padding: 9px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; }
.sv-choose-i:active { transform: scale(0.98); }
.sv-choose-e { margin: 0; opacity: 0.8; text-align: center; }
.sv-choose-i { min-height: 48px; padding: 6px 6px 6px 12px; }
.sv-choose-i span { font-size: 0.84rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-choose-i i { min-width: 74px; padding: 7px 10px; font-size: 0.8rem; }

/* fila de "Elegir tu canción" con ▶ (ahora es un div) */
.sv-choose-i { cursor: pointer; }
.sv-choose-i span { flex: 1; }

/* Pantallas (Tararea tu idea, etc.): si la pieza que se quiere mostrar quedo dentro de un grupo que el modo simple (slides.js)
   esconde con .sl-hide, ese grupo se muestra igual mientras dura la pantalla. Antes salia "Primero elige o crea una cancion". */
html.sv-scene-on .sl-hide.sv-keep { display: block !important; }

/* ---------- PC / pantalla grande: mismas opciones grandes, en dos columnas y centradas ---------- */
@media (min-width: 900px) {
  html[data-layout="video"].is-big #svHome.sv-on { padding: 28px 48px 120px; }
  html[data-layout="video"].is-big #svHome.sv-on > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
  html[data-layout="video"].is-big #svHome .sv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  html[data-layout="video"].is-big #svHome .sv-tile { padding: 18px 24px; min-height: 104px; }
  html[data-layout="video"].is-big #svHome .sv-tile.is-hero { grid-column: 1 / -1; min-height: 120px; }
  html[data-layout="video"].is-big #svHome .sv-ic { width: 68px; height: 68px; font-size: 32px; }
  html[data-layout="video"].is-big #svHome .sv-tx b { font-size: 23px; }
  html[data-layout="video"].is-big #svHome .sv-tx span, html[data-layout="video"].is-big #svHome .sv-tx small { font-size: 16px; }
  html[data-layout="video"].is-big #svHome .sv-h1 { font-size: 58px; }
  html[data-layout="video"].is-big #svHome .sv-tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.34); }
  /* pantalla de una opcion (escena): contenido centrado, no estirado a todo el ancho */
  html[data-layout="video"].is-big.sv-scene-on main { max-width: 960px; margin-left: auto; margin-right: auto; }
}


/* ===== Banco de ideas: mosaico destacado (llamativo) ===== */
.sv-tile.is-hot { position: relative; background: linear-gradient(110deg, #ff7a45, #ff3d8b 55%, #9b4dff); background-size: 200% 100%; border-color: rgba(255,255,255,.55); box-shadow: 0 10px 34px rgba(255,61,139,.38); animation: sv-tile-in .6s cubic-bezier(.2,.9,.3,1.25) both, sv-hot-shift 6s ease-in-out infinite alternate; }
.sv-tile.is-hot .sv-ic { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: sv-hot-pulse 1.8s ease-out infinite; }
.sv-tile.is-hot .sv-tx b { font-size: 22px; }
.sv-tile.is-hot .sv-tx small { color: rgba(255,255,255,.95); }
.sv-badge { position: absolute; top: 10px; right: 14px; padding: 3px 10px; border-radius: 99px; background: #fff; color: #c2185b; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
@keyframes sv-hot-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes sv-hot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
html[data-layout="video"].is-big #svHome .sv-tile.is-hot { grid-column: 1 / -1; min-height: 120px; }
@media (prefers-reduced-motion: reduce) { .sv-tile.is-hot, .sv-tile.is-hot .sv-ic { animation: none; } }
