/* InGame FM - dark gaming theme */
:root {
  --bg: #08080f;
  --bg2: #0e0e1a;
  --panel: #13131f;
  --panel2: #191928;
  --line: #262638;
  --text: #ecebf7;
  --muted: #8f8cab;
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --hot: #ff4d8d;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --glow: 0 0 0 1px rgba(139, 92, 246, .35), 0 8px 40px -12px rgba(139, 92, 246, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Inter", system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 18px;
       font: 600 .95rem/1 "Inter", system-ui, sans-serif; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--accent), #6d28d9);
       box-shadow: 0 6px 24px -8px rgba(139, 92, 246, .8); transition: transform .12s, box-shadow .12s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .9); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.danger { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 6px 24px -8px rgba(244, 63, 94, .7); }
.btn.live { background: linear-gradient(135deg, var(--hot), #e11d48); animation: pulse 1.6s infinite; }
.btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 77, 141, .15); } }

label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 6px; }
input, select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
       padding: 10px 12px; font: inherit; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=range] { padding: 0; accent-color: var(--accent); }
.field { margin-bottom: 16px; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.error { color: #fb7185; font-size: .85rem; margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.prefix { display: flex; align-items: stretch; }
.prefix span { background: var(--panel2); border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; padding: 10px 10px;
       color: var(--muted); white-space: nowrap; font-size: .9rem; }
.prefix input { border-radius: 0 10px 10px 0; }

/* alerts */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid; }
.alert.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.alert.err { background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .35); color: #fecdd3; }

/* public site */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(8, 8, 15, .75); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--text) !important; text-decoration: none !important; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: var(--glow); }
.nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav .links a:not(.btn) { color: var(--muted); }
.nav .links a:not(.btn):hover { color: var(--text); text-decoration: none; }

.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
       background: radial-gradient(closest-side at 30% 50%, rgba(139, 92, 246, .35), transparent),
                   radial-gradient(closest-side at 75% 40%, rgba(34, 211, 238, .22), transparent); filter: blur(10px); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: #c9c6e0; max-width: 560px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
       padding: 6px 12px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); }
.mock { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--glow); }
.mock .title { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; color: var(--muted); }
.mock .song { font-size: 1.15rem; font-weight: 600; margin: 8px 0 14px; }
.mock .url { background: var(--bg); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: .85rem; color: var(--accent2); }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 42px; margin: 14px 0; }
.eq i { flex: 1; background: linear-gradient(var(--accent2), var(--accent)); border-radius: 3px; animation: eq 1s infinite ease-in-out alternate; }
.eq i:nth-child(odd) { animation-duration: .7s; } .eq i:nth-child(3n) { animation-duration: 1.3s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
       background: rgba(139, 92, 246, .15); color: var(--accent); }
.games { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.games span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: #c9c6e0; background: var(--panel); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--glow); }
.plan .price { font-size: 2.4rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; margin: 6px 0 14px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0; color: #d6d3ea; }
.plan li::before { content: "✓"; color: var(--ok); margin-right: 10px; font-weight: 700; }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: #c9c6e0; margin: 10px 0 0; }
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer.site .container { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site .links { margin-left: auto; display: flex; gap: 18px; }

.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth { width: min(430px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--glow); }
.auth h1 { font-size: 1.8rem; }

/* panel */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { margin: 0 8px 26px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); margin-bottom: 2px; }
.side nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side nav a.active { background: rgba(139, 92, 246, .14); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side .foot { margin-top: auto; padding: 12px; font-size: .85rem; color: var(--muted); }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.box h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.stat { font-size: 1.7rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.onair { display: flex; gap: 18px; align-items: center; }
.onair .disc { width: 64px; height: 64px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent), var(--accent2), var(--accent));
       box-shadow: var(--glow); animation: spin 6s linear infinite; position: relative; }
.onair .disc::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--panel); }
.onair.idle .disc { animation-play-state: paused; filter: grayscale(1) brightness(.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.onair .song { font-size: 1.25rem; font-weight: 600; }
.bar { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
       background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: var(--ok); border-color: rgba(52, 211, 153, .4); }
.pill.off { color: #fb7185; border-color: rgba(251, 113, 133, .4); }
.pill.live { color: #fff; background: var(--hot); border-color: var(--hot); }
.copy { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; margin-bottom: 10px; }
.copy code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent2); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: rgba(255, 255, 255, .015); }
.ellipsis { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--text); background: rgba(139, 92, 246, .05); }
.meter { height: 10px; background: var(--bg2); border-radius: 5px; overflow: hidden; }
.meter > div { height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--hot)); width: 0; transition: width .1s; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: .82rem; margin: 0; background: var(--bg2);
       border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
#toast { position: fixed; right: 20px; bottom: 20px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
       box-shadow: var(--glow); display: none; z-index: 50; max-width: 360px; }
.empty { color: var(--muted); padding: 18px 4px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: -260px; width: 250px; transition: left .2s; }
  .side.open { left: 0; }
  .menu-btn { display: inline-flex; }
  .nav .links a.hide-sm { display: none; }
}
