/* rocola de la landing · ver rocola.js */
.roc { --roc: #ff2bd6; --beat: .34s; display: grid; gap: 18px; color: #f2e8d8; }
.roc-R1 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: clamp(18px, 3vw, 32px); }
@media (max-width: 1000px) { .roc-R1 { grid-template-columns: minmax(0, 1fr); } .roc-R1 .roc-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } }
.roc-player { display: grid; grid-template-columns: minmax(140px, 230px) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: center; border: 1px solid #3d3050; background: linear-gradient(135deg, rgba(19, 13, 31, .95), rgba(7, 5, 13, .95)); padding: clamp(16px, 2.6vw, 26px); box-shadow: 0 40px 100px -60px var(--roc); min-width: 0; }
@media (max-width: 560px) { .roc-player { grid-template-columns: minmax(0, 1fr); } .roc-cover { max-width: 260px; } }
.roc-cover { position: relative; aspect-ratio: 1; width: 80%; isolation: isolate; }
.roc-cover img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid #3d3050; box-shadow: 0 18px 40px -18px #000; }
.roc-disc { position: absolute; z-index: 1; inset: 4%; border-radius: 50%; background: repeating-radial-gradient(circle, #0b0712 0 2px, #17101f 2px 4px); border: 1px solid #3d3050; display: grid; place-items: center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.roc-disc span { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--roc); display: grid; place-items: center; font: 600 13px/1 'JetBrains Mono', monospace; color: #07050d; }
.roc.is-playing .roc-disc { transform: translateX(22%); }
.roc.is-playing .roc-disc span { animation: rocspin 1.8s linear infinite; }
.roc-cover.radio img { visibility: hidden; }
.roc-cover.radio { width: 100%; }
.roc-cover.radio .roc-disc { inset: 0; transform: none !important; }
.roc-cover.radio .roc-disc span { width: 40%; font-size: 18px; }
@keyframes rocspin { to { transform: rotate(360deg); } }
.roc-body { display: grid; gap: 14px; min-width: 0; }
.roc-title { display: grid; gap: 4px; }
.roc-name { font: 400 clamp(20px, 2.4vw, 28px)/1.05 'Asteroid Blocks', 'Chakra Petch', monospace; color: var(--roc); text-transform: lowercase; white-space: nowrap; }
.roc-sub { font: 600 16px/1.3 'Chakra Petch', sans-serif; }
.roc-meta { font: 400 13px/1.3 'JetBrains Mono', monospace; color: #c4b8a2; }
.roc-styles { display: flex; flex-wrap: wrap; gap: 6px; }
.roc-styles:empty { display: none; }
.roc-styles button { min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid #3d3050; color: #c4b8a2; font: 500 13px/1 'JetBrains Mono', monospace; cursor: pointer; }
.roc-styles button[aria-pressed="true"] { border-color: #ffb21a; color: #120900; background: #ffb21a; }
.roc-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-width: 0; align-items: center; }
.roc-play { width: 56px; height: 56px; border: 0; background: #ffb21a; color: #120900; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 #7a4a00; }
.roc-play svg { width: 20px; height: 20px; fill: currentColor; }
.roc.is-playing .roc-play { animation: rocbeat var(--beat) ease-out infinite; }
@keyframes rocbeat { 0% { box-shadow: 0 3px 0 #7a4a00, 0 0 0 0 rgba(255, 178, 26, .55); } 70%, 100% { box-shadow: 0 3px 0 #7a4a00, 0 0 0 10px rgba(255, 178, 26, 0); } }
.roc-wave { height: 48px; display: flex; align-items: center; gap: 1px; cursor: pointer; touch-action: none; min-width: 0; }
.roc-wave i { flex: 1 1 0; min-width: 0; background: #3d3050; border-radius: 1px; }
.roc-wave i.on { background: var(--roc); }
.roc-wave:focus-visible { outline: 2px solid #ffb21a; outline-offset: 4px; }
.roc-time { font: 500 13px/1 'JetBrains Mono', monospace; color: #c4b8a2; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.roc-note { font: 400 13px/1.45 'JetBrains Mono', monospace; color: #8c8373; }
/* lista (R1) */
.roc-list { display: grid; gap: 18px; min-width: 0; }
.roc-group { display: grid; gap: 2px; }
.roc-group h4 { margin: 0 0 6px; font: 500 11px/1 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: #8c8373; }
.roc-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; min-height: 60px; padding: 6px 10px 6px 6px; background: transparent; border: 1px solid transparent; color: inherit; cursor: pointer; }
.roc-item:hover { background: rgba(255, 255, 255, .03); border-color: #2a2036; }
.roc-item.on { border-color: #3d3050; background: rgba(19, 13, 31, .9); }
.roc-item img, .roc-item .sw { grid-row: span 2; width: 48px; height: 48px; object-fit: cover; }
.roc-item .sw { border-radius: 50%; background: radial-gradient(circle, var(--c) 0 26%, #0b0712 27% 100%); border: 1px solid #3d3050; }
.roc-item .n { font: 600 16px/1.2 'Chakra Petch', sans-serif; overflow-wrap: anywhere; }
.roc-item .m { font: 400 12px/1.3 'JetBrains Mono', monospace; color: #c4b8a2; grid-column: 2; }
.roc-item .eq { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 2px; align-items: flex-end; height: 16px; opacity: 0; }
.roc-item .eq i { width: 4px; height: 30%; background: #ffb21a; }
.roc-item.playing .eq { opacity: 1; }
.roc-item.playing .eq i { animation: roceq var(--beat) ease-in-out infinite alternate; }
.roc-item.playing .eq i:nth-child(2) { animation-delay: calc(var(--beat) * -.33); }
.roc-item.playing .eq i:nth-child(3) { animation-delay: calc(var(--beat) * -.66); }
@keyframes roceq { from { height: 25%; } to { height: 100%; } }
/* vitrina (R2): carrusel con flechas, pestañas de grupo, arrastre y barra propia */
.roc-car { display: grid; gap: 12px; min-width: 0; }
.roc-car-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.roc-car-tabs { display: flex; border: 1px solid #3d3050; }
.roc-car-tabs button { min-height: 44px; padding: 0 16px; background: none; border: 0; color: #c4b8a2; font: 500 12px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.roc-car-tabs button[aria-pressed="true"] { background: #1c1430; color: #f2e8d8; box-shadow: inset 0 -2px 0 #ffb21a; }
.roc-car-nav { display: flex; gap: 6px; }
.roc-car-nav button { width: 44px; height: 44px; display: grid; place-items: center; background: #130d1f; border: 1px solid #3d3050; color: #ffb21a; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.roc-car-nav button:hover:not(:disabled) { border-color: #ffb21a; background: #1c1430; }
.roc-car-nav button:disabled { opacity: .3; cursor: default; }
.roc-car-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.roc-car.fits .roc-car-nav, .roc-car.fits .roc-car-prog { display: none; }
.roc-shelf { position: relative; display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; padding: 10px 2px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.roc-shelf::-webkit-scrollbar { display: none; }
.roc-car.at-start .roc-shelf { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent 100%); }
.roc-car.at-end .roc-shelf { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px); mask-image: linear-gradient(90deg, transparent 0, #000 48px); }
.roc-car.fits .roc-shelf { -webkit-mask-image: none; mask-image: none; cursor: default; }
.roc-shelf.drag { cursor: grabbing; scroll-snap-type: none; }
.roc-shelf.drag .roc-sleeve { pointer-events: none; }
.roc-shelf:focus-visible { box-shadow: 0 0 0 2px #ffb21a; }
.roc-sep { flex: 0 0 1px; width: 1px; position: relative; align-self: stretch; background: linear-gradient(#3d3050, transparent); margin-inline: 4px; }
.roc-sep span { position: absolute; top: 0; left: 10px; font: 500 10px/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #8c8373; white-space: nowrap; display: none; }
.roc-sleeve { flex: 0 0 clamp(148px, 16vw, 196px); scroll-snap-align: start; display: grid; align-content: start; gap: 10px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; -webkit-user-select: none; user-select: none; }
.roc-sleeve .art { position: relative; display: block; }
.roc-sleeve img, .roc-sleeve .vinyl { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #3d3050; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.roc-sleeve:hover img, .roc-sleeve:hover .vinyl { transform: translateY(-4px); box-shadow: 0 16px 30px -14px var(--roc); }
.roc-sleeve.on img, .roc-sleeve.on .vinyl { transform: translateY(-6px); border-color: #ffb21a; box-shadow: 0 0 0 1px #ffb21a, 0 18px 34px -14px var(--roc); }
.roc-sleeve:focus-visible { outline: 2px solid #ffb21a; outline-offset: 4px; }
.roc-sleeve .vinyl { border-radius: 50%; background: radial-gradient(circle, var(--c) 0 22%, #07050d 23% 25%, transparent 26%), repeating-radial-gradient(circle, #0b0712 0 2px, #17101f 2px 4px); display: grid; place-content: center; text-align: center; color: #07050d; }
.roc-sleeve .vinyl b { font: 700 18px/1 'JetBrains Mono', monospace; } .roc-sleeve .vinyl small { font: 500 10px/1 'JetBrains Mono', monospace; }
.roc-sleeve.playing .vinyl { animation: rocspin 2.4s linear infinite; }
.roc-sleeve .now { position: absolute; right: 8px; bottom: 8px; display: none; gap: 2px; align-items: flex-end; height: 18px; padding: 4px 5px; background: rgba(7, 5, 13, .85); border: 1px solid #ffb21a; }
.roc-sleeve.on .art .now { transform: translateY(-6px); }
.roc-sleeve .now i { width: 3px; height: 40%; background: #ffb21a; }
.roc-sleeve.playing .now { display: flex; }
.roc-sleeve.playing .now i { animation: roceq var(--beat) ease-in-out infinite alternate; }
.roc-sleeve.playing .now i:nth-child(2) { animation-delay: calc(var(--beat) * -.33); } .roc-sleeve.playing .now i:nth-child(3) { animation-delay: calc(var(--beat) * -.66); }
.roc-sleeve .cap { display: grid; gap: 3px; font: 600 15px/1.25 'Chakra Petch', sans-serif; }
.roc-sleeve .cap small { font: 400 12px/1.3 'JetBrains Mono', monospace; color: #c4b8a2; }
.roc-car-prog { position: relative; height: 3px; background: #2a2036; }
.roc-car-prog i { position: absolute; top: 0; bottom: 0; left: 0; background: #ffb21a; transition: left .15s linear; }
.roc-R2 .roc-player { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); }
@media (max-width: 560px) { .roc-R2 .roc-player { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .roc *, .roc { animation: none !important; transition: none !important; } }

/* R3: el gráfico suena; abajo, un reproductor compacto */
.roc-R3 .roc-player { grid-template-columns: 96px minmax(0, 1fr); padding: 14px 16px; }
.roc-R3 .roc-name { font-size: 20px; }
.roc-R3 .roc-note { display: none; }
@media (max-width: 560px) { .roc-R3 .roc-player { grid-template-columns: 72px minmax(0, 1fr); } .roc-R3 .roc-cover { max-width: 72px; } .roc-R3 .roc-ctrl { grid-column: 1 / -1; } .roc-R3 .roc-styles { grid-column: 1 / -1; } .roc-R3 .roc-body { display: contents; } }
