/* VallenaTube — identidad propia, tema oscuro y claro */
:root,
:root[data-theme="dark"] {
  --bg: #090b10;
  --surface: #12151c;
  --surface-2: #191d26;
  --surface-3: #222734;
  --border: #2a303d;
  --border-strong: #3a4354;
  --text: #f7f8fc;
  --text-2: #a8afbd;
  --accent: #ff596b;
  --accent-2: #ff7a68;
  --accent-fill: #c62d46;
  --accent-hover: #d83a53;
  --accent-soft: rgba(255, 89, 107, .14);
  --accent-contrast: #151720;
  --brand-word: #f7f8fc;
  --brand-tube: #ff596b;
  --chip-active: #c62d46;
  --chip-active-text: #ffffff;
  --live-bg: #f04455;
  --live-text: #ffffff;
  --coleccion: #e6b94f;
  --coleccion-fill: #dfae3f;
  --coleccion-text: #201707;
  --coleccion-blue: #5266e9;
  --gema: #44c997;
  --enterrada: #e28a45;
  --overlay: rgba(3, 5, 10, 0.72);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .2);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --surface-3: #e3e6ef;
  --border: #dfe3ec;
  --border-strong: #c7cdd9;
  --text: #151720;
  --text-2: #626978;
  --accent: #c62d46;
  --accent-2: #a9203a;
  --accent-fill: #c62d46;
  --accent-hover: #a9203a;
  --accent-soft: rgba(198, 45, 70, .1);
  --accent-contrast: #ffffff;
  --brand-word: #151720;
  --brand-tube: #c62d46;
  --chip-active: #c62d46;
  --chip-active-text: #ffffff;
  --live-bg: #d9273f;
  --live-text: #ffffff;
  --coleccion: #8a5a08;
  --coleccion-fill: #c98f23;
  --coleccion-text: #1c1507;
  --coleccion-blue: #4057d6;
  --gema: #087f5b;
  --enterrada: #a95116;
  --overlay: rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px rgba(20, 28, 50, .08);
  --shadow-lg: 0 22px 60px rgba(20, 28, 50, .14);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  padding-top: var(--header-h);
  transition: background .2s ease, color .2s ease;
  overflow-x: clip; /* evita pan horizontal en móvil */
  width: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent); outline-offset: 3px; }
::selection { background: var(--accent-fill); color: #fff; }

:root {
  --header-h: 64px;
  --sidebar-w: 228px;
  --radius: 12px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 100; gap: 16px;
  border-bottom: 1px solid transparent;
}
:root[data-theme="light"] .header { border-bottom-color: var(--border); }
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; color: var(--text);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 24px; height: 24px; }

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon svg { width: 32px; height: 32px; display: block; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo-text em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tema: mostrar solo el icono correspondiente */
#btn-theme .icon-sun { display: none; }
#btn-theme .icon-moon { display: block; }
:root[data-theme="dark"] #btn-theme .icon-sun { display: block; }
:root[data-theme="dark"] #btn-theme .icon-moon { display: none; }

/* Buscador tipo píldora */
.search-bar { flex: 1; max-width: 640px; display: flex; margin: 0 auto; }
.search-bar input {
  flex: 1; height: 40px; padding: 0 16px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-right: none;
  border-radius: 40px 0 0 40px; font-size: 16px; outline: none;
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--text-2); }
.search-btn {
  width: 64px; height: 40px; background: var(--surface-3);
  color: var(--text-2); border: 1px solid var(--border);
  border-radius: 0 40px 40px 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-btn:hover { color: var(--text); }
.search-btn svg { width: 22px; height: 22px; }

.header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* ---------- Sidebar ---------- */
.layout { display: flex; }
.sidebar {
  position: fixed; top: var(--header-h); bottom: 0; left: 0;
  width: var(--sidebar-w); padding: 12px;
  overflow-y: auto; background: var(--bg);
  transition: transform .2s;
  z-index: 90;
}
.sidebar.collapsed { transform: translateX(-100%); }
.side-item {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px;
  white-space: nowrap;
}
.side-item:hover { background: var(--surface-2); }
.side-item.active { background: var(--surface-2); font-weight: 600; }
.side-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.side-item .side-sub { display: block; font-size: 12px; color: var(--text-2); }
.side-sep { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.side-title { padding: 6px 12px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.sidebar-artist { font-size: 13px; }

.content {
  flex: 1; margin-left: var(--sidebar-w);
  padding: 24px; min-height: calc(100vh - var(--header-h));
  transition: margin-left .2s;
  min-width: 0; /* crítico en flex: permite que el grid encoja sin overflow */
}
.content.expanded { margin-left: 0; }

/* ---------- Barra única: chips (scroll) + botón Filtros en la misma línea ---------- */
.filters-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 2px 0 14px;
}
.chips {
  flex: 1 1 0; min-width: 0; /* base 0: nunca empuja el botón a otra línea */
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 0; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--surface-3); }
.chip.active {
  background: var(--accent); color: var(--accent-contrast);
  border-color: var(--accent); font-weight: 600;
}
.chip .chip-star { font-size: 12px; line-height: 1; }

/* ---------- Filtros estilo HackerTube: panel de columnas de texto ---------- */
.filters-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.filters-toggle:hover { background: var(--surface-3); }
.filters-toggle svg { width: 18px; height: 18px; }
.filters-toggle.active { border-color: var(--accent); color: var(--accent-2); background: var(--surface); }
.filters-toggle .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: none;
}
.filters-toggle.has-filters .dot { display: block; }

/* Resumen de filtros activos junto al botón (texto minimalista) */
.filters-summary { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-summary-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 4px 2px;
  color: var(--accent-2); font-size: 13.5px; font-weight: 600;
}
.f-summary-item:hover { text-decoration: underline; }
.f-summary-item .chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface-3); font-size: 10px; line-height: 1; color: var(--text);
}
.f-summary-item:hover .chip-x { background: var(--accent); color: var(--accent-contrast); }
.f-summary-clear {
  background: none; border: none; padding: 4px 2px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.f-summary-clear:hover { color: var(--text); }

/* Panel: columnas de texto plano, sin cajas (como hackertube.org) */
.filters-panel { display: none; padding: 6px 0 26px; }
.filters-panel.open {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 48px;
  animation: panelIn .18s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.f-head {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 10px;
}
.f-link {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 6px 0;
  color: var(--text-2); font-size: 14px; line-height: 1.5;
  transition: color .12s;
}
.f-link:hover { color: var(--text); }
.f-link.active { color: var(--accent-2); font-weight: 700; }

@media (max-width: 900px) {
  .filters-panel.open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
}
@media (max-width: 480px) {
  .filters-panel.open { grid-template-columns: 1fr; }
}

/* ---------- Grid de cards (home) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px 16px;
}
.card { cursor: pointer; }
.thumb-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--surface);
}
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-duration {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0, 0, 0, 0.8); color: #fff;
  padding: 2px 5px; border-radius: 4px; font-size: 12px; font-weight: 500;
}
.badge-live {
  position: absolute; left: 6px; top: 6px;
  background: var(--live-bg); color: var(--live-text);
  padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.card-meta { display: flex; gap: 12px; margin-top: 10px; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.card-channel, .card-sub { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.badge-verificada {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent-2); font-size: 11.5px; font-weight: 600;
  margin-top: 3px; cursor: help;
}
.badge-verificada.badge-aprobada { color: var(--text-2); }
.badge-verificada.badge-collection { color: var(--coleccion); font-weight: 700; }
.badge-verificada.badge-gema { color: var(--gema); font-weight: 700; }
.badge-verificada.badge-enterrada { color: var(--enterrada); font-weight: 700; }
.badge-verificada svg { width: 13px; height: 13px; }
.badge-verificada .gema { font-size: 11px; }

/* ---------- Página de artista (patrón YouTube: banner + avatar solapado) ---------- */
.artist-topnav {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.back-float {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: transparent;
  border: none;
  transition: background .15s, color .15s;
}
.back-float:hover { background: var(--surface-2); color: var(--text); }
.back-float svg { width: 18px; height: 18px; }
.artist-crumb { color: var(--text-2); font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.artist-banner {
  height: 220px; border-radius: 12px;
  background-size: cover; background-position: center 30%;
  position: relative; overflow: hidden;
}
.artist-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55) 78%, var(--bg));
}
.artist-identity {
  display: flex; align-items: flex-end; gap: 18px;
  margin: -46px 6px 22px;
  position: relative;
}
.artist-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  font-size: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.artist-info { padding-bottom: 6px; }
.artist-name { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.artist-meta { color: var(--text-2); font-size: 13.5px; margin-top: 5px; }
@media (max-width: 560px) {
  .artist-banner { height: 140px; }
  .artist-identity { gap: 12px; margin: -34px 4px 18px; }
  .artist-avatar { width: 64px; height: 64px; font-size: 26px; border-width: 3px; }
  .artist-name { font-size: 20px; }
}

/* Sección 💎 Joyas escondidas (home) */
:root { --gema: #44c997; --enterrada: #e28a45; }
:root[data-theme="light"] { --gema: #087f5b; --enterrada: #a95116; }
.gems-section { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--border); }
.gems-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gems-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.gems-title .gema { font-size: 16px; }
.gems-link { color: var(--gema); font-size: 13.5px; font-weight: 600; }
.enterradas-section .gems-link { color: var(--enterrada); }
.gems-link:hover { text-decoration: underline; }
.gems-sub { color: var(--text-2); font-size: 13px; margin: 4px 0 14px; }
.gems-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 14px; overflow-x: auto;
  padding-bottom: 12px; scrollbar-width: thin;
}
.gems-row .card-meta { margin-top: 8px; }

/* Ajustes de catálogo */
.ajustes-list { display: grid; gap: 10px; }
.ajuste-item {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; color: var(--text);
  transition: border-color .15s, background .15s;
}
.ajuste-item:hover { background: var(--surface-3); }
.ajuste-item.active { border-color: var(--accent); }
.ajuste-radio {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid var(--text-2);
}
.ajuste-item.active .ajuste-radio { border-color: var(--accent); background: var(--accent); }
.ajuste-desc { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.score-gema { color: var(--gema); }

/* ---------- Franja de identidad compacta (una línea, videos primero) ---------- */
.catalog-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.4;
}
.cs-stats { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cs-stat { color: var(--accent-2); font-weight: 700; }
.cs-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-2); opacity: .6; flex-shrink: 0; }
.cs-link { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.cs-link:hover { text-decoration: underline; }
.cs-close {
  margin-left: auto; flex-shrink: 0;
  background: none; border: none; color: var(--text-2);
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.cs-close:hover { background: var(--surface-3); color: var(--text); }
@media (max-width: 760px) {
  .catalog-strip { padding: 4px 10px; gap: 6px; }
  .cs-link { display: none; }
}

.more-btn {
  display: block; margin: 24px auto; padding: 10px 20px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; font-size: 14px; font-weight: 500;
}
.more-btn:hover { background: var(--surface-3); }

/* ---------- Página watch ---------- */
.watch { display: grid; grid-template-columns: minmax(0,1fr) 402px; gap: 24px; max-width: 1750px; }
.player { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 12px 0 8px; }
.watch-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.watch-channel { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--accent-contrast); flex-shrink: 0;
}
.watch-channel-name { font-weight: 600; font-size: 15px; }
.watch-channel-sub { color: var(--text-2); font-size: 12px; }
.btn {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 18px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--surface-3); }
.btn svg { width: 20px; height: 20px; }
.watch-notes {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px; margin-top: 16px; font-size: 14px; line-height: 1.6;
}
.watch-notes h3 { font-size: 14px; margin-bottom: 6px; }
.watch-notes .score { color: var(--accent-2); font-weight: 700; }
.watch-notes p { color: var(--text-2); white-space: pre-line; }
.watch-attribution { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.watch-attribution a { color: var(--accent-2); font-weight: 600; }
.watch-attribution a:hover { text-decoration: underline; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag { background: var(--surface-2); color: var(--text-2); padding: 4px 10px; border-radius: 6px; font-size: 12px; }

/* Up next (columna derecha) */
.results-line { color: var(--text-2); margin: -6px 0 16px; font-size: 14px; }
.upnext-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.mini-card { display: flex; gap: 8px; margin-bottom: 8px; cursor: pointer; border-radius: 8px; padding: 4px; }
.mini-card:hover { background: var(--surface-2); }
.mini-thumb {
  width: 168px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: var(--surface); flex-shrink: 0; position: relative;
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb .badge-duration { font-size: 11px; padding: 1px 4px; }
.mini-meta { min-width: 0; }
.mini-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-sub { color: var(--text-2); font-size: 12px; margin-top: 4px; }

/* ---------- Estados ---------- */
.state-msg { text-align: center; color: var(--text-2); padding: 60px 0; font-size: 15px; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 16px;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Acerca */
.about { max-width: 640px; line-height: 1.7; color: var(--text-2); }
.about h1 { color: var(--text); font-size: 22px; margin-bottom: 16px; }
.about a { color: var(--accent-2); }
.about-sellos { margin: 12px 0 0 18px; display: grid; gap: 6px; }
.about-sellos b { color: var(--text); }
.about-project {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}
.about-project p { font-size: 13px; color: var(--text-2); }
.about-vallenatia {
  display: inline-block; margin-top: 4px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-vallenatia:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
.btn-mobile-search { display: none; }

@media (max-width: 1200px) {
  .watch { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 792px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open-mobile { transform: translateX(0); box-shadow: 0 0 0 100vmax var(--overlay); }
  .content { margin-left: 0; padding: 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 12px; }
  /* targets táctiles cómodos */
  .chip { padding: 9px 14px; }
  .f-link { padding: 9px 0; }
  .f-opt { padding: 8px 14px; }
  .filters-toggle { padding: 10px 18px; }
  .cs-close { width: 30px; height: 30px; }
}

/* Móvil: buscador en fila desplegable bajo el header */
@media (max-width: 640px) {
  .header { padding: 0 8px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); gap: 8px; }
  .search-bar {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    max-width: none; margin: 0; padding: 8px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .header.search-open .search-bar { display: flex; }
  .header.search-open ~ .layout .sidebar { top: calc(var(--header-h) + 56px); }
  .btn-mobile-search { display: inline-flex; }
  .header-right .icon-btn[title="Inicio"] { display: none; }
  .header-right .icon-btn[title="Acerca"] { display: none; }
  .icon-btn { width: 40px; height: 40px; }

  .watch { gap: 12px; }
  .watch-title { font-size: 17px; margin: 10px 0 6px; }
  .watch-actions { padding-bottom: 10px; gap: 8px; }
  .watch-channel .avatar { width: 34px; height: 34px; font-size: 14px; }
  .watch-channel-name { font-size: 14px; }
  .btn { padding: 8px 13px; font-size: 13px; }
  .watch-notes { padding: 10px 12px; font-size: 13px; }
  .mini-thumb { width: 140px; }
  .mini-title { font-size: 13px; }
  .about { font-size: 13.5px; }
}

@media (max-width: 560px) {
  .logo-text { display: none; }
  .grid { grid-template-columns: 1fr; gap: 20px 0; }
  .card-title { font-size: 15px; }
  .filters-bar { gap: 10px; }
  .filters-summary { width: 100%; }
}

@media (max-width: 480px) {
  .filters-panel.open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .f-head { font-size: 11px; padding-bottom: 8px; margin-bottom: 6px; }
  .f-link { font-size: 13.5px; padding: 7px 0; }
  .hero-title, .about-vallenatia { font-size: 19px; }
}

/* ---------- Sistema visual premium ultramar ---------- */
.header {
  padding: 0 20px;
  gap: 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
:root[data-theme="light"] .header { border-bottom-color: var(--border); }
.header-left { gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  color: var(--text-2);
  transition: color .14s ease, background-color .14s ease, transform .14s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 21px; height: 21px; }

.logo { gap: 8px; min-width: max-content; }
.logo-icon {
  width: 38px; height: 38px; display: block; flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .16s ease;
}
.logo:hover .logo-icon { transform: translateY(-1px) scale(1.025); box-shadow: none; }
.logo-icon img { width: 38px; height: 38px; display: block; }
.logo-text { font-size: 20px; font-weight: 780; letter-spacing: -.72px; }
.logo-text { color: var(--brand-word); }
.logo-text em { color: var(--brand-tube); background: none; -webkit-text-fill-color: currentColor; }

.search-bar { max-width: 680px; }
.search-bar input {
  height: 42px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 13px 0 0 13px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 14.5px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.search-bar input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-btn {
  width: 54px; height: 42px;
  border-color: var(--border);
  border-radius: 0 13px 13px 0;
  background: var(--surface-2);
  color: var(--text-2);
  transition: background-color .14s ease, color .14s ease;
}
.search-btn:hover { background: var(--surface-3); color: var(--accent); }
.search-btn svg { width: 20px; height: 20px; }

.sidebar {
  padding: 16px 12px 24px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}
.side-item {
  position: relative;
  gap: 17px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 13.5px;
  transition: color .14s ease, background-color .14s ease;
}
.side-item:hover { color: var(--text); background: var(--surface-2); }
.side-item.active { color: var(--text); background: var(--surface-2); font-weight: 650; }
.side-item.active svg { color: var(--accent); }
.side-item svg { width: 20px; height: 20px; }
.side-title { padding: 8px 13px; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.side-sep { margin: 14px 2px; }

.content { padding: 28px clamp(20px, 2.25vw, 38px) 48px; }

.filters-bar { gap: 10px; padding: 2px 0 20px; flex-wrap: wrap; }
.chips {
  gap: 8px;
  padding: 2px 4px 4px 0;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
}
.chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 610;
  letter-spacing: .005em;
  scroll-snap-align: start;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.chip:hover { color: var(--text); background: var(--surface-3); border-color: var(--border); }
.chip:active { transform: scale(.97); }
.chip.active {
  color: #fff;
  background: var(--accent-fill);
  border-color: color-mix(in srgb, var(--accent) 76%, transparent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent-fill) 22%, transparent);
}
.chip .chip-star { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }
.chip .chip-star svg { width: 14px; height: 14px; }
.collection-mark .collection-medal { fill: var(--collection-medal, currentColor); }
.collection-mark .collection-detail { fill: none; stroke: var(--collection-detail, var(--coleccion-blue)); }
.chip[data-chip="coleccion"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--coleccion) 42%, var(--border));
  background: color-mix(in srgb, var(--coleccion) 8%, var(--surface-2));
  font-weight: 690;
}
.chip[data-chip="coleccion"] .chip-star {
  width: 16px; height: 16px;
  color: var(--coleccion);
  --collection-medal: var(--coleccion);
  --collection-detail: var(--coleccion-blue);
}
.chip[data-chip="coleccion"] .chip-star svg { width: 16px; height: 16px; }
.chip[data-chip="gems"] .chip-star { color: var(--gema); }
.chip[data-chip="enterradas"] .chip-star { color: var(--enterrada); }
.chip[data-chip="coleccion"]:hover { border-color: color-mix(in srgb, var(--coleccion) 48%, var(--border)); }
.chip[data-chip="gems"]:hover { border-color: color-mix(in srgb, var(--gema) 48%, var(--border)); }
.chip[data-chip="enterradas"]:hover { border-color: color-mix(in srgb, var(--enterrada) 48%, var(--border)); }
.chip[data-chip="coleccion"].active {
  color: var(--coleccion-text); background: var(--coleccion-fill); border-color: var(--coleccion);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--coleccion) 22%, transparent);
}
.chip[data-chip="gems"].active {
  color: #fff; background: color-mix(in srgb, var(--gema) 76%, #07533d); border-color: var(--gema);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--gema) 20%, transparent);
}
.chip[data-chip="enterradas"].active {
  color: #fff; background: color-mix(in srgb, var(--enterrada) 82%, #71320d); border-color: var(--enterrada);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--enterrada) 20%, transparent);
}
.chip[data-chip="gems"].active .chip-star,
.chip[data-chip="enterradas"].active .chip-star { color: currentColor; }
.chip[data-chip="coleccion"].active .chip-star {
  color: var(--coleccion-blue);
  --collection-medal: var(--coleccion-blue);
  --collection-detail: #ffe9a7;
}

.filters-toggle {
  min-height: 36px;
  padding: 7px 13px;
  border-color: var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.filters-toggle:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.filters-toggle.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.filters-toggle .filter-count {
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--accent-fill); color: #fff;
  font-size: 11px; font-weight: 750;
}
.filters-toggle .dot { display: none !important; }
.filters-summary { width: 100%; gap: 8px; }
.f-summary-item {
  min-height: 30px; padding: 5px 8px 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  text-decoration: none;
}
.f-summary-item:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.f-summary-item .chip-x { background: transparent; }
.f-summary-clear { color: var(--text-2); text-underline-offset: 3px; }

.filters-panel.open {
  padding: 20px;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.f-head { color: var(--text-2); letter-spacing: .1em; }
.f-link { border-radius: 7px; padding: 7px 8px; margin-left: -8px; }
.f-link:hover { color: var(--text); background: var(--surface-2); }
.f-link.active { color: var(--accent); }

.grid {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 28px 18px;
}
.card {
  min-width: 0;
  border-radius: 14px;
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-3px); }
.thumb-wrap {
  border-radius: 13px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.08);
  transition: box-shadow .18s ease;
}
.card:hover .thumb-wrap { box-shadow: var(--shadow-lg); }
.thumb { transition: transform .28s cubic-bezier(.2,.7,.2,1), filter .2s ease; }
.card:hover .thumb { transform: scale(1.018); filter: saturate(1.04) contrast(1.02); }
.card-preview-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080a0f;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.card.preview-ready .card-preview-frame { opacity: 1; }
.card.is-previewing .thumb { transform: scale(1.025); filter: saturate(.82) brightness(.7); }
.preview-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  background: rgba(5,7,12,.76);
  color: #fff;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(4px);
  backdrop-filter: blur(7px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.preview-icon { width: 12px; height: 12px; }
.card.is-previewing .preview-label { opacity: 1; transform: translateY(0); }
.card.is-previewing .badge-live { opacity: 0; }
.card .badge-duration, .card .badge-live { z-index: 4; transition: opacity .15s ease; }
.badge-duration {
  right: 7px; bottom: 7px; padding: 3px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; background: rgba(5,7,12,.83);
  font-size: 11px; font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}
.badge-live {
  left: 8px; top: 8px; padding: 4px 7px;
  border-radius: 6px; box-shadow: 0 5px 16px rgba(217,39,63,.25);
  font-size: 9.5px; letter-spacing: .09em;
}
.card-meta { margin-top: 11px; padding: 0 2px; }
.card-title { margin-bottom: 5px; font-size: 14.5px; font-weight: 680; line-height: 1.42; letter-spacing: -.01em; }
.card-channel, .card-sub { color: var(--text-2); font-size: 12.25px; line-height: 1.55; }
.badge-verificada {
  margin-top: 6px; padding: 3px 7px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 7px; background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: 10.5px; letter-spacing: .015em;
}
.badge-verificada.badge-aprobada { color: var(--text-2); }

.catalog-strip {
  min-height: 36px; padding: 7px 12px; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text-2);
}
.cs-stat, .cs-link { color: var(--accent); }

.artist-banner { height: 240px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.artist-banner-overlay { background: linear-gradient(180deg, rgba(3,5,10,.04), rgba(3,5,10,.68) 82%, var(--bg)); }
.artist-avatar {
  background: var(--accent-fill); color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.artist-name { letter-spacing: -.75px; }

.gems-section { margin-top: 36px; padding-top: 26px; }
.gems-title { font-size: 19px; letter-spacing: -.02em; }
.gems-sub { margin-top: 7px; margin-bottom: 17px; }
.gems-row { gap: 18px; padding: 3px 2px 18px; }

.watch { grid-template-columns: minmax(0,1fr) minmax(320px, 390px); gap: 30px; }
.player { border-radius: 16px; box-shadow: var(--shadow-lg); }
.player-viewport { width: 100%; height: 100%; background: #000; }
.player-viewport iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-viewport { position: relative; }
.player-api-host { width: 100%; height: 100%; }
.watch-title { margin: 17px 0 11px; font-size: clamp(19px, 1.55vw, 24px); letter-spacing: -.025em; }
.watch-actions { padding-bottom: 17px; }
.watch-action-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn .ui-icon { width: 18px; height: 18px; }
.avatar { background: var(--accent-fill); color: #fff; }
.btn {
  border-color: var(--border); border-radius: 10px;
  background: var(--surface-2);
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, transform .14s ease;
}
.btn:hover { color: var(--accent); border-color: var(--border-strong); }
.btn:active { transform: scale(.97); }
.watch-notes {
  margin-top: 18px; padding: 18px 20px;
  border-color: var(--border); border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 36%), var(--surface);
  box-shadow: var(--shadow-sm);
}
.watch-notes h3 { margin-bottom: 9px; font-size: 14.5px; }
.watch-notes .score, .watch-attribution a { color: var(--accent); }
.tag { border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); }
.upnext-title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.mini-card { gap: 10px; margin-bottom: 7px; padding: 6px; border-radius: 11px; transition: background-color .14s ease, transform .14s ease; }
.mini-card:hover { background: var(--surface-2); transform: translateX(2px); }
.mini-thumb { width: 160px; border-radius: 9px; }
.mini-title { font-weight: 650; }

.upnext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.upnext-head > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.upnext-head .upnext-title { margin: 0; }
.autoplay-control { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 680; cursor: pointer; }
.autoplay-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.autoplay-switch { position: relative; width: 34px; height: 19px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-3); transition: background-color .18s ease, border-color .18s ease; }
.autoplay-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-2); transition: transform .18s ease, background-color .18s ease; }
.autoplay-control input:checked + .autoplay-switch { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 27%, var(--surface)); }
.autoplay-control input:checked + .autoplay-switch::after { transform: translateX(15px); background: var(--accent); }
.autoplay-control input:focus-visible + .autoplay-switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.mini-card.is-next { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.upnext-badge { display: inline-block; margin-bottom: 4px; color: var(--accent); font-size: 9.5px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.btn-next { border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

.next-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 5, 7, .82);
  backdrop-filter: blur(10px);
}
.next-video-panel { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px 14px; width: min(480px, 100%); color: #fff; }
.next-video-kicker { grid-column: 1 / -1; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.next-video-panel img { width: 116px; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; }
.next-video-copy { min-width: 0; align-self: center; display: grid; gap: 4px; }
.next-video-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.3; }
.next-video-copy span { overflow: hidden; color: rgba(255,255,255,.62); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.next-video-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.next-video-actions button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; font: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.next-video-primary { background: var(--accent); color: var(--accent-contrast, #111); }
.next-video-cancel { background: rgba(255,255,255,.12); color: #fff; }
.next-video-actions button:hover { filter: brightness(1.08); }

.more-btn {
  margin-top: 30px; padding: 10px 18px;
  border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.more-btn:hover { color: var(--accent); border-color: var(--border-strong); }
.spinner { border-color: var(--surface-3); border-top-color: var(--accent); }
.about-project { border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), transparent 62%), var(--surface); }
.about-vallenatia { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }

.player-slot.is-minimized { display: grid; place-items: center; background: var(--surface); }
.restore-player {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: 13px;
  background: var(--surface-2); color: var(--text); text-align: left;
  box-shadow: var(--shadow-sm);
}
.restore-player:hover { background: var(--surface-3); }
.restore-player-icon { width: 22px; height: 22px; color: var(--accent); }
.restore-player-icon svg { width: 100%; height: 100%; }
.restore-player span:last-child { display: grid; gap: 2px; }
.restore-player b { font-size: 13px; }
.restore-player small { color: var(--text-2); font-size: 11.5px; }
.player-closed { color: var(--text-2); font-size: 13px; }

.mini-player[hidden] { display: none; }
.mini-player {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 36px));
  overflow: hidden;
  z-index: 180;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 4px 18px rgba(0,0,0,.24);
  animation: miniPlayerIn .2s cubic-bezier(.2,.75,.2,1);
}
@keyframes miniPlayerIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.mini-player-media { width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* Modo dock: el mini-player se superpone exactamente sobre el #player-slot
   de la página watch (posición/medidas las pone el JS). El iframe nunca se
   mueve del DOM — por eso el video no se reinicia ni hay doble audio. */
.mini-player.is-docked-watch {
  right: auto;
  bottom: auto;
  width: auto;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  animation: none;
  overflow: visible;
}
.mini-player.is-docked-watch .mini-player-bar { display: none; }
.mini-player.is-docked-watch .mini-player-media { width: 100%; height: 100%; aspect-ratio: auto; }
.player-slot.is-docked-under { display: block; }
.player-slot.is-docked-under > :not(.player-viewport) { visibility: hidden; }
.mini-player-bar { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px 9px 8px 13px; }
.mini-player-copy {
  min-width: 0; flex: 1; display: grid; gap: 2px; padding: 2px 0;
  border: 0; background: transparent; color: inherit; text-align: left;
}
.mini-player-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 690; }
.mini-player-channel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 11.5px; }
.mini-player-actions { display: flex; gap: 3px; flex-shrink: 0; }
.mini-control {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--text-2);
}
.mini-control:hover { background: var(--surface-2); color: var(--text); }
.mini-control svg { width: 18px; height: 18px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.loading-view { padding-top: 2px; }
.skeleton-filters, .skeleton-thumb, .skeleton-line {
  position: relative; overflow: hidden; background: var(--surface-2);
}
.skeleton-filters::after, .skeleton-thumb::after, .skeleton-line::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent), transparent);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}
.skeleton-filters { width: min(560px, 78%); height: 36px; margin-bottom: 22px; border-radius: 10px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 28px 18px; }
.skeleton-thumb { aspect-ratio: 16 / 9; border-radius: 13px; }
.skeleton-line { width: 58%; height: 10px; margin: 9px 2px 0; border-radius: 5px; }
.skeleton-title { width: 88%; height: 13px; margin-top: 12px; }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }

@media (max-width: 1200px) {
  .watch { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .header { gap: 12px; padding: 0 12px; }
  .content { padding: 22px 18px 42px; }
  .filters-panel.open { padding: 18px; }
}

@media (max-width: 792px) {
  .sidebar { background: var(--bg); border-right: 1px solid var(--border); }
  .content { padding: 20px 16px 42px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 24px 14px; }
}

@media (max-width: 640px) {
  .header { padding: 0 8px; gap: 5px; }
  .header.search-open .search-bar { padding-top: 9px; padding-bottom: 9px; box-shadow: var(--shadow-sm); }
  .logo-icon, .logo-icon img { width: 34px; height: 34px; }
  .filters-bar { gap: 8px; }
  .filters-toggle { box-shadow: none; }
  .watch-title { font-size: 18px; }
  .watch-notes { padding: 15px; }
  .watch-action-buttons { width: 100%; justify-content: flex-start; }
  .mini-player { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 16px)); border-radius: 14px; }
  .mini-player-bar { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 25px; }
  .card:hover { transform: none; }
  .thumb-wrap { border-radius: 12px; }
  .btn-minimize .btn-label { display: none; }
  .filters-summary { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .f-summary-item { flex-shrink: 0; }
  .artist-banner { height: 150px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .preview-label, .card-preview-frame { display: none !important; }
}

/* ---------- Lenguaje editorial para entretenimiento ---------- */
.ui-icon, .badge-icon, .section-icon, .about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ui-icon, .badge-icon { width: 15px; height: 15px; }
.ui-icon svg, .badge-icon svg, .section-icon svg, .about-value-icon svg { width: 100%; height: 100%; display: block; }

.home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: 32px;
  padding: 10px 38px 28px 0;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
}
.home-intro-copy { max-width: 560px; }
.editorial-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-intro h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(25px, 2.35vw, 37px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.home-intro-copy p { margin-top: 10px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.home-proof { display: flex; align-items: center; justify-content: flex-end; gap: 10px 18px; flex-wrap: wrap; color: var(--text-2); }
.home-proof > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; }
.home-proof > span .ui-icon { color: var(--accent); }
.home-proof .proof-collection .ui-icon { color: var(--coleccion); }
.home-proof .proof-gem .ui-icon { color: var(--gema); }
.home-proof strong { color: var(--text); font-weight: 720; font-variant-numeric: tabular-nums; }
.home-proof .home-proof-since { color: var(--text-2); }
.home-intro-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 680;
}
.home-intro-link:hover { color: var(--accent-2); }
.home-intro-link .ui-icon { transition: transform .15s ease; }
.home-intro-link:hover .ui-icon { transform: translateX(2px); }
.home-intro-close {
  position: absolute;
  top: 6px;
  right: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
}
.home-intro-close:hover { color: var(--text); background: var(--surface-2); }

.badge-verificada,
.badge-verificada.badge-aprobada,
.badge-verificada.badge-collection,
.badge-verificada.badge-gema,
.badge-verificada.badge-enterrada {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  gap: 5px;
}
.badge-verificada { color: var(--accent); }
.badge-verificada.badge-aprobada { color: var(--text-2); }
.badge-verificada.badge-collection { color: var(--coleccion); }
.badge-verificada.badge-gema { color: var(--gema); }
.badge-verificada.badge-enterrada { color: var(--enterrada); }
.badge-icon { width: 13px; height: 13px; }
.section-icon { width: 20px; height: 20px; color: currentColor; }
.enterradas-section .section-icon { color: var(--enterrada); }
.gems-title { align-items: center; }
.gems-link { display: inline-flex; align-items: center; gap: 5px; }
.gems-link .ui-icon { width: 14px; height: 14px; transition: transform .15s ease; }
.gems-link:hover .ui-icon { transform: translateX(2px); }

.watch-notes {
  position: relative;
  margin-top: 24px;
  padding: 4px 0 4px 22px;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.watch-notes::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.review-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.watch-notes h3 { max-width: 780px; margin-bottom: 9px; font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.watch-notes p { max-width: 850px; line-height: 1.7; }
.tags-row { margin-top: 14px; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; }
.tag .ui-icon { width: 13px; height: 13px; }
.watch-attribution { margin-top: 14px !important; }

.about-page { max-width: 1080px; color: var(--text); line-height: 1.65; }
.about-hero { max-width: 820px; padding: 34px 0 56px; }
.about-page .about-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: .98;
  letter-spacing: -.06em;
}
.about-lead { max-width: 720px; margin-top: 24px; color: var(--text-2); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }
.about-primary-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}
.about-primary-link .ui-icon { transition: transform .15s ease; }
.about-primary-link:hover .ui-icon { transform: translateX(3px); }
.about-story {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 90px);
  padding: 38px 0 56px;
  border-top: 1px solid var(--border);
}
.about-quote { max-width: 480px; color: var(--text); font-size: clamp(22px, 2.6vw, 32px); font-weight: 660; line-height: 1.25; letter-spacing: -.035em; }
.about-story > p:last-child { max-width: 560px; color: var(--text-2); font-size: 16px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 22px 0 66px; }
.about-value { padding-top: 18px; border-top: 1px solid var(--border); }
.about-value-icon { width: 25px; height: 25px; margin-bottom: 24px; color: var(--accent); }
.about-value h2 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.02em; }
.about-value p { color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.about-labels { padding: 46px 0 58px; border-top: 1px solid var(--border); }
.about-section-head { max-width: 620px; margin-bottom: 34px; }
.about-section-head h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.about-label-row {
  display: grid;
  grid-template-columns: minmax(200px, .38fr) minmax(280px, .62fr);
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.about-label-row > span { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 680; }
.about-label-row > span .ui-icon { color: var(--accent); width: 18px; height: 18px; }
.about-label-row.label-collection > span .ui-icon { color: var(--coleccion); }
.about-label-row.label-gem > span .ui-icon { color: var(--gema); }
.about-label-row.label-rescued > span .ui-icon { color: var(--enterrada); }
.about-label-row p { color: var(--text-2); }
.about-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}
.about-footer a { color: var(--accent); font-weight: 650; }

@media (max-width: 980px) {
  .home-intro { grid-template-columns: 1fr; gap: 20px; }
  .home-proof { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .home-intro { padding-top: 4px; padding-bottom: 22px; }
  .home-intro h1 { font-size: 28px; }
  .home-proof { gap: 9px 15px; }
  .home-proof .home-proof-since { display: none; }
  .about-hero { padding: 20px 0 44px; }
  .about-story { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .about-values { grid-template-columns: 1fr; gap: 26px; }
  .about-value { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
  .about-value-icon { margin: 1px 0 0; }
  .about-label-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .logo { gap: 7px; }
  .logo-text { display: inline; font-size: 17px; letter-spacing: -.5px; }
  .home-intro { padding-right: 32px; margin-bottom: 16px; }
  .home-intro-copy p { font-size: 13px; }
  .home-proof > span { font-size: 11.5px; }
  .home-intro-link { width: 100%; margin-top: 2px; }
  .watch-notes { padding-left: 17px; }
  .watch-notes h3 { font-size: 15.5px; }
  .about-page .about-hero h1 { font-size: 42px; }
  .about-lead { font-size: 16px; }
  .about-quote { font-size: 24px; }
  .about-footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
}

/* ---------- Navegación y descubrimiento 2026 ---------- */
.layout { display: block; }
.content,
.content.expanded {
  width: min(100%, 1600px);
  min-width: 0;
  margin: 0 auto;
  padding: 34px clamp(20px, 3.2vw, 52px) 72px;
}

.header { gap: clamp(12px, 1.6vw, 24px); }
.header-left { flex: 0 0 auto; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.primary-nav-item {
  position: relative;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.primary-nav-item:hover { color: var(--text); background: var(--surface-2); }
.primary-nav-item.active { color: var(--text); }
.primary-nav-item.active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.header .search-bar { flex: 1 1 360px; max-width: 600px; min-width: 190px; }
.header-right { flex: 0 0 auto; }
.mobile-nav { display: none; }

/* Inicio editorial */
.discovery-hero {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  gap: clamp(34px, 5vw, 78px);
  padding: clamp(22px, 3vw, 48px) 0 clamp(42px, 5vw, 74px);
  border-bottom: 1px solid var(--border);
}
.discovery-hero-copy { align-self: center; max-width: 700px; }
.discovery-hero h1 {
  max-width: 690px;
  margin-top: 12px;
  font-size: clamp(40px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.discovery-hero-copy > p {
  max-width: 620px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.hero-action-primary,
.hero-action-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 0;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 720;
}
.hero-action-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-fill) 22%, transparent); }
.hero-action-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hero-action-primary .ui-icon { width: 14px; height: 14px; }
.hero-action-secondary { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.hero-action-secondary:hover { border-color: var(--border-strong); background: var(--surface-3); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 25px; color: var(--text-2); font-size: 12px; }
.hero-proof strong { color: var(--text); font-variant-numeric: tabular-nums; }
.hero-spotlight {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero-spotlight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hero-spotlight:hover img { transform: scale(1.025); }
.hero-spotlight-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,5,10,.03) 20%, rgba(3,5,10,.86) 100%); }
.hero-spotlight-kicker {
  position: absolute; left: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border: 1px solid rgba(255,255,255,.23); border-radius: 9px;
  background: rgba(5,7,12,.66); color: #fff; font-size: 11px; font-weight: 720; backdrop-filter: blur(9px);
}
.hero-spotlight-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 5px; color: #fff; }
.hero-spotlight-copy strong { max-width: 620px; font-size: clamp(18px, 2vw, 27px); line-height: 1.18; letter-spacing: -.025em; }
.hero-spotlight-copy small { color: rgba(255,255,255,.72); font-size: 12px; }

.discovery-section { padding: clamp(42px, 5vw, 72px) 0 8px; }
.discovery-section + .discovery-section { border-top: 1px solid var(--border); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-eyebrow { display: block; margin-bottom: 6px; color: var(--accent); font-size: 10.5px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.section-heading-row h2 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.section-more { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--accent); font-size: 13px; font-weight: 700; }
.section-more .ui-icon { width: 14px; height: 14px; transition: transform .15s ease; }
.section-more:hover .ui-icon { transform: translateX(3px); }
.section-lead { max-width: 680px; margin: -7px 0 20px; color: var(--text-2); line-height: 1.6; }
.home-start-section .filters-bar { margin-top: 6px; }
.popular-section .section-eyebrow { color: var(--gema); }
.memory-section .section-eyebrow,
.memory-page-intro .editorial-kicker { color: var(--coleccion); }

/* Artistas como destino visual */
.artists-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(178px, 218px);
  gap: 13px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.artist-discovery-card { display: grid; gap: 11px; min-width: 0; scroll-snap-align: start; }
.artist-card-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
.artist-card-visual.has-collage { grid-template-columns: 1.45fr .75fr; grid-template-rows: 1fr 1fr; }
.artist-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .25s ease; }
.artist-card-image-1 { grid-column: 1; grid-row: 1 / 3; }
.artist-card-image-2 { grid-column: 2; grid-row: 1; }
.artist-card-image-3 { grid-column: 2; grid-row: 2; }
.artist-card-fallback { display: grid; place-items: center; font-size: 54px; font-weight: 760; color: var(--accent); }
.artist-card-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 45%, rgba(3,5,10,.38)); }
.artist-card-play {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  width: 35px; height: 35px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(8,10,15,.68); color: #fff; opacity: 0; transform: translateY(5px); backdrop-filter: blur(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.artist-card-play .ui-icon { width: 17px; height: 17px; }
.artist-discovery-card:hover .artist-card-play { opacity: 1; transform: translateY(0); }
.artist-discovery-card:hover .artist-card-image { transform: scale(1.025); filter: saturate(1.05); }
.artist-card-copy { display: grid; gap: 3px; padding: 0 2px; }
.artist-card-copy strong { overflow: hidden; color: var(--text); font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.artist-card-copy small { color: var(--text-2); font-size: 11.5px; }

.artists-page { max-width: 1380px; margin: 0 auto; }
.artists-page-hero { max-width: 850px; padding: clamp(24px, 4vw, 58px) 0 48px; }
.artists-page-hero h1 { margin-top: 10px; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.artists-page-hero > p { max-width: 700px; margin-top: 21px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.artist-search-box {
  width: min(100%, 520px); height: 48px; display: flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 0 15px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text-2);
}
.artist-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.artist-search-box svg { width: 20px; height: 20px; flex: 0 0 auto; }
.artist-search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.artists-directory-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0 18px; border-top: 1px solid var(--border); }
.artists-directory-head h2 { font-size: 24px; letter-spacing: -.035em; }
.artists-directory-head span { color: var(--text-2); font-size: 12px; }
.artists-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 28px 15px; }
.artists-directory .artist-discovery-card[hidden] { display: none; }
.artists-empty { padding: 54px 0; color: var(--text-2); text-align: center; }

/* Portada premium del artista */
.artist-premium-hero {
  position: relative;
  min-height: min(570px, 72vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.artist-hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1.55fr .7fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.artist-hero-collage.is-single { grid-template-columns: 1fr; }
.artist-hero-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.artist-hero-image-1 { grid-column: 1; grid-row: 1 / 3; }
.artist-hero-image-2 { grid-column: 2; grid-row: 1; }
.artist-hero-image-3 { grid-column: 2; grid-row: 2; }
.artist-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,10,.93) 0%, rgba(4,6,10,.76) 38%, rgba(4,6,10,.16) 74%), linear-gradient(0deg, rgba(4,6,10,.7), transparent 55%); }
.artist-hero-content { position: relative; z-index: 2; max-width: 700px; padding: clamp(28px, 5vw, 72px); color: #fff; }
.artist-back-link { width: max-content; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 650; }
.artist-back-link .ui-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.artist-hero-content .editorial-kicker { color: #cbd2ff; }
.artist-hero-content h1 { max-width: 680px; margin-top: 8px; font-size: clamp(50px, 7vw, 94px); line-height: .92; letter-spacing: -.065em; text-wrap: balance; }
.artist-hero-content > p { max-width: 590px; margin-top: 18px; color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.65; }
.artist-hero-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 21px 0 25px; color: rgba(255,255,255,.68); font-size: 12px; }
.artist-hero-meta strong { color: #fff; }
.artist-featured { padding: clamp(44px, 6vw, 82px) 0 18px; }
.artist-featured-video {
  display: grid; grid-template-columns: minmax(360px, 1.2fr) minmax(260px, .8fr); align-items: stretch;
  overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); cursor: pointer;
}
.artist-featured-media { position: relative; min-height: 320px; overflow: hidden; }
.artist-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.artist-featured-video:hover .artist-featured-media img { transform: scale(1.02); }
.artist-featured-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(0deg, rgba(3,5,10,.26), transparent); }
.artist-featured-play .ui-icon { width: 58px; height: 58px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.artist-featured-copy { align-self: center; padding: clamp(25px, 4vw, 56px); }
.artist-featured-copy h3 { margin-top: 8px; font-size: clamp(24px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.artist-featured-copy p { margin-top: 12px; color: var(--text-2); }
.artist-featured-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--accent); font-weight: 720; }
.artist-featured-cta .ui-icon { width: 14px; height: 14px; }
.artist-videos-section { padding: 62px 0 20px; scroll-margin-top: calc(var(--header-h) + 18px); }
.artist-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 2px 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.artist-tabs::-webkit-scrollbar { display: none; }
.artist-tab { flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 670; }
.artist-tab:hover { color: var(--text); background: var(--surface-2); }
.artist-tab.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.related-artists { margin-top: 46px; border-top: 1px solid var(--border); }

.page-intro { max-width: 820px; padding: 24px 0 42px; }
.page-intro h1 { margin-top: 9px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.page-intro p { max-width: 680px; margin-top: 17px; color: var(--text-2); font-size: 16px; line-height: 1.65; }

@media (max-width: 1180px) {
  .primary-nav-item { padding-inline: 8px; }
  .discovery-hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .discovery-hero h1 { font-size: clamp(38px, 5.5vw, 62px); }
}

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .discovery-hero { grid-template-columns: 1fr; }
  .discovery-hero-copy { max-width: 780px; }
  .hero-spotlight { min-height: 430px; }
  .artist-premium-hero { min-height: 540px; }
  .artist-featured-video { grid-template-columns: 1fr; }
  .artist-featured-media { min-height: 390px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header { padding-inline: 10px; }
  .content, .content.expanded { width: 100%; margin: 0; padding: 20px 16px 48px; }
  .mobile-nav {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0;
    min-height: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 5px max(8px, env(safe-area-inset-left)) max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .mobile-nav-item { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; color: var(--text-2); font-size: 9.5px; font-weight: 650; }
  .mobile-nav-item svg { width: 21px; height: 21px; }
  .mobile-nav-item.active { color: var(--accent); }
  .mini-player { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .discovery-hero { gap: 27px; padding-top: 12px; padding-bottom: 42px; }
  .discovery-hero h1 { font-size: clamp(37px, 11.7vw, 56px); }
  .discovery-hero-copy > p { margin-top: 17px; font-size: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-action-primary, .hero-action-secondary { flex: 1 1 auto; }
  .hero-proof { gap: 7px 14px; }
  .hero-spotlight { min-height: 300px; border-radius: 17px; }
  .discovery-section { padding-top: 42px; }
  .section-heading-row { align-items: flex-start; }
  .section-heading-row h2 { font-size: 26px; }
  .section-more { padding-top: 4px; }
  .artists-rail { grid-auto-columns: 158px; }
  .artists-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 11px; }
  .artists-page-hero { padding-top: 16px; }
  .artists-page-hero h1 { font-size: 46px; }
  .artists-page-hero > p { font-size: 15px; }
  .artist-premium-hero { min-height: 590px; margin: 0 -4px; border-radius: 18px; }
  .artist-hero-collage { grid-template-columns: 1fr; }
  .artist-hero-image-1 { grid-column: 1; grid-row: 1 / 3; }
  .artist-hero-image-2, .artist-hero-image-3 { display: none; }
  .artist-hero-overlay { background: linear-gradient(0deg, rgba(4,6,10,.95) 0%, rgba(4,6,10,.72) 55%, rgba(4,6,10,.14) 100%); }
  .artist-hero-content { padding: 28px 24px 34px; }
  .artist-hero-content h1 { font-size: clamp(48px, 15vw, 72px); }
  .artist-hero-content > p { font-size: 14px; }
  .artist-featured { padding-top: 48px; }
  .artist-featured-media { min-height: 230px; }
  .artist-featured-copy { padding: 24px; }
  .artist-videos-section { padding-top: 48px; }
  .page-intro { padding-top: 12px; }
}

@media (max-width: 430px) {
  .header-right .icon-btn[href="#/acerca"] { display: none; }
  .logo-icon, .logo-icon img { width: 34px; height: 34px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-proof span:last-child { display: none; }
  .hero-spotlight { min-height: 250px; }
  .hero-spotlight-copy strong { font-size: 18px; }
  .artists-directory { grid-template-columns: 1fr 1fr; }
  .artist-card-copy strong { font-size: 13px; }
  .artist-card-copy small { font-size: 10.5px; }
}

/* ---------- Ajuste de portal de video: feed primero ---------- */
.primary-nav {
  gap: 2px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.primary-nav-item {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12.5px;
}
.primary-nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; }
.primary-nav-item::after,
.primary-nav-item.active::after { display: none; }
.primary-nav-item.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0,0,0,.09), inset 0 0 0 1px color-mix(in srgb, var(--border) 72%, transparent);
}
.primary-nav-item.active svg { color: var(--accent); }

.home-video-feed { min-height: 55vh; }
.home-video-feed .filters-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  margin: -10px 0 12px;
  padding: 12px 0 14px;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.home-video-feed + .gems-section { margin-top: 48px; }

@media (max-width: 1180px) {
  .primary-nav-item { width: 38px; justify-content: center; padding-inline: 0; }
  .primary-nav-item span { display: none; }
}

@media (max-width: 980px) and (min-width: 761px) {
  .primary-nav { display: flex; }
}

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .home-video-feed .filters-bar {
    top: var(--header-h);
    margin-top: -7px;
    padding-top: 9px;
  }
}

/* ---------- Portal compacto: información sin desplazar los videos ---------- */
.home-portal-intro {
  min-height: 94px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
}
.home-portal-symbol {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.home-portal-symbol .ui-icon { width: 19px; height: 19px; }
.home-portal-intro h1 { margin: 0 0 4px; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; }
.home-portal-intro p { max-width: 920px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.home-portal-intro > a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.home-portal-intro > a .ui-icon { width: 13px; height: 13px; }

.portal-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  align-items: end;
  gap: 26px;
  max-width: none;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--border);
}
.portal-section-head h1 { margin-top: 4px; font-size: clamp(27px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.portal-section-head p { max-width: 560px; justify-self: end; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.explore-shelf { padding: 24px 0; border-bottom: 1px solid var(--border); }
.portal-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.portal-shelf-head > div > span { display: block; margin-bottom: 3px; color: var(--text-2); font-size: 10px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.portal-shelf-head h2 { font-size: 20px; line-height: 1.15; letter-spacing: -.025em; }
.portal-shelf-head > small { color: var(--text-2); font-size: 10.5px; }
.era-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 270px);
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.era-card {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  color: #fff;
  text-align: left;
  scroll-snap-align: start;
  isolation: isolate;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.era-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.era-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.era-card-media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: linear-gradient(135deg, #313743, #151921); }
.era-card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.era-card-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,10,.9), rgba(4,6,10,.42)); }
.era-tone-heritage .era-card-media { background: linear-gradient(135deg, #725019, #1d1811); }
.era-tone-wave .era-card-media { background: linear-gradient(135deg, #42317f, #171424); }
.era-tone-current .era-card-media { background: linear-gradient(135deg, #165c5a, #101d20); }
.era-tone-emerging .era-card-media { background: linear-gradient(135deg, #5d2f5b, #1c121e); }
.era-card-copy { position: relative; z-index: 2; height: 100%; display: grid; align-content: end; gap: 3px; padding: 14px; }
.era-card-copy strong { font-size: 16px; letter-spacing: -.02em; }
.era-card-copy small { max-width: 210px; color: rgba(255,255,255,.72); font-size: 10.5px; line-height: 1.35; }
.explore-format-row { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 4px; scrollbar-width: none; }
.explore-format-row::-webkit-scrollbar { display: none; }
.explore-format {
  flex: 0 0 auto; min-height: 34px; padding: 7px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 650;
}
.explore-format:hover { color: var(--text); background: var(--surface-3); }
.explore-format.active { color: #fff; border-color: var(--accent); background: var(--accent-fill); }
.explore-video-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 290px);
  gap: 12px; overflow-x: auto; padding: 1px 1px 10px; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.explore-video-rail .card { scroll-snap-align: start; }
.explore-results { padding-top: 27px; }
.explore-results > .filters-bar { margin-top: 6px; }

/* Directorio de artistas: encabezado de herramienta, no landing */
.artists-portal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: end;
  gap: 28px;
  padding: 5px 0 22px;
  border-bottom: 1px solid var(--border);
}
.artists-portal-head h1 { margin-top: 3px; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.045em; }
.artists-portal-head p { max-width: 620px; margin-top: 7px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.artists-portal-head .artist-search-box { width: 100%; margin: 0; }
.artists-directory-head { border-top: 0; padding-top: 21px; }

/* Perfil del artista: primera fila de videos cerca del primer viewport */
.artist-premium-hero {
  min-height: 0;
  height: 224px;
  align-items: stretch;
  border-radius: 17px;
}
.artist-hero-collage { grid-template-columns: 1.5fr .75fr; }
.artist-hero-overlay { background: linear-gradient(90deg, rgba(4,6,10,.94) 0%, rgba(4,6,10,.78) 40%, rgba(4,6,10,.2) 78%), linear-gradient(0deg, rgba(4,6,10,.55), transparent); }
.artist-hero-content { align-self: center; max-width: 720px; padding: 18px 25px; }
.artist-back-link { margin-bottom: 8px; font-size: 10.5px; }
.artist-hero-content .editorial-kicker { font-size: 9.5px; }
.artist-hero-content h1 { margin-top: 3px; font-size: clamp(34px, 4.4vw, 56px); line-height: .98; }
.artist-hero-content > p { max-width: 560px; margin-top: 6px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-hero-meta { margin: 10px 0 0; gap: 7px 15px; font-size: 10.5px; }

.artist-featured-compact {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 16px 0 0;
}
.artist-featured-label { display: grid; align-content: center; gap: 4px; padding: 12px 4px; }
.artist-featured-label span { color: var(--text-2); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.artist-featured-label strong { font-size: 17px; line-height: 1.15; letter-spacing: -.02em; }
.artist-featured-compact .artist-featured-video {
  min-height: 138px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  border-radius: 13px;
}
.artist-featured-compact .artist-featured-media { min-height: 138px; }
.artist-featured-compact .artist-featured-play .ui-icon { width: 38px; height: 38px; }
.artist-featured-compact .artist-featured-copy { padding: 15px 18px; }
.artist-featured-compact .artist-featured-copy .editorial-kicker { font-size: 9px; }
.artist-featured-compact .artist-featured-copy h3 { margin-top: 3px; font-size: clamp(17px, 2vw, 23px); line-height: 1.15; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.artist-featured-compact .artist-featured-copy p { margin-top: 6px; font-size: 11px; }
.artist-featured-compact .artist-featured-cta { margin-top: 9px; font-size: 11.5px; }
.artist-videos-section { padding-top: 27px; }
.artist-videos-section .section-heading-row { margin-bottom: 10px; }
.artist-videos-section .section-heading-row h2 { font-size: clamp(22px, 2.5vw, 30px); }
.artist-tabs { margin-bottom: 8px; }

/* Acerca de como parte del portal */
.about-portal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 6px 0 25px;
  border-bottom: 1px solid var(--border);
}
.about-portal-head h1 { max-width: 760px; margin-top: 4px; font-size: clamp(29px, 3.8vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
.about-portal-head .about-lead { max-width: 720px; margin-top: 9px; font-size: 14px; line-height: 1.5; }
.about-portal-head .about-primary-link { margin: 0 0 2px; }
.about-page .about-story { padding: 27px 0 34px; }
.about-page .about-quote { font-size: clamp(20px, 2.3vw, 28px); }
.about-page .about-story > p:last-child { font-size: 14px; }
.about-page .about-values { padding: 13px 0 42px; }
.about-page .about-labels { padding: 35px 0 45px; }
.about-page .about-section-head { margin-bottom: 22px; }
.about-page .about-section-head h2 { font-size: clamp(23px, 2.7vw, 33px); }

@media (max-width: 820px) {
  .portal-section-head, .artists-portal-head, .about-portal-head { grid-template-columns: 1fr; gap: 10px; }
  .portal-section-head p { justify-self: start; }
  .artists-portal-head .artist-search-box { max-width: 520px; margin-top: 4px; }
  .about-portal-head .about-primary-link { margin-top: 2px; }
  .artist-featured-compact { grid-template-columns: 135px minmax(0, 1fr); }
  .artist-featured-compact .artist-featured-video { grid-template-columns: 205px minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .home-portal-intro { min-height: 0; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .home-portal-symbol { width: 30px; height: 30px; }
  .home-portal-intro h1 { font-size: 14px; }
  .home-portal-intro p { font-size: 11.5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .home-portal-intro > a { display: none; }
  .portal-section-head { padding-top: 0; padding-bottom: 15px; }
  .portal-section-head h1 { font-size: 27px; }
  .portal-section-head p { font-size: 12px; }
  .portal-shelf-head > small { display: none; }
  .era-rail { grid-auto-columns: 215px; }
  .era-card { min-height: 100px; }
  .artists-portal-head { padding-top: 0; }
  .artists-portal-head h1 { font-size: 32px; }
  .artist-premium-hero { height: 188px; margin: 0; border-radius: 14px; }
  .artist-hero-content { padding: 14px 17px; }
  .artist-back-link { margin-bottom: 5px; }
  .artist-hero-content h1 { font-size: clamp(32px, 10vw, 45px); }
  .artist-hero-content > p { display: none; }
  .artist-hero-meta { margin-top: 7px; }
  .artist-featured-compact { display: block; padding-top: 12px; }
  .artist-featured-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 1px 8px; }
  .artist-featured-label strong { font-size: 14px; }
  .artist-featured-label span { font-size: 8.5px; }
  .artist-featured-compact .artist-featured-video { min-height: 104px; grid-template-columns: 118px minmax(0, 1fr); border-radius: 11px; }
  .artist-featured-compact .artist-featured-media { min-height: 104px; }
  .artist-featured-compact .artist-featured-play .ui-icon { width: 27px; height: 27px; }
  .artist-featured-compact .artist-featured-copy { padding: 10px 11px; }
  .artist-featured-compact .artist-featured-copy .editorial-kicker, .artist-featured-compact .artist-featured-cta { display: none; }
  .artist-featured-compact .artist-featured-copy h3 { font-size: 13px; }
  .artist-featured-compact .artist-featured-copy p { font-size: 10px; }
  .artist-videos-section { padding-top: 21px; }
  .about-portal-head { padding-top: 0; }
  .about-portal-head h1 { font-size: 30px; }
}

/* ---------- Experiencia de búsqueda y cabeceras funcionales ---------- */
.header {
  display: flex;
  justify-content: space-between;
}
.header-left { position: relative; z-index: 2; }
.header-tools { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tools .primary-nav-item { width: auto; justify-content: center; padding-inline: 9px; }
.header-tools .primary-nav-item span { display: inline; }
.header-tools .header-right a[href="#/acerca"] { display: none; }
.header .search-bar {
  position: absolute;
  left: 50%;
  width: min(720px, calc(100vw - 846px));
  max-width: none;
  min-width: 0;
  margin: 0;
  transform: translateX(-50%);
  display: block;
}
.search-shell {
  display: flex;
  width: 100%;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.035);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.search-shell:focus-within {
  border-color: color-mix(in srgb, var(--accent) 78%, var(--border));
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 9px 28px rgba(0,0,0,.1);
}
.header .search-bar input {
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14.5px;
}
.header .search-bar input:focus { border: 0; box-shadow: none; background: transparent; }
.search-clear {
  width: 40px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-2);
}
.search-clear[hidden] { display: none; }
.search-clear:hover { color: var(--text); }
.search-clear svg { width: 17px; height: 17px; }
.header .search-btn {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface-2);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 160;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.search-suggestions[hidden] { display: none; }
.search-suggestion-group + .search-suggestion-group { margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--border); }
.search-suggestion-label {
  display: block;
  padding: 6px 9px 5px;
  color: var(--text-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.search-suggestion-option {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 10px;
  color: var(--text);
}
.search-suggestion-option:hover,
.search-suggestion-option.is-focused { background: var(--surface-2); }
.search-suggestion-option > span:last-child { min-width: 0; display: grid; gap: 2px; }
.search-suggestion-option strong { overflow: hidden; font-size: 12.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion-option small { overflow: hidden; color: var(--text-2); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-video-option > img { width: 74px; aspect-ratio: 16 / 9; flex: 0 0 auto; border-radius: 7px; object-fit: cover; }
.search-result-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-2); transform: rotate(-45deg); }
.search-result-icon .ui-icon { width: 15px; height: 15px; }
.search-all-results {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
  border-radius: 9px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
}
.search-all-results:hover,
.search-all-results.is-focused { background: var(--accent-soft); }
.search-all-results .ui-icon { width: 14px; height: 14px; }
.search-suggestions-empty { padding: 14px; color: var(--text-2); font-size: 12px; text-align: center; }
.search-suggestions-empty .search-all-results { margin-top: 9px; }
.search-suggestions-loading { display: grid; gap: 8px; padding: 8px; }
.search-suggestions-loading span { height: 38px; border-radius: 9px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 220% 100%; animation: skeletonMove 1.3s linear infinite; }
@keyframes skeletonMove { to { background-position: -220% 0; } }

/* Bienvenida ligera: explica el portal sin competir con el contenido */
.home-welcome {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin: -2px 0 15px;
  padding: 12px 10px 12px 17px;
  border-radius: 13px;
  background: linear-gradient(104deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--surface) 94%, transparent) 62%, color-mix(in srgb, var(--accent-2) 7%, var(--surface)));
  box-shadow: none;
  transition: opacity .18s ease, transform .18s ease, max-height .18s ease, margin .18s ease, padding .18s ease;
}
.home-welcome::after { content: ''; position: absolute; right: 11%; top: -45px; width: 180px; height: 120px; border-radius: 50%; background: var(--accent-soft); filter: blur(38px); opacity: .32; pointer-events: none; }
.home-welcome.is-hiding { max-height: 0; min-height: 0; margin-block: 0; padding-block: 0; opacity: 0; transform: translateY(-5px); }
.home-welcome-rhythm { height: 28px; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--accent); }
.home-welcome-rhythm i { width: 3px; border-radius: 999px; background: currentColor; animation: welcomeRhythm 1.6s ease-in-out infinite; }
.home-welcome-rhythm i:nth-child(1) { height: 9px; }
.home-welcome-rhythm i:nth-child(2) { height: 20px; animation-delay: -.35s; }
.home-welcome-rhythm i:nth-child(3) { height: 14px; animation-delay: -.7s; }
.home-welcome-rhythm i:nth-child(4) { height: 24px; animation-delay: -1.05s; }
@keyframes welcomeRhythm { 0%, 100% { transform: scaleY(.65); opacity: .62; } 50% { transform: scaleY(1); opacity: 1; } }
.home-welcome-copy { position: relative; z-index: 1; min-width: 0; }
.home-welcome-copy strong { display: block; margin-bottom: 3px; font-size: 13.5px; letter-spacing: -.01em; }
.home-welcome-copy p { max-width: 920px; color: var(--text-2); font-size: 11.7px; line-height: 1.45; }
.home-welcome-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.home-welcome-link .ui-icon { width: 13px; height: 13px; }
.home-welcome-close { position: relative; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); }
.home-welcome-close:hover { background: var(--surface-2); color: var(--text); }
.home-welcome-close .ui-icon { width: 16px; height: 16px; }

/* Cabeceras de herramienta: el contenido empieza inmediatamente */
.section-tool-head {
  min-height: 62px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
}
.section-tool-head h1 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1; letter-spacing: -.045em; }
.section-tool-head p { margin-top: 5px; color: var(--text-2); font-size: 12px; line-height: 1.35; }
.section-tool-head > span { color: var(--text-2); font-size: 10.5px; font-weight: 680; white-space: nowrap; }
.section-tool-head.is-memory h1 { color: var(--text); }
.search-results-head { margin-bottom: 12px; }

.artists-portal-head {
  min-height: 62px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 15px;
}
.artists-portal-head > div { display: grid; gap: 4px; }
.artists-portal-head h1 { margin: 0; font-size: clamp(25px, 2.6vw, 34px); }
.artists-portal-head > div > span { color: var(--text-2); font-size: 11px; }
.artists-portal-head .artist-search-box { width: min(100%, 420px); height: 40px; border-radius: 999px; }
.artists-directory-head { padding-top: 17px; }

@media (max-width: 1180px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .header-tools .primary-nav { display: none; }
  .header .search-bar { width: min(680px, calc(100vw - 400px)); }
  .mobile-nav {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0;
    min-height: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 5px max(8px, env(safe-area-inset-left)) max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .mobile-nav-item { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; color: var(--text-2); font-size: 9.5px; font-weight: 650; }
  .mobile-nav-item svg { width: 21px; height: 21px; }
  .mobile-nav-item.active { color: var(--accent); }
  .mini-player { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) {
  .header { display: flex; }
  .header .search-bar { display: none; }
  .header.search-open {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 8px;
  }
  .header.search-open .header-left,
  .header.search-open .header-tools .primary-nav,
  .header.search-open .header-right > :not(#btn-mobile-search) { display: none; }
  .header.search-open .header-tools { grid-column: 1; grid-row: 1; display: flex; margin: 0; }
  .header.search-open .header-right { display: flex; }
  .header.search-open #btn-mobile-search svg { display: none; }
  .header.search-open #btn-mobile-search::before { content: '←'; font-size: 22px; line-height: 1; }
  .header.search-open .search-bar {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    transform: none;
    box-shadow: none;
  }
  .search-shell { height: 42px; }
  .header .search-bar input, .header .search-btn, .search-clear { height: 40px; }
  .search-suggestions { position: fixed; top: calc(var(--header-h) + 5px); left: 8px; right: 8px; max-height: calc(100vh - var(--header-h) - 86px); }
  .home-welcome { min-height: 72px; grid-template-columns: 21px minmax(0, 1fr) 32px; gap: 9px; margin-top: -8px; padding: 10px 8px 10px 13px; }
  .home-welcome-link { display: none; }
  .home-welcome-copy strong { font-size: 12.5px; }
  .home-welcome-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10.5px; }
  .home-welcome-rhythm { gap: 2px; }
  .home-welcome-rhythm i { width: 2px; }
  .section-tool-head { min-height: 52px; align-items: end; margin-bottom: 14px; padding-bottom: 11px; }
  .section-tool-head h1 { font-size: 26px; }
  .section-tool-head p { max-width: 250px; font-size: 10.5px; }
  .section-tool-head > span { display: none; }
  .artists-portal-head { align-items: stretch; flex-direction: column; gap: 10px; padding-bottom: 13px; }
  .artists-portal-head .artist-search-box { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-welcome-rhythm i { animation: none; }
  .home-welcome { transition: none; }
}

/* ---------- Navegación responsive: búsqueda primero, sin solapamientos ---------- */
.about-header-link { display: inline-flex !important; }
.about-header-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}

@media (min-width: 1520px) {
  .header .search-bar {
    width: min(640px, calc(100vw - 940px));
    min-width: 500px;
  }
}

@media (min-width: 1024px) and (max-width: 1519px) {
  :root { --header-h: 108px; }
  body { padding-bottom: 0; }
  .header {
    display: grid;
    grid-template-columns: max-content minmax(300px, 680px) max-content;
    grid-template-rows: 64px 44px;
    justify-content: space-between;
    align-items: center;
    gap: 0 22px;
    padding-inline: 16px;
  }
  .header-left { grid-column: 1; grid-row: 1; }
  .header .search-bar {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 680px;
    min-width: 0;
    transform: none;
  }
  .header-tools { display: contents; }
  .header-tools .primary-nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    display: flex;
    padding: 3px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .header-tools .primary-nav-item {
    width: auto;
    min-height: 34px;
    padding: 6px 13px;
  }
  .header-tools .primary-nav-item span { display: inline; }
  .header-right { grid-column: 3; grid-row: 1; justify-self: end; }
  .mobile-nav { display: none !important; }
  .mini-player { bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (min-width: 761px) and (max-width: 1023px) {
  :root { --header-h: 64px; }
  .header {
    display: grid;
    grid-template-columns: max-content minmax(240px, 1fr) max-content;
    gap: 12px;
  }
  .header-left { grid-column: 1; }
  .header .search-bar {
    position: static;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    transform: none;
  }
  .header-tools { grid-column: 3; margin-left: 0; }
  .header-tools .primary-nav { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-tools { margin-left: auto; }
  .header-right { gap: 1px; }
  .header-right .about-header-link { display: inline-flex !important; }
}

@media (max-width: 370px) {
  .logo-text { display: none; }
}

/* ---------- Filtros como herramienta flotante, no como tarjeta de sistema ---------- */
.filters-shell { position: relative; }
.home-video-feed .filters-shell {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  margin: -10px 0 12px;
  padding: 12px 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.home-video-feed .filters-shell .filters-bar {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.filters-toggle { min-height: 38px; }
.filters-toggle .filter-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
}
.filters-scrim { display: none; }
.filters-panel {
  position: absolute;
  z-index: 175;
  top: calc(100% + 8px);
  right: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: min(70vh, 650px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.filters-panel.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: filterPopoverIn .18s cubic-bezier(.2,.75,.2,1);
}
@keyframes filterPopoverIn {
  from { opacity: 0; transform: translateY(-7px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.filters-panel-head {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 12px 13px 11px 18px;
  border-bottom: 1px solid var(--border);
}
.filters-panel-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-2);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.filters-panel-head h2 { font-size: 17px; line-height: 1.15; letter-spacing: -.025em; }
.filters-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}
.filters-close:hover { background: var(--surface-2); color: var(--text); }
.filters-close svg { width: 19px; height: 19px; }
.filters-panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}
.filters-panel .f-col { min-width: 0; }
.filters-panel .f-head {
  margin-bottom: 7px;
  padding-bottom: 7px;
  font-size: 10px;
  letter-spacing: .075em;
}
.filters-panel .f-link {
  position: relative;
  min-height: 33px;
  padding: 7px 24px 7px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.3;
}
.filters-panel .f-link:hover { background: var(--surface-2); }
.filters-panel .f-link.active { background: var(--accent-soft); color: var(--accent); }
.filters-panel .f-link.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
}
.specific-years { margin-top: 5px; border-top: 1px solid var(--border); }
.specific-years summary {
  padding: 10px 7px 6px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}
.specific-years[open] summary { color: var(--text); }
.specific-years-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding-top: 3px;
}
.specific-years-grid .f-link { padding-inline: 6px; text-align: center; }
.specific-years-grid .f-link.active::after { display: none; }
.filters-panel-actions { display: none; }

@media (max-width: 760px) {
  .home-video-feed .filters-shell {
    margin-top: -7px;
    padding-top: 9px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .filters-shell:has(.filters-panel.open) { z-index: 180; }
  .filters-scrim.open {
    position: fixed;
    z-index: 180;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3,5,10,.58);
    backdrop-filter: blur(2px);
  }
  .filters-panel,
  .filters-panel.open {
    position: fixed;
    z-index: 190;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 78dvh;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    background: var(--surface);
  }
  .filters-panel.open { animation: filterSheetIn .23s cubic-bezier(.2,.75,.2,1); }
  @keyframes filterSheetIn {
    from { opacity: .5; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .filters-panel-head { min-height: 65px; padding-inline: 18px 12px; }
  .filters-panel-body { grid-template-columns: 1fr; gap: 20px; padding: 16px 18px 22px; }
  .filters-panel .f-link { min-height: 42px; display: flex; align-items: center; font-size: 14px; }
  .specific-years-grid { grid-template-columns: repeat(4, 1fr); }
  .specific-years-grid .f-link { justify-content: center; }
  .filters-panel-actions {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  .filters-panel-actions button { min-height: 44px; border-radius: 12px; font-size: 13px; font-weight: 750; }
  .filters-clear-action { border: 1px solid var(--border); background: transparent; color: var(--text); }
  .filters-apply-action { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .filters-panel.open { animation: none; }
}

/* ---------- Vista de reproducción: artista primero y navegación continua ---------- */
.watch-routebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.watch-back,
.watch-more-artist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 690;
  transition: color .14s ease;
}
.watch-back:hover,
.watch-more-artist:hover { color: var(--accent); }
.watch-back .ui-icon,
.watch-more-artist .ui-icon { width: 14px; height: 14px; }
.watch-back .ui-icon { transform: rotate(180deg); }
.watch-title { margin-bottom: 5px; }
.watch-video-stats {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 520;
}
.watch-channel-name {
  display: block;
  width: max-content;
  max-width: min(340px, 48vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .14s ease;
}
a.watch-channel-name:hover { color: var(--accent); }
.watch-artist-avatar { overflow: hidden; }
.watch-artist-avatar img { width: 100%; height: 100%; object-fit: cover; }
.watch-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.45;
}
.watch-source a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.watch-source a:hover { color: var(--accent); text-decoration-color: currentColor; }
#btn-continue-browsing { white-space: nowrap; }

@media (max-width: 640px) {
  .watch-routebar { min-height: 29px; margin: -2px 0 7px; }
  .watch-more-artist { display: none; }
  .watch-back { font-size: 10.5px; }
  .watch-title { margin-top: 11px; }
  .watch-video-stats { margin-bottom: 10px; font-size: 10.5px; }
  .watch-actions { align-items: flex-start; }
  .watch-action-buttons {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }
  .watch-action-buttons::-webkit-scrollbar { display: none; }
  .watch-action-buttons .btn { min-height: 39px; flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }
  .watch-channel-name { max-width: calc(100vw - 100px); }
  .watch-source { margin-top: 8px; }
}

/* ---------- Header de escritorio y portátil en una sola línea ---------- */
.primary-nav-group { display: flex; align-items: center; gap: 2px; }

@media (min-width: 1024px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 0; }
  .header {
    height: var(--header-h);
    display: grid;
    grid-template-columns: 150px minmax(188px, 1fr) minmax(260px, 620px) minmax(188px, 1fr) 150px;
    grid-template-rows: 64px;
    align-items: center;
    justify-content: stretch;
    gap: 0 8px;
    padding-inline: 16px;
  }
  .header-left {
    grid-column: 1;
    grid-row: 1;
    min-width: 150px;
  }
  .header .search-bar {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    max-width: 620px;
    min-width: 0;
    margin: 0;
    transform: none;
  }
  .header-tools { display: contents; }
  .header-tools .primary-nav { display: contents; }
  .primary-nav-left {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .primary-nav-right {
    grid-column: 4;
    grid-row: 1;
    justify-self: start;
  }
  .header-tools .primary-nav-item {
    width: auto;
    min-height: 36px;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .header-tools .primary-nav-item span { display: inline; }
  .header-tools .primary-nav-item svg { width: 17px; height: 17px; }
  .header-right {
    grid-column: 5;
    grid-row: 1;
    width: 150px;
    justify-content: flex-end;
  }
  .mobile-nav { display: none !important; }
  .mini-player { bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .header {
    grid-template-columns: 142px minmax(162px, 1fr) minmax(300px, 620px) minmax(162px, 1fr) 142px;
    gap: 0 5px;
    padding-inline: 12px;
  }
  .header-left,
  .header-right { min-width: 142px; width: 142px; }
  .logo-text { font-size: 18px; }
  .header-tools .primary-nav-item { gap: 4px; padding-inline: 6px; font-size: 11.25px; }
  .header-tools .primary-nav-item svg { width: 16px; height: 16px; }
  .header .search-bar input { padding-left: 14px; font-size: 13.5px; }
}
