/* ===========================
   PRO MUSIC THEME (paste over your :root + core UI styles)
   Works for: header/topbar, cards, buttons, inputs, grid, thumbs, feed overlays
   =========================== */

:root{
  /* Brand */
  --accent:#7c3aed;          /* purple */
  --accent2:#22d3ee;         /* cyan */
  --accentGlow: 0 0 24px rgba(124,58,237,.35);

  /* Surfaces */
  --bg:#070A12;
  --bg2:#0A0F1F;
  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);
  --line: rgba(148,163,184,.14);

  /* Text */
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);

  /* Effects */
  --radius:16px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadowSoft: 0 10px 30px rgba(0,0,0,.35);
}

html,body{height:100%}
body{
  margin:0;
  background:black;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

a{color:var(--text); text-decoration:none}
a:hover{opacity:.92}

.wrap{max-width:980px;margin:0 auto;padding:18px}
@media (max-width:700px){ .wrap{padding:12px} }

/* ===== TOP BAR / HEADER ===== */
.top{
  position:sticky; top:0; z-index:50;
  background: rgba(8,11,20,.72);
  backdrop-filter: blur(16px);
  border-bottom:1px solid var(--line);
}
.top-inner{
  max-width:980px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
@media (max-width:700px){ .top-inner{padding:10px 12px} }

.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo-dot{
  width:12px;height:12px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), var(--accentGlow);
  flex:0 0 12px;
}
.brand-title{
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-title a{
  color:var(--text);
  text-decoration:none;
  background: none !important; /* kills any weird black bg behind brand text */
  padding:0 !important;
}
.brand-sub{
  font-size:12px;
  color:var(--muted);
  margin-left:8px;
  white-space:nowrap;
}
@media (max-width:700px){ .brand-sub{display:none} }

/* Desktop nav */
.nav-desktop{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.nav-link{
  font-size:14px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
}
.nav-link:hover{
  background:rgba(255,255,255,.06);
  border-color:var(--line);
}
.nav-link.primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.35));
  border-color: rgba(124,58,237,.55);
  box-shadow: var(--accentGlow);
}

/* Mobile menu button */
.menu-btn{
  display:none;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  box-shadow: var(--shadowSoft);
}
.menu-ico{width:18px;height:18px;display:inline-block;position:relative}
.menu-ico:before,.menu-ico:after,.menu-ico i{
  content:"";
  position:absolute;left:0;right:0;height:2px;border-radius:2px;background:var(--text);
}
.menu-ico:before{top:2px}
.menu-ico i{top:8px}
.menu-ico:after{top:14px}

@media (max-width:860px){
  .nav-desktop{display:none}
  .menu-btn{display:inline-flex}
}

/* Mobile drawer */
.drawer{display:none;border-top:1px solid var(--line);background: rgba(8,11,20,.92)}
.drawer.open{display:block}
.drawer-inner{max-width:980px;margin:0 auto;padding:12px 12px 14px;display:flex;flex-direction:column;gap:10px}
.drawer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.drawer a{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  color:var(--text);
}
.drawer a:hover{background: rgba(255,255,255,.08)}
.drawer a strong{display:block;font-weight:900}
.drawer a span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.drawer .full{grid-column:1 / -1}
.drawer .danger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.30);
  color:#fecaca;
}
.drawer .primary{
  background: linear-gradient(135deg, rgba(124,58,237,.90), rgba(34,211,238,.28));
  border-color: rgba(124,58,237,.55);
}

/* ===== CARDS / FORMS ===== */
.card{
  background: linear-gradient(180deg, var(--card) 0%, rgba(255,255,255,.03) 100%);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  margin:12px 0;
  box-shadow: var(--shadowSoft);
}

.flash{
  padding:10px 12px;
  border-radius:14px;
  margin:12px 0;
  border:1px solid rgba(34,211,238,.25);
  background: rgba(34,211,238,.08);
  color: var(--text);
}

.meta{font-size:13px;color:var(--muted)}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

input, textarea, select{
  width:100%;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}

button{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(124,58,237,.35);
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.22));
  color:#fff;
  cursor:pointer;
  box-shadow: var(--accentGlow);
}
button:hover{filter:brightness(1.03)}
button:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}

/* ===== GRID / THUMBS ===== */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:900px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .grid{grid-template-columns:1fr} }

.thumb{
  width:100%;
  aspect-ratio:16/9;
  border-radius:14px;
  object-fit:cover;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
}

/* ===== VIDEO BOX ===== */
.video-box{
  width: 756px;
  height: 507px;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-box video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background:#000;
}

/* ===== FEED (if using your watch feed layout) ===== */
.pill{
  border:1px solid rgba(255,255,255,.18) !important;
  background: rgba(10,15,31,.55) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pill button{
  background: rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.18) !important;
}
.subtitle-overlay{
  border:1px solid rgba(255,255,255,.12) !important;
  background: rgba(10,15,31,.62) !important;
}