:root {
    --mp-bg: #080a11;
    --mp-surface: #111524;
    --mp-surface-2: #171c30;
    --mp-border: rgba(148, 163, 184, 0.14);
    --mp-text: #f1f5f9;
    --mp-muted: #94a3b8;
    --mp-brand: #8454ff;
    --mp-brand-hover: #703ef0;
    --mp-brand-soft: rgba(132, 84, 255, 0.14);
    --mp-emerald: #10b981;
    --mp-rose: #f43f5e;
    --mp-amber: #f59e0b;
    --mp-radius: 14px;
    --mp-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] {
    --mp-bg: #f4f6fb;
    --mp-surface: #ffffff;
    --mp-surface-2: #f8fafc;
    --mp-border: rgba(15, 23, 42, 0.09);
    --mp-text: #0f172a;
    --mp-muted: #64748b;
    --mp-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 84, 255, 0.42) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(132, 84, 255, 0.52), rgba(236, 72, 153, 0.42));
    border-radius: 999px;
    border: 1px solid transparent;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(132, 84, 255, 0.85), rgba(236, 72, 153, 0.72));
}
html[data-theme="light"] * {
    scrollbar-color: rgba(112, 62, 240, 0.35) transparent;
}
html[data-theme="light"] *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(112, 62, 240, 0.42), rgba(132, 84, 255, 0.32));
}

body.mp-body {
    margin: 0;
    min-height: 100vh;
    background: var(--mp-bg);
    color: var(--mp-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mp-shell {
    display: flex;
    min-height: 100vh;
}

.mp-sidebar {
    width: 276px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--mp-surface) 0%, #0d101c 100%);
    border-right: 1px solid var(--mp-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 30;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s ease, opacity 0.18s ease;
}
html[data-theme="light"] .mp-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
}
@media (min-width: 961px) {
    html.mp-sidebar-collapsed .mp-sidebar {
        width: 74px;
        min-width: 74px;
    }
    html.mp-sidebar-collapsed .mp-brand-box {
        padding: 15px 10px;
        justify-content: center;
    }
    html.mp-sidebar-collapsed .mp-logo-light,
    html.mp-sidebar-collapsed .mp-logo-dark {
        display: none !important;
    }
    html.mp-sidebar-collapsed .mp-logo-mini {
        display: block !important;
        width: 34px;
        height: 34px;
        object-fit: contain;
    }
    html.mp-sidebar-collapsed .mp-nav {
        padding: 10px 8px 24px;
    }
    html.mp-sidebar-collapsed .mp-nav-cat,
    html.mp-sidebar-collapsed .mp-nav-label,
    html.mp-sidebar-collapsed .mp-badge,
    html.mp-sidebar-collapsed .mp-chevron,
    html.mp-sidebar-collapsed .mp-submenu {
        display: none !important;
    }
    html.mp-sidebar-collapsed .mp-nav-sep {
        margin: 8px 10px;
    }
    html.mp-sidebar-collapsed .mp-nav-link,
    html.mp-sidebar-collapsed .mp-nav-toggle {
        justify-content: center;
        padding: 6px;
        margin-bottom: 6px;
    }
    html.mp-sidebar-collapsed .mp-nav-main {
        justify-content: center;
        flex: 0;
    }
    html.mp-sidebar-collapsed .mp-nav-ico {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
}
.mp-nav-sep {
    height: 1px;
    background: var(--mp-border);
    margin: 8px 10px;
    opacity: 0.6;
}
.mp-logo-mini { display: none !important; }
.mp-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 14, 0.62);
    backdrop-filter: blur(4px);
    z-index: 25;
}
.mp-sidebar-backdrop.is-open { display: block; }

.mp-brand-box {
    padding: 16px 14px 16px 18px;
    border-bottom: 1px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mp-sidebar-toggle {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.mp-icon-btn.mp-mobile-only-btn,
.mp-mobile-only-btn {
    display: none;
}

@media (max-width: 960px) {
    .mp-icon-btn.mp-mobile-only-btn,
    .mp-mobile-only-btn {
        display: inline-flex;
    }
}

html.mp-sidebar-collapsed .mp-brand-box {
    flex-direction: column;
    padding: 12px 10px;
    gap: 8px;
}

.mp-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--mp-brand), #ec4899);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(132, 84, 255, 0.35);
}

.mp-brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.mp-brand-sub { font-size: 11px; color: var(--mp-muted); }

.mp-nav { padding: 10px 12px 28px; flex: 1; }
.mp-nav-cat {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-muted);
    opacity: 0.8;
    padding: 14px 10px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-nav-cat::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mp-border);
    opacity: 0.65;
}

.mp-nav-link, .mp-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: 11px;
    color: rgba(226, 232, 240, 0.90);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
html[data-theme="light"] .mp-nav-link,
html[data-theme="light"] .mp-nav-toggle {
    color: #334155;
}
.mp-nav-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.mp-nav-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(148, 163, 184, 0.10);
    color: var(--mp-muted);
    transition: background 0.16s ease, color 0.16s ease;
}
/* Colores diferenciados para cada icono de sección del menú */
.mp-nav-ico--home       { background: rgba(132, 84, 255, 0.16); color: #a78bfa; }
.mp-nav-ico--radio      { background: rgba(99, 102, 241, 0.16); color: #818cf8; }
.mp-nav-ico--sparkles   { background: rgba(217, 70, 239, 0.16); color: #e879f9; }
.mp-nav-ico--mic        { background: rgba(244, 63, 94, 0.16); color: #fb7185; }
.mp-nav-ico--headphones { background: rgba(14, 165, 233, 0.16); color: #38bdf8; }
.mp-nav-ico--smartphone { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.mp-nav-ico--play       { background: rgba(236, 72, 153, 0.16); color: #f472b6; }
.mp-nav-ico--layout     { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.mp-nav-ico--package    { background: rgba(20, 184, 166, 0.16); color: #2dd4bf; }
.mp-nav-ico--settings   { background: rgba(100, 116, 139, 0.18); color: #94a3b8; }

html[data-theme="light"] .mp-nav-ico--home       { color: #6d28d9; }
html[data-theme="light"] .mp-nav-ico--radio      { color: #4338ca; }
html[data-theme="light"] .mp-nav-ico--sparkles   { color: #a21caf; }
html[data-theme="light"] .mp-nav-ico--mic        { color: #e11d48; }
html[data-theme="light"] .mp-nav-ico--headphones { color: #0284c7; }
html[data-theme="light"] .mp-nav-ico--smartphone { color: #059669; }
html[data-theme="light"] .mp-nav-ico--play       { color: #db2777; }
html[data-theme="light"] .mp-nav-ico--layout     { color: #d97706; }
html[data-theme="light"] .mp-nav-ico--package    { color: #0d9488; }
html[data-theme="light"] .mp-nav-ico--settings   { color: #475569; }
.mp-chevron {
    opacity: 0.55;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mp-group.is-open > .mp-nav-toggle .mp-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--mp-brand);
}
.mp-group.is-open > .mp-nav-toggle {
    background: rgba(132, 84, 255, 0.09);
    border-color: rgba(132, 84, 255, 0.22);
}

.mp-nav-link:hover, .mp-nav-toggle:hover {
    background: var(--mp-brand-soft);
    border-color: rgba(132, 84, 255, 0.18);
}
.mp-nav-link.is-active {
    background: linear-gradient(135deg, var(--mp-brand), #6d28d9);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(132, 84, 255, 0.28);
}
.mp-nav-link.is-active .mp-nav-ico {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.mp-submenu {
    display: none;
    padding: 4px 0 6px 12px;
    border-left: 1.5px solid rgba(132, 84, 255, 0.28);
    margin: 3px 0 6px 22px;
}
.mp-group.is-open > .mp-submenu { display: block; }
.mp-submenu .mp-nav-link {
    font-size: 12.5px;
    font-weight: 400;
    padding: 6px 10px 6px 14px;
    color: var(--mp-muted);
    position: relative;
}
.mp-submenu .mp-nav-link::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    transform: translateY(-50%);
}
.mp-submenu .mp-nav-link:hover { color: var(--mp-text); transform: translateX(2px); }
.mp-submenu .mp-nav-link.is-active { color: #fff; font-weight: 500; }
.mp-submenu .mp-nav-link.is-active::before { opacity: 1; background: #fff; }

.mp-badge {
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--mp-brand-soft);
    color: #c4b5fd;
    border: 1px solid rgba(132, 84, 255, 0.35);
}
html[data-theme="light"] .mp-badge { color: var(--mp-brand-hover); }

.mp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mp-topbar {
    height: 64px;
    background: rgba(17, 21, 36, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mp-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}
html[data-theme="light"] .mp-topbar {
    background: rgba(255, 255, 255, 0.9);
}

.mp-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.mp-topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex-shrink: 0; }
.mp-topbar-title-wrap { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 2px; }
.mp-topbar-title { font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-topbar-onair {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--mp-muted);
    min-width: 0;
    line-height: 1.1;
}
.mp-onair-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; flex-shrink: 0; }
.mp-onair-eq span {
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: var(--mp-emerald);
    animation: mp-eq-bar 1.1s ease-in-out infinite;
}
.mp-onair-eq span:nth-child(2) { animation-delay: 0.25s; height: 7px; }
.mp-onair-eq span:nth-child(3) { animation-delay: 0.5s; height: 9px; }
.mp-topbar-onair.is-idle .mp-onair-eq span {
    animation: none;
    transform: scaleY(0.45);
    background: var(--mp-muted);
    opacity: 0.45;
}
@keyframes mp-eq-bar {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1); }
}
.mp-onair-label { font-weight: 600; flex-shrink: 0; }
.mp-onair-song {
    color: var(--mp-text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
@media (max-width: 720px) {
    .mp-onair-label { display: none; }
    .mp-onair-song { max-width: none; min-width: 0; flex: 1 1 auto; }
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mp-btn:hover { border-color: var(--mp-brand); }
.mp-btn-primary {
    background: var(--mp-brand);
    border-color: var(--mp-brand);
    color: #fff;
}
.mp-btn-primary:hover { background: var(--mp-brand-hover); }

.mp-content { padding: 26px; max-width: 1440px; width: 100%; margin: 0 auto; }

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mp-card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 20px;
    box-shadow: var(--mp-shadow);
}

.mp-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mp-muted); font-weight: 700; }
.mp-stat-value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }

.mp-alert {
    padding: 12px 15px;
    border-radius: 11px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.mp-alert-danger { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.mp-alert-info { background: var(--mp-brand-soft); border-color: rgba(132, 84, 255, 0.4); color: #ddd6fe; }
html[data-theme="light"] .mp-alert-danger { color: #9f1239; }
html[data-theme="light"] .mp-alert-info { color: #5b21b6; }

/* Pantalla Auth Moderna */
.mp-auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 15%, rgba(132, 84, 255, 0.24), transparent 42%),
        radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.14), transparent 38%),
        var(--mp-bg);
}

.mp-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--mp-shadow);
}

.mp-field { margin-bottom: 16px; }
.mp-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--mp-muted); }
.mp-input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    font-size: 14px;
    outline: none;
}
.mp-input:focus { border-color: var(--mp-brand); box-shadow: 0 0 0 3px var(--mp-brand-soft); }

.mp-lang-pills {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 20px;
}
.mp-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 3px;
    border-radius: 999px;
    border: 1px solid var(--mp-border);
    color: var(--mp-muted);
    text-decoration: none;
    background: var(--mp-surface-2);
    white-space: nowrap;
}
.mp-lang-pill .mp-flag-icon {
    width: 16px;
    height: 12px;
    max-width: 16px;
    max-height: 12px;
    flex: 0 0 16px;
}
.mp-lang-pill.is-active {
    background: var(--mp-brand);
    border-color: var(--mp-brand);
    color: #fff;
}

.mp-mobile-toggle { display: inline-flex; flex-shrink: 0; }

@media (max-width: 960px) {
    .mp-sidebar .mp-sidebar-toggle {
        display: none;
    }
    .mp-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 276px;
        opacity: 1;
        pointer-events: auto;
        z-index: 60;
    }
    .mp-sidebar.is-open { transform: translateX(0); box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55); }
    .mp-sidebar-backdrop { z-index: 55; }
    .mp-topbar {
        height: auto;
        min-height: 58px;
        padding: 10px 14px;
        gap: 8px 12px;
        flex-wrap: wrap;
    }
    .mp-topbar-actions {
        gap: 8px;
    }
}

@media (max-width: 720px) {
    .mp-topbar-left {
        flex: 1 1 100%;
    }
    .mp-topbar-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 6px;
        padding-top: 2px;
    }
    .mp-topbar-actions .mp-status-pill {
        margin-right: auto;
        padding: 5px 10px;
        font-size: 11px;
    }
    .mp-lang-trigger {
        height: 34px;
        padding: 0 8px;
        font-size: 11.5px;
    }
    .mp-topbar-actions .mp-icon-btn {
        width: 34px;
        height: 34px;
    }
    .mp-content {
        padding: 16px 14px;
    }
}

.mp-progress {
    height: 7px;
    border-radius: 999px;
    background: var(--mp-surface-2);
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--mp-border);
}
.mp-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mp-brand), #ec4899);
    transition: width 0.3s ease;
}

.mp-table-wrap { overflow-x: auto; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mp-table th, .mp-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--mp-border);
    text-align: left;
}
.mp-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp-muted);
}

.mp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mp-btn-danger { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.45); color: #fda4af; }
.mp-btn-emerald { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.45); color: #6ee7b7; }
html[data-theme="light"] .mp-btn-danger { color: #be123c; }
html[data-theme="light"] .mp-btn-emerald { color: #047857; }

.mp-logo-wrap { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; }
.mp-logo-img { width: auto; height: auto; max-width: 190px; max-height: 44px; object-fit: contain; display: block; }
.mp-logo-auth { max-width: 225px; max-height: 54px; margin: 0 auto; }
.mp-logo-mini { display: none !important; }
.mp-logo-light { display: none !important; }
.mp-logo-dark { display: block !important; }
html[data-theme="light"] .mp-logo-light { display: block !important; }
html[data-theme="light"] .mp-logo-dark { display: none !important; }

/* Reglas definitivas del logotipo mini en barra lateral colapsada (escritorio) */
@media (min-width: 961px) {
    html.mp-sidebar-collapsed .mp-brand-box {
        padding: 14px 8px !important;
        justify-content: center;
    }
    html.mp-sidebar-collapsed .mp-brand-box .mp-logo-light,
    html.mp-sidebar-collapsed .mp-brand-box .mp-logo-dark {
        display: none !important;
    }
    html.mp-sidebar-collapsed .mp-brand-box .mp-logo-mini {
        display: block !important;
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
        margin: 0 auto;
    }
}

/* Selector de idiomas con banderas por país */
.mp-lang-dropdown { position: relative; }
.mp-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    transition: border-color .15s ease, background .15s ease;
}
.mp-lang-trigger:hover { border-color: var(--mp-brand); }
.mp-flag-icon {
    width: 20px;
    height: 15px;
    max-width: 20px;
    max-height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex: 0 0 20px;
    display: inline-block;
}
.mp-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--mp-shadow);
    display: none;
    z-index: 60;
}
.mp-lang-dropdown.is-open .mp-lang-menu { display: block; }
.mp-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--mp-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.mp-lang-option:hover { background: var(--mp-brand-soft); }
.mp-lang-option.is-active { background: var(--mp-brand); color: #fff; font-weight: 700; }

/* Botones icon-only en Topbar (Tema y Cerrar Sesión Power) */
.mp-icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.mp-icon-btn:hover { border-color: var(--mp-brand); background: var(--mp-brand-soft); }
.mp-icon-sun { display: block; }
.mp-icon-moon { display: none; }
html[data-theme="light"] .mp-icon-sun { display: none; }
html[data-theme="light"] .mp-icon-moon { display: block; }

.mp-power-btn {
    border-color: rgba(244, 63, 94, 0.35);
    color: #fb7185;
    background: rgba(244, 63, 94, 0.10);
}
.mp-power-btn:hover {
    background: var(--mp-rose);
    border-color: var(--mp-rose);
    color: #fff;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35);
}
html[data-theme="light"] .mp-power-btn { color: #e11d48; }
html[data-theme="light"] .mp-power-btn:hover { color: #fff; }

/* Botón Pregúntale a Leopardus en el Header */
.mp-leopardus-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(132, 84, 255, 0.14));
    color: var(--mp-text);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
}
.mp-leopardus-trigger:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(132, 84, 255, 0.24));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}
.mp-leopardus-trigger img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex: none;
}
html[data-theme="light"] .mp-leopardus-trigger {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(132, 84, 255, 0.08));
    color: #78350f;
}
@media (max-width: 720px) {
    .mp-leopardus-trigger span { display: none; }
    .mp-leopardus-trigger { padding: 4px; width: 36px; justify-content: center; }
}

/* Píldora animada de estado Streaming en la barra superior */
.mp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    height: 36px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-muted);
    white-space: nowrap;
}
.mp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
    flex-shrink: 0;
}
.mp-status-pill.is-live,
.mp-status-pill.is-autodj_live {
    background: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.32);
}
.mp-status-pill.is-autodj {
    background: #4ade80;
    border-color: #22c55e;
    color: #052e16;
    box-shadow: 0 2px 10px rgba(74, 222, 128, 0.28);
}
.mp-status-pill.is-relay {
    background: #ea580c;
    border-color: #c2410c;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.30);
}
.mp-status-pill.is-online_idle {
    background: #d97706;
    border-color: #b45309;
    color: #ffffff;
}
.mp-status-pill.is-server_off,
.mp-status-pill.is-maintenance {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
}
html[data-theme="light"] .mp-status-pill.is-live,
html[data-theme="light"] .mp-status-pill.is-autodj_live,
html[data-theme="light"] .mp-status-pill.is-relay,
html[data-theme="light"] .mp-status-pill.is-online_idle,
html[data-theme="light"] .mp-status-pill.is-server_off,
html[data-theme="light"] .mp-status-pill.is-maintenance { color: #ffffff; }
html[data-theme="light"] .mp-status-pill.is-autodj { color: #052e16; }

.mp-status-pill.is-live .mp-status-dot::after,
.mp-status-pill.is-autodj_live .mp-status-dot::after,
.mp-status-pill.is-autodj .mp-status-dot::after,
.mp-status-pill.is-relay .mp-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: mp-pulse-ring 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes mp-pulse-ring {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Cabecera de Subpáginas */
.mp-subpage-hero {
    background: linear-gradient(135deg, var(--mp-surface), var(--mp-surface-2));
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.mp-subpage-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.mp-subpage-desc {
    margin: 5px 0 0;
    font-size: 13.5px;
    color: var(--mp-muted);
}

/* Dashboard Hero + Reloj Digital Pro */
.mp-dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(132, 84, 255, 0.16), transparent 48%),
        var(--mp-surface);
    border: 1px solid var(--mp-border);
}
.mp-dash-welcome h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.mp-dash-welcome h1 span {
    background: linear-gradient(90deg, var(--mp-brand), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mp-dash-welcome p {
    margin: 5px 0 0;
    font-size: 13.5px;
    color: var(--mp-muted);
}
.mp-clock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--mp-surface-2);
    border: 1px solid var(--mp-border);
    padding: 10px 15px;
    border-radius: 13px;
}
.mp-clock-meta { font-size: 11.5px; color: var(--mp-muted); line-height: 1.4; }
.mp-clock-meta strong { color: var(--mp-text); display: block; font-size: 12px; font-weight: 600; }
.mp-clock-digital {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.24);
    padding: 5px 12px;
    border-radius: 9px;
}
html[data-theme="light"] .mp-clock-digital { color: #0369a1; }
.mp-clock-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.32);
    transition: all 0.15s ease;
}
.mp-clock-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-color: transparent;
    color: #ffffff;
}
html[data-theme="light"] .mp-clock-btn {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.28);
}
html[data-theme="light"] .mp-clock-btn:hover {
    color: #ffffff;
}

/* Grid compacto de 5 KPI Cards Pro en una fila */
.mp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.mp-kpi-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%), var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    min-width: 0;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.14);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
html[data-theme="light"] .mp-kpi-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.mp-kpi-card:hover { transform: translateY(-2px); border-color: rgba(132, 84, 255, 0.42); }
.mp-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp-kpi-title { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mp-muted); }
.mp-kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.mp-kpi-icon.is-purple { background: rgba(132, 84, 255, 0.16); color: #a78bfa; }
.mp-kpi-icon.is-sky { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
.mp-kpi-icon.is-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.mp-kpi-icon.is-pink { background: rgba(236, 72, 153, 0.16); color: #f472b6; }
.mp-kpi-icon.is-emerald { background: rgba(16, 185, 129, 0.16); color: #34d399; }
html[data-theme="light"] .mp-kpi-icon.is-purple { color: #6d28d9; }
html[data-theme="light"] .mp-kpi-icon.is-sky { color: #0284c7; }
html[data-theme="light"] .mp-kpi-icon.is-amber { color: #d97706; }
html[data-theme="light"] .mp-kpi-icon.is-pink { color: #db2777; }
html[data-theme="light"] .mp-kpi-icon.is-emerald { color: #059669; }

.mp-kpi-value { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; color: var(--mp-text); line-height: 1.15; }
.mp-kpi-sub { font-size: 11.5px; font-weight: 400; color: var(--mp-muted); display: flex; flex-direction: column; gap: 2px; }
.mp-kpi-sub strong { color: var(--mp-text); font-weight: 500; }
.mp-copy-row { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mp-copy-mini {
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 10.5px;
    cursor: pointer;
}
.mp-copy-mini:hover { border-color: var(--mp-brand); }
@media (max-width: 1240px) {
    .mp-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .mp-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .mp-kpi-grid { grid-template-columns: 1fr; }
}

/* Reproductor (70%) + Controles de Emisión (30%) */
.mp-dash-controls-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 18px;
    margin-bottom: 18px;
}
.mp-controls-stack { display: flex; flex-direction: column; gap: 16px; }
.mp-player-frame-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    background: #0b0e18;
    min-height: 350px;
}
.mp-player-frame-wrap iframe {
    width: 100%;
    height: 365px;
    min-height: 350px;
    border: 0;
    display: block;
}
@media (max-width: 1180px) {
    .mp-dash-controls-grid { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); }
}
@media (max-width: 1080px) {
    .mp-player-frame-wrap { min-height: 340px; }
    .mp-player-frame-wrap iframe { height: 350px; min-height: 340px; }
}
@media (max-width: 640px) {
    .mp-player-frame-wrap { min-height: 370px; }
    .mp-player-frame-wrap iframe { height: 380px; min-height: 340px; }
}
.mp-action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mp-action-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mp-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mp-action-tile:hover { transform: translateY(-2px); border-color: var(--mp-brand); }
.mp-action-tile.is-start { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); color: #34d399; }
.mp-action-tile.is-stop { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); color: #fb7185; }
.mp-action-tile.is-restart { background: rgba(132, 84, 255, 0.14); border-color: rgba(132, 84, 255, 0.35); color: #c4b5fd; }
.mp-action-tile.is-autodj-basic { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); color: #38bdf8; }
.mp-action-tile.is-eboss { background: linear-gradient(135deg, rgba(132, 84, 255, 0.18), rgba(236, 72, 153, 0.14)); border-color: rgba(132, 84, 255, 0.4); color: #e879f9; }
html[data-theme="light"] .mp-action-tile.is-start { color: #047857; }
html[data-theme="light"] .mp-action-tile.is-stop { color: #be123c; }
html[data-theme="light"] .mp-action-tile.is-restart { color: #6d28d9; }
html[data-theme="light"] .mp-action-tile.is-autodj-basic { color: #0369a1; }
html[data-theme="light"] .mp-action-tile.is-eboss { color: #9333ea; }

/* Mapa de Oyentes + Logs */
.mp-dash-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 18px;
}
.mp-dash-bottom-grid > * {
    min-width: 0;
}
.mp-map-wrap { position: relative; height: 360px; min-height: 360px; width: 100%; }
.mp-map-box {
    width: 100%;
    height: 360px;
    min-height: 360px;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    overflow: hidden;
    background: var(--mp-surface-2);
    z-index: 1;
}
.mp-map-empty-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 500;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.84);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
@media (max-width: 1080px) {
    .mp-dash-controls-grid,
    .mp-dash-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mp-action-row,
    .mp-action-row-2 { grid-template-columns: 1fr; }
}

/* Estudio de Reproductores HTML5 */
.mp-player-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.mp-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    color: var(--mp-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .15s ease, transform .15s ease;
}
.mp-player-chip:hover { border-color: var(--mp-brand); transform: translateY(-1px); }
.mp-player-chip.is-active {
    background: var(--mp-brand);
    border-color: var(--mp-brand);
    color: #fff;
}
.mp-player-chip.is-active .mp-badge {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.mp-player-stage {
    background: transparent;
    border: 0;
    border-radius: 14px;
    padding: 0;
    display: block;
    width: 100%;
    margin-bottom: 6px;
}
.mp-player-stage iframe {
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: #0d101b;
    width: 100%;
    max-width: 100%;
    display: block;
}
.mp-players-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.mp-embed-card {
    position: sticky;
    top: 18px;
}
.mp-player-specs {
    padding: 14px 18px;
}
.mp-player-specs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-player-specs-ideal {
    font-size: 12px;
    color: var(--mp-muted);
    font-weight: 600;
}
.mp-player-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.mp-spec-item {
    background: var(--mp-surface-2);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mp-spec-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--mp-muted);
}
.mp-spec-val {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mp-text);
    line-height: 1.35;
}
@media (max-width: 1040px) {
    .mp-players-grid { grid-template-columns: 1fr; }
    .mp-embed-card { position: static; }
    .mp-player-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mp-player-specs-grid { grid-template-columns: 1fr; }
}
.mp-code-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    resize: vertical;
}

/* Módulos avanzados: Descargas VIP, CoverArt Edit PRO y Herramientas MP3 Pro */
.mp-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.mp-vip-card {
    background: linear-gradient(135deg, rgba(132, 84, 255, 0.14), rgba(14, 165, 233, 0.09));
    border: 1px solid rgba(132, 84, 255, 0.35);
    border-radius: var(--mp-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}
.ca-split {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}
@media (max-width: 860px) {
    .ca-split { grid-template-columns: 1fr; }
}
.ca-ficha {
    margin-bottom: 16px;
}
.ca-ficha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mp-border);
}
.ca-ficha-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ca-ficha-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ca-ficha-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ca-ficha-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}
.ca-ficha-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--mp-muted);
}
.ca-empty-box {
    padding: 36px 18px;
    text-align: center;
    border: 1px dashed var(--mp-border);
    border-radius: 12px;
    color: var(--mp-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ca-empty-box p {
    margin: 0;
    font-size: 13px;
}
.ca-ficha-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.ca-cover-col {
    width: 260px;
    max-width: 100%;
    flex-shrink: 0;
    background: var(--mp-surface-2);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}
.ca-cover-frame {
    position: relative;
    width: 230px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto 10px;
}
.ca-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    display: block;
}
.ca-cover-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}
.ca-cover-status {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--mp-brand);
    font-weight: 600;
}
.ca-cover-hint {
    margin: 0 0 10px;
    font-size: 11px;
    color: var(--mp-muted);
    line-height: 1.4;
}
.ca-cover-btns {
    display: flex;
    justify-content: center;
}
.ca-preview-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--mp-border);
    text-align: left;
}
.ca-preview-box label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mp-muted);
    margin-bottom: 6px;
}
.ca-preview-box audio {
    width: 100%;
    height: 36px;
}
.ca-fields-col {
    flex: 1 1 320px;
    min-width: 0;
}
.ca-name-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .ca-name-row { grid-template-columns: 1fr; }
    .ca-name-sep { display: none; }
    .ca-cover-col { width: 100%; }
}
.ca-name-row .mp-field { margin: 0; }
.ca-name-sep {
    padding-bottom: 10px;
    font-weight: 800;
    color: var(--mp-muted);
}
.ca-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ca-rename-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--mp-muted);
}
.ca-browser-card {
    margin-bottom: 16px;
}
.ca-browser-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ca-track-count {
    font-size: 12px;
    color: var(--mp-muted);
}
.ca-pane-lbl {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mp-muted);
    margin-bottom: 8px;
}
.ca-status-note {
    font-size: 12.5px;
    color: var(--mp-muted);
    margin-bottom: 6px;
}
.ca-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.ca-list-tracks {
    max-height: 380px;
}
.ca-fallback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 820px) {
    .ca-fallback-grid { grid-template-columns: 1fr; }
}
.ca-fallback-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
}
.ca-fallback-item img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--mp-border);
    flex-shrink: 0;
}
.ca-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-surface-2);
}
.ca-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--mp-border);
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease;
}
.ca-item:last-child { border-bottom: 0; }
.ca-item:hover { background: var(--mp-brand-soft); }
.ca-item.is-selected {
    background: var(--mp-brand);
    color: #fff;
    font-weight: 700;
}
.ca-item.is-selected small { color: rgba(255,255,255,0.85) !important; }
.hmp3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}
.hmp3-progress-wrap {
    width: 100%;
    height: 10px;
    background: var(--mp-surface-2);
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0;
}
.hmp3-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mp-brand), #06b6d4);
    transition: width .25s ease;
}

/* Tarjetas modernas de Datos de Conexión */
.mp-dc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 980px) {
    .mp-dc-grid { grid-template-columns: 1fr; }
}
.mp-dc-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mp-dc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-dc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--mp-border);
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
}
.mp-dc-icon.is-live { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); color: #10b981; }
.mp-dc-icon.is-dj { background: rgba(132, 84, 255, 0.14); border-color: rgba(132, 84, 255, 0.35); color: #a78bfa; }
.mp-dc-icon.is-ftp { background: rgba(14, 165, 233, 0.14); border-color: rgba(14, 165, 233, 0.35); color: #38bdf8; }
.mp-dc-icon.is-admin { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.mp-dc-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.25;
}
.mp-dc-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--mp-muted);
}
.mp-dc-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mp-dc-rows .mp-field { margin: 0; }
.mp-dc-copy-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.mp-dc-copy-row .mp-input { flex: 1; min-width: 0; }
.mp-dc-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-dc-static-val {
    min-height: 40px;
    display: flex;
    align-items: center;
}
.mp-dc-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
}

/* Hoja Configurar Servidor (.mp-cs-*) */
.mp-cs-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mp-cs-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 1120px) {
    .mp-cs-grid-3 { grid-template-columns: 1fr; }
}
.mp-dc-icon.is-logo {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
    color: #f472b6;
}
.mp-cs-logo-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.mp-cs-logo-preview {
    width: 132px;
    height: 132px;
    border-radius: 16px;
    border: 2px dashed var(--mp-border);
    background: var(--mp-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.mp-cs-logo-preview.has-img {
    border-style: solid;
    border-color: var(--mp-brand);
}
.mp-cs-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mp-cs-logo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--mp-muted);
    font-size: 11.5px;
    font-weight: 700;
}
.mp-cs-logo-controls {
    flex: 1;
    min-width: 240px;
}
.mp-cs-logo-status {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
    min-height: 18px;
}
.mp-cs-logo-status.is-ok { color: #10b981; }
.mp-cs-logo-status.is-err { color: #ef4444; }
.mp-cs-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--mp-muted);
    cursor: pointer;
}
.mp-cs-divider {
    height: 1px;
    background: var(--mp-border);
    margin: 2px 0;
}
.mp-cs-radio-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.mp-cs-radio-pill {
    position: relative;
    cursor: pointer;
    display: block;
    margin: 0;
}
.mp-cs-radio-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mp-cs-radio-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.mp-cs-radio-box strong {
    font-size: 14px;
    font-weight: 800;
}
.mp-cs-radio-box small {
    font-size: 11.5px;
    color: var(--mp-muted);
}
.mp-cs-radio-pill input:checked + .mp-cs-radio-box {
    border-color: var(--mp-brand);
    background: var(--mp-brand-soft);
    box-shadow: 0 0 0 1px var(--mp-brand);
}
.mp-cs-tz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 720px) {
    .mp-cs-tz-grid { grid-template-columns: 1fr; }
}
.mp-cs-tz-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-cs-tz-suggest {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.mp-cs-tz-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--mp-border);
}
.mp-cs-tz-item:last-child { border-bottom: 0; }
.mp-cs-tz-item:hover { background: var(--mp-brand-soft); }
.mp-cs-tz-item small {
    color: var(--mp-muted);
    font-size: 11.5px;
}
.mp-cs-tz-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-cs-tz-selected {
    font-size: 12.5px;
    font-weight: 700;
}
.mp-cs-submit-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

/* Hoja Oyentes Conectados (.mp-oc-*) */
.mp-oc-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mp-oc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-oc-toolbar-left,
.mp-oc-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-badge.is-live {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}
.mp-oc-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1020px) {
    .mp-oc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .mp-oc-kpis { grid-template-columns: 1fr; }
}
.mp-oc-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mp-oc-rank-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mp-oc-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}
.mp-oc-rank-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-oc-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.mp-oc-flag-fallback,
.mp-oc-picon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.mp-oc-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-oc-cell-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mp-oc-map-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-oc-map-filters .mp-input {
    width: auto;
    min-width: 185px;
}
.mp-oc-map-box {
    height: 360px;
}
.mp-oc-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    font-weight: 700;
}
.mp-oc-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mp-oc-leg-item i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
}
.mp-oc-leg-item i.is-yesterday { background: #38bdf8; }
.mp-oc-leg-item i.is-today { background: #8454ff; }
.mp-oc-chart-wrap {
    position: relative;
    width: 100%;
    height: 250px;
}
.mp-oc-chart-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.mp-oc-chart-tip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    color: var(--mp-text);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

/* Hoja Estadísticas (.mp-st-*) */
.mp-st-filter-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr 1fr 0.9fr;
    gap: 12px;
    align-items: end;
}
@media (max-width: 1040px) {
    .mp-st-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .mp-st-filter-grid { grid-template-columns: 1fr; }
}
.mp-st-filter-grid .mp-field { margin: 0; }
.mp-st-geo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 960px) {
    .mp-st-geo-grid { grid-template-columns: 1fr; }
}
.mp-st-subbox {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
}
.mp-st-subbox h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
}

/* Hoja Emitir en Redes Sociales (.mp-sl-*) */
.mp-sl-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.mp-sl-plat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.mp-sl-plat-btn:hover {
    border-color: var(--sl-accent, var(--mp-brand));
    transform: translateY(-1px);
}
.mp-sl-plat-btn.is-active {
    border-color: var(--sl-accent, var(--mp-brand));
    background: var(--mp-brand-soft);
    box-shadow: 0 0 0 1px var(--sl-accent, var(--mp-brand));
}
.mp-sl-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}
.mp-sl-name {
    font-size: 12.5px;
    font-weight: 800;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-sl-plat-btn small {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mp-muted);
}

/* Notificación flotante global para acciones rápidas */
.mp-global-toast {
    position: fixed;
    top: 76px;
    right: 22px;
    z-index: 9999;
    max-width: 380px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    color: var(--mp-text);
    animation: mpToastIn .18s ease-out;
}
.mp-global-toast.is-ok {
    border-color: rgba(16, 185, 129, .55);
    background: rgba(16, 185, 129, .14);
    color: #34d399;
}
.mp-global-toast.is-err {
    border-color: rgba(239, 68, 68, .55);
    background: rgba(239, 68, 68, .15);
    color: #f87171;
}
@keyframes mpToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Centro PRO de Monitoreo, Protección y Kick (.mp-mon-*) */
.mp-mon-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mp-mon-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1120px) {
    .mp-mon-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mp-mon-kpis { grid-template-columns: 1fr; }
}
.mp-mon-kpi {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-mon-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mp-mon-kpi-lbl {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mp-muted);
}
.mp-mon-mini-btn {
    padding: 4px 8px;
    min-height: 26px;
}
.mp-mon-kpi-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-text);
    display: flex;
    align-items: center;
}
.mp-mon-song-txt {
    font-size: 13.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-mon-kpi-sub {
    font-size: 12px;
    color: var(--mp-muted);
}
.mp-mon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-muted);
}
.mp-mon-pill.is-ok {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(16, 185, 129, .38);
    color: #10b981;
}
.mp-mon-pill.is-warn {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .38);
    color: #f59e0b;
}
.mp-mon-pill.is-muted {
    background: var(--mp-surface-2);
    border-color: var(--mp-border);
    color: var(--mp-muted);
}
.mp-mon-section {
    scroll-margin-top: 84px;
}
.mp-mon-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.mp-mon-head-between {
    justify-content: space-between;
    flex-wrap: wrap;
}
.mp-mon-head-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.mp-mon-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
}
.mp-mon-head-icon.is-brand {
    background: var(--mp-brand-soft);
    border-color: rgba(132, 84, 255, .35);
    color: var(--mp-brand);
}
.mp-mon-head-icon.is-ok {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(16, 185, 129, .38);
    color: #10b981;
}
.mp-mon-head-icon.is-warn {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .38);
    color: #f59e0b;
}
.mp-mon-head-icon.is-danger {
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .38);
    color: #ef4444;
}
.mp-mon-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-mon-sub {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--mp-muted);
}
.mp-mon-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 820px) {
    .mp-mon-switches { grid-template-columns: 1fr; }
}
.mp-mon-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    cursor: pointer;
    transition: border-color .15s ease;
}
.mp-mon-switch-card:hover {
    border-color: var(--mp-brand);
}
.mp-mon-switch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mp-mon-switch-info strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-mon-switch-info small {
    font-size: 12px;
    line-height: 1.4;
    color: var(--mp-muted);
}
.mp-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.mp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.mp-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, .32);
    border: 1px solid var(--mp-border);
    transition: background .18s ease, border-color .18s ease;
}
.mp-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .18s ease;
}
.mp-switch input:checked + .mp-switch-track {
    background: var(--mp-brand);
    border-color: var(--mp-brand);
}
.mp-switch input:checked + .mp-switch-track::after {
    transform: translateX(20px);
}
.mp-switch input:disabled + .mp-switch-track {
    opacity: .45;
    cursor: not-allowed;
}
.mp-mon-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .mp-mon-form-grid { grid-template-columns: 1fr; }
}
.mp-mon-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
.mp-mon-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 980px) {
    .mp-mon-two-col { grid-template-columns: 1fr; }
}
.mp-mon-shield-card.is-protected {
    border-color: rgba(16, 185, 129, .35);
}
.mp-mon-shield-card,
.mp-mon-kick-card {
    display: flex;
    flex-direction: column;
}
.mp-mon-copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mp-muted);
}
.mp-mon-checklist {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-mon-checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mp-text);
}
.mp-mon-chk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}
.mp-mon-confirm-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .06);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mp-text);
    cursor: pointer;
    margin-bottom: 14px;
}
.mp-mon-confirm-box input {
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
}
.mp-mon-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: flex-start;
}
.mp-btn-warning {
    background: rgba(245, 158, 11, .16);
    border-color: rgba(245, 158, 11, .45);
    color: #f59e0b;
}
.mp-btn-warning:hover {
    background: rgba(245, 158, 11, .24);
}
.mp-mon-empty {
    padding: 26px 16px;
    text-align: center;
    color: var(--mp-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.mp-mon-empty svg {
    color: #10b981;
}
.mp-mon-empty strong {
    color: var(--mp-text);
    font-size: 14px;
}
.mp-mon-empty p {
    margin: 0;
    font-size: 12.5px;
}

/* Hoja PRO de Gestión de Playlists (.mp-pl-*) */
.mp-pl-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mp-pl-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(132, 84, 255, .14), rgba(59, 130, 246, .08));
    border-color: rgba(132, 84, 255, .32);
}
.mp-pl-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 240px;
}
.mp-pl-hero-badge-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mp-pl-hero-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.mp-pl-hero-left p {
    margin: 0;
    font-size: 12.5px;
    color: var(--mp-muted);
    line-height: 1.45;
}
.mp-pl-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-pl-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 960px) {
    .mp-pl-kpis { grid-template-columns: 1fr; }
}
.mp-pl-kpi {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.mp-pl-kpi-lbl {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mp-muted);
}
.mp-pl-kpi-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-pl-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-pl-kpi-sub {
    font-size: 12px;
    color: var(--mp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-pl-live-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.mp-pl-two-bar {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 14px;
}
@media (max-width: 1080px) {
    .mp-pl-two-bar { grid-template-columns: 1fr; }
}
.mp-pl-switch-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}
.mp-pl-switch-head strong {
    font-size: 15px;
    font-weight: 800;
}
.mp-pl-switch-head span {
    font-size: 12px;
    color: var(--mp-muted);
}
.mp-pl-switch-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.mp-pl-create-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 8px;
}
@media (max-width: 780px) {
    .mp-pl-create-row { grid-template-columns: 1fr; }
    .mp-pl-switch-row { grid-template-columns: 1fr; }
}
.mp-pl-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.mp-pl-search-wrap {
    width: 260px;
    max-width: 100%;
}
.mp-pl-flag-btn {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-muted);
    cursor: pointer;
}
.mp-pl-flag-btn.is-on {
    background: rgba(16, 185, 129, .14);
    border-color: rgba(16, 185, 129, .38);
    color: #10b981;
}
.mp-pl-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mp-pl-dup-box {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-brand);
    background: var(--mp-surface-2);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mp-pl-dup-box .mp-input {
    flex: 1;
    min-width: 200px;
}
.mp-pl-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.mp-pl-editor-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
}
@media (max-width: 1080px) {
    .mp-pl-editor-grid { grid-template-columns: 1fr; }
}
.mp-pl-ed-col {
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    background: var(--mp-surface-2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.mp-pl-ed-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.mp-pl-ed-browser {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 10px;
    height: 360px;
}
@media (max-width: 680px) {
    .mp-pl-ed-browser { grid-template-columns: 1fr; height: auto; }
}
.mp-pl-ed-folders,
.mp-pl-ed-files,
.mp-pl-ed-queue {
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-surface);
}
.mp-pl-ed-files-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
.mp-pl-ed-files {
    flex: 1;
    min-height: 220px;
}
.mp-pl-ed-queue {
    height: 320px;
}
.mp-pl-ed-folder-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--mp-border);
    background: transparent;
    color: var(--mp-text);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.mp-pl-ed-folder-btn.is-active {
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
}
.mp-pl-ed-track-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--mp-border);
    font-size: 12.5px;
}
.mp-pl-ed-track-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-pl-ed-save-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Ventana dedicada de Edición de Playlist en 3 Paneles (/playlists?edit=ID) */
.mp-gp-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-gp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.mp-gp-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mp-gp-hero-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mp-gp-hero-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}
.mp-gp-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mp-brand-light, #a78bfa);
    margin-bottom: 2px;
}
html[data-theme="light"] .mp-gp-kicker { color: #6d28d9; }
.mp-gp-hero-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--mp-muted);
}
.mp-gp-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-gp-jump-sel {
    min-width: 210px;
}
.mp-gp-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-gp-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    font-size: 13px;
}
.mp-gp-stat-pill svg {
    color: var(--mp-brand);
}
.mp-gp-stat-pill strong {
    font-variant-numeric: tabular-nums;
    font-size: 14.5px;
}
.mp-gp-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: stretch;
}
@media (max-width: 1180px) {
    .mp-gp-layout { grid-template-columns: 1fr; }
}
.mp-gp-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px;
}
.mp-gp-panel-head h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
}
.mp-gp-panel-head span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--mp-muted);
}
.mp-gp-head-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-gp-alpha-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mp-muted);
    cursor: pointer;
}
.mp-gp-alpha-check input {
    accent-color: var(--mp-brand);
}
.mp-gp-scroll {
    height: 430px;
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-surface-2);
}
@media (max-width: 1180px) {
    .mp-gp-scroll { height: 300px; }
}
.mp-gp-dropzone.is-drag-over {
    border-color: var(--mp-brand);
    background: var(--mp-brand-soft);
}
.mp-gp-panel-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}
.mp-gp-foot-right {
    justify-content: flex-start;
}
.mp-gp-spacer {
    flex: 1;
}
.mp-gp-panel-foot .is-scope-active {
    border-color: var(--mp-brand);
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
}
.mp-gp-song-item {
    cursor: grab;
    transition: background .12s ease;
}
.mp-gp-song-item:hover {
    background: var(--mp-brand-soft);
}
.mp-gp-song-item.is-dragging {
    opacity: .45;
}
.mp-gp-dur {
    font-size: 11px;
    color: var(--mp-muted);
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}

/* Consola PRO Live Studio Harbor Bridge (.mp-ls-*) */
.mp-ls-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mp-ls-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(132, 84, 255, .14), rgba(16, 185, 129, .08));
    border-color: rgba(132, 84, 255, .32);
}
.mp-ls-hero-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}
.mp-ls-hero-ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mp-ls-hero-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.mp-ls-hero-title {
    margin: 0 0 4px;
    font-size: 18.5px;
    font-weight: 800;
}
.mp-ls-hero-sub {
    margin: 0;
    font-size: 12.5px;
    color: var(--mp-muted);
    line-height: 1.5;
}
.mp-ls-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-ls-con-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.mp-ls-sec-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
}
.mp-ls-sec-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--mp-muted);
}
.mp-ls-status-strip {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mp-ls-timer {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
}
.mp-ls-connect-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 160px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}
@media (max-width: 980px) {
    .mp-ls-connect-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .mp-ls-connect-bar { grid-template-columns: 1fr; }
}
.mp-ls-connect-bar .mp-field { margin: 0; }
.mp-ls-pass-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.mp-ls-connect-cta {
    display: flex;
    align-items: flex-end;
}
.mp-ls-mixer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 920px) {
    .mp-ls-mixer-grid { grid-template-columns: 1fr; }
}
.mp-ls-deck {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mp-ls-deck-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}
.mp-ls-slider-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--mp-muted);
}
.mp-ls-slider-row input[type="range"] {
    width: 100%;
    accent-color: var(--mp-brand);
}
.mp-ls-chk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.mp-ls-chk input {
    accent-color: var(--mp-brand);
}
.mp-ls-vu-wrap {
    margin-top: auto;
    padding-top: 4px;
}
.mp-ls-vu-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--mp-muted);
    margin-bottom: 5px;
}
.mp-ls-vu-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
    overflow: hidden;
}
.mp-ls-vu-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #eab308, #ef4444);
    transition: width 60ms linear;
}
.mp-ls-deck-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.mp-ls-deck-list {
    height: 120px;
    overflow: auto;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: var(--mp-surface);
}
.mp-ls-deck-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--mp-border);
    font-size: 12px;
    cursor: pointer;
}
.mp-ls-deck-item.is-active {
    background: var(--mp-brand-soft);
    color: var(--mp-brand);
    font-weight: 700;
}
.mp-ls-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
}
@media (max-width: 560px) {
    .mp-ls-meta-row { grid-template-columns: 1fr; }
}
.mp-ls-footer-bar {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}
.mp-ls-quick-form {
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
}
@media (max-width: 700px) {
    .mp-ls-quick-form { grid-template-columns: 1fr; }
}
.mp-ls-links-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-ls-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.mp-ls-url {
    flex: 1;
    min-width: 180px;
    font-size: 11.5px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-ls-row-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modal Moderno de Exclusión Mutua AutoDJ Básico / e-Boss Radio */
.mp-conflict-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(7, 10, 19, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    animation: mpConflictFadeIn .18s ease-out;
}
@keyframes mpConflictFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mp-conflict-dialog {
    position: relative;
    width: 100%;
    max-width: 510px;
    background: var(--mp-surface);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: mpConflictPop .2s cubic-bezier(.2, .9, .25, 1);
}
@keyframes mpConflictPop {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.mp-conflict-glow {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8454ff);
}
.mp-conflict-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-conflict-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
html[data-theme="light"] .mp-conflict-ico {
    color: #d97706;
}
.mp-conflict-titles {
    flex: 1;
    min-width: 0;
}
.mp-conflict-titles h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--mp-text);
    line-height: 1.25;
}
.mp-conflict-kicker {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mp-muted);
}
.mp-conflict-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-conflict-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mp-conflict-pill {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mp-conflict-pill.is-live {
    border-color: rgba(16, 185, 129, 0.42);
    background: rgba(16, 185, 129, 0.08);
}
.mp-conflict-pill.is-req {
    border-color: rgba(132, 84, 255, 0.42);
    background: rgba(132, 84, 255, 0.08);
}
.mp-conflict-pill-lbl {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--mp-muted);
}
.mp-conflict-pill strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-conflict-arrow {
    color: var(--mp-muted);
    font-weight: 800;
    font-size: 16px;
}
.mp-conflict-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mp-text);
}
.mp-conflict-hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mp-muted);
}
.mp-conflict-status {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
}
.mp-conflict-status.is-ok {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.mp-conflict-status.is-err {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
}
html[data-theme="light"] .mp-conflict-status.is-ok { color: #047857; }
html[data-theme="light"] .mp-conflict-status.is-err { color: #be123c; }
.mp-conflict-foot {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--mp-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
@media (max-width: 520px) {
    .mp-conflict-arrow { display: none; }
    .mp-conflict-foot { flex-direction: column-reverse; align-items: stretch; }
}






/* ==========================================================================
   Mejoras Broadcast Pro del Dashboard (/dashboard)
   ========================================================================== */
.mp-kpi-val-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mp-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    border: 1px solid rgba(132, 84, 255, 0.30);
    background: rgba(132, 84, 255, 0.12);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mp-copy-pill:hover {
    background: rgba(132, 84, 255, 0.24);
    border-color: var(--mp-brand);
}

.mp-copy-pill.is-copied {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.48);
    color: #34d399;
}

html[data-theme="light"] .mp-copy-pill {
    color: #6d28d9;
}

html[data-theme="light"] .mp-copy-pill.is-copied {
    color: #047857;
}

.mp-disk-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mp-muted);
    margin-bottom: 4px;
}

.mp-spark-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.mp-spark-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--mp-muted);
}

.mp-spark-head strong {
    color: #34d399;
    font-weight: 600;
}

html[data-theme="light"] .mp-spark-head strong {
    color: #047857;
}

.mp-spark-svg {
    width: 100%;
    height: 14px;
    display: block;
}

.mp-map-box .leaflet-container {
    width: 100%;
    height: 100%;
    background: #0b1220;
}

html:not([data-theme="light"]) .mp-map-box .leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

html[data-theme="light"] .mp-map-box .leaflet-container {
    background: #e2e8f0;
}

.mp-spark-peak {
    font-size: 11px;
    color: var(--mp-muted);
    white-space: nowrap;
}

.mp-spark-peak strong {
    color: #34d399;
    font-weight: 600;
}

html[data-theme="light"] .mp-spark-peak strong {
    color: #047857;
}

/* Estados inteligentes para Encender / Detener / Reiniciar */
.mp-action-tile.is-emphasized {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.22));
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20), 0 8px 20px rgba(16, 185, 129, 0.22);
}

html[data-theme="light"] .mp-action-tile.is-emphasized {
    color: #065f46;
}

.mp-action-tile.is-dimmed {
    opacity: 0.45;
    filter: saturate(0.45);
}

.mp-action-tile.is-dimmed:hover {
    opacity: 0.78;
}

/* Selector rápido de playlist AutoDJ en Dashboard */
.mp-dash-pl-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--mp-border);
}

.mp-dash-pl-row select {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    font-size: 12.5px;
    border-radius: 9px;
}

/* Barra inferior de Enlaces Rápidos de tu Emisora */
.mp-quicklinks-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: linear-gradient(120deg, rgba(132, 84, 255, 0.13) 0%, rgba(56, 189, 248, 0.08) 100%), var(--mp-surface);
    border: 1px solid rgba(132, 84, 255, 0.28);
}

html[data-theme="light"] .mp-quicklinks-bar {
    background: linear-gradient(120deg, rgba(132, 84, 255, 0.07) 0%, rgba(56, 189, 248, 0.04) 100%), #ffffff;
}

.mp-quicklinks-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-quicklinks-title strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-quicklinks-title span {
    font-size: 12px;
    color: var(--mp-muted);
}

.mp-quicklinks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badges limpios en el Registro de Acciones */
.mp-log-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    margin-right: 6px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-muted);
}

.mp-log-badge.is-ok { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.34); color: #34d399; }
.mp-log-badge.is-stop { background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.34); color: #fb7185; }
.mp-log-badge.is-brand { background: rgba(132, 84, 255, 0.16); border-color: rgba(132, 84, 255, 0.36); color: #c4b5fd; }
.mp-log-badge.is-sky { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.34); color: #7dd3fc; }

html[data-theme="light"] .mp-log-badge.is-ok { color: #047857; }
html[data-theme="light"] .mp-log-badge.is-stop { color: #be123c; }
html[data-theme="light"] .mp-log-badge.is-brand { color: #6d28d9; }
html[data-theme="light"] .mp-log-badge.is-sky { color: #0369a1; }

/* Vista previa de carpetas del servidor en /playlists */
.mp-pl-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-pl-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface-2);
    color: var(--mp-text);
    cursor: pointer;
    font-size: 13px;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.mp-pl-preview-chip:hover {
    border-color: var(--mp-brand);
    transform: translateY(-1px);
}
.mp-pl-preview-name { font-weight: 600; }
.mp-pl-preview-count {
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(132, 84, 255, 0.16);
    color: var(--mp-brand-light, #c4b5fd);
}
html[data-theme="light"] .mp-pl-preview-count { color: #5b21b6; }
.mp-pl-preview-msg { font-size: 13px; color: var(--mp-muted); }
.mp-pl-preview-msg.is-err { color: #fb7185; }
