@font-face {
    font-family: "roc-grotesk-wide";
    src: url("RocGroteskWide-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "roc-grotesk-wide";
    src: url("RocGroteskWide-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

:root {
    --bg: #4529ff;
    --card-bg: #ffffff;
    --accent: #ffa2f8;
    --accent-dark: #d870d8;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.65);
    --card-text: #111111;
    --card-text-dim: #555555;
    --success: #22c97a;
    --pending: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
}

* { box-sizing: border-box; }

button, input, textarea, select {
    font-family: "roc-grotesk-wide", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, #4023f8 18px, transparent 18px),
        radial-gradient(circle, #4023f8 18px, transparent 18px);
    background-size: 60px 120px;
    background-position: 0 0, 30px 60px;
    color: var(--text);
    font-family: "roc-grotesk-wide", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

h1 { font-size: 1.6rem; margin-bottom: 4px; font-weight: 800; color: #111111; }
h2 { font-size: 1.1rem; margin-top: 0; color: #111111; font-weight: 500; }
.subtitle { color: var(--text-dim); margin-top: 0; font-weight: 400; }

.button, .button-small { font-weight: 500; }
.spotted-nick, .reply-nick { font-weight: 800; }

/* Ghost button — sfondo trasparente, bordo e testo bianchi (su bg blu) */
.button.ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.55);
}
.button.ghost:active { background: rgba(255,255,255,0.12); }

/* ============================================================
   LOGO
   ============================================================ */

.app-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* ============================================================
   CARD
   ============================================================ */

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
    color: var(--card-text);
}

.card h2        { color: var(--card-text-dim); }
.card h1        { color: var(--card-text); }
.card .subtitle { color: var(--card-text-dim); }
.card p         { color: var(--card-text); }
.card .char-counter { color: var(--card-text-dim); }

/* ============================================================
   INPUTS
   ============================================================ */

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #f5f5f5;
    color: var(--card-text);
    font-size: 1rem;
    margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--bg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--accent);
    color: #111111;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.button:active { background: var(--accent-dark); }

.button:disabled,
.button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.button.secondary {
    background: #ffffff;
    color: var(--bg);
    border-color: rgba(69, 41, 255, 0.22);
}

.button.secondary:active { background: #f0f0f0; }

.button-small {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: #e8e8e8;
    color: var(--card-text);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-small.danger {
    background: var(--danger);
    color: white;
}

.reply-send-btn {
    background: var(--accent);
    color: #111111;
    font-weight: 600;
}

.button-row {
    display: flex;
    gap: 10px;
}
.button-row .button { flex: 1; }

/* Count badge (admin) */
.count-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.app-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: all;
}

.app-toast-overlay.toast-show {
    opacity: 1;
}

.app-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    background: #111111;
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 32px 24px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    max-width: min(82vw, 380px);
    z-index: 9999;
    box-shadow: 0 12px 48px rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
    pointer-events: all;
}

.toast-close-btn {
    display: block;
    margin: 14px auto 0;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    cursor: pointer;
    letter-spacing: 0.03em;
}
.toast-close-btn:active { background: rgba(255,255,255,0.22); }

.app-toast.toast-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   RESULT BOX (usato solo per confirm / alternatives)
   ============================================================ */

.result-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 16px;
    color: var(--card-text);
}

.result-box p { color: var(--card-text); }

/* ============================================================
   REQ TABS (Le tue richieste / In coda) — stesso stile dell'admin
   ============================================================ */

.req-tabs-wrap { margin-bottom: 0; }

.req-tabs {
    display: flex;
    width: 100%;
}

.req-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: #cccccc;
    color: rgba(0,0,0,0.5);
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
}

.req-tab:first-child { border-radius: var(--radius) 0 0 0; }
.req-tab:last-child  { border-radius: 0 var(--radius) 0 0; }

.req-tab.active {
    background: #ffffff;
    color: #111111;
}

.req-panel {
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 0;
}

/* ============================================================
   REQUEST LIST
   ============================================================ */

.request-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.request-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--card-text);
}
.request-list li:last-child { border-bottom: none; }
.req-song-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.req-song-title { font-weight: 800; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-song-artist { font-weight: 500; font-size: 0.8rem; color: var(--card-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-empty {
    color: var(--card-text-dim);
    font-size: 0.85rem;
    border-bottom: none !important;
}

.badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    margin-left: 8px;
    letter-spacing: 0.01em;
}
.badge.played    { background: #22c97a; color: #ffffff; }
.badge.will-play { background: #f5c400; color: #111111; }
.badge.wont-play { background: #f03d3d; color: #ffffff; }
.badge.pending   { background: #b0b0b0; color: #ffffff; }

/* ============================================================
   LINKS
   ============================================================ */

.links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   MISC
   ============================================================ */

.error { color: var(--danger); }

.inline-form { display: flex; gap: 8px; margin-top: 14px; align-items: stretch; }
.inline-form input { margin-bottom: 0; flex: 1; }
.inline-form .button { width: auto; white-space: nowrap; margin-bottom: 0; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }

.alt-list { list-style: none; padding: 0; margin: 10px 0 0; }
.alt-list li { margin-bottom: 8px; }
.alt-list button {
    width: 100%;
    text-align: left;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: var(--card-text);
    cursor: pointer;
    font-size: 0.95rem;
}
.alt-list button:hover { background: #ebebeb; }

/* ============================================================
   OVERLAY NICKNAME
   ============================================================ */

.nickname-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.nickname-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.nickname-card h1 { font-size: 2rem; margin: 0 0 6px; }
.nickname-card .subtitle { margin: 0 0 20px; }

/* Input within overlay (on blue bg) */
.nickname-card input[type="text"] {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.02em;
}
.nickname-card input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
.nickname-card input[type="text"]:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
}

#overlay-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.event-overlay-btn {
    transition: background 0.2s, border 0.2s;
    margin-bottom: 0 !important;
}

.event-overlay-btn.selected {
    background: var(--accent);
    color: #111;
    border-color: var(--accent) !important;
}

.overlay-no-events {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.5;
}

.privacy-consent {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    line-height: 1.4;
}

/* ============================================================
   APP HEADER + NICK BADGE
   ============================================================ */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #4529ff;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px;
    border-radius: 0 0 16px 16px;
}

.app-header h1 { margin: 0; }

.app-logo-link { display: flex; align-items: center; text-decoration: none; }

.app-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.event-name-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.02em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.event-name-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.nick-badge {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.nick-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-nick-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    opacity: 0.35;
    padding: 2px 3px;
    border-radius: 4px;
    color: #ffffff;
    line-height: 1;
    transition: opacity 0.15s;
}
.change-nick-btn:hover { opacity: 0.9; }

.nick-name-accent {
    color: var(--accent);
    font-weight: 800;
}

/* ============================================================
   TAB BAR (legacy - non più usata)
   ============================================================ */

.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 11px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.tab-btn.active {
    background: var(--accent);
    color: #111;
}

/* ============================================================
   SPOTTED FORM
   ============================================================ */

.spotted-form-label {
    color: var(--card-text-dim);
    font-size: 0.9rem;
    margin: 0 0 12px;
}

#spotted-input,
.spotted-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #f5f5f5;
    color: var(--card-text);
    font-size: 1rem;
    resize: none;
    margin-bottom: 4px;
    font-family: inherit;
    line-height: 1.5;
}

#spotted-input:focus,
.spotted-textarea:focus {
    outline: none;
    border-color: var(--bg);
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.spotted-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--card-text-dim);
    margin: 6px 0 0;
    padding: 8px;
    border-radius: 8px;
}

.spotted-status.sent {
    color: #cc3399;
    background: rgba(255,162,248,0.12);
}

.spotted-status.error {
    color: var(--danger);
    background: rgba(239,68,68,0.08);
}

/* ============================================================
   SPOTTED FEED
   ============================================================ */

.empty-feed {
    color: var(--text-dim);
    text-align: center;
    padding: 24px 0;
    font-size: 0.95rem;
}

.spotted-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    color: var(--card-text);
}

.spotted-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.spotted-nick  { font-size: 1.15rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.spotted-asks  { font-size: 1.15rem; font-weight: 800; color: var(--card-text); flex-shrink: 0; }

.spotted-message-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--card-text);
    margin: 0 0 10px;
    word-break: break-word;
    line-height: 1.4;
}

/* Replies */
.spotted-replies {
    border-top: 1px solid #ebebeb;
    margin-top: 12px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotted-reply {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.reply-nick   { font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.reply-colon  { font-weight: 700; color: #aaa; flex-shrink: 0; }
.reply-msg    { color: #666; word-break: break-word; flex: 1; min-width: 0; }

/* Reply form */
.spotted-reply-wrap {
    margin-top: 12px;
    border-top: 1px solid #ebebeb;
    padding-top: 12px;
}
.spotted-reply-form {
    display: flex;
    gap: 8px;
}

.reply-input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #f5f5f5;
    color: var(--card-text);
    font-size: 0.9rem;
    min-width: 0;
    margin-bottom: 0 !important;
}

.reply-input:focus {
    outline: none;
    border-color: var(--bg);
}

.thread-closed {
    font-size: 0.78rem;
    color: #aaa;
    text-align: center;
    margin: 10px 0 0;
}

/* Visibilità risposta: switch a due opzioni */
.vis-switch {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}
.vis-opt {
    flex: 1;
    padding: 7px 6px;
    border: none;
    background: #f0f0f0;
    color: #999;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.vis-opt.active {
    background: #ffffff;
    color: var(--card-text);
    box-shadow: inset 0 0 0 1px #ddd;
}
.vis-opt[data-val="private"].active {
    background: #ede9fe;
    color: #6d28d9;
}

.vis-hint {
    font-size: 0.72rem;
    color: #aaa;
    text-align: center;
    margin: 4px 0 8px;
}

/* Lock in fondo alle risposte private */
.reply-lock {
    font-size: 0.72rem;
    margin-left: 4px;
    opacity: 0.6;
}

/* Pulsanti elimina spotted/risposta (solo admin) */
.spotted-delete-btn,
.reply-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.35;
    padding: 2px 4px;
    border-radius: 4px;
    transition: opacity 0.15s, background 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}
.spotted-delete-btn:hover,
.reply-delete-btn:hover {
    opacity: 1;
    background: rgba(220, 50, 50, 0.12);
}
.reply-delete-btn {
    margin-left: 6px;
    font-size: 0.75rem;
}
.spotted-reply--private {
    background: rgba(109,40,217,0.04);
    border-radius: 6px;
    padding: 3px 6px;
    margin: 0 -6px;
}

/* ============================================================
   BOTTOM NAV BAR
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 4px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #e8e8e8;
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    border-radius: 8px;
    background: #cccccc;
    color: rgba(0,0,0,0.45);
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn.active {
    background: #ffffff;
    color: rgba(0,0,0,0.78);
}

.nav-icon  { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.01em; }

.nav-ticket {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.07);
    padding: 1px 6px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}
.nav-ticket:empty { display: none; }

/* ============================================================
   ADMIN THEME — grigio/bianco
   ============================================================ */

body.admin {
    --bg: #1c1c1e;
    background: #1c1c1e !important;
    color: #ffffff;
}

/* Titoli (fuori dalle card, su sfondo scuro) */
body.admin h1 { color: #ffffff; }
body.admin h2 { color: rgba(255,255,255,0.5); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
body.admin .subtitle { color: rgba(255,255,255,0.45); }

/* Header admin */
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.admin .admin-event-select {
    background: #3a3a3c;
    color: #ffffff;
    border: 1px solid #505050;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    max-width: 150px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}
body.admin .admin-event-select:focus { border-color: rgba(255,255,255,0.4); }

body.admin .admin-event-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

body.admin .nick-badge {
    background: #3a3a3c;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Card */
body.admin .card {
    background: #ffffff;
    color: #111111;
    border: none;
}
body.admin .card h2        { color: #888888; }
body.admin .card h1        { color: #111111; }
body.admin .card .subtitle { color: #888888; }
body.admin .card p         { color: #333333; }
body.admin .card .char-counter { color: #aaaaaa; }

/* Inputs */
body.admin input[type="text"],
body.admin input[type="password"],
body.admin textarea {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #111111;
}
body.admin input[type="text"]::placeholder,
body.admin input[type="password"]::placeholder,
body.admin textarea::placeholder { color: rgba(0,0,0,0.28); }
body.admin input[type="text"]:focus,
body.admin input[type="password"]:focus,
body.admin textarea:focus { border-color: #aaaaaa; }

/* Bottoni */
body.admin .button {
    background: #111111;
    color: #ffffff;
    border-color: transparent;
}
body.admin .button:active { background: #333333; }

body.admin .button.secondary {
    background: #ffffff;
    color: #333333;
    border: 1px solid #d0d0d0;
}
body.admin .button.secondary:active { background: #f0f0f0; }

body.admin .button.ghost {
    background: transparent;
    color: #666666;
    border: 1px solid #d0d0d0;
}

body.admin .button-row .button {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #d0d0d0;
    font-size: 0.88rem;
    font-weight: 600;
}
body.admin .button-row .button:active { background: #e0e0e0; }

body.admin .count-badge { background: var(--danger); color: white; }
body.admin .button-small.danger { background: var(--danger); color: white; }

body.admin .alt-list button {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #111111;
}
body.admin .alt-list button:hover { background: #ebebeb; }

body.admin .request-list li {
    border-bottom-color: #ebebeb;
    color: #111111;
}

body.admin .result-box { background: #ffffff; color: #111111; }
body.admin .result-box p { color: #333333; }

/* Nav bar admin — scura */
body.admin .bottom-nav {
    background: #111111;
    border-top: 1px solid rgba(255,255,255,0.06);
}
body.admin .nav-btn { color: #555555; }
body.admin .app-header { background: #2c2c2e; }
body.admin .nav-btn.active { background: #3a3a3c; color: rgba(255,255,255,0.9); }

/* ============================================================
   ADMIN REQ TABS (In coda / Suonate stasera) — larghezza piena
   ============================================================ */

.admin-req-tabs-wrap { margin-bottom: 0; }

.admin-req-tabs {
    display: flex;
    width: 100%;
}

.admin-req-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    background: #e0e0e5;
    color: rgba(0, 0, 0, 0.38);
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
}

.admin-req-tab:first-child { border-radius: var(--radius) 0 0 0; }
.admin-req-tab:last-child  { border-radius: 0 var(--radius) 0 0; }

/* Tab attiva: bianca */
.admin-req-tab.active {
    background: #ffffff;
    color: #111111;
}

.admin-req-panel {
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 0;
}

/* ============================================================
   PAUSE TOGGLE
   ============================================================ */

/* Pause card — tutti gli angoli arrotondati, separata dal box sotto */
.pause-top-card {
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.pause-toggle-row {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.pause-opt {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: #f0f0f0;
    color: rgba(0, 0, 0, 0.35);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-family: inherit;
}

.pause-opt.pause-opt-on {
    background: #111111;
    color: #ffffff;
    border-color: transparent;
}

/* ============================================================
   ADMIN REQUEST LIST ITEMS
   ============================================================ */

.admin-req-type {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
}
.admin-req-item:last-child { border-bottom: none; }

.admin-req-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 4px;
    min-width: 0;
    flex: 1;
}

.admin-req-title  { font-weight: 600; color: #111111; font-size: 0.9rem; }
.admin-req-artist { color: #777777; font-size: 0.85rem; }

.admin-req-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 10px;
}

.arb {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.arb:hover  { background: rgba(0, 0, 0, 0.06); }
.arb.arb-on { background: rgba(0, 0, 0, 0.1); border-color: rgba(0, 0, 0, 0.4); }

.req-count-badge {
    display: inline-block;
    background: var(--accent);
    color: #111;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
}
