
/* Home page (mobile-first, light theme) */
.home-shell{ max-width:1100px; margin:0 auto; }

.home-header{
  display:none;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  background: rgba(255,255,255,0.70);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 900;
}

@media (min-width: 900px){
  .home-header{ display:flex; }
  .mobile-topbar{ display:none !important; } /* desktop uses the home header */
  .nav{ display:none !important; } /* keep only home header on desktop */
}

.home-header .left{ display:flex; gap:12px; align-items:center; }
.home-header .logo{ display:flex; gap:10px; align-items:center; font-weight:800; color: var(--text); text-decoration:none; }
.home-header .logo img{ height:34px; width:auto; border-radius:8px; }
.home-header .search{ min-width: 320px; }
.home-header .right{ display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }

.home-player{
  background: rgba(246,248,251,0.98);
  border-bottom:1px solid var(--border);
}
.player-wrap{ max-width:none; margin:0; padding:0; }
.player-card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:0;
  box-shadow: 0 10px 20px rgba(11,18,32,0.08);
  overflow:hidden;
}

@media (min-width: 900px){
  .player-wrap{ max-width:1100px; margin:0 auto; padding:14px 18px; }
  .player-card{ border-radius:16px; }
}
.player-title{ padding:12px 12px 0; font-weight:800; }
.player-meta{ padding:0 12px 10px; color: var(--muted); font-size:13px; }
.player-video{ width:100%; aspect-ratio:16/9; background:#000; display:block; }
.player-bar{ display:flex; gap:10px; align-items:center; justify-content:space-between; padding:10px 12px; border-top:1px solid var(--border); }

@media (min-width: 900px){
  .player-wrap{ max-width:1100px; margin:0 auto; padding:14px 18px; }
  .player-card{ border-radius:16px; }
}

.tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  background: transparent;
  position: relative;
  z-index: 1;
}
.tabs::-webkit-scrollbar{ height:6px; }
.tab{
  white-space:nowrap;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background: var(--card);
  color: var(--muted);
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  user-select:none;
}
.tab.active{
  color: var(--brand2);
  border-color: rgba(11,107,255,0.30);
  box-shadow: 0 8px 14px rgba(11,107,255,0.10);
}

.home-list{ padding: 12px 12px 24px; }

.thumb-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
@media (min-width: 520px){
  .thumb-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 900px){
  .thumb-grid{ grid-template-columns: repeat(6, minmax(0,1fr)); }
}

.ch-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-direction:column;
  padding:10px 8px;
  border-radius:16px;
  background: var(--card);
  border:1px solid var(--border);
  text-decoration:none;
  color: var(--text);
  position: relative;
}
.ch-item:hover{ background: rgba(11,107,255,0.06); text-decoration:none; }
.ch-item img{ width:44px; height:44px; border-radius:12px; object-fit:cover; border:1px solid rgba(11,18,32,0.08); }
.ch-name{ font-size:12px; font-weight:800; text-align:center; line-height:1.2; }
.ch-badge{ font-size:11px; color: var(--muted); }

.ch-premium{
  position:absolute;
  top:8px;
  right:8px;
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(15,138,76,0.10);
  border:1px solid rgba(15,138,76,0.18);
  color: var(--brand);
  font-weight:800;
}

#loading{ padding: 10px 0 30px; text-align:center; color: var(--muted); font-weight:700; }
