/* AETHER polish layer: small, reversible refinements loaded after the legacy inline styles. */

:root {
  --polish-panel: rgba(12, 12, 14, 0.58);
  --polish-panel-strong: rgba(14, 14, 17, 0.78);
  --polish-line: rgba(255, 255, 255, 0.13);
}

.app-header {
  background: linear-gradient(to bottom, rgba(8, 8, 9, 0.42), rgba(8, 8, 9, 0)) !important;
}

.brand img {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.32);
}

.menu-panel {
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(212, 93, 39, 0.12), transparent 48%),
    var(--polish-panel-strong) !important;
  border: 1px solid var(--polish-line) !important;
}

.menu-link {
  border-radius: 10px !important;
}

.menu-link[aria-current="page"] {
  color: #fff !important;
  background: rgba(212, 93, 39, 0.14) !important;
}

.screen .content {
  filter: drop-shadow(0 16px 42px rgba(0, 0, 0, 0.24));
}

#screen-1 .content > p {
  max-width: 34ch !important;
}

#screen-1 .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 36px rgba(212, 93, 39, 0.34) !important;
}

.player-ui,
.catalog-panel,
.mixcloud-panel,
#screen-video .yt-stream-panel,
#screen-10 .legal-yt-panel,
#screen-11 .contact-yt-panel {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.player-ui {
  background:
    radial-gradient(90% 100% at 0% 0%, rgba(212, 93, 39, 0.07), transparent 58%),
    rgba(255, 255, 255, 0.04) !important;
}

.catalog-item:has(.play-btn.is-playing),
.catalog-item:focus-within {
  border-color: rgba(212, 93, 39, 0.42) !important;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(212, 93, 39, 0.12), transparent 56%),
    rgba(255, 255, 255, 0.055) !important;
}

.catalog-item {
  cursor: pointer;
}

.play-btn.is-playing {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 28px rgba(212, 93, 39, 0.36) !important;
}

.slider-indicators {
  gap: 12px !important;
}

.slider-indicators .indicator {
  position: relative;
  width: 28px !important;
  height: 18px !important;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.9;
  background: transparent !important;
}

.slider-indicators .indicator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
  transition: width 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.slider-indicators .indicator.active::before,
.slider-indicators .indicator[aria-pressed="true"]::before {
  width: 40px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(212, 93, 39, 0.34);
}

.slider-indicators .indicator:focus-visible {
  outline: 2px solid rgba(255, 138, 77, 0.92);
  outline-offset: 5px;
}

.circle-btn,
.play-btn,
.mixcloud-primary-link,
.streaming-link-btn,
.btn-primary,
.btn-ghost,
.timeline,
.records-shelf__card {
  -webkit-tap-highlight-color: transparent;
}

.circle-btn:focus-visible,
.play-btn:focus-visible,
.mixcloud-primary-link:focus-visible,
.streaming-link-btn:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.menu-link:focus-visible,
.records-shelf__card:focus-visible,
.timeline:focus-visible,
.subscribe-form input:focus-visible {
  outline: 2px solid rgba(255, 138, 77, 0.92) !important;
  outline-offset: 4px !important;
}

.mixcloud-chip,
.catalog-badge,
.records-shelf-count {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.gig-row {
  border-color: rgba(255, 255, 255, 0.13) !important;
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(212, 93, 39, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.04) !important;
}

.gig-row--next {
  border-color: rgba(212, 93, 39, 0.32) !important;
}

.gig-badge,
.tag {
  letter-spacing: 0.08em;
}

.contact-yt-panel .mixcloud-subtitle {
  max-width: 38ch;
}

.contact-yt-social {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.contact-yt-social .circle-btn {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Screen 3, slide 2+: hint en session-head (sin offsets negativos) */
#sets-slider-1 .slider-item:nth-child(n+2) .swipe-hint,
#sets-slider .swipe-hint {
  opacity: 0.95;
}

/* Último slide de cada carrusel: flecha abajo (sin swipe-text) */
#sets-slider-1 .slider-item:last-child .action-row--scroll-down,
#sets-slider .slider-item:last-child .action-row--scroll-down {
  justify-content: flex-end;
}

.form-msg {
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.subscribe-form input {
  min-width: 0;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

#legal-close.legal-close {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* iOS Safari: display:none en SVG dentro de flex a veces muestra play+pause a la vez */
.play-btn svg.icon-play,
.play-btn svg.icon-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.play-btn .icon-pause {
  display: none !important;
  visibility: hidden !important;
}

.play-btn.is-playing .icon-play {
  display: none !important;
  visibility: hidden !important;
}

.play-btn.is-playing .icon-pause {
  display: block !important;
  visibility: visible !important;
}

.play-btn .icon-play[hidden],
.play-btn .icon-pause[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.yt-sound-btn #icon-vol-on {
  display: none;
}

.yt-sound-btn.is-unmuted #icon-vol-off {
  display: none;
}

.yt-sound-btn.is-unmuted #icon-vol-on {
  display: block;
}

.slider-item .content--narrow {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.session-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.session-head .kicker {
  margin-bottom: 0;
}

.kicker--session {
  color: #fff;
  margin-bottom: 12px;
}

/* Ciclo de Sal y Luz — chip «Novedad» en una sola línea */
#sets-slider-1 .slider-item--new-set .kicker--new-release {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em 0.65em;
  margin-bottom: var(--space-content-sm, 12px);
}

#sets-slider-1 .slider-item--new-set .kicker-new-chip {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-right: 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 93, 39, 0.58);
  color: var(--accent, #d45d27);
  background: rgba(212, 93, 39, 0.16);
  box-shadow: 0 0 20px rgba(212, 93, 39, 0.22);
}

.text-accent {
  color: #d45d27;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.action-row--catalog {
  text-align: left;
  margin-top: 18px;
}

#screen-mixcloud .action-row--catalog {
  width: 100%;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
}

#screen-mixcloud .action-row--catalog .circle-btn {
  margin-left: auto;
  flex-shrink: 0;
}

.form-msg--success p {
  color: inherit;
  margin-top: 8px;
}

#aether-subscribe-again {
  margin-top: 12px;
  padding: 10px 16px;
  background: #f97517;
  color: #e5e5e5;
  border: none;
  font-weight: 500;
}

button.section-link {
  margin-top: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

#screen-9 .records-shelf-head .kicker {
  margin-top: 2px;
  margin-bottom: 12px;
}

.records-shelf__card {
  transition:
    transform 0.24s var(--ease-out, ease),
    box-shadow 0.24s ease,
    border-color 0.24s ease !important;
}

.records-shelf__card:hover {
  transform: translateY(-3px);
}

@media (min-width: 900px) {
  .screen {
    padding-left: max(24px, 6vw) !important;
    padding-right: max(24px, 6vw) !important;
  }

  #screen-3,
  #screen-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .menu-panel {
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    background:
      radial-gradient(120% 110% at 0% 0%, rgba(212, 93, 39, 0.07), #080809 52%),
      #080809 !important;
    box-shadow: var(--shadow-lift), 0 0 50px rgba(0, 0, 0, 0.82) !important;
  }
}

@media (max-width: 540px) {
  .screen {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #screen-3,
  #screen-8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nav-dots {
    right: max(4px, calc(env(safe-area-inset-right, 0px) + 2px)) !important;
    transform: translateY(-50%) !important;
  }

  .nav-dots-track {
    gap: 11px !important;
  }

  .nav-dot-liquid-blob--head {
    width: 5px !important;
  }

  .nav-dot-liquid-blob--trail {
    width: 6px !important;
    height: 6px !important;
  }

  .mixcloud-actions,
  .streaming-links {
    gap: 8px !important;
  }

  .mixcloud-primary-link {
    flex: 1 1 auto;
    min-width: min(100%, 132px);
  }

  #screen-5 .streaming-link-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }

  #screen-mixcloud .mixcloud-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  #screen-mixcloud .mixcloud-primary-link {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .catalog-info h3 {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .catalog-info span {
    font-size: 9px !important;
  }

  .gig-row {
    gap: 14px !important;
    padding: 15px 13px !important;
  }

  .gig-info h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .gig-info p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .subscribe-form {
    gap: 9px !important;
  }

  .subscribe-form input,
  .aether-submit {
    min-height: 44px !important;
  }

  #screen-11 .mixcloud-title {
    margin-bottom: 12px !important;
  }

  #screen-11 .mixcloud-subtitle {
    font-size: 0.92rem !important;
  }

  #sets-slider-1 .slider-item:nth-child(2) .content > div:first-child {
    align-items: center !important;
    margin-bottom: 18px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .records-shelf__card:hover {
    transform: none;
  }
}

/* Móvil: menos trabajo de GPU y scroll más fluido */
@media (pointer: coarse), (max-width: 768px) {
  .noise-overlay {
    display: none;
  }

  .screen {
    content-visibility: auto;
    contain-intrinsic-size: auto 100dvh;
  }

  .screen.is-active .bg-image,
  .screen.is-active .bg-video-container {
    transform: none;
    filter: brightness(0.9) contrast(1.08) saturate(1.1);
  }

  .nav-dots-goo {
    filter: none;
    animation: none !important;
  }

  .menu-panel,
  .floating-mini-player,
  .mixcloud-widget-card,
  .player-ui {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.btn-primary,
.btn-ghost,
.circle-btn,
.play-btn {
  transition:
    transform 0.22s var(--ease-out, ease),
    opacity 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

.btn-primary:active:not(:disabled),
.play-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.subscribe-form input:focus {
  border-color: rgba(212, 93, 39, 0.45) !important;
}

/* --- Descubrimiento de scroll (vertical + horizontal) --- */

@keyframes scroll-cue-bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes scroll-cue-nudge-x {
  0%, 100% { transform: translateX(0); opacity: 0.88; }
  50% { transform: translateX(4px); opacity: 1; }
}

@keyframes scroll-edge-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.72; }
}

/* Avance vertical: flecha y texto con pulso suave hasta el primer scroll */
#reels:not(.has-scrolled-vert) .screen.is-active .action-row .circle-btn {
  animation: scroll-cue-bounce-y 2.2s ease-in-out infinite;
  border-color: rgba(212, 93, 39, 0.38) !important;
  background: rgba(212, 93, 39, 0.12) !important;
  color: rgba(255, 232, 220, 0.98);
}

#reels:not(.has-scrolled-vert) .screen.is-active .action-row .swipe-text::before {
  animation: scroll-edge-glow 2.2s ease-in-out infinite;
}

#reels.has-scrolled-vert .screen.is-active .action-row .circle-btn {
  animation: none;
}

/* Borde inferior: más contenido abajo (pantalla activa, no la última) */
#reels:not(.has-scrolled-vert) .screen.is-active:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  pointer-events: none;
  z-index: 14;
  background: linear-gradient(
    to top,
    rgba(8, 8, 9, 0.92) 0%,
    rgba(8, 8, 9, 0.35) 45%,
    transparent 100%
  );
}

/* Carruseles horizontales: borde derecho + chevron cuando hay más slides */
#screen-3:not(.carousel-at-end)::after,
#screen-8:not(.carousel-at-end)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(56px, 14vw);
  height: 100%;
  z-index: 16;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(8, 8, 9, 0.22) 35%,
    rgba(212, 93, 39, 0.14) 100%
  );
}

/* Indicadores de carrusel */
.slider-indicators .indicator {
  pointer-events: auto;
}

/* Hint en cabecera de slide */
.swipe-hint svg {
  animation: scroll-cue-nudge-x 2.4s ease-in-out infinite;
}

#screen-3.has-scrolled-horiz .swipe-hint svg,
#screen-8.has-scrolled-horiz .swipe-hint svg {
  animation: none;
}

/* Vinilos: arrastre horizontal más visible */
.records-shelf-hint {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62) !important;
}

.records-shelf-hint svg {
  color: var(--accent);
  animation: scroll-cue-nudge-x 2.2s ease-in-out infinite;
}

#screen-4:has(.records-shelf[data-scrolled]) .records-shelf-hint {
  opacity: 0.35;
}

.records-shelf-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(8, 8, 9, 0.65));
  opacity: 0.85;
  z-index: 2;
}

.records-shelf-wrap {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .action-row .circle-btn,
  .swipe-hint svg,
  .records-shelf-hint svg {
    animation: none !important;
  }
}
