body{
  margin:0;
  font-family:system-ui;
  background:#0b1220;
  color:#fff;
}
header{
  display:flex;
  gap:15px;
  align-items:center;
  padding:20px;
}
button{
  padding:10px 16px;
  border:none;
  border-radius:10px;
  background:#00c2ff;
  cursor:pointer;
}
.logout{margin-left:auto;color:#fff;text-decoration:none}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:20px;
  padding:20px;
}
.card{
  background:#111a2e;
  border-radius:18px;
  padding:20px;
}
.actions{margin-top:15px;display:flex;gap:10px}
.danger{background:#b30000}
.login{
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
}
.login-box{
  background:#111;
  padding:40px;
  border-radius:20px;
  width:340px;
}
input{width:100%;padding:12px;margin-bottom:12px;border-radius:10px;border:none}
.error{color:#ff5c5c;text-align:center;margin-bottom:10px}

.live-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:20px;
  background:#333;
  color:#aaa;
  font-size:13px;
}

.live-badge.on{
  background:#e60000;
  color:#fff;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity:.5 }
}


.video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  border-radius:10px;
  overflow:hidden;
  margin:10px 0;
}

.video-wrap video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
  font-size:14px;
  background:#111;
}

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

.video-placeholder {
    pointer-events: none;
}

.preview-video,
.stream-card video {
    width: 100%;
    height: 180px;
    background: #000;
    object-fit: cover;
    display: block;
}


.stream-card video {
    opacity: 0;
    width: 100%;
    height: auto;
}

.stream-card.playing video {
    opacity: 1;
}

