/* Radio B-Zone ------------------------------------------------------------ */
:root {
  --bg: #07090d;
  --panel: rgba(14, 18, 26, 0.82);
  --panel-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef2f7;
  --muted: #98a3b5;
  --teal: #2ec4a6;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #22c55e;
  --red: #ff4757;
  --amber: #f5b301;
  --gray: #7b8496;
  --accent: linear-gradient(135deg, #2ec4a6 0%, #3b82f6 50%, #8b5cf6 100%);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
.bg {
  position: fixed; inset: -40px; z-index: -1;
  background: url('../img/bg.jpg') center / cover no-repeat;
  filter: blur(16px) brightness(0.32) saturate(1.2);
}
a { color: #7cc4ff; }
.gothic { font-family: 'Grenze Gotisch', 'Old English Text MT', serif; font-weight: 700; letter-spacing: 0.5px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt, .card .mt { margin-top: 1.5rem; }
.nowrap { white-space: nowrap; }
.req { color: var(--red); }
[hidden] { display: none !important; }

/* top bar ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-size: 1.7rem; line-height: 1; }
.livebar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem; color: var(--muted);
}
.livebar.on { color: #fff; background: rgba(255, 71, 87, 0.16); border-color: rgba(255, 71, 87, 0.5); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); animation: pulse 1.6s infinite; flex: none; }
.dot.off { background: var(--gray); animation: none; }
.dot.green { background: var(--green); animation: none; box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.livebar.online { color: #d7fbe4; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.45); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .linkbtn {
  color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a:hover, .linkbtn:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: #fff; background: rgba(59, 130, 246, 0.22); }
form.inline { display: inline; margin: 0; }

/* layout ------------------------------------------------------------------ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 1.2rem; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.narrow-left { max-width: 760px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid2.tight { gap: 12px 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap-row { flex-wrap: wrap; }
.center-row { justify-content: center; margin-top: 12px; }
@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .topbar { padding: 8px 12px; gap: 10px; }
  .brand span { font-size: 1.4rem; }
  .nav { margin-left: 0; width: 100%; }
  .card { padding: 16px; }
}

/* flash ------------------------------------------------------------------- */
.flashes { margin-bottom: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; font-weight: 500; transition: opacity .6s; }
.flash.ok { background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.45); }
.flash.err { background: rgba(255, 71, 87, 0.16); border: 1px solid rgba(255, 71, 87, 0.5); }
.flash.fade { opacity: 0; }

/* forms ------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: 0.92rem; }
.form label > input, .form label > textarea, .form label > select { display: block; margin-top: 6px; }
.inline-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 600; }
input[type=text], input[type=password], input[type=date], textarea, .motiv {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); color: var(--text);
  border: 1px solid var(--border); font: inherit; font-weight: 400;
}
input[type=date] { width: auto; color-scheme: dark; padding: 8px 12px; }
input:focus, textarea:focus { outline: 2px solid rgba(59, 130, 246, 0.6); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; min-height: 96px; }
.counter { display: block; text-align: right; margin-top: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
input[type=file] {
  width: 100%; padding: 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25); color: var(--muted); font: inherit; font-weight: 400;
}
input[type=file]::file-selector-button {
  margin-right: 10px; padding: 8px 12px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(59, 130, 246, 0.25); color: #fff; font-weight: 600; font-family: inherit;
}
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; margin-top: 8px; }
.check input, .toggle input { width: 18px; height: 18px; accent-color: var(--teal); }

/* buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .08s, filter .15s, background .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border: 0; color: #fff; }
.btn.danger { background: rgba(255, 71, 87, 0.85); border: 0; color: #fff; }
.btn.ok { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.5); }
.btn.bad { background: rgba(255, 71, 87, 0.14); border-color: rgba(255, 71, 87, 0.5); }
.btn.ok.active { background: var(--green); color: #04130a; }
.btn.bad.active { background: var(--red); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 0.85rem; border-radius: 9px; }
.btn.small.active { background: rgba(59, 130, 246, 0.35); }
.btn.big { padding: 14px 20px; font-size: 1.05rem; }
.btn.huge { padding: 18px 30px; font-size: 1.25rem; margin-top: 8px; }
.btn.ghost { visibility: hidden; }

/* public: inchis ---------------------------------------------------------- */
.closed {
  max-width: 900px; margin: 0 auto; text-align: center;
  min-height: calc(100vh - 190px); min-height: calc(100svh - 190px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero { width: 100%; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); display: block; }
.closed-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 28px 0 8px; line-height: 1.05;
  background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(59, 130, 246, 0.35));
}

/* public: live ------------------------------------------------------------ */
.live-hero { display: flex; align-items: center; gap: 22px; margin: 8px 0 22px; }
.live-logo { width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.45)); flex: none; }
.live-title { font-size: clamp(2rem, 6vw, 3.4rem); margin: 4px 0; line-height: 1.05; }
.live-hero p { margin: 0; }
.onair {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 2px; font-size: 0.8rem;
  color: #fff; background: rgba(255, 71, 87, 0.2); border: 1px solid rgba(255, 71, 87, 0.6);
  padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 560px) {
  .live-hero { flex-direction: column; text-align: center; gap: 10px; }
  .live-logo { width: 96px; height: 96px; }
}
.privacy { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }
.sitefoot {
  text-align: center; font-size: 0.8rem; color: var(--muted); padding: 18px 16px 24px;
  border-top: 1px solid var(--border); background: rgba(7, 9, 13, 0.6);
}
.longwarn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(245, 179, 1, 0.16); border: 1px solid rgba(245, 179, 1, 0.55);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 500;
}
.mt-s { margin-top: 10px; margin-bottom: 0; }
.timecell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
select, input[type=number] {
  width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); color: var(--text);
  border: 1px solid var(--border); font: inherit; font-weight: 400; color-scheme: dark;
}
.corr-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.corr-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 12px 14px; }
.corr-grid .corr-motiv { grid-column: 1 / -1; }
.corr-grid.em-grid { grid-template-columns: 1.3fr 1fr 1fr; }
input[type=datetime-local] {
  width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); color: var(--text);
  border: 1px solid var(--border); font: inherit; color-scheme: dark;
}
.emisie-sterge { margin-top: 12px; text-align: right; }
@media (max-width: 640px) { .corr-grid.em-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .corr-grid { grid-template-columns: 1fr 1fr; } }
/* admin: ascultatori in coltul din stanga jos ------------------------------ */
.asc-float {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem;
  background: rgba(7, 9, 13, 0.88); border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.asc-float strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.asc-float span { color: var(--muted); }
@media (max-width: 640px) { .asc-float { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 0.85rem; } }
body:has(.asc-float) .sitefoot { padding-bottom: 64px; }   /* nu acopera subsolul */

/* player radio ------------------------------------------------------------ */
.radiobar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); max-width: 640px;
}
.closed .radiobar { margin: 22px auto 0; justify-content: center; }
.playbtn { min-width: 170px; }
.radiobar.playing .playbtn { background: rgba(255, 71, 87, 0.85); }
.nowplaying { display: flex; gap: 6px; align-items: baseline; min-width: 0; flex: 1 1 220px; font-size: 0.95rem; }
.closed .nowplaying { flex: 0 1 auto; }
.np-label { color: var(--muted); white-space: nowrap; font-weight: 600; }
.np-song { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radiobar audio { display: none; }
.recent-title { font-size: 1rem; margin: 0 0 8px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.recent-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 2px; border-bottom: 1px solid var(--border); min-width: 0; }
.recent-list li:last-child { border-bottom: 0; }
.recent-ora { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; flex: none; }
.recent-titlu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-closed {
  max-width: 640px; margin: 18px auto 0; text-align: left; padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 14px;
}
.recent-card[hidden] { display: none; }
.refresh-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chip-asc { background: rgba(59, 130, 246, 0.16); color: #a9cdff; border-color: rgba(59, 130, 246, 0.45); }
@media (max-width: 640px) {
  .radiobar { justify-content: center; }
  .playbtn { width: 100%; }
  .nowplaying { flex: 1 1 100%; justify-content: center; }
  .live-strip .stat.listeners { grid-column: 1 / -1; }
}
.incident {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 0.92rem;
  background: rgba(255, 71, 87, 0.12); border: 1px solid rgba(255, 71, 87, 0.45);
}
.card.problems { border-color: rgba(255, 71, 87, 0.45); }
.card.problems h2 { color: #ff9aa3; }
.longwarn.incident-warn { background: rgba(255, 71, 87, 0.14); border-color: rgba(255, 71, 87, 0.55); }
.archived-note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.login-logo { display: block; width: 110px; height: 110px; object-fit: contain; margin: 0 auto 6px; }

/* dedicatii --------------------------------------------------------------- */
.dedlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dedi {
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); border-left: 4px solid var(--amber);
  border-radius: 12px; padding: 12px 14px;
}
.dedi.st-accepted { border-left-color: var(--green); }
.dedi.st-rejected { border-left-color: var(--red); }
.dedi.st-undelivered { border-left-color: var(--gray); }
.dedi.new { animation: flashnew 2.5s ease-out; }
@keyframes flashnew { 0% { background: rgba(59, 130, 246, 0.45); } 100% { background: rgba(0, 0, 0, 0.28); } }
.dedi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dedi-song { font-size: 1.02rem; word-break: break-word; }
.dedi-meta { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.dedi-msg { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font-style: italic; color: #dbe3ee; }
.dedi-reply { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(59, 130, 246, 0.14); font-size: 0.92rem; }
.dedi-reply span { font-weight: 700; color: #9cc7ff; }
.dedi-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dedi-actions .motiv { flex: 1 1 220px; padding: 9px 12px; }
.empty { margin: 4px 0 0; }

.chip {
  display: inline-block; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--border);
}
.chip.st-pending { background: rgba(245, 179, 1, 0.16); color: #ffd666; border-color: rgba(245, 179, 1, 0.45); }
.chip.st-accepted { background: rgba(34, 197, 94, 0.16); color: #6ee79a; border-color: rgba(34, 197, 94, 0.45); }
.chip.st-rejected { background: rgba(255, 71, 87, 0.16); color: #ff8a95; border-color: rgba(255, 71, 87, 0.45); }
.chip.st-undelivered { background: rgba(123, 132, 150, 0.18); color: #c3c9d4; border-color: rgba(123, 132, 150, 0.45); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* panou DJ ---------------------------------------------------------------- */
.live-strip { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-l { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat.warn .stat-n { color: var(--amber); }
.stat.ok .stat-n { color: var(--green); }
.stat.bad .stat-n { color: var(--red); }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.warnbox {
  background: rgba(245, 179, 1, 0.12); border: 1px solid rgba(245, 179, 1, 0.45);
  border-radius: 12px; padding: 12px 14px;
}

/* admin ------------------------------------------------------------------- */
.live-admin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: rgba(255, 71, 87, 0.45); }
.grow { flex: 1; }
.dayhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dayname { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
@media (max-width: 640px) {
  .dayhead { flex-wrap: wrap; justify-content: center; }
  .dayhead > .center { order: -1; width: 100%; }
}
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; white-space: nowrap; }
.tbl.small { font-size: 0.88rem; }
.tbl.small th, .tbl.small td { padding: 7px 10px; }
.tbl tr.flag td { background: rgba(245, 179, 1, 0.1); }
.tbl tr.flag td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.tbl.dim { opacity: 0.75; }
.tbl td.ok, .kpi.ok .kpi-n { color: var(--green); }
.tbl td.bad, .kpi.bad .kpi-n { color: var(--red); }
.tbl td.gray, .kpi.gray .kpi-n { color: #b6bdc9; }
.tbl td.pre { white-space: pre-wrap; max-width: 320px; word-break: break-word; }
.tbl td.actions { white-space: nowrap; text-align: right; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 800; vertical-align: middle;
  background: rgba(59, 130, 246, 0.22); color: #a9cdff; letter-spacing: 0.3px;
}
.badge.warn { background: var(--amber); color: #1e1600; }
.badge.gray { background: rgba(123, 132, 150, 0.3); color: #d1d6de; }
.badge.bad { background: rgba(255, 71, 87, 0.25); color: #ff9aa3; }
.badge.live { background: var(--red); color: #fff; }
.emisie-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.emisie-head h3 { margin: 0 0 2px; font-size: 1.15rem; }
.emisie-dur { font-size: 1.5rem; font-weight: 800; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.photos { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 10px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.thumbs img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.thumbs a:hover img { outline: 2px solid var(--blue); }
details summary { cursor: pointer; font-weight: 700; color: #9cc7ff; padding: 6px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* raport statistici (pentru captura) ------------------------------------- */
.stat-controls { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.monthnav { display: flex; align-items: center; gap: 10px; }
.monthnav .btn { padding: 8px 14px; font-size: 1.1rem; }
.monthname { font-size: 1.25rem; font-weight: 800; min-width: 190px; text-align: center; }
.presets { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.custom-range { margin-left: auto; }
@media (max-width: 760px) { .custom-range { margin-left: 0; } .monthnav { width: 100%; justify-content: space-between; } }
.report { background: linear-gradient(160deg, rgba(20, 26, 40, 0.94), rgba(10, 12, 18, 0.94)); }
.report-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.report-head img { width: 76px; height: 76px; object-fit: contain; }
.report-head h1 { margin: 0; font-size: 2.3rem; line-height: 1; }
.report-sub { color: var(--muted); font-weight: 600; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.kpi-n { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.muted-h { color: var(--muted); font-size: 1rem; }

/* podium (statistici) ------------------------------------------------------ */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px;
  max-width: 820px; margin: 6px auto 26px; padding: 10px 0 0;
}
.podium-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.podium-info { text-align: center; padding: 0 6px 12px; }
.podium-medal { font-size: 2.1rem; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.podium-name { font-family: 'Grenze Gotisch', serif; font-weight: 700; font-size: 1.55rem; line-height: 1.1; overflow-wrap: anywhere; }
.podium-hours { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; }
.podium-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.podium-step {
  position: relative; border-radius: 14px 14px 6px 6px; display: flex; align-items: flex-start; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px rgba(0, 0, 0, 0.45);
}
.podium-step span {
  margin-top: 12px; font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.podium-col.p1 .podium-step { height: 170px; background: linear-gradient(180deg, #ffd96a 0%, #e0a92a 55%, #a8740f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 34px rgba(255, 200, 60, 0.35), 0 14px 30px rgba(0,0,0,.45); }
.podium-col.p2 .podium-step { height: 125px; background: linear-gradient(180deg, #f1f4f8 0%, #b9c2cf 55%, #7d8796 100%); }
.podium-col.p3 .podium-step { height: 95px;  background: linear-gradient(180deg, #f0b27a 0%, #c9803f 55%, #8a5326 100%); }
.podium-col.p1 .podium-name { font-size: 1.9rem; }
.podium-col.p1 .podium-hours { font-size: 2rem; background: linear-gradient(180deg, #ffe48a, #f0b429); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium-col.p1 .podium-medal { font-size: 2.6rem; }
.kpi-n { white-space: nowrap; }

/* telefon --------------------------------------------------------------- */
@media (max-width: 640px) {
  /* tabele -> carduri */
  .tbl.stack thead, .tbl.stack .hide-m { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr {
    border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 6px 0;
    background: rgba(0, 0, 0, 0.22);
  }
  .tbl.stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0; padding: 5px 14px; text-align: right;
  }
  .tbl.stack td::before {
    content: attr(data-label); color: var(--muted); font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; text-align: left;
  }
  .tbl.stack td.cell-main { font-size: 1.05rem; justify-content: flex-start; text-align: left; padding-top: 8px; }
  .tbl.stack td.cell-main::before, .tbl.stack td.actions::before { content: none; }
  .tbl.stack td.actions { justify-content: flex-end; gap: 8px; padding-bottom: 8px; }
  .tbl.stack tr.flag { background: rgba(245, 179, 1, 0.1); border-color: rgba(245, 179, 1, 0.55); }
  .tbl.stack tr.flag td { background: none; box-shadow: none; }

  .dayhead .ghost { display: none; }
  .kpi-n { font-size: 1.15rem; }
  .kpi { padding: 10px; }
  .report-head h1 { font-size: 1.8rem; }
  .report-head img { width: 56px; height: 56px; }

  /* panou DJ: cifre pe grila */
  .live-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
  .live-strip .onair, .live-strip .stat:nth-child(2), .live-strip .toggle { grid-column: span 2; }
  .live-strip .toggle { grid-column: 1 / -1; margin-left: 0; }
  .live-strip .onair { justify-self: start; align-self: center; }
  .stat-n { font-size: 1.35rem; }
  .stat-l { font-size: 0.68rem; }

  .emisie-head { flex-direction: column; gap: 6px; }
  .emisie-dur { text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
  .closed { min-height: calc(100vh - 200px); min-height: calc(100svh - 200px); }
  .onair-row { justify-content: center; }
}

/* egalizator ON AIR -------------------------------------------------------- */
.onair-row { display: flex; align-items: center; gap: 12px; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i {
  display: block; width: 4px; height: 100%; border-radius: 2px;
  background: var(--accent); background-size: 100% 22px;
  transform-origin: bottom; animation: eq 1s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-duration: .9s; }
.eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.2s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.1s; }
.eq i:nth-child(5) { animation-duration: 1s; animation-delay: -.7s; }
.eq i:nth-child(6) { animation-duration: .75s; animation-delay: -.35s; }
.eq i:nth-child(7) { animation-duration: .95s; animation-delay: -.6s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .eq i, .dot { animation: none; } .eq i { transform: scaleY(0.6); } }

/* mesaj formular ----------------------------------------------------------- */
.formmsg { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.formmsg.ok { background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.45); }
.formmsg.err { background: rgba(255, 71, 87, 0.16); border: 1px solid rgba(255, 71, 87, 0.5); }
.report-foot { margin-top: 16px; }
