:root{
  --red:#dc1747;
  --red2:#ef2658;
  --ink:#111217;
  --muted:#7b7f8a;
  --bg:#f7f7f7;
  --card:#ffffff;
  --line:#e9e9ec;
  --shadow:0 18px 55px rgba(18,18,24,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:radial-gradient(circle at 50% 0,#fff 0,#fbfbfc 42%,#f4f4f6 100%);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.shell{width:min(1040px,calc(100% - 34px));margin:0 auto;padding:36px 0 34px}
.brand{text-align:center}
.brand-lockup{display:inline-flex;align-items:center;justify-content:center;gap:13px}
.brand-mark{width:54px;height:54px;object-fit:contain}
.brand-copy{text-align:left;line-height:1}
.brand-name{font-size:38px;font-weight:800;letter-spacing:.025em}
.brand-sub{margin-top:5px;font-size:12px;letter-spacing:.30em;color:#666a73;font-weight:600}

.player{display:grid;grid-template-columns:minmax(240px,360px) 1fr;gap:54px;align-items:center;margin:24px auto 0;padding:30px;background:rgba(255,255,255,.94);border:1px solid rgba(229,229,233,.95);border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.cover-wrap{position:relative}.cover{display:block;aspect-ratio:1;width:100%;object-fit:cover;border-radius:22px;box-shadow:0 18px 38px rgba(16,16,21,.15);background:#ededf0}.live-badge{position:absolute;left:14px;top:14px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 5px 18px rgba(0,0,0,.08);font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--red)}.live-badge i,.status i{width:7px;height:7px;border-radius:50%;display:inline-block;background:var(--red);box-shadow:0 0 0 5px rgba(220,23,71,.11);margin-right:7px}.eyebrow{margin:0 0 9px;color:var(--red);font-weight:800;font-size:12px;letter-spacing:.16em}.track h1{margin:0;max-width:570px;font-size:clamp(30px,4.2vw,52px);line-height:1.06;letter-spacing:-.035em}.artist{margin:7px 0 24px;color:var(--muted);font-size:clamp(18px,2vw,24px)}
.controls{display:flex;align-items:center;gap:30px}.play{width:88px;height:88px;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--red2),#c90f3b);color:white;cursor:pointer;box-shadow:0 13px 30px rgba(220,23,71,.27);transition:transform .2s ease,box-shadow .2s ease}.play:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(220,23,71,.34)}.play:active{transform:scale(.97)}.play svg{width:39px;height:39px;fill:currentColor}.icon-pause{display:none}.is-playing .icon-play{display:none}.is-playing .icon-pause{display:block}.volume{display:flex;align-items:center;gap:13px;flex:1;max-width:290px}.icon-button{border:0;background:transparent;padding:7px;color:#8c8f97;cursor:pointer}.icon-button svg{width:27px;height:27px;fill:currentColor;display:block}input[type=range]{width:100%;accent-color:var(--red);cursor:pointer}.status{display:flex;align-items:center;gap:14px;margin-top:27px;color:#777b84;font-size:13px;font-weight:700;letter-spacing:.05em}.status span:first-child{color:var(--red)}.status b{display:block;width:1px;height:18px;background:#dedee3}
.recent{margin-top:42px;padding-top:8px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:17px}.section-heading h2{margin:0;font-size:13px;letter-spacing:.18em}.section-heading span{color:#a1a4ac;font-size:12px}.recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.recent-item{min-width:0}.recent-item img{width:100%;aspect-ratio:1;display:block;object-fit:cover;border-radius:16px;background:#ededf0;box-shadow:0 10px 27px rgba(19,19,25,.07)}.recent-item h3{font-size:14px;line-height:1.25;margin:11px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-item p{font-size:13px;margin:0;color:#858991;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.placeholder{opacity:.42}
footer{border-top:1px solid var(--line);margin-top:42px;padding-top:28px;text-align:center}.social{display:flex;justify-content:center;gap:16px;margin-bottom:15px}.social a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:white;border:1px solid #e7e7eb;color:var(--red);box-shadow:0 6px 18px rgba(18,18,22,.05);transition:.2s ease}.social a:hover{transform:translateY(-2px);border-color:#f1c7d1}.social svg{width:21px;height:21px;fill:currentColor}.email{color:var(--red);font-size:15px;text-decoration:none}.email:hover{text-decoration:underline}footer p{font-size:11px;color:#a3a5ab;letter-spacing:.06em;margin:10px 0 0}
@media(max-width:760px){
  .shell{width:min(100% - 20px,620px);padding:0 0 28px}
  .hero{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:max(5px,env(safe-area-inset-top)) 0 6px}
  .brand-lockup{gap:8px}.brand-mark{width:35px;height:35px}.brand-name{font-size:26px}.brand-sub{font-size:8px;letter-spacing:.24em;margin-top:3px}
  .player{grid-template-columns:1fr;gap:8px;margin-top:8px;padding:10px 11px 10px;border-radius:20px}
  .cover-wrap{width:min(48vw,27dvh,205px);margin:auto}.cover{border-radius:15px;box-shadow:0 10px 25px rgba(15,15,20,.12)}.live-badge{left:8px;top:8px;padding:6px 8px;font-size:9px}
  .track{text-align:center;padding:0 3px}.eyebrow{display:none}.track h1{font-size:clamp(22px,6.4vw,29px);line-height:1.04;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.artist{margin:2px 0 7px;font-size:clamp(14px,4.1vw,17px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .controls{justify-content:center;gap:16px}.play{width:60px;height:60px;flex:0 0 60px}.play svg{width:29px;height:29px}.volume{width:min(45vw,190px);max-width:190px;gap:6px}.icon-button{padding:4px}.icon-button svg{width:22px;height:22px}.status{justify-content:center;margin-top:7px;gap:9px;font-size:10px}.status b{height:13px}
  .recent{margin-top:26px;padding-top:4px}.recent-grid{grid-template-columns:repeat(2,1fr);gap:20px 14px}.section-heading span{display:none}.recent-item h3{font-size:13px}.recent-item p{font-size:12px}footer{margin-top:34px}
}
@media(max-width:390px){.brand-mark{width:32px;height:32px}.brand-name{font-size:23px}.player{padding:9px 10px}.cover-wrap{width:min(49vw,27dvh,185px)}.track h1{font-size:22px}.play{width:56px;height:56px;flex-basis:56px}.volume{width:42vw}.recent-grid{gap:17px 11px}.social a{width:42px;height:42px}}
@media(max-height:650px) and (max-width:760px){.hero{justify-content:flex-start;padding-top:6px}.brand-mark{width:30px;height:30px}.brand-name{font-size:21px}.brand-sub{font-size:7px}.player{margin-top:7px;gap:6px}.cover-wrap{width:min(42vw,23dvh,150px)}.track h1{font-size:20px}.artist{font-size:13px;margin-bottom:6px}.play{width:50px;height:50px;flex-basis:50px}.status{margin-top:6px}.live-badge{display:none}}
@media(display-mode:standalone){body{padding-top:max(0px,env(safe-area-inset-top));padding-bottom:max(0px,env(safe-area-inset-bottom))}.shell{min-height:100dvh}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* V4.2 — título realmente responsive */
.track h1{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

@media (min-width: 769px){
  .track h1{
    font-size: clamp(28px, 3vw, 39px) !important;
    line-height: 1.03;
    letter-spacing: -0.03em;
  }
}

@media (max-width: 768px){
  .track{
    min-width: 0;
    width: 100%;
  }

  .track h1{
    width: 100%;
    min-width: 0;
    font-size: clamp(22px, 6.2vw, 31px) !important;
    line-height: 1.06;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
  }

  .track .artist,
  .track p{
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px){
  .track h1{
    font-size: clamp(21px, 6vw, 28px) !important;
  }
}


/* V4.3 — móvil: aprovechar mejor toda la ventana */
@media (max-width: 768px){
  body{
    min-height: 100svh;
  }

  .page,
  main{
    width: 100%;
  }

  /* El bloque superior ocupa prácticamente toda la primera pantalla */
  .hero{
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-sizing: border-box;
  }

  .brand{
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .brand img,
  .logo{
    max-height: 72px;
    width: auto;
  }

  .player-card{
    width: calc(100% - 16px);
    margin: 0 auto;
    padding: 12px 14px 10px !important;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .cover-wrap,
  .cover{
    width: min(58vw, 250px) !important;
    height: min(58vw, 250px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .track{
    margin-top: 8px !important;
  }

  .track h1{
    margin-top: 2px !important;
    margin-bottom: 4px !important;
  }

  .track .artist,
  .track p{
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .controls{
    margin-top: 8px !important;
    margin-bottom: 6px !important;
  }

  .live-row,
  .status-row{
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }

  /* Recientes comienza justo después de la primera pantalla */
  .recent-section,
  .recently{
    margin-top: 14px !important;
  }
}

/* Teléfonos bajos: compactar un poco más para asegurar que cabe todo */
@media (max-width: 768px) and (max-height: 700px){
  .hero{
    justify-content: flex-start;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .brand img,
  .logo{
    max-height: 58px;
  }

  .cover-wrap,
  .cover{
    width: min(48vw, 205px) !important;
    height: min(48vw, 205px) !important;
  }

  .player-card{
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .controls{
    transform: scale(.94);
    transform-origin: center;
  }
}


/* V4.4 — móvil: player más protagonista en el primer bloque */
@media (max-width: 768px){
  .hero{
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .brand{
    margin-bottom: 4px !important;
  }

  .brand img,
  .logo{
    max-height: 64px !important;
  }

  .player-card{
    width: calc(100% - 8px) !important;
    max-width: none !important;
    padding: 14px 12px 12px !important;
    border-radius: 24px !important;
  }

  .cover-wrap,
  .cover{
    width: min(68vw, 290px) !important;
    height: min(68vw, 290px) !important;
  }

  .track{
    margin-top: 10px !important;
  }

  .controls{
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  .live-row,
  .status-row{
    margin-top: 6px !important;
  }

  .recent-section,
  .recently{
    margin-top: 10px !important;
  }
}

/* móviles pequeños o bajos: mantiene todo dentro de la primera pantalla */
@media (max-width: 430px) and (max-height: 760px){
  .brand img,
  .logo{
    max-height: 54px !important;
  }

  .player-card{
    width: calc(100% - 8px) !important;
    padding: 10px 10px 8px !important;
  }

  .cover-wrap,
  .cover{
    width: min(60vw, 235px) !important;
    height: min(60vw, 235px) !important;
  }

  .track{
    margin-top: 6px !important;
  }

  .controls{
    margin-top: 6px !important;
    margin-bottom: 4px !important;
  }
}


/* V4.5 — móvil: sin hueco artificial bajo el player.
   Logo + reproductor forman un bloque compacto; "Recientemente" empieza justo debajo. */
@media (max-width: 768px){
  .hero{
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    padding: 4px 4px 8px !important;
  }

  .brand{
    margin: 0 0 5px !important;
    padding: 0 !important;
  }

  .brand-lockup{
    transform: scale(1.04);
    transform-origin: center;
  }

  .player{
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px 10px 10px !important;
    border-radius: 22px !important;
  }

  .cover-wrap{
    width: min(68vw, 292px) !important;
  }

  .track{
    width: 100%;
    min-width: 0;
    margin-top: 9px !important;
  }

  .track h1{
    width: 100%;
    max-width: 100% !important;
    font-size: clamp(21px, 6vw, 30px) !important;
    line-height: 1.04;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    margin-bottom: 4px !important;
  }

  .artist{
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px !important;
  }

  .controls{
    margin-top: 7px !important;
    margin-bottom: 2px !important;
  }

  .status{
    margin-top: 5px !important;
  }

  .recent{
    margin-top: 14px !important;
    padding-top: 0 !important;
  }
}

/* En móviles muy pequeños mantenemos el bloque dentro del ancho sin reducir demasiado la portada */
@media (max-width: 390px){
  .cover-wrap{
    width: min(66vw, 250px) !important;
  }

  .track h1{
    font-size: clamp(20px, 5.8vw, 27px) !important;
  }
}


/* V4.6 — artista completo, sin puntos suspensivos */
.track .artist,
.track p.artist,
.artist{
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.18;
}

@media (max-width: 768px){
  .track .artist,
  .track p.artist,
  .artist{
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1.16;
    margin-bottom: 7px !important;
  }
}


/* V4.7 — más aire superior y logo con mayor presencia */
.brand{
  padding-top: 16px;
}

.brand img,
.logo{
  width: auto;
  transform: scale(1.10);
  transform-origin: center;
}

@media (max-width: 768px){
  .hero{
    padding-top: 14px !important;
  }

  .brand{
    padding-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .brand img,
  .logo{
    max-height: 72px !important;
    transform: scale(1.13);
    transform-origin: center;
  }
}

@media (max-width: 430px) and (max-height: 760px){
  .hero{
    padding-top: 10px !important;
  }

  .brand img,
  .logo{
    max-height: 62px !important;
    transform: scale(1.10);
  }
}


/* V4.8 — logo con más presencia y más aire superior */
.brand{
  padding-top: 26px !important;
  margin-bottom: 12px !important;
}

.brand img,
.logo{
  transform: scale(1.20) !important;
  transform-origin: center;
}

@media (max-width: 768px){
  .hero{
    padding-top: 24px !important;
  }

  .brand{
    padding-top: 0 !important;
    margin-bottom: 14px !important;
  }

  .brand img,
  .logo{
    max-height: 80px !important;
    transform: scale(1.22) !important;
  }
}

@media (max-width: 430px) and (max-height: 760px){
  .hero{
    padding-top: 16px !important;
  }

  .brand{
    margin-bottom: 10px !important;
  }

  .brand img,
  .logo{
    max-height: 68px !important;
    transform: scale(1.16) !important;
  }
}
