/* ====================================================
   MP4REMIX — styles.css
   Paleta, tipografía y layout de la landing
==================================================== */

:root {
  --bg:        #08080c;
  --bg-2:      #0d0d14;
  --card:      rgba(255, 255, 255, 0.035);
  --card-2:    rgba(255, 255, 255, 0.05);
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.12);

  --pink:      #ff1b6b;
  --pink-2:    #ff5d96;
  --magenta:   #c724b1;
  --grad:      linear-gradient(95deg, #ff1b6b 0%, #ff3d8b 45%, #d630a8 100%);

  --text:      #ffffff;
  --muted:     #9a9aab;
  --dim:       #6b6b7a;

  --radius:    14px;
  --radius-lg: 20px;
  --maxw:      1280px;

  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====================================================
   HEADER
==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 78px;
}

/* Contenedor colapsable (buscador + acciones) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

/* Botón hamburguesa: oculto en escritorio */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 46px; height: 36px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .5px;
}
.brand__text em {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: 2.4px;
  color: var(--muted);
  margin-top: 3px;
}

/* Buscador */
.search {
  flex: 1;
  max-width: 660px;
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--pink); background: rgba(255,27,107,.05); }
.search__btn {
  position: absolute;
  right: 8px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: transparent;
  color: var(--pink);
}
.search__btn svg { width: 20px; height: 20px; }

/* Acciones */
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.credits {
  display: flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: .92rem;
}
.credits__label { color: var(--muted); }
.credits__value { color: var(--pink); font-weight: 700; }

.icon-btn, .avatar, .lang {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover, .avatar:hover, .lang:hover { border-color: var(--border-2); background: var(--card-2); }

.icon-btn { width: 50px; height: 50px; border-radius: 999px; position: relative; }
.icon-btn svg { width: 22px; height: 22px; }
.notif__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}

.avatar { gap: 6px; height: 50px; padding: 0 12px 0 6px; border-radius: 999px; border-color: rgba(255,27,107,.35); }
.avatar > svg:first-child { width: 30px; height: 26px; }
.avatar__chev { width: 16px; height: 16px; color: var(--muted); }

.lang { gap: 8px; height: 50px; padding: 0 16px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.lang svg:first-child { width: 19px; height: 19px; }
.lang__chev { width: 15px; height: 15px; color: var(--muted); }

/* ====================================================
   HERO
==================================================== */
.hero { position: relative; padding-top: 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero-sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* USPs */
.usp {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.usp__item { display: flex; gap: 14px; max-width: 220px; }
.usp__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,27,107,.1);
  border: 1px solid rgba(255,27,107,.25);
  color: var(--pink);
}
.usp__icon svg { width: 22px; height: 22px; }
.usp__item h3 { font-size: .98rem; font-weight: 700; color: var(--pink); }
.usp__item p { font-size: .86rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* Botones */
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(255,27,107,.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255,27,107,.7); }
.btn--ghost {
  background: var(--card);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { background: var(--card-2); border-color: var(--pink); }

/* Visual derecha */
.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #2a1030 0%, #120814 55%, #08080c 100%);
  border: 1px solid var(--border);
}
/* Luces de escenario simuladas (reemplazable por <img>) */
.hero-photo__lights {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 78% 8%, rgba(199,36,177,.65), transparent 60%),
    radial-gradient(35% 55% at 20% 6%, rgba(255,27,107,.55), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(255,27,107,.35), transparent 70%);
  filter: blur(4px);
}
.hero-photo__dj {
  position: absolute; left: 50%; bottom: -2%;
  width: 38%; height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(60% 40% at 50% 18%, #1a1320 0%, #0c0810 70%, transparent 100%);
  border-radius: 45% 45% 0 0 / 60% 60% 0 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.6);
}
.hero-photo__dj::before {
  content: "";
  position: absolute; top: -16%; left: 50%; transform: translateX(-50%);
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: #0a0710;
}

/* Reproductor flotante */
.player {
  position: absolute;
  right: 18px; bottom: 18px;
  width: min(420px, 78%);
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(14,12,18,.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.7);
}
.player__play {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border-2);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
.player__play:hover { background: var(--pink); transform: scale(1.05); }
.player__play svg { width: 24px; height: 24px; margin-left: 2px; }
.player__info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.player__tag { font-size: .66rem; font-weight: 800; letter-spacing: 1.5px; color: var(--pink); }
.player__title { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__wave { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 4px; }
.player__wave span {
  flex: 1;
  background: var(--pink);
  border-radius: 2px;
  opacity: .85;
  animation: wave 1.1s ease-in-out infinite;
}
@keyframes wave { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ====================================================
   FEATURE BAR
==================================================== */
.features { margin-top: 64px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 0;
}
.feature {
  display: flex; gap: 16px;
  padding: 4px 36px;
  position: relative;
}
.feature + .feature::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 64%; background: var(--border);
}
.feature__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--pink);
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.02rem; font-weight: 700; }
.feature p { font-size: .86rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ====================================================
   STATS
==================================================== */
.stats { padding: 90px 0 70px; }
.stats-grid {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr);
  gap: 56px;
  align-items: center;
}
.stats-copy h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.5px;
}
.stats-copy p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; max-width: 420px; }
.stats-copy .btn { margin-top: 30px; }

.stats-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 6px 14px;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 78%; background: var(--border);
}
.stat__icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,27,107,.1);
  color: var(--pink);
  margin-bottom: 18px;
}
.stat__icon svg { width: 26px; height: 26px; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1;
}
.stat__label {
  font-size: .72rem; letter-spacing: 1.4px; font-weight: 600;
  color: var(--muted); margin-top: 8px;
}

/* ====================================================
   TRUSTED BY
==================================================== */
.trusted {
  padding: 36px 0 70px;
  border-top: 1px solid var(--border);
}
.trusted__title {
  text-align: center;
  font-size: .76rem; letter-spacing: 2.6px; font-weight: 600;
  color: var(--dim);
  margin-bottom: 34px;
}
.trusted__logos {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(24px, 5vw, 70px);
  flex-wrap: wrap;
}
.trusted__logos li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--dim);
  opacity: .55;
  transition: opacity .25s, color .25s;
  cursor: default;
}
.trusted__logos li:hover { opacity: 1; color: var(--muted); }

/* ====================================================
   DROPDOWNS (notificaciones / idioma)
==================================================== */
.dropdown { position: relative; }
.dropdown__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: rgba(13, 13, 20, 0.98);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.8);
  padding: 8px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown.open .dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown__toggle { cursor: pointer; }
[data-dropdown-toggle][aria-expanded="true"] .lang__chev,
[data-dropdown-toggle][aria-expanded="true"] .avatar__chev { transform: rotate(180deg); }

/* Panel de notificaciones */
.notif-panel { width: 340px; padding: 0; }
.notif-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .95rem;
}
.notif-panel__clear {
  border: 0; background: none; cursor: pointer;
  color: var(--pink); font-size: .78rem; font-weight: 600;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item__dot {
  flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px;
  border-radius: 50%; background: var(--border-2);
}
.notif-item.is-unread .notif-item__dot { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.notif-item p { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.notif-item p strong { color: var(--text); font-weight: 600; }
.notif-item time { font-size: .72rem; color: var(--dim); margin-top: 4px; display: block; }
.notif-panel__all {
  display: block; text-align: center;
  padding: 13px; font-size: .85rem; font-weight: 600;
  color: var(--pink);
  border-top: 1px solid var(--border);
}
.notif-panel__all:hover { background: var(--card); }

/* Panel de idioma */
.lang-panel { min-width: 190px; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0; border-radius: 9px;
  background: none; color: var(--text);
  font-size: .92rem; text-align: left; cursor: pointer;
  transition: background .15s;
}
.lang-option:hover { background: var(--card-2); }
.lang-option.is-active { color: var(--pink); font-weight: 700; }
.lang-option.is-active::after {
  content: "✓"; margin-left: auto; font-size: .9rem;
}

/* Panel del avatar (menú de cuenta) */
.avatar-panel { min-width: 230px; padding: 6px; }
.avatar-panel__head { padding: 12px 14px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.avatar-panel__head strong { display: block; font-size: .95rem; }
.avatar-panel__head span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.avatar-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  font-size: .9rem; color: var(--text); transition: background .14s;
}
.avatar-panel a svg { width: 17px; height: 17px; color: var(--muted); }
.avatar-panel a:hover { background: var(--card-2); }
.avatar-panel a.is-danger { color: #ff5d6c; }
.avatar-panel a.is-danger svg { color: #ff5d6c; }
.avatar-panel__sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ====================================================
   ÚLTIMOS LANZAMIENTOS (track table)
==================================================== */
.releases { padding: 80px 0 10px; }
.releases-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.releases-head h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.5px;
}
.releases-head > div > p { color: var(--muted); margin-top: 12px; font-size: 1rem; }
.releases-all {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pink); font-weight: 600; font-size: .95rem;
  transition: gap .2s;
}
.releases-all:hover { gap: 12px; }
.releases-all svg { width: 18px; height: 18px; }

.track-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

/* Cada fila comparte la misma rejilla */
.track-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.5fr) 56px 108px 96px 88px minmax(168px, auto);
  align-items: center;
  gap: 18px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--border);
}
.track-row:last-child { border-bottom: 0; }
.track-row:not(.track-row--head) { transition: background .18s; }
.track-row:not(.track-row--head):hover { background: var(--card-2); }

.track-row--head { background: rgba(255,255,255,.02); padding-block: 16px; }
.track-row--head span {
  font-size: .7rem; letter-spacing: 1.2px; font-weight: 600; color: var(--dim);
}

/* Columna principal: miniatura + info */
.track-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.track-thumb {
  position: relative; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 11px;
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--c1, #8a1fb0), var(--c2, #3a0d52));
  display: grid; place-items: center;
  transition: transform .15s;
}
.track-thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: 11px;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 60%);
}
.track-thumb svg { position: relative; z-index: 1; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.track-thumb:hover { transform: scale(1.05); }

.track-info { min-width: 0; }
.track-info h3 {
  font-size: .95rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.track-type { font-size: .68rem; letter-spacing: .8px; font-weight: 600; color: var(--dim); }

/* Etiquetas de tipo */
.tag {
  font-size: .61rem; font-weight: 800; letter-spacing: .6px;
  padding: 3px 8px; border-radius: 5px; border: 1px solid; white-space: nowrap;
}
.tag--exclusive { color: #f5b740; border-color: rgba(245,183,64,.5);  background: rgba(245,183,64,.08); }
.tag--new       { color: #ff4d8d; border-color: rgba(255,77,141,.55); background: rgba(255,27,107,.1); }
.tag--4k        { color: #f5b740; border-color: rgba(245,183,64,.5);  background: rgba(245,183,64,.08); }
.tag--clean     { color: #3ddc84; border-color: rgba(61,220,132,.5);  background: rgba(61,220,132,.08); }
.tag--dirty     { color: #ff5d6c; border-color: rgba(255,93,108,.55); background: rgba(255,93,108,.08); }

/* Celdas de datos */
.t-cell { font-size: .88rem; color: var(--muted); }
.track-artist { font-size: .85rem; line-height: 1.35; }
.track-bpm, .track-size, .track-res { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }
.track-date { white-space: nowrap; }

/* Acciones */
.track-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.t-btn {
  height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--card);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s, transform .12s;
}
.t-btn:hover { transform: translateY(-1px); }
.t-btn--icon { width: 40px; }
.t-btn--icon:hover { border-color: var(--pink); color: var(--pink); }
.t-btn--icon svg { width: 18px; height: 18px; }
.t-btn--dl {
  gap: 6px; padding: 0 16px; font-weight: 700; font-size: .82rem;
  background: var(--grad); border-color: transparent; color: #fff;
}
.t-btn--dl svg { width: 16px; height: 16px; }
.t-btn--dl:hover { box-shadow: 0 8px 20px -6px rgba(255,27,107,.6); }

/* ====================================================
   PRICING / PLANES
==================================================== */
.pricing { padding: 30px 0 80px; }
.pricing-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  font-size: .74rem; letter-spacing: 2.6px; font-weight: 700;
  color: var(--pink); margin-bottom: 16px;
}
.pricing-head h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.5px;
}
.pricing-head > p { color: var(--muted); margin-top: 18px; font-size: 1.05rem; }

.billing-toggle {
  display: inline-flex; gap: 4px;
  margin-top: 28px; padding: 5px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card);
}
.billing-toggle__btn {
  border: 0; cursor: pointer;
  padding: 10px 22px; border-radius: 999px;
  background: none; color: var(--muted);
  font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s;
}
.billing-toggle__btn.is-active { background: var(--grad); color: #fff; }
.billing-toggle .save { font-size: .72rem; opacity: .9; margin-left: 4px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); }
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 50px -20px rgba(255,27,107,.5);
  transform: translateY(-10px);
}
.plan--featured:hover { transform: translateY(-14px); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: 1.2px;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.plan__head h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.plan__head p { color: var(--muted); font-size: .88rem; margin-top: 8px; min-height: 40px; }
.plan__price { display: flex; align-items: flex-start; gap: 2px; margin: 22px 0 26px; }
.plan__currency { font-size: 1.3rem; font-weight: 700; margin-top: 8px; }
.plan__amount { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.plan__period { color: var(--muted); align-self: flex-end; margin-bottom: 8px; font-size: .95rem; }
.plan__features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan__features li {
  position: relative; padding-left: 30px;
  font-size: .92rem; color: var(--muted); line-height: 1.4;
}
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255,27,107,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff1b6b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.plan__cta { width: 100%; justify-content: center; }

/* ====================================================
   FOOTER
==================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 54px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand__desc { color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--pink); border-color: var(--pink); background: rgba(255,27,107,.08); }
.footer-social svg { width: 19px; height: 19px; }

.footer-col h4 { font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--pink); }

.footer-news p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; line-height: 1.5; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: .9rem; outline: none;
}
.news-form input:focus { border-color: var(--pink); }
.news-form button {
  flex-shrink: 0; width: 46px; height: 46px; border: 0; cursor: pointer;
  border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center;
}
.news-form button svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--dim); font-size: .85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--dim); font-size: .85rem; transition: color .15s; }
.footer-legal a:hover { color: var(--text); }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 1080px) {
  .search { max-width: 380px; }
  .credits, .lang span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .feature:nth-child(odd) + .feature::before,
  .feature:nth-child(3)::before { background: var(--border); }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; order: -1; }
  .plan--featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-news { grid-column: 1 / -1; }
}

/* ---- Tabla de lanzamientos: tarjetas en pantallas medianas/móvil ---- */
@media (max-width: 980px) {
  .releases-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .track-row--head { display: none; }
  .track-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px 18px; padding: 18px 20px;
  }
  .track-main { flex: 1 1 100%; }
  .t-cell { font-size: .82rem; }
  .t-cell::before {
    content: attr(data-label) ": ";
    color: var(--dim); font-size: .68rem; text-transform: uppercase;
    letter-spacing: .5px; font-weight: 600; margin-right: 2px;
  }
  .track-artist { flex-basis: 100%; }
  .track-actions { flex: 1 1 100%; justify-content: flex-start; margin-top: 6px; }
}

/* ---- Header colapsable (menú móvil) ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 26px;
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.8);

    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .header-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .search { max-width: none; width: 100%; }

  .header-actions {
    justify-content: space-between;
    width: 100%;
  }
  .credits, .lang span { display: flex; }   /* se vuelven a mostrar dentro del panel */
  .credits { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .header-inner { height: 66px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature::before { display: none !important; }
  .feature { padding: 6px 28px; }
  .stats-numbers { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat::before { display: none; }
  .player { position: static; width: 100%; margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  /* En el panel móvil, los dropdowns se abren hacia la izquierda para no salirse */
  .notif-panel { width: min(320px, 80vw); }
  .dropdown__panel { right: auto; left: 0; }
}

@media (max-width: 420px) {
  .header-actions { flex-wrap: wrap; gap: 12px; }
  .credits { order: -1; flex-basis: 100%; justify-content: center; }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* ====================================================
   INTEGRACIÓN PHP / MENÚ HOME
   Reemplaza los estilos del menú antiguo sin depender de Bootstrap.
==================================================== */

#wrapper { min-height: 100vh; }

.brand > img {
  display: block;
  width: auto;
  max-width: min(290px, 31vw);
  height: 40px;
  object-fit: contain;
}

.header-actions .btn {
  height: 50px;
  padding-inline: 20px;
  font-size: .9rem;
  white-space: nowrap;
}

.header-actions .btn--ghost { border-color: var(--border); }

.nav-menu-panel {
  width: 290px;
  padding: 8px;
  left: 0;
  right: auto;
}

.nav-menu-panel__stats {
  padding: 12px 14px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.nav-menu-panel__stats strong { color: var(--pink); }

.nav-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 9px;
  color: var(--text);
  font-size: .9rem;
  transition: background .15s, color .15s;
}

.nav-menu-panel a:hover,
.nav-menu-panel a.is-active {
  background: var(--card-2);
  color: var(--pink);
}

.nav-menu-panel a.is-free { color: #f5b740; }

.nav-menu-panel__sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}

.avatar-panel__head span.is-expired,
.membership-expired { color: #ff5d6c; }

.avatar-panel__head span.is-unlimited { color: #f5b740; }

.avatar-panel a.is-admin { color: #f5b740; }

.notif-panel__empty {
  padding: 20px 18px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

#setting_toggler { display: none !important; }

.list__date.is-today-gold {
  color: rgb(237, 3, 102) !important;
  font-weight: 700 !important;
}

/* Encuestas/modales sin estilos del tema antiguo */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.modal.show {
  display: grid;
  place-items: center;
}

.modal-dialog {
  width: min(100%, 520px);
  margin: auto;
}

.modal-content {
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: #111119;
  color: var(--text);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9);
}

.modal-header,
.modal-body,
.modal-footer { padding: 20px 24px; }

.modal-header { border-bottom: 1px solid var(--border); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.modal-body {
  color: var(--muted);
  line-height: 1.6;
}

.modal .form-control {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  background: var(--card);
  color: var(--text);
  color-scheme: dark;
}

.modal .form-check { margin-top: 10px; }
.modal .form-check-input { margin-right: 8px; accent-color: var(--pink); }
.modal .form-check-label { color: var(--text); }
.modal .btn-success {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

body.modal-open { overflow: hidden; }

@media (max-width: 1080px) {
  .brand > img { max-width: 220px; }
}

@media (max-width: 900px) {
  .nav-menu-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .header-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .brand > img {
    max-width: 190px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .brand > img { max-width: 158px; }
  .header-actions .btn { min-width: calc(50% - 6px); }
}









/* ====================================================
   MP4REMIX HOME — integración con el PHP anterior
   Cargar después de styles.css.
==================================================== */

.home-content .player__play:disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.home-content .plans--dynamic {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* ====================================================
   LATEST RELEASES
   Layout propio para evitar colisiones con el CSS antiguo.
==================================================== */
.home-content .release-table {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 18px 50px -34px rgba(0, 0, 0, .9);
}

.home-content .release-row {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(270px, 2.45fr)
    minmax(110px, .85fr)
    108px
    96px
    minmax(224px, auto);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease;
}

.home-content .release-row:last-child {
  border-bottom: 0;
}

.home-content .release-row:not(.release-row--head):hover {
  background: var(--card-2);
}

.home-content .release-row.is-downloaded {
  background: rgba(61, 220, 132, .028);
}

.home-content .release-row--head {
  min-height: 50px;
  padding-block: 14px;
  background: rgba(255, 255, 255, .02);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-content .release-row--head > span {
  min-width: 0;
  color: var(--dim);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.home-content .release-row--head > span:last-child {
  text-align: right;
}

.home-content .release-row .track-main,
.home-content .release-row .track-info {
  min-width: 0;
}

.home-content .track-thumb--image {
  overflow: hidden;
  isolation: isolate;
  background: #17171f;
}

.home-content .track-thumb--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-content .track-thumb--image::after {
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .04));
}

.home-content .track-thumb--image svg {
  z-index: 2;
  opacity: .96;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .9));
}

.home-content .track-title-button {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.home-content .track-title-button:hover {
  color: var(--pink);
}

.home-content .track-meta {
  min-height: 22px;
  flex-wrap: wrap;
}

.home-content .tag--hot {
  color: #ff7b52;
  border-color: rgba(255, 123, 82, .5);
  background: rgba(255, 123, 82, .08);
}

.home-content .tag--viewed {
  color: #79a9ff;
  border-color: rgba(121, 169, 255, .45);
  background: rgba(121, 169, 255, .08);
}

.home-content .tag--downloaded {
  color: #3ddc84;
  border-color: rgba(61, 220, 132, .5);
  background: rgba(61, 220, 132, .08);
}

.home-content .release-cell {
  min-width: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.home-content .release-genre {
  overflow-wrap: anywhere;
}

.home-content .release-date {
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.home-content .release-date.is-today {
  color: var(--pink);
  font-weight: 800;
}

.home-content .release-version {
  display: flex;
  align-items: center;
}

.home-content .release-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.home-content .t-btn--crate {
  color: var(--muted);
}

.home-content .t-btn--crate:hover,
.home-content .t-btn--crate.is-in-crate {
  color: var(--pink);
  border-color: var(--pink);
}

.home-content .t-btn--crate i {
  display: none;
}

.home-content .release-more {
  position: relative;
  flex: 0 0 auto;
}

.home-content .release-more__toggle svg {
  width: 18px;
  height: 18px;
}

.home-content .release-more__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: 164px;
  padding: 6px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: rgba(13, 13, 20, .99);
  box-shadow: 0 20px 46px -14px rgba(0, 0, 0, .85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.home-content .release-more.open .release-more__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.home-content .release-more__menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .84rem;
  text-align: left;
  cursor: pointer;
}

.home-content .release-more__menu button:hover {
  background: var(--card-2);
}

.home-content .release-more__menu button.is-danger {
  color: #ff6c79;
}

.home-content .release-more__menu svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.home-content .home-empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}

.home-content .home-empty-state svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  color: var(--dim);
}

.home-content .home-empty-state h3 {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.home-content .home-empty-state p {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .home-content .release-row {
    grid-template-columns:
      minmax(230px, 2fr)
      minmax(90px, .7fr)
      100px
      88px
      minmax(205px, auto);
    gap: 12px;
    padding-inline: 16px;
  }

  .home-content .release-actions {
    gap: 5px;
  }

  .home-content .release-actions .t-btn--dl {
    padding-inline: 11px;
  }
}

@media (max-width: 940px) {
  .home-content .release-row--head {
    display: none;
  }

  .home-content .release-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-content .release-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
  }

  .home-content .release-row:last-child {
    border-bottom: 1px solid var(--border);
  }

  .home-content .release-row .track-main {
    align-items: flex-start;
  }

  .home-content .release-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding-top: 9px;
    border-top: 1px solid var(--border);
  }

  .home-content .release-cell::before {
    content: attr(data-label);
    color: var(--dim);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
  }

  .home-content .release-actions {
    justify-content: stretch;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .home-content .release-actions .t-btn--dl {
    flex: 1;
    justify-content: center;
  }

  .home-content .release-more__menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 9px);
    transform: translateY(6px);
  }

  .home-content .release-more.open .release-more__menu {
    transform: translateY(0);
  }
}

@media (max-width: 650px) {
  .home-content .release-table {
    grid-template-columns: 1fr;
  }

  .home-content .track-thumb {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 420px) {
  .home-content .release-actions {
    flex-wrap: wrap;
  }

  .home-content .release-actions .t-btn--dl {
    min-width: calc(50% - 26px);
  }
}
