:root {
  --bg: #0a0b0a;
  --bg-2: #111311;
  --panel: #161916;
  --line: #262b26;
  --text: #e9efe9;
  --muted: #8d968d;
  --green: #53fc18;
  --green-dim: #3fbe13;
  --discord: #5865f2;
  --red: #ff4d4d;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(83, 252, 24, .10), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, rgba(88, 101, 242, .12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 11, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
  box-shadow: 0 0 18px rgba(83, 252, 24, .45);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name { font-size: 1.2rem; font-weight: 700; letter-spacing: .3px; }

.brand-handle { font-size: .82rem; color: var(--muted); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
}

.status-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge[data-state="live"] {
  color: #fff;
  background: rgba(255, 77, 77, .14);
  border-color: rgba(255, 77, 77, .55);
}

.status-badge[data-state="live"] .dot {
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, .7);
  animation: pulse 1.6s infinite;
}

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

.actions, .links { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #06170a;
  box-shadow: 0 6px 22px rgba(83, 252, 24, .3);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 6px 22px rgba(88, 101, 242, .32);
}

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 40px) 40px;
}

.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chat-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.chat-head h2 {
  margin: 0;
  font-size: .85rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
}

.chat-open {
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
}

.chat-open:hover { color: var(--green); }

.chat-wrap iframe {
  flex: 1;
  width: 100%;
  min-height: 380px;
  border: 0;
  background: var(--panel);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.about-card h2 {
  margin: 0 0 14px;
  font-size: .82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}

.bio { margin: 0 0 16px; line-height: 1.6; color: #cdd4cd; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  background: rgba(83, 252, 24, .08);
  border: 1px solid rgba(83, 252, 24, .3);
  color: #c8ffb2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
}

.stat-label { font-size: .72rem; color: var(--muted); }

.moot { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 40px);
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

footer a { color: var(--green); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .stream-grid { grid-template-columns: 1fr; }
  .chat-wrap { min-height: 360px; }
}

@media (max-width: 560px) {
  .topbar { gap: 12px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr; }
}
