:root{
  --bg:#0f1115;
  --card:#151924;
  --text:#e8ecf1;
  --muted:#97a0ad;
  --accent:#4f8cff;
  --accent-2:#8f67ff;
  --warning:#ffd479;
  --danger:#ff6b6b;
  --ok:#22c55e;
}

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

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.likeBox {
    margin: 10px 0;
    font-size: 18px;
}

#likeBtn {
    padding: 5px 10px;
    border: none;
    background: #ff4757;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#likeBtn:hover {
    background: #ff6b81;
}


a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.shell{ max-width:1200px; margin:0 auto; padding:16px; }

.header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:12px;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand .logo img{ height:48px; width:auto; display:block; }

h1{ font-size:20px; margin:0; }
.muted{ color:var(--muted); font-size:13px; }

.right{ display:flex; gap:8px; }

.layout{ display:grid; grid-template-columns:2fr 1fr; gap:14px; }
@media (max-width:900px){ .layout{ grid-template-columns:1fr; } }

.card{
  background:var(--card);
  border-radius:16px;
  box-shadow:0 6px 30px rgba(0,0,0,.25);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* ===== Player ===== */
.player{ position:relative; }
.player .wrap{ position:relative; aspect-ratio:16/9; }
video{ width:100%; height:100%; display:block; background:#000; }

.controls{
  display:flex; gap:8px; padding:10px;
  background:rgba(0,0,0,.35);
}

.btn{
  appearance:none; border:0; border-radius:10px; padding:9px 12px;
  font-weight:600; background:var(--accent); color:#fff; cursor:pointer;
  transition: background .2s, transform .08s;
}
.btn:hover{ background:#3d6fe0; }
.btn:active{ transform:scale(.98); }
.btn.ghost{ background:transparent; border:1px solid rgba(255,255,255,.15); color:var(--text); }
.btn.small{ padding:6px 9px; font-size:13px; }

/* ===== Status / Info ===== */
.statusbar{
  display:flex; justify-content:space-between;
  padding:10px 12px; border-top:1px solid rgba(255,255,255,.06);
  font-size:13px; color:var(--muted);
}
.info{
  padding:8px 12px; font-size:14px;
  border-top:1px solid rgba(255,255,255,.05);
  color:var(--muted);
}

/* ===== Notice (donate’dan yuqorida bitta marta) ===== */
.noticeTop{
  margin:12px; padding:10px 12px; border-radius:10px;
  background:rgba(255,212,121,.12);
  border:1px solid rgba(255,212,121,.25);
  color:var(--warning); font-weight:600;
}

/* ===== Like bar ===== */
.likeBar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border-top:1px solid rgba(255,255,255,.06);
}
.likeLeft{ display:flex; align-items:center; gap:10px; }
.likeRight{ display:flex; align-items:center; gap:8px; }
.likeBtn{
  border:0; border-radius:20px; padding:8px 14px; font-weight:600;
  background:var(--accent); color:#fff; cursor:pointer;
  transition:background .2s, transform .08s;
}
.likeBtn:hover{ background:#3d6fe0; }
.likeBtn:active{ transform:scale(.98); }
.likeBtn.liked{ background:linear-gradient(90deg,var(--ok),#16a34a); }
.likeCount{ font-weight:700; }

/* ===== Chat ===== */
.chatPanel{ display:flex; flex-direction:column; min-height:0; max-height:80vh; }
.chatHead{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.06);
  font-weight:600;
}
.admintools{ display:flex; gap:8px; }

.chatBox{
  flex:1; height:60vh; min-height:340px; overflow-y:auto; overflow-x:hidden;
  padding:12px; line-height:1.4; font-size:14px; word-break:break-word;
}
@media (max-width:900px){ .chatBox{ height:45vh; min-height:300px; } }
.chatBox::-webkit-scrollbar{ width:8px; }
.chatBox::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:4px; }
.chatBox::-webkit-scrollbar-track{ background:rgba(255,255,255,.06); }

/* --- chat line layout: matn chapda, tugmalar o‘ng chekkada --- */
.chatLine{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin:0 0 6px 0;
}
.chatText{
  flex:1;
  min-width:0;
  word-break:break-word;
  line-height:1.4;
}
.chatText time{ opacity:.65; margin-right:6px; font-size:12px; }

.chatActions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:6px;
  white-space:nowrap; /* tugmalar qatorni buzmasin */
}

/* kichik tugmalar ranglari */
.btn.small.danger{ background:#d64c4c; border:0; }
.btn.small.danger:hover{ background:#b93e3e; }
.btn.small.warn{ background:#e6a23c; border:0; }
.btn.small.warn:hover{ background:#c5872c; }

/* ===== Nick form ===== */
.nickForm{ padding:12px; display:flex; flex-direction:column; gap:8px; }
.nickForm input[type=text]{
  width:100%; border:1px solid rgba(255,255,255,.15); background:transparent;
  color:var(--text); padding:10px; border-radius:10px; outline:none;
}
.nickForm input[type=text]:focus{ border-color:var(--accent); }

.notice{
  padding:10px; color:var(--warning); background:rgba(255,212,121,.12);
  border:1px solid rgba(255,212,121,.25); border-radius:10px; margin:10px; font-size:14px;
}

.chatForm{
  display:flex; gap:8px; padding:10px;
  background:rgba(255,255,255,.04);
  border-top:1px solid rgba(255,255,255,.08);
}
.chatForm input[type=text]{
  flex:1; border:1px solid rgba(255,255,255,.15); background:transparent;
  color:var(--text); padding:9px; border-radius:10px; outline:none;
}
.chatForm input[type=text]:focus{ border-color:var(--accent); }

/* ===== Donate (buttons + QR side-by-side) ===== */
.donate{
  margin:16px; padding:16px; border-radius:12px;
  background:rgba(255,255,255,.04); text-align:center;
}
.donate h3{ margin:0 0 12px 0; font-size:18px; }

.donate-items{
  display:flex; gap:22px; justify-content:center; align-items:flex-start; flex-wrap:wrap;
}
.donate-item{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:12px; width:220px;
}
.donate-btn{
  display:inline-block; background:var(--accent); padding:9px 14px; border-radius:10px;
  text-decoration:none; color:#fff; font-weight:700; letter-spacing:.2px;
  transition: background .2s;
}
.donate-btn:hover{ background:#3d6fe0; }
.donate-item img{
  width:140px; height:140px; border-radius:10px; background:#fff; padding:6px;
  border:1px solid rgba(0,0,0,.06);
}

/* ===== Global scrollbars ===== */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:5px; }
::-webkit-scrollbar-track{ background:rgba(255,255,255,.05); }

/* ===== Responsive ===== */
@media (max-width:720px){
  .brand .logo img{ height:42px; }
  h1{ font-size:18px; }
  .donate-item{ width:100%; max-width:360px; }
}
@media (max-width:480px){
  .brand{ gap:8px; }
  .btn{ padding:7px 10px; }
  .donate-items{ gap:14px; }
}
