:root{
  --bg:#070a10;
  --panel:#0d1220;
  --panel2:#0b1020;
  --text:#e9f0ff;
  --muted:#a7b5d6;
  --border:rgba(120,150,220,.18);
  --border2:rgba(120,150,220,.28);
  --accent:#57c7ff;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(80,120,255,.20), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(87,199,255,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(255,80,200,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background: rgba(7,10,16,.78);
  backdrop-filter: blur(12px);
}
.brand{display:flex; align-items:center; gap:12px; min-width: 240px;}

.nav{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.navLink{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(13,18,32,.30);
  color: rgba(231,238,255,.86);
  text-decoration:none;
  font-size:13px;
}
.navLink:hover{border-color: rgba(150,175,255,.32); background: rgba(13,18,32,.55)}
.logoDot{width:14px;height:14px;border-radius:999px;background:linear-gradient(135deg,#57c7ff,#ff4fd8,#ffd35a); box-shadow:0 0 20px rgba(87,199,255,.35)}
.brandTitle{font-weight:750; letter-spacing:.2px; line-height:1.1}
.brandSub{color:var(--muted); font-size:12px; margin-top:2px}

.toolbar{display:flex; gap:10px; align-items:center;}
.search{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  background: rgba(13,18,32,.55);
  border-radius:12px;
  min-width: min(460px, 56vw);
}
.searchIcon{color:var(--muted); font-size:14px}
.search input{
  width:100%;
  border:0; outline:0;
  background: transparent;
  color:var(--text);
  font-size:14px;
}
.pill{
  padding:8px 10px;
  border:1px solid var(--border);
  background: rgba(13,18,32,.55);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

.select{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--border);
  background: rgba(13,18,32,.35);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}
.selectLabel{font-size:12px; color:var(--muted)}
.select select{
  appearance:none;
  background:transparent;
  border:0;
  outline:0;
  color:var(--text);
  font-size:13px;
  cursor:pointer;
}

.wrap{max-width:1280px; margin:0 auto; padding:18px 16px 44px}
.hero{margin: 6px 0 16px 0;}
.hero h1{margin:0; font-size:24px}
.hero p{margin:6px 0 0 0; color:var(--muted)}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:14px;
}

.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(13,18,32,.92), rgba(11,16,32,.58));
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .10s ease, border-color .10s ease, box-shadow .10s ease;
}
.card:hover{transform: translateY(-2px); border-color: var(--border2); box-shadow: var(--shadow)}

.thumb{display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#000}
.cardBody{padding:10px 12px 12px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.cardFooter{display:flex; justify-content:flex-end; padding:0 12px 12px}
.title{font-weight:700; font-size:13px; margin:0; color:var(--text)}
.sub{font-size:12px; color:var(--muted); margin-top:4px}
.tags{display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end}
.tag{font-size:12px; color:var(--muted); border:1px solid var(--border); padding:2px 8px; border-radius:999px}

.footer{margin-top:18px; color:var(--muted); font-size:12px; opacity:.9}

.playerOverlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 12px;
  background: rgba(0,0,0,.72);
  z-index: 50;
}
.playerOverlay.open{display:flex}
.playerSheet{
  border:1px solid var(--border);
  border-radius:14px;
  padding:0;
  width:min(1100px, 96vw);
  background: rgba(13,18,32,.96);
  color:var(--text);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.playerBar{display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid var(--border)}
.playerTitle{font-weight:650; color:var(--muted); font-size:13px; padding-right:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60vw}
.playerActions{display:flex; gap:8px}
.btn{background:transparent; border:1px solid var(--border); color:var(--text); padding:10px 12px; border-radius:12px; cursor:pointer; font-size:13px}
.btn:hover{border-color:var(--border2)}
video{display:block; width:100%; height:auto; max-height:80vh; background:black}

@media (max-width: 860px){
  .topbar{flex-direction:column; align-items:stretch; gap:10px}
  .brand{min-width:0}
  .toolbar{flex-wrap:wrap}
  .search{min-width: 0; width:100%}
  .nav{justify-content:flex-start}
}
@media (max-width: 720px){
  .hero h1{font-size:20px}
  .grid{grid-template-columns: 1fr}
  .playerOverlay{padding:0}
  .playerSheet{width:100vw; height:100vh; border-radius:0}
  video{max-height: calc(100vh - 54px)}
}
