:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #131722;
  --panel2: #191e2a;
  --text: #f7f8fb;
  --muted: #9198a8;
  --line: rgba(255,255,255,.08);
  --accent: #ff3b5c;
  --accent2: #ff754b;
  --ok: #55d98b;
  --warn: #ffcc66;
  --bad: #ff6b76;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { padding-bottom: calc(108px + var(--safe-bottom)); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
.app-shell { max-width: 820px; margin: 0 auto; padding: 18px 16px 32px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: env(safe-area-inset-top, 0); }
.top-actions { display: flex; align-items: center; gap: 7px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.04em; }
h3 { margin: 0 0 12px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: white; font-size: 17px; font-weight: 800; }
.top-btn { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; background: var(--panel); color: white; font-weight: 750; }
.hero { margin-top: 28px; padding: 26px; border-radius: 28px; background: radial-gradient(circle at 90% 0%, rgba(255,59,92,.22), transparent 38%), linear-gradient(145deg, #171c29, #11141d); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.26); }
.hero-copy { color: #b5bac6; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,59,92,.12); }
.hero h2 { font-size: clamp(30px, 7vw, 47px); line-height: .98; letter-spacing: -.055em; margin: 20px 0 14px; }
.hero p { color: var(--muted); margin: 0; line-height: 1.5; }
.user-bar { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(85,217,139,.07); border: 1px solid rgba(85,217,139,.18); color: #c8d5ce; font-size: 12px; }
.search-panel { margin-top: 18px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 155px; gap: 10px; }
.search-row input, .search-row select, .form-grid input, .form-grid select, .admin-head select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 0 15px; outline: none; }
.search-row input:focus, .search-row select:focus, .form-grid input:focus { border-color: rgba(255,59,92,.65); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: var(--panel); color: #bbc0cc; border-radius: 999px; padding: 9px 14px; }
.chip.active { background: white; color: #0b0d12; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 12px; padding: 10px 6px; font-weight: 650; }
.tab.active { background: var(--panel2); color: white; box-shadow: 0 2px 10px rgba(0,0,0,.24); }
.status { color: var(--muted); font-size: 13px; padding: 18px 4px 10px; }
.inline-link { border: 0; background: transparent; color: white; padding: 0; text-decoration: underline; }
.station-list { display: grid; gap: 10px; }
.station { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto; align-items: center; gap: 11px; min-height: 76px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.station.playing { border-color: rgba(255,59,92,.55); background: linear-gradient(90deg, rgba(255,59,92,.09), var(--panel) 55%); }
.station-art { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #202531; }
.station-art.fallback { display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.station-main { min-width: 0; }
.station-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 750; font-size: 15px; }
.community-badge { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 2px 5px; border-radius: 999px; color: var(--ok); background: rgba(85,217,139,.1); font-size: 8px; letter-spacing: .05em; }
.station-meta { color: var(--muted); font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--panel2); color: white; font-size: 18px; }
.icon-btn.fav { color: #ffd45c; }
.player { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: rgba(18,21,30,.92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + var(--safe-bottom)); }
.player-inner { max-width: 790px; margin: 0 auto; display: grid; grid-template-columns: 52px minmax(0,1fr) 54px; gap: 11px; align-items: center; }
.player-art { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: #202531; }
.player-info { min-width: 0; }
.now-label { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.player-name { font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.player-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.play-btn { width: 50px; height: 50px; border: 0; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 19px; box-shadow: 0 8px 22px rgba(255,59,92,.28); }
.buffer-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; overflow: hidden; }
.player.loading .buffer-bar::after { content: ""; display: block; width: 35%; height: 100%; background: var(--accent); animation: load 1s infinite ease-in-out; }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: end center; background: rgba(0,0,0,.67); padding: 18px; overflow: auto; }
.modal-card { position: relative; width: min(100%, 520px); background: #171b25; border: 1px solid var(--line); border-radius: 26px; padding: 26px; margin: auto auto calc(12px + var(--safe-bottom)); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.wide-card { width: min(100%, 650px); }
.tall-card { max-height: min(82vh, 760px); overflow: auto; }
.modal-card p { line-height: 1.5; }
.modal-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #232836; color: white; font-size: 24px; z-index: 2; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 35px 10px; }
.form-grid { display: grid; gap: 13px; }
.form-grid label { display: grid; gap: 7px; color: #bdc3cf; font-size: 12px; font-weight: 700; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-btn, .secondary-btn, .danger-btn, .approve-btn, .reject-btn { border: 0; border-radius: 14px; min-height: 46px; padding: 0 15px; color: white; font-weight: 760; }
.primary-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.secondary-btn { background: var(--panel2); border: 1px solid var(--line); }
.danger-btn { background: rgba(255,107,118,.12); color: #ff9da5; border: 1px solid rgba(255,107,118,.2); }
.form-status { min-height: 18px; color: #ff9da5; font-size: 12px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border-radius: 14px; padding: 4px; margin: 8px 38px 20px 0; }
.auth-switch-btn { border: 0; border-radius: 11px; padding: 10px; background: transparent; color: var(--muted); }
.auth-switch-btn.active { background: var(--panel2); color: white; }
.account-card { display: flex; align-items: center; gap: 14px; padding: 12px 38px 18px 0; }
.account-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 24px; font-weight: 850; }
.account-card h3 { margin: 3px 0 0; font-size: 24px; }
.account-actions { display: grid; gap: 10px; }
.review-list { display: grid; gap: 10px; margin-top: 14px; }
.review-card { border: 1px solid var(--line); background: var(--panel); border-radius: 17px; padding: 14px; }
.review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-meta { color: var(--muted); font-size: 11px; margin-top: 5px; line-height: 1.4; }
.review-url { margin: 10px 0 5px; padding: 8px 10px; border-radius: 10px; background: #0f1219; color: #c1c7d3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
.status-pill { flex: 0 0 auto; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.status-pill.pending { color: var(--warn); background: rgba(255,204,102,.1); }
.status-pill.approved { color: var(--ok); background: rgba(85,217,139,.1); }
.status-pill.rejected { color: var(--bad); background: rgba(255,107,118,.1); }
.reject-reason { margin-top: 9px; color: #ffabb2; font-size: 12px; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.approve-btn { background: rgba(85,217,139,.13); color: #83e7aa; border: 1px solid rgba(85,217,139,.22); }
.reject-btn { background: rgba(255,107,118,.12); color: #ff9da5; border: 1px solid rgba(255,107,118,.2); }
.admin-head { display: grid; grid-template-columns: 1fr 180px; align-items: end; gap: 12px; padding-right: 38px; }
.admin-head h3 { margin: 3px 0 0; }
.admin-head select { min-height: 42px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(100px + var(--safe-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 11px 15px; border-radius: 999px; background: rgba(247,248,251,.96); color: #11141d; font-size: 12px; font-weight: 750; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.hidden { display: none !important; }
@media (max-width: 560px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .top-btn { width: 42px; padding: 0; font-size: 0; }
  .top-btn::before { content: '+'; font-size: 23px; }
  .hero { padding: 22px 20px; border-radius: 24px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row select { min-height: 44px; }
  .station { grid-template-columns: 50px minmax(0,1fr) 40px 40px; gap: 8px; }
  .station-art { width: 50px; height: 50px; border-radius: 12px; }
  .icon-btn { width: 40px; height: 40px; }
  .form-two, .admin-head { grid-template-columns: 1fr; }
  .admin-head { padding-right: 34px; }
  .user-bar { flex-direction: column; gap: 3px; }
}
.form-status.success { color: var(--ok); }
.verify-note { color: var(--muted); font-size: 11px; line-height: 1.45; padding: 2px 2px 0; }
.resend-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; }
.resend-box summary { cursor: pointer; color: #c8cdd8; }
.compact-form { margin-top: 12px; }
.account-email { color: var(--muted); font-size: 12px; margin-top: 4px; }


/* RockRadio 0.6 — panel użytkowników */
.admin-card { width: min(100%, 820px); }
.admin-title { padding-right: 42px; }
.admin-title h3 { margin: 3px 0 14px; font-size: 25px; }
.admin-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #10141d; }
.admin-tab { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 760; }
.admin-tab.active { background: var(--panel2); color: white; }
.admin-tools { display: grid; grid-template-columns: minmax(180px, 240px); gap: 8px; margin-top: 12px; }
.admin-user-tools { grid-template-columns: minmax(0,1fr) 160px 150px; }
.admin-tools input, .admin-tools select, .role-control select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); padding: 0 12px; outline: none; }
.admin-summary { min-height: 18px; margin: 12px 2px -4px; color: var(--muted); font-size: 11px; }
.user-admin-card { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 15px; }
.user-admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.user-identity { display: flex; gap: 11px; align-items: center; min-width: 0; }
.mini-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 900; }
.user-name-wrap { min-width: 0; }
.user-name-wrap strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.account-state.active { color: var(--ok); background: rgba(85,217,139,.1); }
.account-state.blocked { color: var(--bad); background: rgba(255,107,118,.1); }
.account-state.unverified { color: var(--warn); background: rgba(255,204,102,.1); }
.user-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.user-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.user-stats span { padding: 7px 9px; border-radius: 10px; background: #10141d; color: #aeb5c2; font-size: 10px; }
.user-stats strong { color: white; }
.user-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.role-control { display: grid; gap: 5px; min-width: 155px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.role-control select { min-height: 38px; text-transform: none; letter-spacing: 0; font-weight: 650; }
.compact-btn { min-height: 38px; }
.warning-btn { border: 1px solid rgba(255,204,102,.22); border-radius: 14px; min-height: 38px; padding: 0 15px; background: rgba(255,204,102,.1); color: #ffd984; font-weight: 760; }
.self-badge { align-self: center; padding: 8px 10px; border-radius: 10px; background: rgba(124,58,237,.12); color: #c4b5fd; font-size: 10px; font-weight: 800; }
@media (max-width: 650px) {
  .admin-user-tools { grid-template-columns: 1fr; }
  .user-facts { grid-template-columns: 1fr; }
  .user-admin-actions { display: grid; grid-template-columns: 1fr; }
  .role-control { min-width: 0; }
  .compact-btn, .warning-btn { width: 100%; }
}
