/* V3 — glass + soft 3D + neon accents */
:root{
  --bg:#0b0d10; --panel:#0e1217; --line:#2a3344;
  --fg:#eaf1ff; --muted:#9bb0c6; --accent:#38f4ff; --accent2:#7b61ff; --glow:rgba(56,244,255,.3);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:
    radial-gradient(1200px 600px at 85% -10%, rgba(123,97,255,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(56,244,255,.06), transparent 60%),
    var(--bg);
  color:var(--fg);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif
}
h1,h2,h3{margin:0}

/* header */
.hdr{
  display:flex;align-items:center;justify-content:space-between;padding:18px 22px;
  backdrop-filter: blur(6px);
}
.hdr h1{font-size:24px;font-weight:800;letter-spacing:.2px;text-shadow:0 1px 0 #000}
.neon-btn{
  color:#031016;background:linear-gradient(135deg,var(--accent),var(--accent2));
  padding:10px 16px;border-radius:14px;text-decoration:none;font-weight:800;
  box-shadow:0 8px 20px rgba(0,0,0,.5), 0 0 22px var(--glow), inset 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.neon-btn:hover{ transform: translateY(-1px); box-shadow:0 10px 28px rgba(0,0,0,.6), 0 0 28px var(--glow) }

/* category bar */
.catbar{padding:10px 22px}
.catbar-inner{
  display:flex;gap:12px;overflow:auto;padding:12px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 30px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
}
.cat-chip{
  padding:9px 14px;border-radius:999px;cursor:pointer;white-space:nowrap;
  color:var(--fg);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 1px 0 rgba(255,255,255,.16), 0 6px 14px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
  border:1px solid rgba(255,255,255,.06);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.cat-chip:hover{ transform: translateY(-1px) }
.cat-chip.active{
  background:linear-gradient(135deg, rgba(56,244,255,.25), rgba(123,97,255,.22));
  box-shadow:0 2px 22px var(--glow), 0 1px 0 rgba(255,255,255,.2) inset;
}

/* layout */
.layout{display:grid;grid-template-columns:360px 1fr;gap:22px;padding:10px 22px 22px}
.card{
  border-radius:16px;padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 35px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.card-title{font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}

/* left */
.left{display:flex;flex-direction:column;gap:18px}
.input{
  width:100%;padding:12px 14px;border-radius:12px;color:var(--fg);
  background:rgba(7,10,14,.75); border:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.channels-card{min-height:520px}
.channels{
  max-height:70vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;
  padding-right:6px;
}
.row{
  padding:12px;border-radius:14px;cursor:pointer;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.row:hover{ transform: translateY(-1px); box-shadow:0 10px 26px rgba(0,0,0,.45) }
.row.active{ outline:2px solid rgba(56,244,255,.5); box-shadow:0 0 0 3px rgba(56,244,255,.18), 0 12px 26px rgba(0,0,0,.55) }
.row .name{font-weight:800;letter-spacing:.2px}

/* right */
.right{display:flex;flex-direction:column;gap:18px}
.banner .ad-slot{
  height:120px;display:flex;align-items:center;justify-content:center;
  background:rgba(7,10,14,.75);border:1px dashed rgba(255,255,255,.12);border-radius:12px;
  color:var(--muted)
}

/* player */
.player-card .video-js{
  width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 2px rgba(56,244,255,.06), inset 0 1px 0 rgba(255,255,255,.1);
}
.controls.line{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.btn{
  padding:10px 14px;border-radius:12px;cursor:pointer;color:#031016;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border:none; font-weight:800;
  box-shadow:0 8px 20px rgba(0,0,0,.5), 0 0 22px var(--glow), inset 0 0 0 1px rgba(255,255,255,.25);
}
.controls select,.controls .input{
  background:rgba(7,10,14,.75); color:var(--fg);
  border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.muted{color:var(--muted);font-size:12px}

/* list selector bubble */
.listsel{
  position:fixed;right:22px;bottom:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:10px 12px;
  box-shadow:0 10px 35px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.listsel select{padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#0d1014;color:var(--fg)}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
}


/* visits badge */
.visit-badge{
  position:fixed; left:22px; bottom:22px;
  font-size:12px; color:var(--fg);
  padding:8px 10px; border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 35px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}

/* channel logo in list */
.row-inner{ display:flex; align-items:center; justify-content:space-between; gap:10px }
.ch-logo{ width:28px; height:28px; border-radius:6px; object-fit:contain; background:#111; padding:2px }
