:root{
  --bg:#0b0d10;--surface:#12161b;--muted:#97a3b6;--text:#e9edf3;
  --brand:#facc15;--brand-2:#f9e79f;
  --radius:16px;--shadow:0 10px 30px rgba(0,0,0,.35);
}

/* ---------------- BASE ---------------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.55 system-ui,Segoe UI,Roboto,Inter,Arial;
}
a{color:inherit;text-decoration:none}
.container{width:min(1200px,100% - 32px);margin:0 auto}

/* ---------------- TOPBAR (desktop only) ---------------- */
.topbar{
  position:sticky;top:0;z-index:40;
  backdrop-filter:blur(10px);
  background:#0b0d10aa;
  border-bottom:1px solid #ffffff14;
}
.topbar-inner{
  display:flex;align-items:center;gap:12px;padding:14px 0;
}
.logo{display:flex;align-items:center;gap:10px;font-weight:800}
.logo-badge{
  width:30px;height:30px;background:var(--brand);
  border-radius:50%;display:grid;place-items:center;
  color:#111;font-weight:900;box-shadow:var(--shadow);
}
.primary{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid #ffffff14;
  padding:10px 14px;border-radius:999px;
  background:#0f1318;transition:border-color .2s;
}
.btn:hover{border-color:#ffffff33}
.btn.brand{
  background:var(--brand);color:#111;
  border-color:transparent;font-weight:700;
}

/* Hide topbar on small devices */
@media (max-width:767px){.topbar{display:none!important}}

/* ---------------- HERO ---------------- */
.hero{
  padding:60px 0 24px;
}
.hero-card{
  background:linear-gradient(180deg,#151b22,#0f1318);
  border:1px solid #ffffff14;border-radius:22px;
  padding:22px;display:grid;
  grid-template-columns:1.1fr .9fr;gap:22px;align-items:center;
  box-shadow:var(--shadow);
}
.hero h1{
  font-size:clamp(22px,4.2vw,46px);
  line-height:1.08;margin:0 0 12px;color:var(--brand);
}
.hero .muted{color:var(--muted)}
.poster{
  aspect-ratio:16/9;border-radius:18px;
  background:#0b0e12;border:1px solid #ffffff14;
}

/* ---------------- SECTIONS ---------------- */
.section-title{
  display:flex;align-items:baseline;justify-content:space-between;
  margin:14px 0 10px;
}
.muted{color:var(--muted);font-size:13px}

/* ---------------- VIDEO CARDS ---------------- */
.masonry{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.card{
  border:1px solid #ffffff14;border-radius:14px;
  overflow:hidden;background:#0f1318;
  transition:transform .15s,box-shadow .15s;
}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(0,0,0,.35)}
.thumb{
  position:relative;aspect-ratio:16/9;
  background:#0b0e12 center/cover no-repeat;
}
.pill{
  position:absolute;bottom:8px;left:8px;font-size:12px;
  background:#0009;padding:6px 8px;border-radius:999px;
  border:1px solid #ffffff22;
}
.card-body{padding:10px}
.title{
  font-weight:700;margin-bottom:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.meta{color:var(--muted);font-size:12px}

/* ---------------- PLAYER ---------------- */
.player{
  background:#0f1318;border:1px solid #ffffff14;
  border-radius:16px;overflow:hidden;
}
.player video,.player audio{width:100%;display:block;background:#000}
.player .meta{padding:12px;display:flex;gap:12px;align-items:center}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{
  font-size:12px;padding:6px 8px;
  border:1px solid #ffffff14;border-radius:999px;color:var(--muted);
}
.row{display:flex;gap:10px;flex-wrap:wrap}
.right{margin-left:auto}

/* ---------------- BOTTOM TAB BAR ---------------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #0f1318;
  border-top: 1px solid #ffffff14;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 60;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tabbar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  transition: color .2s;
  flex: 1;
}

.tabbar .tab svg {
  width: 22px;
  height: 22px;
  display: block;
  margin-bottom: 3px;
}

.tabbar .tab.active {
  color: var(--brand);
  font-weight: 700;
}

.tabbar .tab:active {
  color: var(--brand);
}

/* keep page content above bottom bar */
@media (max-width: 767px) {
  body::after {
    content: '';
    display: block;
    height: 60px;
  }
}

/* hide tabbar on desktop */
@media (min-width: 768px) {
  .tabbar {
    display: none !important;
  }
}

/* ---------------- DIALOG ---------------- */
.dlg{
  background:#0f1318;color:var(--text);
  border:1px solid #ffffff22;border-radius:18px;
  padding:0;max-width:min(560px,92vw);width:100%;
}
.dlg-head{padding:16px;border-bottom:1px solid #ffffff14}
.dlg-body{padding:16px;display:grid;gap:12px}
.plan{
  display:block;border:1px solid #ffffff14;
  border-radius:12px;padding:12px;
}

/* ---------------- RESPONSIVE HERO ---------------- */
@media (max-width:767px){
  .hero{padding:40px 0 20px;text-align:center}
  .hero-card{display:block;padding:18px}
  .poster{margin-top:18px}
}
