@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: #101625;
  --text: #f4f7ff;
  --muted: #8994aa;
  --accent: #6d5dfc;
  --cyan: #23d5e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(109,93,252,.18), transparent 38%),
    radial-gradient(ellipse at 92% 12%, rgba(35,213,232,.10), transparent 30%),
    var(--bg);
}
.app-shell { width: min(1180px, 100%); min-height: 100vh; margin: 0 auto; padding: 22px 28px 18px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #23b8db); font: 700 15px 'Space Grotesk', sans-serif; box-shadow: 0 7px 24px #6d5dfc55; }
.brand-name { font: 700 18px 'Space Grotesk', sans-serif; letter-spacing: 1.1px; }
.brand-name span { color: #8c83ff; }
.telegram-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid #ffffff20; border-radius: 12px; color: white; text-decoration: none; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #268de8, #1765bd); box-shadow: 0 8px 25px #1765bd35; transition: transform .2s, filter .2s; }
.telegram-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.telegram-btn svg { width: 17px; height: 17px; fill: currentColor; }
.player-wrap { width: 100%; margin: auto 0; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 220px; overflow: hidden; border: 1px solid #ffffff20; border-radius: 20px; background: #03050a; box-shadow: 0 24px 80px #0009, 0 0 0 1px #6d5dfc0d; }
#main-iframe { display: none; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(circle at center, #171d32 0, #090d17 65%); }
.player-placeholder h1 { margin: 18px 0 7px; font: 700 clamp(22px, 4vw, 34px) 'Space Grotesk', sans-serif; letter-spacing: 2px; }
.player-placeholder h1 em { color: var(--cyan); font-style: normal; }
.player-placeholder p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pulse-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #7e74ff70; border-radius: 18px; background: #6d5dfc18; }
.pulse-icon span { width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 8px #23d5e822, 0 0 25px var(--cyan); animation: pulse 1.7s infinite; }
.is-error .pulse-icon { border-color: #ff657570; background: #ff657518; }
.is-error .pulse-icon span { background: #ff6575; box-shadow: 0 0 0 8px #ff657522, 0 0 25px #ff6575; animation: none; }
.player-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 3px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #cbd3e4; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.footer-note, .site-footer { color: #68748c; font-size: 12px; }
.site-footer { padding-top: 20px; text-align: center; }
.dot { padding: 0 6px; color: #5965a7; }
@keyframes pulse { 50% { transform: scale(.75); opacity: .65; } }
@media (max-width: 600px) {
  .app-shell { padding: 15px 13px 14px; }
  .topbar { margin-bottom: 18px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 15px; }
  .telegram-btn { padding: 10px 12px; font-size: 12px; }
  .player-frame { aspect-ratio: 16 / 10; min-height: 230px; border-radius: 14px; }
  .player-footer { align-items: flex-start; flex-direction: column; }
  .footer-note { line-height: 1.5; }
}
@media (max-width: 360px) { .telegram-btn span { display: none; } }
