:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #15110f;
  --line: #33231e;
  --text: #fff7f2;
  --muted: #ab9a93;
  --accent: #ff6b4a;
  --danger: #ff4f45;
  --success: #ff9a3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
.hidden, .ambient, .cover, .wave, .timeline, .heart, .kicker { display: none !important; }

.topbar, main, footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { display: block; width: 3px; background: #160907; }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; }
.brand b, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 10px; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover, .topbar nav a.active { color: var(--text); }

button, .primary, .ghost, .mini, .account-button { border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); padding: 10px 14px; cursor: pointer; }
button:hover, .primary:hover, .ghost:hover, .mini:hover, .account-button:hover { border-color: var(--accent); }
.primary { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); border-color: var(--accent); color: #160907; font-weight: 700; }
.primary:disabled { opacity: .55; cursor: wait; }
.account-button { display: flex; align-items: center; gap: 8px; }
.account-dot, .live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.account-dot.online, .live-pulse { background: var(--success); }

.hero { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; padding: 64px 0; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 10px 0 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p, .section-heading p, .request-copy p { color: var(--muted); max-width: 620px; }
.eyebrow { color: var(--success); font-size: 12px; }
.hero-actions, .numbers, .player-controls, .console-head, .now-meta, .data-actions { display: flex; align-items: center; gap: 10px; }
.numbers { margin-top: 28px; gap: 28px; }
.numbers div { display: grid; }
.numbers b { font-size: 22px; }
.numbers span { color: var(--muted); font-size: 11px; }

.radio-console, .panel, .request-form, .upload-card, .table-card, .compact-form, .settings-form, .studio-content { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.console-head { justify-content: space-between; color: var(--muted); }
.now-meta { min-height: 150px; justify-content: space-between; }
.now-meta small { color: var(--muted); }
.now-meta h2 { font-size: 24px; margin: 8px 0; }
.now-meta p { color: var(--muted); margin: 0; }
.player-controls { border-top: 1px solid var(--line); padding-top: 16px; }
.play-main { background: var(--accent); color: #160907; }
.volume { display: flex; align-items: center; gap: 8px; margin-left: auto; }
input[type=range] { accent-color: var(--accent); }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section { padding-top: 70px; }
.panel-title, .section-heading, .table-tools, .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-title h3, .section-heading h2 { margin: 0; }
.status-pill, .badge, .request-tags span { display: inline-block; padding: 5px 8px; border-radius: 5px; background: var(--panel-2); color: var(--muted); font-size: 11px; }
.queue-item, .data-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.queue-item:last-child, .data-row:last-child { border-bottom: 0; }
.queue-item small, .data-row small { display: block; color: var(--muted); }
.track-dot { display: none; }
.announcement, .show-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.announcement time, .show-card time, .show-card p { color: var(--muted); }
.announcement h4, .show-card h3 { margin: 5px 0; }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.show-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }

.request-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #090807; color: var(--text); border-radius: 7px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.form-foot { justify-content: flex-end; }

.studio-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 18px 0; }
.studio-tabs button.active { border-color: var(--accent); color: var(--accent); }
.studio-pane { display: none; }
.studio-pane.active { display: block; }
.upload-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-bottom: 18px; }
.upload-fields, .settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-field, .settings-form .primary { grid-column: 1 / -1; }
.compact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.compact-form h3 { grid-column: 1 / -1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; }
.switch-row input { width: auto; }
.mini.good { color: var(--success); }
.mini.danger { color: var(--danger); }
.empty-state { color: var(--muted); padding: 18px 0; }

footer { min-height: 110px; margin-top: 70px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); }

dialog { width: min(680px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.dialog-close { position: absolute; right: 12px; top: 10px; }
.auth-art { display: none; }
.auth-side { padding: 30px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-form { display: none; }
.auth-form.active { display: block; }
#toast { position: fixed; right: 20px; bottom: 20px; transform: translateY(100px); opacity: 0; transition: .2s; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 12px 16px; }
#toast.show { transform: none; opacity: 1; }
#toast.error { border-color: var(--danger); }
.fatal { width: min(1120px, calc(100% - 32px)); margin: 15px auto; border: 1px solid var(--danger); padding: 14px; }

@media (max-width: 800px) {
  .topbar nav { display: none; }
  .hero, .section-grid, .request-section { grid-template-columns: 1fr; }
  .hero { padding: 42px 0; }
  .show-grid { grid-template-columns: 1fr; }
  .upload-card { grid-template-columns: 1fr; }
  .upload-fields, .settings-form, .compact-form { grid-template-columns: 1fr; }
  .file-field, .settings-form .primary, .compact-form h3 { grid-column: 1; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}

/* compact layout */
.topbar { min-height: 64px; }
.hero { grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; padding: 50px 0 54px; }
.hero-copy > p { margin-bottom: 0; }
.radio-console { padding: 20px; }
.now-meta { min-height: 106px; }
.now-meta h2 { margin: 6px 0; }
.player-controls { padding-top: 14px; }
.section-grid { gap: 16px; }
.section { padding-top: 56px; }
.request-section { grid-template-columns: .9fr 1.1fr; gap: 28px; }
footer { min-height: 96px; margin-top: 56px; }

@media (max-width: 800px) {
  .hero { padding: 36px 0 42px; }
  .radio-console { padding: 18px; }
  .now-meta { min-height: 92px; }
  .player-controls { flex-wrap: wrap; }
  .volume { width: 100%; margin-left: 0; }
  .volume input { flex: 1; }
  .section { padding-top: 46px; }
}

.auth-note{margin:0 0 18px;color:#98a2b3;font-size:13px;line-height:1.55;max-width:420px}


/* 2.5.9 — public radio-first homepage */
.radio-home {
  min-height: 690px;
  padding: 46px 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.radio-home-title { text-align: center; margin-bottom: 22px; }
.radio-home-title h1 { margin: 0; font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; }
.radio-home-title p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.radio-player-card {
  width: min(880px, 100%);
  padding: 24px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}
.radio-click {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 38px 34px 24px;
  background: transparent;
  overflow: visible;
}
.radio-click:hover { border-color: transparent; }
.radio-click:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.radio-antenna {
  position: absolute;
  top: 10px;
  left: 23%;
  width: 46%;
  height: 7px;
  border-radius: 999px;
  background: #605552;
  transform: rotate(-8deg);
  transform-origin: left center;
  box-shadow: inset 0 1px rgba(255,255,255,.1);
}
.radio-body {
  position: relative;
  width: min(700px, 100%);
  height: 320px;
  display: grid;
  grid-template-columns: 1fr 210px;
  grid-template-rows: 42px 1fr;
  gap: 18px 26px;
  padding: 26px 30px 28px;
  border-radius: 34px;
  background: linear-gradient(145deg,#ff7b50,#d94628 58%,#a62818);
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -8px 20px rgba(66,8,0,.24), 0 22px 48px rgba(0,0,0,.36);
  transition: transform .16s ease, filter .16s ease;
}
.radio-click:hover .radio-body { transform: translateY(-2px) scale(1.005); filter: brightness(1.04); }
.radio-click:active .radio-body { transform: translateY(1px) scale(.998); }
.radio-topline { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: #2a0904; font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.radio-led { width: 9px; height: 9px; border-radius: 50%; background: #421109; box-shadow: 0 0 0 4px rgba(65,16,8,.14); }
.radio-click.playing .radio-led { background: #f8ffba; box-shadow: 0 0 18px rgba(248,255,186,.92); }
.radio-name { flex: 1; text-align: left; }
.radio-live { opacity: .72; }
.radio-display {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 22px;
  background: #160b08;
  color: #ffd8c9;
  border: 2px solid rgba(51,12,7,.4);
  box-shadow: inset 0 0 35px rgba(255,106,74,.08);
}
.radio-display > span { font-size: clamp(64px, 9vw, 106px); line-height: .92; margin-left: .08em; }
.radio-display b { margin-top: 15px; font-size: 13px; letter-spacing: .28em; color: #cfa79a; }
.radio-speaker {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  justify-content: center;
  gap: 13px;
  padding: 24px;
  border-radius: 50%;
  background: #2a0b07;
  border: 8px solid rgba(111,27,15,.48);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04), inset 0 0 32px #0a0302;
}
.radio-speaker i { width: 12px; height: 12px; border-radius: 50%; background: #080303; justify-self: center; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.radio-dial { position: absolute; right: 34px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; background: #24100c; border: 7px solid #7e291b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.radio-click.playing .radio-display { color: #fff5df; box-shadow: inset 0 0 45px rgba(255,106,74,.18), 0 0 24px rgba(255,106,74,.08); }
.public-now { min-height: 86px; padding: 18px 4px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.public-now h2 { font-size: clamp(20px, 3vw, 28px); margin: 5px 0 2px; }
.live-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.public-controls { padding-top: 12px; }
.public-controls .play-main { width: 48px; height: 44px; padding: 0; font-size: 18px; }
.public-numbers { margin: 22px 0 0; justify-content: center; text-align: center; }
.request-copy p { margin-top: 10px; }

@media (max-width: 800px) {
  .radio-home { min-height: 0; padding: 34px 0 44px; }
  .radio-home-title { margin-bottom: 14px; }
  .radio-player-card { padding: 14px; border-radius: 14px; }
  .radio-click { min-height: 260px; padding: 28px 6px 12px; }
  .radio-antenna { top: 5px; left: 18%; width: 58%; height: 5px; }
  .radio-body { height: 225px; grid-template-columns: 1fr 124px; grid-template-rows: 28px 1fr; gap: 10px 12px; padding: 18px; border-radius: 24px; }
  .radio-topline { font-size: 9px; }
  .radio-display { border-radius: 15px; }
  .radio-display > span { font-size: 58px; }
  .radio-display b { margin-top: 8px; font-size: 9px; }
  .radio-speaker { gap: 7px; padding: 14px; border-width: 5px; }
  .radio-speaker i { width: 7px; height: 7px; }
  .radio-dial { right: 20px; bottom: 16px; width: 29px; height: 29px; border-width: 5px; }
  .public-now { min-height: 78px; align-items: flex-start; }
  .public-now .live-state { margin-top: 4px; }
  .public-numbers { width: 100%; justify-content: space-around; gap: 14px; }
}

@media (max-width: 470px) {
  .radio-body { grid-template-columns: 1fr 95px; height: 196px; padding: 14px; }
  .radio-click { min-height: 225px; }
  .radio-display > span { font-size: 48px; }
  .radio-name { font-size: 8px; }
  .radio-live { display: none; }
  .radio-speaker { gap: 5px; padding: 10px; }
  .radio-speaker i { width: 6px; height: 6px; }
  .radio-dial { width: 24px; height: 24px; right: 17px; bottom: 13px; }
  .public-controls { flex-wrap: nowrap; }
  .public-controls .volume { width: auto; flex: 1; }
}
