:root {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --fg: #f1f3f5;
  --muted: #8b93a6;
  --accent: #d12f2f;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1e2a 0%, var(--bg) 60%) fixed;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Helvetica Neue",
    Arial, "Noto Sans Arabic", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #ff5050, var(--accent) 60%, #7b1212);
  box-shadow: 0 6px 18px rgba(209, 47, 47, 0.35);
  position: relative;
}

.logo::after {
  content: "Y";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: white;
}

.title strong {
  font-size: 18px;
  letter-spacing: 0.3px;
}

.title small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(209, 47, 47, 0.15);
  color: #ff8a8a;
  border: 1px solid rgba(209, 47, 47, 0.35);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  transition: 0.25s;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulse 1.6s infinite;
}

.badge.offline {
  background: rgba(139, 147, 166, 0.12);
  color: var(--muted);
  border-color: rgba(139, 147, 166, 0.3);
}

.badge.offline .dot {
  background: var(--muted);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px 24px 24px;
}

.player {
  width: 100%;
  max-width: var(--max);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.notice {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  max-width: var(--max);
  width: 100%;
}

.notice.error {
  color: #ffb3b3;
  border-color: rgba(209, 47, 47, 0.3);
  background: rgba(209, 47, 47, 0.08);
}

.hidden {
  display: none;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 24px 28px;
}

.footer .sep {
  margin: 0 8px;
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px;
  }

  .stage {
    padding: 8px 12px 16px;
  }

  .player {
    border-radius: 10px;
  }

  .title strong {
    font-size: 16px;
  }
}
