:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1d2a3a;
  --accent: #145da0;
  --online: #157347;
  --offline: #842029;
  --neutral: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #dbeafe 0%, #f8fafc 40%, #e2e8f0 100%);
  min-height: 100vh;
}

.layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #475569;
}

.status-group {
  display: flex;
  gap: 10px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
}

.pill.online {
  background: var(--online);
}

.pill.offline {
  background: var(--offline);
}

.pill.neutral {
  background: var(--neutral);
}

.player-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  padding: 12px;
}

.cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

video {
  width: 100%;
  max-height: 72vh;
  background: #000;
  border-radius: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

button:hover {
  filter: brightness(1.08);
}

.hint {
  margin: 12px 0 4px;
  color: #475569;
  font-size: 0.95rem;
}

.extra-info {
  margin: 8px 0 4px;
  font-size: 0.92rem;
  color: #334155;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
  opacity: 0.96;
  transition: opacity 0.2s ease;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
