:root {
  --bg: #101010;
  --surface: #181818;
  --surface2: #242424;
  --primary: #e53935;
  --secondary: #ff8a80;
  --text: #f2f2f2;
  --muted: #a8a8a8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16,16,16,0.95);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid #222;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; object-fit: contain; }
.eq-bars { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.eq-bars span {
  width: 3px; border-radius: 2px; background: var(--primary);
  animation: eq 0.6s ease-in-out infinite alternate;
}
.eq-bars span:nth-child(2) { animation-delay: 0.15s; background: var(--secondary); }
.eq-bars span:nth-child(3) { animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { animation-delay: 0.1s; background: var(--secondary); }
.eq-bars span:nth-child(5) { animation-delay: 0.25s; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }
.icon-btn {
  background: var(--surface2); color: var(--text); border: none;
  border-radius: 10px; padding: 8px 12px; font-size: 13px; cursor: pointer;
}
.container { max-width: 680px; margin: 0 auto; padding: 12px; padding-bottom: 130px; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid #333; border-radius: 12px; padding: 12px 14px; font-size: 15px;
}
.btn {
  background: var(--primary); color: #fff; border: none; border-radius: 12px;
  padding: 12px 16px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid #444;
  border-radius: 12px; padding: 10px 14px; font-size: 14px; cursor: pointer;
}
.card {
  background: var(--surface); border-radius: 14px; overflow: hidden; margin-bottom: 12px;
}
.video-card { cursor: pointer; }
.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #000; }
.card-body { padding: 10px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.player-box {
  position: sticky; top: 56px; z-index: 15;
  background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 12px;
}
video { width: 100%; max-height: 240px; display: block; background: #000; }
.player-controls {
  background: var(--surface); padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(24,24,24,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid #222;
  display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
  background: none; border: none; color: var(--muted); font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
}
.nav-item.active { color: var(--primary); font-weight: 600; }
.auth-box {
  max-width: 400px; margin: 60px auto; padding: 24px;
  background: var(--surface); border-radius: 16px;
}
.err { color: #ff6b6b; font-size: 13px; margin-top: 8px; }
.msg { color: #81c784; font-size: 13px; margin-top: 8px; }
