/* ======= VARIABLES DE COLOR TEMA ======= */
:root {
    --color-primary: #1e8bb5;
    /* Refined from #493C97 for better text contrast */
    --color-primary-rgb: 30, 139, 181;
    --color-secondary: #d9a924;
    /* Refined from #F6C02A to ensure readable text against it */
    --color-secondary-rgb: 217, 169, 36;
    --color-tertiary: #493C97;
    /* Refined from #32B4E3 for better readability */
    --color-tertiary-rgb: 73, 60, 151;

    /* Backgrounds */
    --color-dark-bg: #ffffff;
    --color-dark-bg-rgb: 255, 255, 255;
    --color-danger: #cc0000;
    --color-danger-rgb: 204, 0, 0;

    /* Text Colors */
    --color-text-main: #1A1A1A;
    /* For highest contrast against light bg */
    --color-text-muted: #4A4A4A;
    /* For secondary text */
}

/* ======= RESETEOS / ESTILOS GENERALES ======= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    font-family: "Roboto", sans-serif;
    background: #f8f9fa;
    color: var(--color-text-main);

}

/* Mejorar legibilidad de textos */
body * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Colores de texto mejorados para contrastes */
.text-muted,
.text-secondary {
    color: var(--color-text-muted) !important;
}

small,
.small {
    color: #555555 !important;
}

/* Bootstrap overrides para mejor contraste */
.form-label {
    color: var(--color-text-main) !important;
    font-weight: 600;
}

.card-title {
    color: var(--color-text-main) !important;
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-main) !important;
}

p {
    color: #333333;
    /* Darker than before for readability on light backgrounds */
}

hr {
    width: 50%;
    margin-top: 17px;
    margin-bottom: 1px;
    opacity: .3;
}

/* ======= PANTALLA DE BIENVENIDA (MENÚ) ======= */
#welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#welcome-screen h1 {
    margin-bottom: 40px;
    font-size: 3rem;
    /* Texto grande */
}

.logo-welcome-screen {
    background-color: #ffffffb8;
    border-radius: 10px;
    padding: 5px 20px;
}

.genre-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.genre-button {
    padding: 10px 15px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

.sub-genre-button {
    padding: 10px 15px;
}

.genre-button:hover,
.genre-button:focus {
    background-color: var(--color-secondary);
    outline: none;
}

/* ======= SECCIÓN DEL REPRODUCTOR ======= */
#player-screen {
    display: none;
    position: relative;
    width: 100%;
    height: 100vh;
    /* pantalla completa */
    background-color: #000;
    overflow: hidden;
}

#player-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100vw;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#player iframe,
#player>div,
#player .video-inner {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}



/* Imagen fija (logo) */
.corner-image {
    opacity: .98;
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 1000;
    width: 180px;
}

.branding-im {
    position: fixed;
    background-color: #ffffffa3;
    padding: 5px 19px;
    border-radius: 10px;
    bottom: 50px;
    right: 20px;
    z-index: 6000;
    width: 105px;
}

/* Botones de navegación (Anterior / Siguiente) */
.nav-button {
    opacity: 0.025;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6000;
    padding: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-button:hover {
    opacity: 1;
    background: var(--color-primary);
    outline: none;
}

.nav-home-button {
    opacity: 0.025;
    position: fixed;
    top: 105px;
    left: 16px;
    transform: translateY(-50%);
    z-index: 6000;
    padding: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-home-button:hover {
    opacity: 1;
    background: var(--color-primary);
    outline: none;
}

.nav-qr-button {
    opacity: 0.025;
    position: fixed;
    top: 195px;
    left: 16px;
    transform: translateY(-50%);
    z-index: 6000;
    padding: 20px;
    background: #599a44;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-qr-button:hover {
    opacity: 1;
    background: #599a44;
    outline: none;
}

.nav-noAds-button {
    opacity: 0.025;
    position: fixed;
    top: 285px;
    left: 15px;
    transform: translateY(-50%);
    z-index: 6000;
    padding: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-noAds-button:hover {
    opacity: 1;
    background: var(--color-primary);
    outline: none;
}

.nav-fs-button {
    opacity: 0.025;
    position: fixed;
    top: 100px;
    right: 19px;
    transform: translateY(-50%);
    z-index: 6000;
    padding: 15px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-fs-button:hover {
    opacity: 1;
    background: var(--color-primary);
    outline: none;
}

.nav-shuffle-button {
    opacity: 0.025;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 6000;
    padding: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.nav-shuffle-button:hover {
    opacity: 1;
    background: var(--color-primary);
    outline: none;
}

#shuffleBtn.active {
    background-color: var(--color-secondary);
    /* Color cuando est�� activado */
}

#homeBtn {
    left: 10px;
}

#prevBtn {
    left: 40px;
}

#nextBtn {
    right: 40px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) url('../img/loading.jpg') center center no-repeat;
    background-size: cover;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Overlays: Full Size ===== */
.overlay-image {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

/* Video overlays - Responsive 16:9 sin recortar */
.overlay-video {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Mantener aspect ratio 16:9 sin recortar */
    background: #000;
    /* Fondo negro para barras letterbox/pillarbox */
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.fade-visible {
    opacity: 1;
}

/* ===== BARRA DE PROGRESO ===== */
#progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999998;
    /* Alto para que los previews (99999999) se vean por encima */
    transition: height 0.2s ease, background 0.2s ease;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-secondary);
    transition: width 0.1s linear, opacity 0.3s;
    pointer-events: none;
}

/* Solo en modo debug: hacer la barra más alta y clickeable */
body.debug-mode #progress-container {
    height: 8px;
    cursor: pointer;
}

body.debug-mode #progress-container:hover {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
}

body.debug-mode #progress-container:hover #progress-bar {
    background: var(--color-secondary);
}


/* Contenedor para marcadores de overlays */
#progress-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.overlay-marker {
    position: absolute;
    top: 0;
    height: 100%;
    /* Ocupa toda la altura de la barra */
    background: var(--color-secondary);
    /* Color del marcador */
    opacity: .8;
}

/* Miniatura de overlay en modo debug */
body.debug-mode .overlay-marker {
    pointer-events: auto;
    /* Habilitar hover solo en modo debug */
    cursor: pointer;
}

.overlay-marker-preview {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999999;
    /* Máxima prioridad - por encima de todo */
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

body.debug-mode .overlay-marker:hover .overlay-marker-preview {
    opacity: 1;
    visibility: visible;
}

.overlay-marker-preview img,
.overlay-marker-preview video {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    background: #000;
}

.overlay-marker-preview-info {
    color: #fff;
    font-size: 11px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(var(--color-secondary-rgb), 0.3);
    text-align: center;
}

.overlay-marker-preview-type {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(var(--color-secondary-rgb), 0.3);
    border-radius: 3px;
    font-weight: bold;
    font-size: 10px;
    margin-right: 5px;
}

.overlay-marker-preview-duration {
    color: var(--color-secondary);
    font-weight: bold;
}

.song-counter {
    position: absolute;
    bottom: 85px;
    right: 20px;
    background: rgb(0, 0, 0);
    color: white;
    padding: 5px 10px;
    font-size: 18px;
    border-radius: 5px;
    z-index: 10000;
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.bg_sections {
    background-color: #2c2c2cb8;
    padding: 20px;
    border-radius: 20px;
}

.ytp-caption-window-container {
    display: none;
}

.video-thumbnail {
    border: 2px solid transparent;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    transition: all 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    border-color: var(--color-secondary);
}

.video-thumbnail:focus {
    outline: none;
    transform: scale(1.05);
    border-color: #ff5722;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.7);
}

.inactive-video {
    opacity: 0.6;
    border: 2px dashed #aaa;
    filter: grayscale(60%);
    position: relative;
}

.inactive-video::after {
    content: "Privado";
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: #333;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.8;
}

/* ===== DEBUG META EN LISTADO ===== */
.debug-meta {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-secondary);
    border-radius: 8px;
    padding: 6px 8px;
}

.debug-meta .text-muted {
    color: var(--color-text-muted) !important;
}

.debug-meta strong {
    color: var(--color-secondary);
}

@keyframes bannerSlideDown {
    from {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes bannerSlideUp {
    from {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }
}

#specialMessageBanner {
    z-index: 9999999;
}

#specialMessageBanner.hiding {
    animation: bannerSlideUp 0.5s ease forwards;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 1920px) {
    #specialMessageBanner {
        width: 90vw !important;
        height: 200px !important;
    }

    #specialMessageText {
        font-size: 2.5rem !important;
    }

    #specialMessageSubtext {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    #specialMessageBanner {
        width: 95vw !important;
        height: 200px !important;
        bottom: 5% !important;
    }

    #specialMessageText {
        font-size: 1.8rem !important;
    }

    #specialMessageSubtext {
        font-size: 1rem !important;
    }
}

/* ======= ESTILOS DE AUTENTICACIÓN (LOGIN) ======= */
.auth-body {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark-bg) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 420px;
    width: 100%;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-title {
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.auth-form-control {
    background: #fafafa;
    border: 1px solid #ced4da;
    color: var(--color-text-main);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.auth-form-control:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.auth-form-control::placeholder {
    color: var(--color-text-muted);
}

.btn-login {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    border: none;
    color: #ffffff;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--color-primary-rgb), 0.4);
    color: #ffffff;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group-text {
    background: #fafafa;
    border: 1px solid #ced4da;
    color: var(--color-text-muted);
    border-right: none;
}

.auth-input-group .auth-form-control {
    border-left: none;
}

.auth-info-text {
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.auth-info-text strong {
    color: var(--color-secondary);
}

.auth-divider {
    height: 1px;
    background: #404040;
    margin: 30px 0;
}

/* ======= ESTILOS ESPECÍFICOS PARA PÁGINAS DE ADMINISTRACIÓN ======= */
.admin-body {
    background-color: #f8f9fa;
    color: #333333;
}

.admin-navbar {
    background: #0f0f0f !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333333;
    padding: 15px 20px;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    background-color: rgba(0, 0, 0, 0.03);
    color: #555555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.admin-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table tbody td strong {
    color: var(--color-text-main) !important;
}

.admin-badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
}

.admin-form-control,
.admin-form-select {
    background: #ffffff;
    border: 1px solid #ced4da;
    color: var(--color-text-main);
}

.admin-form-control:focus,
.admin-form-select:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.admin-form-control::placeholder {
    color: var(--color-text-muted);
}

.admin-form-check-input {
    background-color: #ffffff;
    border-color: #ced4da;
}

.admin-form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.admin-form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.form-check-label {
    color: var(--color-text-main) !important;
}

.admin-btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
}

.admin-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-primary) 100%);
    color: #ffffff;
}

.admin-modal-content {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
}

.admin-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

.admin-modal-header .modal-title {
    color: #111111 !important;
}

.admin-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-btn-close {
    filter: invert(1) brightness(1.5);
}

.admin-alert {
    border-radius: 8px;
}

/* ======= ESTILOS DE DIAGNÓSTICO ======= */
.diag-body {
    background: var(--color-dark-bg);
    color: #333333;
    padding: 20px;
}

.diag-card {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.diag-card-header {
    background: var(--color-dark-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
}

.diag-card-header h5 {
    color: #111111 !important;
}

.diag-badge {
    padding: 0.5em 0.8em;
}

.diag-pre {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #e0e0e0;
}

.diag-pre code {
    color: #e0e0e0;
}

/* ======= ESTILOS GENERALES COMPARTIDOS ======= */
.dark-theme-text {
    color: #333333;
}

.dark-theme-bg {
    background: var(--color-dark-bg);
}

.dark-theme-card {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme-border {
    border-color: rgba(0, 0, 0, 0.1);
}

.gradient-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 100%);
    border: none;
    color: #000;
    transition: all 0.3s;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--color-secondary-rgb), 0.4);
}

/* ======= ESTILOS DE COLAS (QUEUES) ======= */
.queues-body {
    background: var(--color-dark-bg);
    color: #333333;
}

.queues-navbar {
    background: var(--color-dark-bg) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.queues-container {
    padding: 2rem 0;
}

.queues-header {
    margin-bottom: 2rem;
}

.queues-header h1 {
    color: #111111 !important;
    font-weight: 700;
}

.queues-header p {
    color: #666666;
    margin-bottom: 0;
}

.queues-card {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.queues-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 20px rgba(var(--color-secondary-rgb), 0.15);
}

.queues-card-body {
    padding: 1.5rem;
}

.queues-card-title {
    color: #111111 !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.queues-card-text {
    color: #d0d0d0;
}

.queues-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.queues-stat-item {
    background: var(--color-dark-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.queues-stat-label {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.queues-stat-value {
    color: #111111 !important;
    font-size: 1.5rem;
    font-weight: 600;
}

.queues-badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

.queues-btn-outline-primary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background: transparent;
}

.queues-btn-outline-primary:hover {
    color: #000;
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.queues-btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

.queues-btn-outline-danger:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

.queues-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.queues-empty-state h3 {
    color: #111111 !important;
    margin-bottom: 1rem;
}

.queues-empty-state p {
    color: #666666;
}

/* Mejorar contraste de badges de Bootstrap */
.badge {
    font-weight: 600;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: var(--color-secondary) !important;
    color: #000 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-info {
    background-color: var(--color-tertiary) !important;
}

.bg-primary {
    background-color: var(--color-secondary) !important;
    color: #000 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Mejorar contraste de botones de Bootstrap */
.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #000;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.btn-warning {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #000;
}

.btn-info {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: #fff;
}

.btn-info:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    color: #fff;
}

/* ======= ESTILOS DE PLAYERS (ESTADÍSTICAS DE REPRODUCTORES) ======= */
.players-body {
    background: var(--color-dark-bg);
    color: #333333;
}

.players-wrap {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 12px;
}

.players-header {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, var(--color-dark-bg) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.players-header h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #111111 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.players-header p {
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
}

.player-card {
    background: var(--color-dark-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}

.player-card:hover {
    border-color: #28a745;
    background: var(--color-dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    color: inherit;
    text-decoration: none;
}

.player-card.active {
    border-left: 4px solid #28a745;
}

.player-card.inactive {
    opacity: 0.6;
    border-left: 4px solid #6c757d;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.player-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111111 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-icon {
    width: 48px;
    height: 48px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.player-card.inactive .player-icon {
    background: #6c757d;
}

.player-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1rem;
    color: #111111 !important;
    font-weight: 500;
}

.badge-custom {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #28a745;
    color: #fff;
}

.badge-inactive {
    background: #6c757d;
    color: #fff;
}

.badge-shuffle {
    background: #9b59b6;
    color: #fff;
}

.badge-ordered {
    background: #3498db;
    color: #fff;
}

.empty-state {
    background: var(--color-dark-bg);
    border: 2px dashed #404040;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    color: #666666;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #888;
}

.btn-refresh {
    background: #28a745;
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #218838;
    transform: scale(1.05);
    color: #fff;
}

.stats-bar {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #e0e0e0;
}

.stat i {
    color: #28a745;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.now-playing-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #404040;
    margin-left: 1rem;
    flex-shrink: 0;
}

.current-video {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.current-video-title {
    flex: 1;
    color: #333333;
    font-size: 0.9rem;
}

.current-video-id {
    color: #666666;
    font-size: 0.75rem;
}

.btn-delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    z-index: 10;
}

.player-card:hover .btn-delete {
    opacity: 0.7;
}

.btn-delete:hover {
    opacity: 1 !important;
    background: #c82333;
    transform: scale(1.1);
}

.btn-delete:active {
    transform: scale(0.95);
}

.player-video-icon {
    color: #28a745;
}

.player-arrow-icon {
    font-size: 1.5rem;
    color: #28a745;
}

.player-session-id {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flex-1 {
    flex: 1;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-info,
.text-tertiary {
    color: var(--color-tertiary) !important;
}

.bg-tertiary {
    background-color: var(--color-tertiary) !important;
}