/* Jukebox HMB: carcasa Wurlitzer ochentera con neón. Colores propios del aparato; el resto hereda el tema oscuro de la web. */
.jb {
	--jb-neon1: #ff2bd6; --jb-neon2: #19e3ff; --jb-neon3: #ffb21f; --jb-crom: #cfd3da;
	--jb-wood: #2a1208; --jb-wood2: #4a2412;
	position: relative; max-width: 1080px; margin: 0 auto; padding: 18px 10px 30px; color: #e8e8ee; font-family: var(--font-title, 'Oswald', Impact, sans-serif);
	background: radial-gradient(ellipse at 50% 0, #2b0f3c 0, #12061c 45%, #07030c 100%);
	border-radius: 14px; overflow: hidden; isolation: isolate;
}
.jb::before { /* rejilla retro */
	content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 38%; z-index: -1; opacity: .35;
	background: linear-gradient(transparent, #19e3ff33), repeating-linear-gradient(90deg, #19e3ff55 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, #ff2bd655 0 1px, transparent 1px 36px);
	transform: perspective(300px) rotateX(55deg); transform-origin: bottom;
}
.jb-noscript { color: #ff6; text-align: center; }

.jb-cab {
	position: relative; max-width: 860px; margin: 0 auto; padding: 0 0 14px;
	background: linear-gradient(90deg, #14070a, var(--jb-wood) 12%, var(--jb-wood2) 50%, var(--jb-wood) 88%, #14070a);
	border: 3px solid #0b0405; border-radius: 160px 160px 18px 18px / 120px 120px 18px 18px;
	box-shadow: 0 0 0 4px #8a8f99, 0 0 0 7px #d9dde4, 0 0 0 9px #555a63, 0 0 45px #ff2bd666, 0 0 90px #19e3ff33, inset 0 0 40px #000a;
}

/* Arco superior con tubos de neón y rótulo */
.jb-arco { position: relative; padding: 26px 20px 8px; text-align: center; min-height: 118px; }
.jb-tubo { position: absolute; left: 50%; transform: translateX(-50%); border: 5px solid; border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.jb-tubo1 { top: 8px; width: calc(100% - 36px); height: 108px; border-color: var(--jb-neon1); box-shadow: 0 0 10px var(--jb-neon1), 0 0 22px var(--jb-neon1), inset 0 0 10px #ff2bd699; animation: jbParpadeo 5s infinite; }
.jb-tubo2 { top: 20px; width: calc(100% - 64px); height: 96px; border-color: var(--jb-neon2); box-shadow: 0 0 10px var(--jb-neon2), 0 0 22px var(--jb-neon2), inset 0 0 10px #19e3ff99; }
.jb-tubo3 { top: 32px; width: calc(100% - 92px); height: 84px; border-color: var(--jb-neon3); box-shadow: 0 0 10px var(--jb-neon3), 0 0 18px var(--jb-neon3); opacity: .9; }
.jb-rotulo {
	position: relative; z-index: 1; margin: 30px 0 0; font: 400 clamp(30px, 7vw, 56px)/1 var(--font-display, 'Metal Mania', cursive); letter-spacing: 2px; color: #fff;
	text-shadow: 0 0 6px #fff, 0 0 14px var(--jb-neon1), 0 0 30px var(--jb-neon1), 0 0 56px var(--jb-neon1);
}
.jb-rotulo span { color: var(--jb-neon3); text-shadow: 0 0 6px #fff, 0 0 14px var(--jb-neon3), 0 0 30px var(--jb-neon3); }
.jb-sonando .jb-rotulo { animation: jbPulso 1.2s ease-in-out infinite; }
@keyframes jbPulso { 50% { filter: brightness(1.35); } }
@keyframes jbParpadeo { 0%, 92%, 96%, 100% { opacity: 1; } 94%, 98% { opacity: .55; } }

.jb-cuerpo { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 10px 22px 6px; align-items: start; }

/* Disco de vinilo */
.jb-izq { display: flex; justify-content: center; }
.jb-disco-caja { position: relative; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(#1b1b1b, #000 70%); box-shadow: 0 0 0 6px #b9bec7, 0 0 0 9px #3a3d44, 0 0 25px #19e3ff55, inset 0 0 20px #000; }
.jb-disco {
	position: absolute; inset: 14px; border-radius: 50%;
	background: repeating-radial-gradient(circle at 50% 50%, #0b0b0d 0 2px, #1a1a1f 2px 3px), conic-gradient(from 20deg, transparent 0 20%, #ffffff22 25%, transparent 32% 70%, #ffffff1c 75%, transparent 82%);
	background-blend-mode: normal; animation: jbGira 3.2s linear infinite; animation-play-state: paused;
	box-shadow: inset 0 0 0 1px #000;
}
.jb-sonando .jb-disco { animation-play-state: running; }
.jb-etq { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle, #111 0 7%, transparent 8%), conic-gradient(#cc2200, #ff4500, #daa520, #cc2200); box-shadow: 0 0 0 3px #000; }
.jb-etq::after { content: 'HMB'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--font-title, sans-serif); letter-spacing: 1px; color: #000; padding-top: 22px; }
@keyframes jbGira { to { transform: rotate(360deg); } }
.jb-brazo { position: absolute; right: -22px; top: -8px; width: 8px; height: 118px; background: linear-gradient(90deg, #8d929c, #eceff4, #8d929c); border-radius: 4px; transform-origin: 50% 8px; transform: rotate(18deg); transition: transform .7s ease; box-shadow: 1px 2px 6px #000a; }
.jb-brazo::after { content: ''; position: absolute; bottom: -6px; left: -4px; width: 16px; height: 16px; background: #1a1a1a; border: 2px solid #b9bec7; border-radius: 3px; }
.jb-sonando .jb-brazo { transform: rotate(-14deg); }

/* Visor LCD/fósforo */
.jb-visor { padding: 10px 14px 8px; background: #031208; border: 3px solid #555a63; border-radius: 10px; box-shadow: inset 0 0 22px #000, 0 0 0 2px #cfd3da, 0 0 18px #27ff7a22; position: relative; }
.jb-visor::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 8px; background: repeating-linear-gradient(0deg, #0000 0 2px, #0004 2px 3px); }
.jb-lcd-top { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-title, sans-serif); letter-spacing: 3px; color: #27ff7a; text-shadow: 0 0 6px #27ff7a; }
.jb-lcd-tema { margin-top: 8px; font: 600 clamp(18px, 3.4vw, 26px)/1.15 var(--font-title, sans-serif); color: #7dffb0; text-shadow: 0 0 8px #27ff7a; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-lcd-tema.nuevo { animation: jbAparece .8s ease-out; }
@keyframes jbAparece { from { opacity: 0; filter: blur(5px); letter-spacing: 6px; } }
.jb-lcd-banda { color: #ffd21f; text-shadow: 0 0 6px #ffd21f88; font-size: 15px; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.jb-espectro { display: block; width: 100%; height: 86px; background: #01070355; border-radius: 4px; }

/* Pantalla de vídeo (los dos reproductores de YouTube, visibles) */
.jb-tele { margin-top: 12px; }
.jb-pantalla { position: relative; width: 100%; max-width: 360px; aspect-ratio: 16/9; min-width: 200px; min-height: 200px; margin: 0 auto; background: #000; border: 3px solid #cfd3da; border-radius: 8px; box-shadow: 0 0 0 3px #3a3d44, 0 0 20px #ff2bd655; overflow: hidden; }
.jb-pantalla::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: repeating-linear-gradient(0deg, #0000 0 2px, #0003 2px 3px); }
.jb-yt { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.jb-yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.jb-yt-nota { margin: 6px 0 0; text-align: center; font-size: 11px; color: #9a8fb0; letter-spacing: 1px; }

/* Panel de selección y mandos */
.jb-panel { margin: 10px 18px 0; padding: 14px; background: linear-gradient(#d9dde4, #8d929c 40%, #5d616a); border-radius: 10px; box-shadow: inset 0 2px 3px #fff9, inset 0 -3px 8px #0006, 0 3px 10px #000a; }
.jb-estilos { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.jb-est {
	position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; text-align: left; padding: 8px 10px; min-height: 52px; cursor: pointer;
	background: linear-gradient(#34343c, #17171c); color: #cfd0d8; border: 2px solid #0a0a0d; border-radius: 6px; font: 600 14px/1.1 var(--font-title, sans-serif); letter-spacing: 1px; text-transform: uppercase;
	box-shadow: 0 3px 0 #000, inset 0 1px 0 #fff3; transition: transform .08s, box-shadow .08s;
}
.jb-est small { grid-column: 2; font-size: 10px; color: #8a8a96; letter-spacing: 1px; }
.jb-num { grid-row: span 2; font: 700 12px/1 var(--font-title, sans-serif); font-style: normal; color: #111; background: #cfd3da; padding: 4px 5px; border-radius: 3px; letter-spacing: 0; }
.jb-est:hover { filter: brightness(1.15); }
.jb-est.on { transform: translateY(2px); box-shadow: 0 1px 0 #000, 0 0 16px var(--jb-neon1), inset 0 0 12px #ff2bd666; background: linear-gradient(#5a1550, #2a0828); color: #fff; border-color: var(--jb-neon1); text-shadow: 0 0 8px var(--jb-neon1); }
.jb-est.on .jb-num { background: var(--jb-neon3); }
.jb-est:focus-visible, .jb-btn:focus-visible, .jb-vol input:focus-visible { outline: 3px solid var(--jb-neon2); outline-offset: 2px; }

.jb-mandos { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.jb-btn { cursor: pointer; border: 2px solid #0a0a0d; border-radius: 8px; color: #fff; font: 700 15px var(--font-title, sans-serif); letter-spacing: 2px; padding: 10px 18px; min-height: 48px; background: linear-gradient(#34343c, #17171c); box-shadow: 0 3px 0 #000, inset 0 1px 0 #fff3; }
.jb-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.jb-btn.on { background: linear-gradient(#0c4a5a, #052630); box-shadow: 0 3px 0 #000, 0 0 14px var(--jb-neon2); color: #aef; }
.jb-play { font-size: 26px; padding: 6px 30px; background: linear-gradient(#cc2200, #7a1000); border-color: #3a0600; text-shadow: 0 0 8px #ff8; }
.jb-sonando .jb-play { box-shadow: 0 3px 0 #000, 0 0 18px #ff4500; }
.jb-vol { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 1 1 180px; max-width: 320px; background: #17171c; padding: 8px 12px; border-radius: 8px; border: 2px solid #0a0a0d; }
.jb-vol span { font: 700 13px var(--font-title, sans-serif); letter-spacing: 2px; color: var(--jb-neon3); }
.jb-vol input { flex: 1; accent-color: var(--jb-neon1); min-width: 90px; height: 28px; }

.jb-pie { max-width: 780px; margin: 18px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: #a99fbb; }
.jb-pie a { color: var(--jb-neon2); }

@media (max-width: 720px) {
	.jb { padding: 10px 4px 22px; border-radius: 8px; }
	.jb-cab { border-radius: 90px 90px 14px 14px / 70px 70px 14px 14px; box-shadow: 0 0 0 3px #8a8f99, 0 0 0 5px #d9dde4, 0 0 30px #ff2bd666; }
	.jb-arco { padding: 18px 10px 4px; min-height: 84px; }
	.jb-tubo1 { height: 76px; width: calc(100% - 20px); }
	.jb-tubo2 { height: 66px; width: calc(100% - 40px); }
	.jb-tubo3 { height: 56px; width: calc(100% - 60px); }
	.jb-rotulo { margin-top: 18px; }
	.jb-cuerpo { grid-template-columns: 1fr; padding: 8px 12px 4px; gap: 10px; }
	.jb-disco-caja { width: 120px; height: 120px; }
	.jb-disco { inset: 9px; }
	.jb-brazo { height: 74px; right: -14px; }
	.jb-panel { margin: 8px 8px 0; padding: 10px; }
	.jb-estilos { grid-template-columns: repeat(2, 1fr); }
	.jb-mandos { justify-content: center; }
	.jb-vol { max-width: none; margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.jb-tubo1, .jb-sonando .jb-rotulo, .jb-lcd-tema.nuevo { animation: none; }
	.jb-disco { animation-duration: 8s; }
}

.jb-hero { height: 190px; margin: -18px -10px 14px; background: center 30% / cover no-repeat; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); opacity: .85; }
@media (max-width: 720px) { .jb-hero { height: 110px; margin: -10px -4px 8px; } }
.jb-cuerpo > *, .jb-centro, .jb-visor, .jb-estilos { min-width: 0; }
.jb-rotulo { animation: none !important; opacity: 1 !important; }

/* Portada en la etiqueta del vinilo: círculo grande que gira con el disco */
.jb-etq { overflow: hidden; transition: inset .5s ease; }
.jb-etq.con-cover { inset: 2%; background: #000; box-shadow: 0 0 0 2px #000; }
.jb-etq.con-cover::after { display: none; }
.jb-cov { position: absolute; inset: 0; border-radius: 50%; background: center / cover no-repeat; opacity: 0; transition: opacity .9s ease; }
.jb-cov.on { opacity: 1; }
.jb-eje { position: absolute; z-index: 2; left: 50%; top: 50%; width: 6%; height: 6%; transform: translate(-50%, -50%); border-radius: 50%; background: #0b0b0d; box-shadow: 0 0 0 2px #cfd3da, inset 0 0 3px #000; }

/* Banners a la izquierda del vídeo */
.jb-tele { display: flex; gap: 12px; align-items: flex-start; }
.jb-video { flex: 1 1 auto; min-width: 0; }
.jb-banners { flex: 0 0 132px; display: flex; flex-direction: column; gap: 10px; }
.jb-ban { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; min-height: 100px; text-align: center; text-decoration: none; color: #fff; background: #120818 center / cover no-repeat; border: 2px solid #cfd3da; border-radius: 8px; box-shadow: 0 0 0 2px #3a3d44, 0 0 14px #19e3ff44; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.jb-ban::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#0008, #000b); }
.jb-ban > * { position: relative; }
.jb-ban:hover, .jb-ban:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px #3a3d44, 0 0 18px var(--jb-neon1); }
.jb-ban img { max-width: 100%; height: auto; max-height: 46px; object-fit: contain; }
.jb-ban-esl img { max-height: 40px; }
.jb-ban strong { font: 400 16px/1 var(--font-display, 'Metal Mania', cursive); color: var(--jb-neon3); text-shadow: 0 0 8px var(--jb-neon3); }
.jb-ban span { font: 600 11px/1.15 var(--font-title, sans-serif); letter-spacing: 1px; text-transform: uppercase; color: #e8e8ee; }
@media (max-width: 560px) {
	.jb-tele { flex-direction: column-reverse; align-items: stretch; }
	.jb-banners { flex-direction: row; flex-basis: auto; }
	.jb-ban { flex: 1; min-height: 88px; }
}

/* Escritorio: disco más pequeño y banners alineados bajo el disco, a la altura del vídeo */
.jb-cuerpo { grid-template-columns: 170px 1fr; }
.jb-disco-caja { width: 160px; height: 160px; }
.jb-brazo { height: 98px; right: -18px; }
.jb-tele { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: stretch; margin-top: 0; }
.jb-banners { flex: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jb-banners .jb-ban { flex: 1 1 0; min-height: 0; }
.jb-video { align-self: start; }
@media (max-width: 720px) {
	.jb-cuerpo { grid-template-columns: 1fr; }
	.jb-tele { grid-template-columns: 1fr; gap: 10px; }
	.jb-video { order: 1; }
	.jb-banners { order: 2; flex-direction: row; }
	.jb-banners .jb-ban { min-height: 88px; }
}
@media (min-width: 721px) {
	.jb-pantalla { max-width: 480px; margin: 0; }
	.jb-banners { height: min(270px, calc((100vw - 340px) * .5625)); align-self: start; }
	.jb-yt-nota { text-align: left; }
}

/* Escritorio: banners + vídeo ocupan todo el ancho de la tarjeta de estilos */
@media (min-width: 721px) {
	.jb-tele { margin: 0 -4px; grid-template-columns: minmax(0, 1fr) minmax(0, 54%); gap: 14px; align-items: stretch; }
	.jb-pantalla { max-width: none; width: 100%; margin: 0; }
	.jb-video { align-self: stretch; }
	.jb-banners { height: auto; align-self: stretch; gap: 12px; }
	.jb-ban { padding: 12px 14px; gap: 6px; }
	.jb-ban img { max-height: 74px; }
	.jb-ban-esl img { max-height: 56px; }
	.jb-ban strong { font-size: 24px; }
	.jb-ban span { font-size: 13px; letter-spacing: 2px; }
	.jb-yt-nota { grid-column: 1 / -1; text-align: center; margin-top: 2px; }
}
@media (max-width: 720px) { .jb-yt-nota { order: 3; } }

/* Rótulo deslizante BANDA · TEMA sobre la parte baja del vídeo (deja libre la esquina derecha para la marca de YouTube) */
.jb-rot { position: absolute; z-index: 6; left: 0; right: 64px; bottom: 0; height: 24px; overflow: hidden; pointer-events: none; display: flex; align-items: center; background: linear-gradient(90deg, #000b 0, #000a 80%, transparent); border-top: 1px solid #19e3ff55; }
.jb-rot-in { display: inline-flex; white-space: nowrap; padding: 0 10px; font: 600 12px/1 var(--font-title, sans-serif); letter-spacing: 2px; text-transform: uppercase; color: #7dffb0; text-shadow: 0 0 6px #27ff7a; }
.jb-rot-in.mueve { padding: 0; animation: jbRot linear infinite; }
.jb-rot-in.mueve span { flex: none; }
@keyframes jbRot { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .jb-rot-in.mueve { animation: none; } }

/* Controles justo bajo el vídeo (no se pierden al elegir estilo) */
.jb-barra { grid-column: 1 / -1; margin: 0 -4px; padding: 10px 12px; background: linear-gradient(#d9dde4, #8d929c 40%, #5d616a); border-radius: 10px; box-shadow: inset 0 2px 3px #fff9, inset 0 -3px 8px #0006, 0 3px 10px #000a; }
.jb-barra .jb-mandos { margin-top: 0; justify-content: center; }
.jb-barra .jb-vol { margin-left: 0; max-width: 360px; }
.jb-elige { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.jb-elige span { font: 600 12px var(--font-title, sans-serif); letter-spacing: 2px; text-transform: uppercase; color: #2a2d33; }
.jb-elige .jb-btn { min-height: 40px; padding: 6px 14px; font-size: 13px; }
@media (max-width: 720px) {
	.jb-tele { display: contents; }
	.jb-izq { order: 0; } .jb-centro { order: 1; }
	.jb-video { order: 2; } .jb-yt-nota { order: 3; } .jb-barra { order: 4; margin: 0; }
	.jb-banners { order: 5; }
	.jb-barra .jb-mandos { flex-wrap: nowrap; gap: 8px; }
	.jb-barra .jb-vol { flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px 8px; }
	.jb-barra .jb-btn { padding: 8px 12px; }
	.jb-barra .jb-play { padding: 6px 18px; }
	.jb-disco-caja { width: 96px; height: 96px; }
	.jb-brazo { height: 58px; right: -10px; }
}
.jb-vol { min-width: 0; }
.jb-vol input { min-width: 0; width: 100%; }
@media (max-width: 720px) { .jb-barra .jb-vol { flex: 1 1 0; } .jb-barra .jb-btn { padding: 8px 10px; } }
