/* Paleta inspirada en clases.mitallercito.art (teales + azules claros) */
:root{
  --bg0:#f4fbfe;
  --bg1:#eaf7fb;
  --card:#ffffffcc;
  --stroke:rgba(35,125,136,.25);
  --text:#0f172a;
  --muted:rgba(15,23,42,.72);
  --primary:#237d88;
  --primary2:#1e6f79;
  --shadow:0 20px 60px rgba(2, 32, 41, .10);
  --radius:18px;
}


html*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
}

.bg{min-height:100%; padding:24px 14px;}
.container{max-width:1060px; margin:0 auto;}

.topbar{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px;}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:14px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.3));
  border:1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(2, 32, 41, .08);
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:13px; color:var(--muted)}

.pill{
  font-size:12px; padding:8px 10px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
}

.grid{display:grid; grid-template-columns: 2fr 1fr; gap:14px;}

.card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero{padding:18px}
.side{padding:18px}

.tag{
  display:inline-flex; gap:8px; align-items:center;
  font-weight:700; font-size:12px;
  border-radius:999px; padding:7px 10px;
  border:1px solid rgba(255,165,0,.30);
  background: rgba(255,239,214,.65);
  color: rgba(96, 45, 0, .90);
  margin-bottom:12px;
}

h1{margin:0 0 8px; font-size:28px; line-height:1.15}
h2{margin:0 0 6px; font-size:18px}
p{margin:0 0 12px}
.muted{color:var(--muted)}
.warn{color:rgba(140, 61, 0, .95); font-weight:700}

.login-box{margin-top:14px}

.field{display:block; margin:10px 0}
.field span{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
.field input{
  width:100%; padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(31,31,31,.12);
  outline:none; background:#fff; font-size:15px;
}
.field input:focus{
  border-color: rgba(35,125,136,.55);
  box-shadow: 0 0 0 4px rgba(35,125,136,.12);
}

.btn{
  width:100%;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.0);
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff; font-weight:800; cursor:pointer;
  box-shadow: 0 12px 28px rgba(35,125,136,.25);
  text-decoration:none;
}
.btn:hover{filter:brightness(1.03)}
.btn:active{transform:translateY(1px)}

.btn.ghost{
  width:auto;
  background: rgba(255,255,255,.75);
  color: var(--primary);
  border:1px solid rgba(35,125,136,.28);
  box-shadow:none;
  font-weight:800;
}
.adminlink{margin-top:10px; display:inline-flex}

.msg{margin:10px 0 0; font-size:13px; min-height:18px;}
.msg.ok{color:rgba(0, 120, 70, .95)}
.msg.err{color:rgba(180, 35, 35, .95)}
.fineprint{margin-top:10px; font-size:12px; color:rgba(15,23,42,.62);}

.player-box{margin-top:14px}
.player-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px;}
.player-title{font-weight:900; font-size:16px}

.track-list{display:flex; flex-direction:column; gap:10px;}

.track{
  display:grid;
  grid-template-columns: 42px 1fr 56px;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(31,31,31,.10);
  background:#fff;
}

.play{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(35,125,136,.25);
  background: rgba(35,125,136,.08);
  cursor:pointer;
  font-weight:900;
  color: var(--primary);
  display:grid;
  place-items:center;
}
.play:hover{background: rgba(35,125,136,.12)}

.meta{min-width:0}
.title{font-weight:900; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sub{display:flex; justify-content:space-between; gap:10px; font-size:12px; color: rgba(15,23,42,.68); margin-top:2px;}
.seek{width:100%; margin-top:8px;}
.seek input[type="range"]{width:100%}

.vol{display:flex; flex-direction:column; gap:6px; align-items:flex-end;}
.vol input[type="range"]{width:56px}

.note{
  margin-top:12px; font-size:12px; color: rgba(15,23,42,.72);
  padding:10px 12px; border-radius:14px;
  background: rgba(35,125,136,.06);
  border:1px dashed rgba(35,125,136,.25);
}
.note code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
}

.footer{margin-top:14px; text-align:center; padding:10px 0 2px; font-size:12px;}

@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  h1{font-size:24px}
  .topbar{flex-direction:column; align-items:flex-start}
}

/* Theme toggle */
.top-controls{display:flex; align-items:center; gap:10px;}
.theme-toggle{
  width:38px; height:38px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:16px;
}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle:active{transform:translateY(0px)}
