:root{
  --bg:#0b0c0d;
  --panel: rgba(255,255,255,.03);
  --text:#fff;
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.42);
  --border: rgba(255,255,255,.08);
  --accent:#0066ec;
  --accent2:#005ed9;
  --shadow: 0 10px 28px rgba(0,0,0,.45);
  --r:16px;
  --r2:22px;
  --font: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--font); color:var(--text);
  background:
    radial-gradient(900px 600px at 65% 0%, rgba(0,102,236,.18), transparent 60%),
    radial-gradient(700px 520px at 10% 10%, rgba(0,94,217,.10), transparent 55%),
    var(--bg);
}
a{color:inherit; text-decoration:none}
img{display:block; max-width:100%}
.container{max-width:1240px; margin:0 auto; padding:0 18px}

.app{display:flex; min-height:100vh}
.sidebar{
  width:286px;
  padding:18px 14px;
  border-right:1px solid var(--border);
  position:sticky; top:0; height:100vh;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.brand{display:flex; align-items:center; gap:10px; padding:4px 6px 10px}
.brand img{height:34px; width:auto}
.searchbox{
  margin:10px 6px 16px;
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
}
.searchbox input{flex:1; border:none; outline:none; background:transparent; color:var(--text)}
.searchbox .hint{
  font-size:12px; color:var(--muted2);
  border:1px solid var(--border); padding:2px 8px; border-radius:10px;
}
.nav{padding:6px}
.nav .label{
  margin:14px 0 6px; color:var(--muted2);
  font-size:12px; text-transform:uppercase; letter-spacing:.08em;
}
.nav a{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px; border-radius:14px;
  border:1px solid transparent;
  color:rgba(255,255,255,.86);
}
.nav a:hover{background:rgba(255,255,255,.03); border-color:var(--border)}
.nav a.active{background:rgba(0,102,236,.14); border-color:rgba(0,102,236,.42)}
.nav a .dot{opacity:.65}
.sidebar-bottom{position:absolute; left:14px; right:14px; bottom:16px}
.support{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px; border:1px solid var(--border);
  border-radius:14px; background:rgba(255,255,255,.02);
}
.support small{color:var(--muted2)}

.main{flex:1; min-width:0}
.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 18px 12px;
  backdrop-filter: blur(14px);
  background: rgba(11,12,13,.66);
  border-bottom:1px solid var(--border);
}
.leftbar{display:flex; align-items:center; gap:10px}
.burger{
  display:none;
  background:transparent;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  color:var(--text);
  cursor:pointer;
}
.switch{
  display:flex; gap:10px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  padding:6px;
  border-radius:16px;
}
.switch a{
  padding:10px 12px; border-radius:12px;
  font-weight:800; font-size:14px;
  color:rgba(255,255,255,.70);
}
.switch a.on{color:var(--text); background:rgba(0,102,236,.18)}
.actions{display:flex; gap:10px; align-items:center}
.btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
}
.btn.primary{
  background:linear-gradient(180deg, rgba(0,102,236,.95), rgba(0,94,217,.95));
  border-color:rgba(0,102,236,.55);
}

.section{padding:18px}
.hero{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:16px;
}
.banner{
  border:1px solid var(--border);
  border-radius:var(--r2);
  overflow:hidden;
  background:rgba(255,255,255,.02);
  box-shadow:var(--shadow);
}
.banner img{width:100%; height:100%; object-fit:cover}

.toolbar{
  margin-top:16px;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
}
.filters{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  border-radius:18px;
}
.fbtn{
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:rgba(255,255,255,.70);
  font-weight:900;
  cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
}
.fbtn.on{color:var(--text); background:rgba(0,102,236,.18); border-color:rgba(0,102,236,.28)}
.inline-search{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--border);
  border-radius:18px;
  padding:10px 12px;
  min-width:300px;
  background:rgba(255,255,255,.02);
}
.inline-search input{flex:1; border:none; outline:none; background:transparent; color:var(--text)}
.h2{font-size:18px; margin:24px 0 14px}

/* Slot cards (portrait like original) */
.grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:14px;
}
.tile{
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.thumb{
  width:100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background:#0d0f12;
}
.tile-body{padding:10px 12px 12px}
.tile-title{font-weight:900; font-size:13px; line-height:1.25}
.tile-meta{margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.badge{
  font-size:11px; font-weight:900;
  padding:4px 10px; border-radius:999px;
  border:1px solid var(--border);
  color:rgba(255,255,255,.70);
}
.play{
  padding:8px 14px;
  border-radius:14px;
  border:1px solid rgba(0,102,236,.55);
  background:rgba(0,102,236,.10);
  font-weight:900; font-size:12px;
}

.footer{
  padding:22px 18px 34px;
  color:var(--muted);
  border-top:1px solid var(--border);
}
.footer .cols{display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px}
.small{font-size:12px; line-height:1.55; color:var(--muted)}

/* Responsive */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(4,1fr)}
  .hero{grid-template-columns: 1.7fr 1fr}
}
@media (max-width:860px){
  .sidebar{position:fixed; left:0; top:0; transform:translateX(-102%); transition:transform .2s ease; z-index:50}
  .sidebar.open{transform:translateX(0)}
  .burger{display:inline-flex}
  .grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:560px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .inline-search{min-width:0; width:100%}
  .footer .cols{grid-template-columns:1fr}
}