/* ============================================================
   musica.css — Estilos del módulo de música
   Risus Nova · www.phpost.es
   ============================================================ */

/* ── musica.tpl ── */
/* ── Reset / base ── */
.ms-wrap { font-family: inherit; color: #333; }

/* ── Header portada ── */
.ms-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 30px 20px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.ms-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231,76,60,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ms-header h1 {
    color: #fff;
    font-size: 26px;
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.ms-header p { color: rgba(255,255,255,0.6); margin: 0 0 16px; font-size: 13px; }

/* ── Buscador ── */
.ms-search {
    display: flex;
    gap: 8px;
    max-width: 480px;
}
.ms-search input {
    flex: 1;
    padding: 9px 14px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    outline: none;
}
.ms-search button {
    padding: 9px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ms-search button:hover { background: #c0392b; }

/* ── Sección título ── */
.ms-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    border-left: 3px solid #e74c3c;
    padding-left: 10px;
    margin: 0 0 14px;
}

/* ── Slider ── */
.ms-slider-wrap { position: relative; overflow: hidden; border-radius: 6px; margin-bottom: 24px; }
.ms-slider { display: flex; transition: transform 0.4s ease; }
.ms-slide {
    min-width: 100%;
    height: 200px;
    position: relative;
    background: #111;
    cursor: pointer;
}
.ms-slide-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    display: block;
}
.ms-slide-bg-default {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.ms-slide-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 16px 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.ms-slide-info h3 { color: #fff; font-size: 16px; margin: 0 0 2px; font-weight: 700; }
.ms-slide-info span { color: rgba(255,255,255,0.7); font-size: 12px; }
.ms-slide-play {
    width: 44px; height: 44px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s;
}
.ms-slide-play:hover { transform: scale(1.1); }
.ms-slider-dots {
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 5px;
}
.ms-slider-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s;
}
.ms-slider-dot.active { background: #e74c3c; }
.ms-slider-prev, .ms-slider-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff; border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.ms-slider-prev { left: 8px; }
.ms-slider-next { right: 8px; }

/* ── Grid 2 columnas ── */
.ms-grid-2 { display: flex; gap: 20px; margin-bottom: 24px; }
.ms-col-main { flex: 1; min-width: 0; }
.ms-col-side { width: 220px; flex-shrink: 0; }

/* ── Lista de temas ── */
.ms-tema-list { list-style: none; padding: 0; margin: 0; }
.ms-tema-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ms-tema-item:last-child { border-bottom: none; }
.ms-tema-num {
    width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: #bbb;
    text-align: center;
    flex-shrink: 0;
}
.ms-tema-portada {
    width: 40px; height: 40px;
    border-radius: 4px;
    background: #eee;
    object-fit: cover;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    overflow: hidden;
}
.ms-tema-portada img { width: 100%; height: 100%; object-fit: cover; }
.ms-tema-info { flex: 1; min-width: 0; }
.ms-tema-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.ms-tema-titulo:hover { color: #e74c3c; }
.ms-tema-artista {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}
.ms-tema-artista:hover { color: #e74c3c; }
.ms-tema-meta {
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
    text-align: right;
}
.ms-tema-plat {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}
.ms-tema-plat.youtube   { background: #ff0000; color: #fff; }
.ms-tema-plat.spotify   { background: #1db954; color: #fff; }
.ms-tema-plat.soundcloud{ background: #ff5500; color: #fff; }

/* ── Filtros periodo ── */
.ms-filtros { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ms-filtro {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #888;
    background: #f5f5f5;
    transition: all 0.2s;
}
.ms-filtro:hover, .ms-filtro.active {
    background: #e74c3c;
    color: #fff;
}

/* ── Géneros grid ── */
.ms-generos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.ms-genero-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    border-radius: 6px;
    text-decoration: none;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.2s;
    text-align: center;
}
.ms-genero-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ms-genero-icon { font-size: 22px; }
.ms-genero-nombre { font-size: 11px; font-weight: 700; color: #555; }
.ms-genero-total { font-size: 10px; color: #aaa; }

/* ── Staff picks ── */
.ms-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.ms-pick-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    height: 90px;
    background: #222;
    text-decoration: none;
}
.ms-pick-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.ms-pick-bg-default {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.ms-pick-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 4px 7px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.ms-pick-titulo { color: #fff; font-size: 10px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-pick-artista { color: rgba(255,255,255,0.6); font-size: 10px; display: block; }

/* ── Top artistas ── */
.ms-artistas-list { list-style: none; padding: 0; margin: 0 0 24px; }
.ms-artista-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.ms-artista-item:last-child { border-bottom: none; }
.ms-artista-num { width: 18px; font-size: 11px; font-weight: 700; color: #bbb; flex-shrink: 0; }
.ms-artista-img {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #eee;
    object-fit: cover;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; overflow: hidden;
}
.ms-artista-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-artista-nombre { font-size: 12px; font-weight: 700; color: #333; flex: 1; }
.ms-artista-nombre:hover { color: #e74c3c; }
.ms-artista-plays { font-size: 11px; color: #bbb; }

/* ── Comentarios recientes ── */
.ms-coms-list { list-style: none; padding: 0; margin: 0 0 24px; }
.ms-com-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}
.ms-com-item:last-child { border-bottom: none; }
.ms-com-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #eee;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; overflow: hidden;
}
.ms-com-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-com-body { flex: 1; min-width: 0; }
.ms-com-user { font-weight: 700; color: #333; }
.ms-com-texto { color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ms-com-tema { font-size: 11px; color: #aaa; }

/* ── Playlists ── */
.ms-pl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.ms-pl-item {
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.ms-pl-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ms-pl-cover {
    height: 70px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.ms-pl-info { padding: 7px 8px; }
.ms-pl-nombre { font-size: 12px; font-weight: 700; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-pl-meta { font-size: 10px; color: #aaa; }

/* ── Botón ver más ── */
.ms-ver-mas {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    margin-top: 8px;
}
.ms-ver-mas:hover { background: #e74c3c; color: #fff; }

@media (max-width: 600px) {
    .ms-grid-2 { flex-direction: column; }
    .ms-col-side { width: 100%; }
    .ms-picks-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-pl-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-generos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── musica_tema.tpl ── */
.ms-tema-wrap { font-family: inherit; color: #333; max-width: 100%; }

/* ── Header canción ── */
.ms-tema-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.ms-tema-cover {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background: #0f3460;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}
.ms-tema-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ms-tema-meta { flex: 1; min-width: 0; }
.ms-tema-genero {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 8px;
    text-decoration: none;
}
.ms-tema-titulo-big {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}
.ms-tema-artista-big {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.ms-tema-artista-big:hover { color: #e74c3c; }
.ms-tema-album {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-bottom: 12px;
}
.ms-tema-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ms-tema-stat {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ms-tema-stat i { font-size: 11px; }

/* ── Acciones ── */
.ms-tema-acciones {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}
.ms-btn-like {
    background: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}
.ms-btn-like:hover, .ms-btn-like.active {
    background: #e74c3c;
    color: #fff;
}
.ms-btn-playlist {
    background: #f5f5f5;
    color: #555;
    border: 2px solid #ddd;
}
.ms-btn-playlist:hover { background: #eee; }
.ms-btn-plat {
    color: #fff;
    border: none;
}
.ms-btn-plat.youtube    { background: #ff0000; }
.ms-btn-plat.spotify    { background: #1db954; }
.ms-btn-plat.soundcloud { background: #ff5500; }

/* ── Player ── */
.ms-player-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ms-player-box iframe { display: block; }

/* ── Grid contenido ── */
.ms-tema-grid {
    display: flex;
    gap: 20px;
}
.ms-tema-main { flex: 1; min-width: 0; }
.ms-tema-side { width: 220px; flex-shrink: 0; }

/* ── Sección título ── */

/* ── Comentarios ── */
.ms-com-form { margin-bottom: 20px; }
.ms-com-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}
.ms-com-form textarea:focus { border-color: #e74c3c; }
.ms-com-form button {
    margin-top: 6px;
    padding: 7px 18px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.ms-com-form button:hover { background: #c0392b; }

.ms-coms-lista { list-style: none; padding: 0; margin: 0; }
.ms-com-row {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ms-com-row:last-child { border-bottom: none; }
.ms-com-av {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #eee;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; overflow: hidden;
}
.ms-com-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-com-content { flex: 1; min-width: 0; }
.ms-com-user {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}
.ms-com-user:hover { color: #e74c3c; }
.ms-com-fecha { font-size: 11px; color: #bbb; margin-left: 6px; }
.ms-com-text { font-size: 13px; color: #555; margin-top: 3px; line-height: 1.4; }

/* ── Relacionados ── */
.ms-rel-list { list-style: none; padding: 0; margin: 0; }
.ms-rel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.ms-rel-item:last-child { border-bottom: none; }
.ms-rel-portada {
    width: 38px; height: 38px;
    border-radius: 4px;
    background: #eee;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; overflow: hidden;
}
.ms-rel-portada img { width: 100%; height: 100%; object-fit: cover; }
.ms-rel-titulo { font-size: 12px; font-weight: 700; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-rel-titulo:hover { color: #e74c3c; }
.ms-rel-plays { font-size: 11px; color: #bbb; }

/* ── Artista card ── */
.ms-artista-card {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}
.ms-artista-card-img {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; overflow: hidden;
}
.ms-artista-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ms-artista-card-nombre {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
}
.ms-artista-card-nombre:hover { color: #e74c3c; }
.ms-artista-card-verified { color: #3498db; font-size: 12px; margin-bottom: 8px; display: block; }
.ms-artista-card-seg { color: rgba(255,255,255,0.5); font-size: 11px; margin-bottom: 12px; }
.ms-btn-seguir {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    transition: all 0.2s;
}
.ms-btn-seguir:hover, .ms-btn-seguir.siguiendo {
    background: #e74c3c;
    border-color: #e74c3c;
}
.ms-artista-card-bio {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.4;
    text-align: left;
}

/* ── Añadido por ── */
.ms-added-by {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}
.ms-added-by a { color: #e74c3c; font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
    .ms-tema-header { flex-direction: column; }
    .ms-tema-cover { width: 80px; height: 80px; font-size: 32px; }
    .ms-tema-grid { flex-direction: column; }
    .ms-tema-side { width: 100%; }
}

/* ── musica_anadir.tpl ── */
.ms-anadir-wrap {     font-family: inherit;color: #333;width: 100%;max-width: 95%;margin: 0 auto;}

/* ── Header ── */
.ms-anadir-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.ms-anadir-header-icon {
    width: 50px; height: 50px;
    background: rgba(231,76,60,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ms-anadir-header h2 { color: #fff; margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.ms-anadir-header p  { color: rgba(255,255,255,0.5); margin: 0; font-size: 12px; }

/* ── Plataformas soportadas ── */
.ms-plat-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ms-plat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.ms-plat-badge.yt { background: #ff0000; }
.ms-plat-badge.sp { background: #1db954; }
.ms-plat-badge.sc { background: #ff5500; }

/* ── Formulario ── */
.ms-form-group { margin-bottom: 16px; }
.ms-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ms-form-label span { color: #e74c3c; }
.ms-form-input, .ms-form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}
.ms-form-input:focus, .ms-form-select:focus { border-color: #e74c3c; }
.ms-form-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* ── Preview URL ── */
.ms-url-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: none;
}
.ms-url-preview.ok    { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ms-url-preview.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Portada preview ── */
.ms-portada-preview {
    width: 80px; height: 80px;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px dashed #ddd;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    overflow: hidden;
    margin-top: 8px;
}
.ms-portada-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* ── Grid 2 cols ── */
.ms-form-row { display: flex; gap: 12px; }
.ms-form-row .ms-form-group { flex: 1; }

/* ── Botón submit ── */
.ms-submit-btn {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ms-submit-btn:hover { background: #c0392b; }
.ms-submit-btn:disabled { background: #ddd; cursor: not-allowed; }

/* ── Info box ── */
.ms-info-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-left: 3px solid #3498db;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}
.ms-info-box i { color: #3498db; margin-right: 4px; }

/* ── musica_top.tpl ── */
.ms-top-wrap { font-family: inherit; color: #333; }

/* ── Header ── */
.ms-top-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.ms-top-header-left h2 { color: #fff; margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.ms-top-header-left p  { color: rgba(255,255,255,0.5); margin: 0; font-size: 12px; }

/* ── Filtros ── */
.ms-filtros-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}
.ms-filtros-bar span {
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* ── Select género ── */
.ms-genero-select {
    padding: 5px 10px;
    border-radius: 16px;
    border: 1px solid #eee;
    font-size: 12px;
    color: #888;
    outline: none;
    cursor: pointer;
    background: #f5f5f5;
}
.ms-genero-select:focus { border-color: #e74c3c; }

/* ── Grid top ── */
.ms-top-grid {
    display: flex;
    gap: 20px;
}
.ms-top-main { flex: 1; min-width: 0; }
.ms-top-side  { width: 200px; flex-shrink: 0; }

/* ── Lista top ── */
.ms-top-list { list-style: none; padding: 0; margin: 0; }
.ms-top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.ms-top-item:last-child { border-bottom: none; }
.ms-top-item:hover { background: #fafafa; }

/* Número con medalla para top 3 */
.ms-top-num {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.ms-top-num.gold   { color: #f1c40f; font-size: 18px; }
.ms-top-num.silver { color: #95a5a6; font-size: 18px; }
.ms-top-num.bronze { color: #e67e22; font-size: 18px; }

.ms-top-portada {
    width: 48px; height: 48px;
    border-radius: 5px;
    background: #eee;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; overflow: hidden;
}
.ms-top-portada img { width: 100%; height: 100%; object-fit: cover; }

.ms-top-info { flex: 1; min-width: 0; }
.ms-top-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.ms-top-titulo:hover { color: #e74c3c; }
.ms-top-artista {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.ms-top-artista:hover { color: #e74c3c; }
.ms-top-genero-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    margin-left: 4px;
}

.ms-top-stats {
    text-align: right;
    flex-shrink: 0;
}
.ms-top-plays {
    font-size: 14px;
    font-weight: 800;
    color: #333;
    display: block;
}
.ms-top-plays-label {
    font-size: 10px;
    color: #bbb;
}
.ms-top-plat {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    margin-top: 2px;
    display: inline-block;
}
.ms-top-plat.youtube    { background: #ff0000; color: #fff; }
.ms-top-plat.spotify    { background: #1db954; color: #fff; }
.ms-top-plat.soundcloud { background: #ff5500; color: #fff; }

/* ── Barra de progreso relativa ── */
.ms-top-bar-wrap {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 5px;
}
.ms-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ── Sección título ── */

/* ── Géneros lateral ── */
.ms-top-generos { list-style: none; padding: 0; margin: 0 0 20px; }
.ms-top-genero-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
}
.ms-top-genero-item:last-child { border-bottom: none; }
.ms-top-genero-item:hover { color: #e74c3c; }
.ms-top-genero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Empty state ── */
.ms-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}
.ms-empty i { font-size: 40px; margin-bottom: 10px; display: block; }
.ms-empty p { font-size: 13px; margin: 0; }

@media (max-width: 600px) {
    .ms-top-grid  { flex-direction: column; }
    .ms-top-side  { width: 100%; }
    .ms-top-header { flex-direction: column; }
}

/* ── musica_artista.tpl ── */
.ms-artista-wrap { font-family: inherit; color: #333; }

/* ── Header artista ── */
.ms-artista-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 6px;
    padding: 24px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.ms-artista-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(231,76,60,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ms-artista-hero-img {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 44px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.15);
}
.ms-artista-hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.ms-artista-hero-info { flex: 1; min-width: 0; }
.ms-artista-hero-nombre {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-artista-verified-badge {
    font-size: 16px;
    color: #3498db;
}
.ms-artista-hero-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}
.ms-artista-hero-stat {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ms-artista-hero-stat strong { color: #fff; font-size: 15px; }
.ms-artista-hero-bio {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.5;
    max-width: 500px;
}

/* ── Botón seguir ── */
.ms-btn-siguiendo {
    background: #e74c3c;
    border-color: #e74c3c;
}
.ms-btn-seguir:hover { background: #e74c3c; border-color: #e74c3c; }

/* ── Grid ── */
.ms-artista-grid {
    display: flex;
    gap: 20px;
}
.ms-artista-main { flex: 1; min-width: 0; }
.ms-artista-side { width: 210px; flex-shrink: 0; }

/* ── Sección título ── */

/* ── Lista temas ── */
.ms-tema-list { list-style: none; padding: 0; margin: 0 0 20px; }
.ms-tema-sub { font-size: 11px; color: #aaa; }
.ms-tema-stats-r {
    text-align: right;
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
}
.ms-tema-plat.soundcloud { background: #ff5500; color: #fff; }

/* ── Paginación ── */
.ms-paginacion {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.ms-pag-btn {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #888;
    background: #f5f5f5;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.ms-pag-btn:hover, .ms-pag-btn.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}
.ms-pag-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── Géneros lateral ── */
.ms-side-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}
.ms-side-card-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0 0 12px;
}
.ms-side-links { display: flex; flex-direction: column; gap: 7px; }
.ms-side-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ms-side-link:hover { color: #e74c3c; }
.ms-side-link i { width: 14px; text-align: center; color: #bbb; }

/* ── Empty ── */

@media (max-width: 600px) {
    .ms-artista-hero { flex-direction: column; text-align: center; }
    .ms-artista-hero-stats { justify-content: center; }
    .ms-artista-grid { flex-direction: column; }
    .ms-artista-side { width: 100%; }
}

/* ── musica_genero.tpl ── */
.ms-genero-wrap { font-family: inherit; color: #333; }

.ms-genero-hero {
    border-radius: 6px;
    padding: 22px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.ms-genero-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.3));
    border-radius: 6px;
}
.ms-genero-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.ms-genero-hero-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}
.ms-genero-hero-text h1 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.ms-genero-hero-text p  { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0; }


/* Lista igual que artista */
.ms-tema-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.ms-tema-num { width: 22px; font-size: 12px; font-weight: 700; color: #ccc; text-align: center; flex-shrink: 0; }
.ms-tema-portada { width: 44px; height: 44px; border-radius: 4px; background: #eee; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.ms-tema-titulo { font-size: 13px; font-weight: 700; color: #333; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ms-tema-artista { font-size: 11px; color: #999; text-decoration: none; }
.ms-tema-stats-r { text-align: right; flex-shrink: 0; font-size: 11px; color: #bbb; }
.ms-tema-plat { font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 700; display: inline-block; margin-bottom: 2px; }

/* Paginación */
.ms-paginacion { display: flex; justify-content: center; gap: 6px; padding: 16px 0; flex-wrap: wrap; }
.ms-pag-btn { padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; text-decoration: none; color: #888; background: #f5f5f5; border: 1px solid #eee; transition: all 0.2s; }
.ms-pag-btn:hover, .ms-pag-btn.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* Otros géneros */
.ms-otros-generos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px; }
.ms-otro-genero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 5px; background: #f8f9fa; border: 1px solid #eee; text-decoration: none; text-align: center; transition: all 0.2s; }
.ms-otro-genero:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.ms-otro-genero span { font-size: 11px; font-weight: 700; color: #555; }

.ms-empty { text-align: center; padding: 40px 20px; color: #bbb; }

/* ── musica_buscar.tpl ── */
.ms-buscar-wrap { font-family: inherit; color: #333; }

.ms-buscar-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.ms-buscar-header h2 { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 14px; }

.ms-search-form { display: flex; gap: 8px; }
.ms-search-form input {
    flex: 1; padding: 9px 14px; border-radius: 20px;
    border: none; font-size: 13px; outline: none;
}
.ms-search-form button {
    padding: 9px 20px; background: #e74c3c; color: #fff;
    border: none; border-radius: 20px; font-size: 13px;
    font-weight: 700; cursor: pointer;
}
.ms-search-form button:hover { background: #c0392b; }

.ms-buscar-info {
    font-size: 13px; color: #888; margin-bottom: 16px;
}
.ms-buscar-info strong { color: #333; }


.ms-tema-plat { font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 700; display: inline-block; }
.ms-tema-genero-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; font-weight: 700; margin-left: 4px; }



/* ── musica_playlists.tpl ── */
.ms-pl-wrap { font-family: inherit; color: #333; }

.ms-pl-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px; padding: 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.ms-pl-header h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.ms-pl-header p  { color: rgba(255,255,255,0.5); font-size: 12px; margin: 0; }


.ms-pl-card {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ms-pl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.ms-pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.ms-pl-cover-plays {
    position: absolute;
    bottom: 5px; right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}
.ms-pl-body { padding: 10px 10px 12px; }
.ms-pl-nombre {
    font-size: 13px; font-weight: 700; color: #333;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.ms-pl-meta { font-size: 11px; color: #aaa; }
.ms-pl-meta a { color: #999; text-decoration: none; }
.ms-pl-meta a:hover { color: #e74c3c; }



@media (max-width: 500px) {
}

/* ── musica_playlist.tpl ── */
.ms-playlist-wrap { font-family: inherit; color: #333; }

.ms-playlist-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px; padding: 22px 20px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 18px;
}
.ms-playlist-cover {
    width: 110px; height: 110px; border-radius: 6px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 44px; overflow: hidden;
}
.ms-playlist-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ms-playlist-info-text { flex: 1; min-width: 0; }
.ms-playlist-info-text h1 { color: #fff; font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.ms-playlist-info-meta { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 12px; }
.ms-playlist-info-meta a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 700; }
.ms-playlist-info-meta a:hover { color: #e74c3c; }
.ms-playlist-stats { display: flex; gap: 16px; }
.ms-playlist-stat { color: rgba(255,255,255,0.6); font-size: 12px; }
.ms-playlist-stat strong { color: #fff; }


.ms-pl-tema-list { list-style: none; padding: 0; margin: 0; }
.ms-pl-tema-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 8px; border-bottom: 1px solid #f0f0f0;
    border-radius: 4px; transition: background 0.15s; cursor: pointer;
}
.ms-pl-tema-item:last-child { border-bottom: none; }
.ms-pl-tema-item:hover { background: #fafafa; }
.ms-pl-tema-item.playing { background: #fff5f5; }

.ms-pl-num { width: 22px; text-align: center; font-size: 12px; font-weight: 700; color: #ccc; flex-shrink: 0; }
.ms-pl-portada {
    width: 42px; height: 42px; border-radius: 4px;
    background: #eee; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; overflow: hidden; position: relative;
}
.ms-pl-portada img { width: 100%; height: 100%; object-fit: cover; }
.ms-pl-play-icon {
    position: absolute; inset: 0;
    background: rgba(231,76,60,0.85);
    display: none; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; border-radius: 4px;
}
.ms-pl-tema-item:hover .ms-pl-play-icon,
.ms-pl-tema-item.playing .ms-pl-play-icon { display: flex; }

.ms-pl-tema-info { flex: 1; min-width: 0; }
.ms-pl-tema-titulo {
    font-size: 13px; font-weight: 700; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
    text-decoration: none;
}
.ms-pl-tema-titulo:hover { color: #e74c3c; }
.ms-pl-tema-artista { font-size: 11px; color: #999; text-decoration: none; }
.ms-pl-tema-artista:hover { color: #e74c3c; }
.ms-pl-tema-meta { text-align: right; flex-shrink: 0; font-size: 11px; color: #bbb; }
.ms-pl-tema-plat { font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 700; display: inline-block; }
.ms-pl-tema-plat.youtube    { background: #ff0000; color: #fff; }
.ms-pl-tema-plat.spotify    { background: #1db954; color: #fff; }
.ms-pl-tema-plat.soundcloud { background: #ff5500; color: #fff; }

/* Player flotante */
.ms-pl-player-box {
    position: sticky;
    bottom: 12px;
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
}
.ms-pl-player-box.visible { display: block; }
.ms-pl-player-now {
    color: rgba(255,255,255,0.6); font-size: 11px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.ms-pl-player-now strong { color: #fff; }
.ms-pl-player-now a { color: rgba(255,255,255,0.5); font-size: 11px; margin-left: auto; text-decoration: none; }
.ms-pl-player-now a:hover { color: #e74c3c; }


@media (max-width: 500px) {
    .ms-playlist-hero { flex-direction: column; }
    .ms-playlist-cover { width: 80px; height: 80px; font-size: 32px; }
}

/* ── musica_nueva_playlist.tpl ── */
.ms-nueva-pl-wrap { font-family: inherit; color: #333; max-width: 924px;  }

.ms-nueva-pl-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px; padding: 20px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 14px;
}
.ms-nueva-pl-header-icon {
    width: 48px; height: 48px; background: rgba(231,76,60,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.ms-nueva-pl-header h2 { color: #fff; margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.ms-nueva-pl-header p  { color: rgba(255,255,255,0.5); margin: 0; font-size: 12px; }

.ms-form-label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.ms-form-input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.ms-form-input:focus { border-color: #e74c3c; }
.ms-form-hint { font-size: 11px; color: #aaa; margin-top: 4px; }


.ms-toggle-wrap { display: flex; align-items: center; gap: 10px; }
.ms-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.ms-toggle input { opacity: 0; width: 0; height: 0; }
.ms-toggle-slider {
    position: absolute; inset: 0; background: #ddd;
    border-radius: 24px; cursor: pointer; transition: background 0.2s;
}
.ms-toggle-slider:before {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; left: 3px; top: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ms-toggle input:checked + .ms-toggle-slider { background: #e74c3c; }
.ms-toggle input:checked + .ms-toggle-slider:before { transform: translateX(20px); }
.ms-toggle-label { font-size: 13px; color: #555; }


/* ── musica_admin.tpl ── */
.ms-admin-wrap { font-family: inherit; color: #333; }

/* ── Header ── */
.ms-admin-header {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 6px; padding: 18px 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ms-admin-header h2 { color: #fff; font-size: 18px; font-weight: 800; margin: 0; }

/* ── Nav tabs ── */
.ms-admin-nav {
    display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px;
}
.ms-admin-tab {
    padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: 700;
    text-decoration: none; color: #888; background: #f5f5f5;
    border: 1px solid #eee; transition: all 0.2s;
}
.ms-admin-tab:hover, .ms-admin-tab.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.ms-admin-tab .badge {
    display: inline-block; background: #e74c3c; color: #fff;
    border-radius: 8px; font-size: 10px; padding: 1px 5px; margin-left: 4px;
}
.ms-admin-tab.active .badge { background: rgba(255,255,255,0.3); }

/* ── Stats ── */
.ms-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px; margin-bottom: 24px;
}
.ms-admin-stat {
    background: #f8f9fa; border: 1px solid #eee; border-radius: 6px;
    padding: 14px 12px; text-align: center;
}
.ms-admin-stat-num { font-size: 24px; font-weight: 800; color: #333; display: block; }
.ms-admin-stat-label { font-size: 11px; color: #aaa; margin-top: 2px; }
.ms-admin-stat.red   .ms-admin-stat-num { color: #e74c3c; }
.ms-admin-stat.green .ms-admin-stat-num { color: #27ae60; }
.ms-admin-stat.blue  .ms-admin-stat-num { color: #3498db; }

/* ── Sección título ── */

/* ── Tabla admin ── */
.ms-admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ms-admin-table th {
    background: #f5f5f5; padding: 8px 10px; text-align: left;
    font-weight: 700; color: #888; text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 2px solid #eee;
}
.ms-admin-table td { padding: 9px 10px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.ms-admin-table tr:hover td { background: #fafafa; }
.ms-admin-table tr:last-child td { border-bottom: none; }

.ms-admin-portada {
    width: 36px; height: 36px; border-radius: 4px;
    background: #eee; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 16px; overflow: hidden; vertical-align: middle;
}
.ms-admin-portada img { width: 100%; height: 100%; object-fit: cover; }

.ms-admin-titulo { font-weight: 700; color: #333; }
.ms-admin-sub    { color: #aaa; font-size: 11px; }

/* Badges */
.ms-badge {
    display: inline-block; font-size: 10px; padding: 2px 7px;
    border-radius: 8px; font-weight: 700;
}
.ms-badge-pending  { background: #fff3cd; color: #856404; }
.ms-badge-active   { background: #d4edda; color: #155724; }
.ms-badge-yt       { background: #ff0000; color: #fff; }
.ms-badge-sp       { background: #1db954; color: #fff; }
.ms-badge-sc       { background: #ff5500; color: #fff; }

/* Botones acción */
.ms-admin-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 4px; font-size: 11px;
    font-weight: 700; cursor: pointer; border: none;
    text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.ms-btn-green  { background: #d4edda; color: #155724; }
.ms-btn-green:hover  { background: #27ae60; color: #fff; }
.ms-btn-red    { background: #f8d7da; color: #721c24; }
.ms-btn-red:hover    { background: #e74c3c; color: #fff; }
.ms-btn-blue   { background: #d1ecf1; color: #0c5460; }
.ms-btn-blue:hover   { background: #3498db; color: #fff; }
.ms-btn-yellow { background: #fff3cd; color: #856404; }
.ms-btn-yellow:hover { background: #f1c40f; color: #fff; }
.ms-btn-gray   { background: #f5f5f5; color: #888; }
.ms-btn-gray:hover   { background: #888; color: #fff; }

/* ── Filtros buscador ── */
.ms-admin-filtros {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px; align-items: center;
}
.ms-admin-filtro {
    padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700;
    text-decoration: none; color: #888; background: #f5f5f5;
    border: 1px solid #eee; transition: all 0.2s;
}
.ms-admin-filtro:hover, .ms-admin-filtro.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.ms-admin-search { display: flex; gap: 6px; margin-left: auto; }
.ms-admin-search input {
    padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 12px; outline: none;
}
.ms-admin-search input:focus { border-color: #e74c3c; }
.ms-admin-search button {
    padding: 5px 12px; background: #e74c3c; color: #fff;
    border: none; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer;
}

/* Paginación */

/* Config form */
.ms-cfg-group { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-cfg-label { font-size: 13px; font-weight: 700; color: #555; min-width: 220px; }
.ms-cfg-input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; outline: none; width: 80px; }
.ms-cfg-input:focus { border-color: #e74c3c; }
.ms-cfg-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; outline: none; }
.ms-cfg-select:focus { border-color: #e74c3c; }
.ms-cfg-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.ms-cfg-toggle input { opacity: 0; width: 0; height: 0; }
.ms-cfg-toggle-slider { position: absolute; inset: 0; background: #ddd; border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.ms-cfg-toggle-slider:before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform 0.2s; }
.ms-cfg-toggle input:checked + .ms-cfg-toggle-slider { background: #27ae60; }
.ms-cfg-toggle input:checked + .ms-cfg-toggle-slider:before { transform: translateX(18px); }

.ms-save-btn { padding: 10px 24px; background: #27ae60; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.ms-save-btn:hover { background: #219a52; }

@media (max-width: 600px) {
    .ms-admin-stats { grid-template-columns: repeat(2, 1fr); }
    .ms-admin-table { font-size: 11px; }
}

/* Estado vacío */
.ms-empty {
    text-align: center;
    padding: 20px 10px;
    color: #aaa;
    font-size: 13px;
}
.ms-empty i {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}
.ms-empty p {
    margin: 0;
}
.ms-empty a {
    color: inherit;
    text-decoration: underline;
}