:root{
  --bg0:#07070a;
  --bg1:#0b0b12;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.10);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --good: #2ee59d;
  --bad: #ff5a73;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--txt);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(160,120,255,.16), transparent 60%),
    radial-gradient(900px 700px at 110% 10%, rgba(0,255,200,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

input, textarea, select, button{
  font-size: 16px;
}

.wrap{
  min-height:100%;
  display:flex;
  justify-content:center;
  padding: 28px 16px 40px;
}

.container{
  width: min(1200px, 100%);
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 12px;
  padding: 20px 16px 10px;
}

.logoPill{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.logoPill img{
  height: 48px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
}

.sub{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.topbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  align-items:center;
  margin-top: 2px;
}

.btn{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  color: var(--txt);
  padding: 12px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(0,0,0,.30);
}

.btn:active{ transform: translateY(1px); }

.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-weight: 750;
}

.dot{
  width:10px; height:10px; border-radius: 50%;
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 0 2px rgba(255,255,255,.10);
}
.dot.good{ background: var(--good); box-shadow: 0 0 0 2px rgba(46,229,157,.18); }
.dot.bad{ background: var(--bad); box-shadow: 0 0 0 2px rgba(255,90,115,.18); }

.grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 740px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.cardHead{
  padding: 14px 14px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

.stage{ font-weight: 900; }
.mini{ color: var(--muted2); font-size: 12px; }

.videoBox{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0f;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.videoBox video{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  background:#000;
}

.playOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border:0;
  cursor:pointer;
  color: rgba(255,255,255,.95);
  background: radial-gradient(circle at center, rgba(0,0,0,.55), rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 70%);
  transition: opacity .15s ease;
}

.playOverlay.hidden{ opacity:0; pointer-events:none; }

.playIcon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  font-size: 20px;
}

.playText{
  font-weight: 900;
  letter-spacing:.3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}

.watermark{
  position:absolute;
  right: 10px;
  bottom: 10px;
  display:flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(8px);
}
.watermark img{ height: 20px; width:auto; opacity:.92; }

.cardBody{ padding: 12px 14px 14px; }

.details{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}

.details summary{
  list-style: none;
  cursor:pointer;
  padding: 12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
  user-select:none;
}
.details summary::-webkit-details-marker{ display:none; }

.chev{
  display:inline-flex;
  width: 30px; height: 30px;
  border-radius: 10px;
  align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.details[open] .chev{ transform: rotate(180deg); }

.itList{ padding: 8px 12px 12px; display:flex; flex-direction:column; gap: 10px; }

.itRow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.itArtist{ font-weight: 900; }
.itTime{ font-weight: 900; white-space:nowrap; color: rgba(255,255,255,.85); }

.note{ color: var(--muted2); font-size: 12px; line-height: 1.35; margin-top: 10px; }

.footer{ margin-top: 6px; text-align:center; color: var(--muted2); font-size: 12px; }

.out{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
}

.chatBtn{
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.chatBadge{
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.chatBadge.show{ display: inline-block; }

.chatDrawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: rgba(10,10,16,.98);
  border-left: 1px solid var(--stroke);
  box-shadow: -20px 0 40px rgba(0,0,0,.35);
  transform: translateX(105%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.chatDrawer.open{ transform: translateX(0); }

.chatDrawerHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--stroke);
}
.chatTitle{ font-weight: 900; font-size: 18px; }
.chatUser{ padding: 10px 16px; color: var(--muted2); font-size: 12px; }
.chatList{ padding: 8px 8px 16px; overflow: auto; flex: 1; }
.chatHint{ padding: 12px 16px; color: var(--muted2); font-size: 12px; border-top: 1px solid var(--stroke); }

.chatItem{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  margin: 6px 6px;
}
.chatItem:hover{ background: rgba(255,255,255,.08); }
.chatName{ font-weight: 800; }
.chatPreview{
  color: var(--muted2);
  font-size: 12px;
  margin-top: 4px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friendsSearch{
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--stroke);
}
.friendsSearch input{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--txt);
}

.friendsSection{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 12px;
}

.friendsList{
  max-height: 220px;
}

.notifItem{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  margin: 6px;
}
.notifItem.unread{ border-color: rgba(255,77,109,.5); }
.notifMeta{ color: var(--muted2); font-size: 11px; }
.notifActions{
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.chatCount{
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.chatScreen{
  position: fixed;
  inset: 0;
  background: #0b0b12;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.chatScreen.open{ transform: translateX(0); }

.chatScreenHead{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.chatScreenTitle{ font-weight: 900; }

.chatMessages{
  flex: 1;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg{
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.msg.me{
  align-self: flex-end;
  background: rgba(0,255,200,.12);
  border-color: rgba(0,255,200,.25);
}
.msgMeta{ font-size: 11px; color: var(--muted2); margin-top: 4px; }

.chatInput{
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.chatInput input{
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--txt);
}

.iconBtn{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.08);
  color: var(--txt);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.authOverlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3,3,8,.88);
  z-index: 80;
  padding: 16px;
}
.authOverlay.open{ display: flex; }

.authCard{
  width: min(420px, 95vw);
  background: rgba(15,15,24,.95);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.authHead{ text-align: center; margin-bottom: 14px; }
.authTitle{ font-weight: 900; font-size: 20px; }
.authSub{ color: var(--muted2); font-size: 12px; }

.authTabs{
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tabBtn{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--txt);
  font-weight: 800;
  cursor: pointer;
}
.tabBtn.active{
  background: rgba(0,255,200,.12);
  border-color: rgba(0,255,200,.35);
}
.authForm{ display: flex; flex-direction: column; gap: 8px; }
.authLabel{ font-size: 12px; color: var(--muted2); }
.authInput{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: var(--txt);
}
.authBtn{ margin-top: 6px; }
.authMsg{ font-size: 12px; color: var(--muted2); text-align: center; }

.toastWrap{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}
.toast{
  background: rgba(15,15,24,.96);
  border: 1px solid var(--stroke);
  color: var(--txt);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 12px;
}
