* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #100E0C;
  --bg2: #1C1916;
  --bg3: #2C2722;
  --acento: #E0832E;
  --acento-dark: #2B1500;
  --texto: #EDE7DE;
  --texto-mid: #9C948A;
  --texto-low: #6B645C;
  --radio: 10px;
}

body {
  background: var(--bg);
  color: var(--texto);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding-bottom: 160px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  border-bottom: 1px solid var(--bg2);
  gap: 12px;
}

.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  flex-shrink: 0;
}

.logo span {
  color: var(--acento);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border-radius: 20px;
  padding: 8px 14px;
  flex: 1;
}

.search-bar i {
  color: var(--texto-low);
  font-size: 14px;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--texto);
  font-size: 13px;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.search-bar input::placeholder {
  color: var(--texto-low);
}

.redes {
  display: flex;
  gap: 12px;
}

.redes a {
  color: var(--texto-mid);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.redes a:hover {
  color: var(--acento);
}

/* HERO */
.hero {
  padding: 1.2rem 1.5rem 0.5rem;
}

.hero-sub {
  font-size: 13px;
  color: var(--texto-mid);
}
.hero-productor {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: var(--acento);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* FILTROS */
.filtros {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--bg2);
  color: var(--texto-mid);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chip.active {
  background: var(--acento);
  color: var(--acento-dark);
  font-weight: 600;
}

.filtros-extra {
  display: flex;
  gap: 8px;
}

.filtros-extra select {
  background: var(--bg2);
  color: var(--texto-mid);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
}

/* CATÁLOGO */
.catalogo {
  padding: 0 1.5rem;
}

.catalogo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.seccion-titulo {
  font-size: 13px;
  font-weight: 600;
}

.cargando {
  color: var(--texto-low);
  font-size: 13px;
  padding: 1rem 0;
}

/* BEAT ROW */
.beat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background 0.15s;
}

.beat-row:hover {
  background: var(--bg2);
}

.beat-row.activo {
  background: var(--bg2);
}

.beat-play-btn {
  font-size: 18px;
  color: var(--texto-mid);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.beat-row.activo .beat-play-btn {
  color: var(--acento);
}

.beat-info {
  flex: 1;
  min-width: 0;
}

.beat-titulo {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beat-meta {
  font-size: 10px;
  color: var(--texto-mid);
  margin-top: 2px;
}

.beat-count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--texto-low);
  flex-shrink: 0;
}

.beat-row.activo .beat-count {
  color: var(--acento);
}

.beat-share {
  font-size: 13px;
  color: var(--texto-low);
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.beat-share:hover {
  color: var(--acento);
}

.empty-state {
  color: var(--texto-low);
  font-size: 13px;
  padding: 1rem 0;
}

/* REPRODUCTOR */
.reproductor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg2);
  padding: 12px 1.5rem;
  border-top: 1px solid var(--bg3);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rep-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rep-titulo {
  font-size: 13px;
  font-weight: 600;
}

.rep-sub {
  font-size: 10px;
  color: var(--texto-low);
}

.rep-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.rep-controles button {
  background: none;
  border: none;
  color: var(--texto-mid);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.rep-controles button:hover {
  color: var(--texto);
}

#btnPlay {
  font-size: 22px;
  color: var(--acento) !important;
}

.rep-controles button.activo {
  color: var(--acento) !important;
}

.rep-progreso {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rep-progreso span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--texto-low);
  flex-shrink: 0;
}

.barra-progreso {
  flex: 1;
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.barra-fill {
  height: 100%;
  background: var(--acento);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.rep-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.volumen {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volumen i {
  font-size: 15px;
  color: var(--texto-mid);
}

.volumen input[type="range"] {
  width: 70px;
  accent-color: var(--acento);
  cursor: pointer;
}

.velocidad {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px 10px;
}

.velocidad button {
  background: none;
  border: none;
  color: var(--texto-low);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.velocidad button:hover {
  color: var(--texto);
}

#velDisplay {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--acento);
  min-width: 32px;
  text-align: center;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 160px;
  left: 1rem;
  right: 1rem;
  background: var(--bg3);
  border-radius: var(--radio);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--texto-mid);
  z-index: 300;
}

.cookie-banner a {
  color: var(--acento);
}

.cookie-banner button {
  background: var(--acento);
  color: var(--acento-dark);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.cookie-banner.oculto {
  display: none;
}

/* RESPONSIVE */
@media (min-width: 600px) {
  .reproductor {
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
    border-radius: var(--radio) var(--radio) 0 0;
  }

  .cookie-banner {
    max-width: 560px;
    margin: 0 auto;
  }
}