:root{
  --bg:#0b0f17;
  --panel:#0f1624;
  --panel2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --text:#e9eef7;
  --muted: rgba(233,238,247,.70);
  --accent: rgba(120,180,255,.95);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: linear-gradient(180deg, #0b0f17 0%, #0b0f17 40%, #070b12 100%);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

#ot-tv-page{
  max-width: 1400px;
  margin: 18px auto 40px;
  padding: 0 12px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11,15,23,.92);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.brand{ font-weight:800; letter-spacing:.3px; }

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

button{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
}
button:hover{ background: rgba(255,255,255,.10); }

.layout{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 16px;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

.player{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding: 14px;
}

.nowTitle{
  font-weight: 800;
  margin-bottom: 4px;
}
.nowHint{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.videowrap{
  width:100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid var(--border);
  background:#000;
  position:relative;
}

#ytbox, #ytbox iframe{
  width:100% !important;
  height:100% !important;
}

/* Overlay */
.overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.55);
  padding: 14px;
}
.overlay.show{ display:flex; }
.obox{
  max-width: 420px;
  width:100%;
  background: rgba(15,22,36,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  text-align:center;
}
.otitle{ font-weight:900; margin-bottom: 6px; }
.otext{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.list{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  max-height: calc(100vh - 140px);
  overflow:auto;
}
.listTitle{
  font-weight:800;
  margin-bottom: 10px;
}

.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.card{
  display:flex;
  gap:12px;
  align-items:center;
  padding: 10px;
  border-radius: 14px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.10);
  background: var(--panel2);
  transition: transform .08s ease, background .12s ease, outline .12s ease;
}
.card:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.card.active{
  outline: 3px solid var(--accent);
  background: rgba(120,180,255,.12);
}

.thumb{
  width:120px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow:hidden;
  background:#111;
  flex: 0 0 auto;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.meta{ min-width:0; }
.name{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}