* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #0e0f13;
  color: #e8e9ee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[hidden] { display: none !important; }

.topbar {
  display: flex; align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #1f2129;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand span { color: #e5383b; }

.home { padding: 24px; max-width: 1400px; margin: 0 auto; }
.home h1 { font-size: 1.1rem; font-weight: 600; color: #9a9db0; margin: 0 0 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.tile {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(145deg, #1a1c24, #14151b);
  border: 1px solid #262833;
  border-radius: 12px;
  color: #fff; font: inherit; font-size: 1.05rem; font-weight: 600;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-2px);
  border-color: #e5383b;
  box-shadow: 0 8px 24px rgba(229, 56, 59, .18);
  outline: none;
}
.tile img { max-width: 70%; max-height: 55%; object-fit: contain; }
.tile .initials {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e5383b; font-size: 1.2rem;
}

.player { display: flex; flex-direction: column; height: calc(100% - 57px); }
.player-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
}
.back { color: #9a9db0; text-decoration: none; }
.back:hover { color: #fff; }
.now-playing { font-weight: 600; }
.live {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  background: #e5383b; color: #fff; padding: 2px 6px; border-radius: 4px;
}
.video-wrap { position: relative; flex: 1; background: #000; min-height: 0; }
video { width: 100%; height: 100%; display: block; background: #000; }
.status {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #ccc; text-align: center; padding: 24px;
  pointer-events: none;
}
