:root {
  --bg: #0d0819;
  --bg2: #150d28;
  --panel: #1d1236;
  --panel2: #281a48;
  --line: #3a2a63;
  --text: #f4efff;
  --muted: #a99cc9;
  --magenta: #ff38a0;
  --cyan: #28e6ff;
  --yellow: #ffdc3c;
  --lime: #96ff5a;
  --violet: #5828a0;
  --pixel: 'Press Start 2P', monospace;
  --term: 'VT323', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --top: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { image-rendering: pixelated; max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(13, 8, 25, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 4px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--panel2); }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.brand b { color: var(--bg); background: var(--magenta); padding: 3px 4px 2px; margin-left: 4px; box-shadow: 2px 2px 0 var(--cyan); }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; }
.search input {
  flex: 1; min-width: 0;
  background: var(--bg2); color: var(--text);
  border: 2px solid var(--line); border-right: 0;
  padding: 8px 14px; font: inherit; outline: none;
}
.search input:focus { border-color: var(--cyan); }
.search-btn { background: var(--panel2); border: 2px solid var(--line); padding: 0 16px; }
.search-btn:hover { background: var(--violet); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.credits { font-family: var(--pixel); font-size: 10px; color: var(--yellow); white-space: nowrap; }
.credits b { color: var(--text); }

/* ---------- layout ---------- */
.layout { display: flex; }
.sidebar {
  position: sticky; top: var(--top);
  height: calc(100vh - var(--top));
  width: 220px; flex: none;
  padding: 12px 8px;
  overflow-y: auto;
  border-right: 2px solid var(--line);
  background: var(--bg);
}
.sidebar a { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 4px; font-weight: 500; }
.sidebar a:hover { background: var(--panel); }
.sidebar a.active { background: var(--panel2); box-shadow: inset 3px 0 0 var(--magenta); }
.sidebar .ico { width: 20px; text-align: center; color: var(--cyan); }
.sidebar hr { border: 0; border-top: 2px solid var(--line); margin: 10px 4px; }
.side-title { font-family: var(--pixel); font-size: 9px; color: var(--muted); margin: 6px 12px; text-transform: uppercase; }
.side-foot { color: var(--muted); font-size: 12px; padding: 0 12px; }
.mini-av { width: 24px; height: 24px; border-radius: 50%; }
body.nav-collapsed .sidebar { display: none; }

main { flex: 1; min-width: 0; padding: 20px 24px 60px; outline: none; }

/* ---------- canal ---------- */
.banner { border: 2px solid var(--line); overflow: hidden; aspect-ratio: 4 / 1; background: var(--panel); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.channel-head { display: flex; gap: 20px; align-items: center; padding: 20px 4px; flex-wrap: wrap; }
.channel-head .big-av { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--magenta); box-shadow: 0 0 0 3px var(--bg), 0 0 18px rgba(255, 56, 160, .5); }
.channel-head h1 { font-family: var(--pixel); font-size: 22px; margin: 0 0 8px; line-height: 1.3; }
.channel-head p { margin: 0; color: var(--muted); }
.channel-head .grow { flex: 1; min-width: 220px; }
.btn {
  border: 0; padding: 10px 18px;
  font-family: var(--pixel); font-size: 10px; text-transform: uppercase;
  background: var(--text); color: var(--bg);
  box-shadow: 3px 3px 0 var(--magenta);
  transition: transform .08s;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--magenta); }
.btn.on { background: var(--panel2); color: var(--text); box-shadow: 3px 3px 0 var(--line); }
.btn.ghost { background: var(--panel2); color: var(--text); box-shadow: 3px 3px 0 var(--cyan); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 18px; font-family: var(--pixel); font-size: 10px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--magenta); }
.section-title { font-family: var(--pixel); font-size: 13px; margin: 8px 0 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- grilla ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 18px; }
.card { display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 2px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb { border-color: var(--cyan); }
.card:hover .thumb img { transform: scale(1.04); }
.dur { position: absolute; right: 6px; bottom: 6px; background: rgba(13, 8, 25, .9); font-family: var(--term); font-size: 18px; line-height: 1; padding: 3px 6px; }
.play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--yellow); opacity: 0; background: rgba(13, 8, 25, .35); transition: opacity .2s; text-shadow: 3px 3px 0 var(--bg); }
.card:hover .play { opacity: 1; }
.card-meta { display: flex; gap: 12px; padding-top: 10px; }
.card-meta .av { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ch, .sub { margin: 0; color: var(--muted); font-size: 13px; }
.check { color: var(--cyan); font-size: 11px; }
.empty { color: var(--muted); font-family: var(--term); font-size: 24px; }

/* ---------- ver video ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; max-width: 1700px; }
.player { position: relative; background: #000; border: 2px solid var(--line); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.watch h1 { font-size: 20px; margin: 14px 0 10px; line-height: 1.3; }
.watch-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.watch-bar .av { width: 42px; height: 42px; border-radius: 50%; }
.watch-bar .who { margin-right: 8px; }
.watch-bar .who b { display: block; }
.watch-bar .who span { color: var(--muted); font-size: 13px; }
.watch-bar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel2); border: 2px solid var(--line); padding: 8px 14px; font-weight: 600; font-size: 14px; }
.pill:hover { border-color: var(--cyan); }
.pill.on { border-color: var(--magenta); color: var(--magenta); }
.desc { background: var(--panel); border: 2px solid var(--line); padding: 14px 16px; margin-top: 14px; }
.desc .meta { font-weight: 600; margin-bottom: 6px; }
.desc p { margin: 0 0 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--term); font-size: 18px; line-height: 1; padding: 5px 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--cyan); }
.upnext-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.upnext-head b { font-family: var(--pixel); font-size: 10px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--magenta); width: 16px; height: 16px; }
.mini { display: grid; grid-template-columns: 168px 1fr; gap: 10px; margin-bottom: 10px; padding: 4px; }
.mini:hover { background: var(--panel); }
.mini.current { background: var(--panel2); box-shadow: inset 3px 0 0 var(--magenta); }
.mini .thumb { border-width: 1px; }
.mini h3 { font-size: 14px; margin: 0 0 4px; font-weight: 600; line-height: 1.3; }
.mini .n { font-family: var(--pixel); font-size: 9px; color: var(--yellow); }

/* ---------- banda / álbum ---------- */
.lore { max-width: 820px; color: #ddd3f5; font-size: 16px; }
.lore p { margin: 0 0 14px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.member { background: var(--panel); border: 2px solid var(--line); padding: 16px; }
.member img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg2); }
.member h3 { font-family: var(--pixel); font-size: 14px; margin: 14px 0 6px; }
.member .role { font-family: var(--term); font-size: 20px; margin: 0 0 8px; }
.member p { margin: 0; color: var(--muted); font-size: 14px; }
.album { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; max-width: 1100px; }
.cover { aspect-ratio: 1; border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--magenta); background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.tracks { list-style: none; padding: 0; margin: 0; border: 2px solid var(--line); }
.tracks li a { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tracks li:last-child a { border-bottom: 0; }
.tracks li a:hover { background: var(--panel); }
.tracks .no { font-family: var(--pixel); font-size: 11px; color: var(--yellow); }
.tracks .k { font-family: var(--term); font-size: 18px; color: var(--muted); }
.tracks .t { font-family: var(--term); font-size: 20px; }

footer.site { margin-top: 50px; color: var(--muted); font-size: 13px; border-top: 2px solid var(--line); padding-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 30; left: 0; top: var(--top); display: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .6); }
  body.nav-open .sidebar { display: block; }
  .credits { display: none; }
  .album { grid-template-columns: 1fr; }
  .cover { max-width: 320px; }
}
@media (max-width: 600px) {
  main { padding: 14px 16px 50px; }
  .brand span { display: none; }
  .mini { grid-template-columns: 140px 1fr; }
  .channel-head h1 { font-size: 16px; }
  .tracks li a { grid-template-columns: 30px 1fr auto; }
  .tracks .k { display: none; }
}
