/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0000 0%, #1a0000 25%, #330000 50%, #1a0000 75%, #0a0000 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Fondo con texto decorativo mejorado */
body::before {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2.5rem;
    color: rgba(255, 0, 0, 0.08);
    font-weight: 300;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.15);
    animation: floatBackground 20s ease-in-out infinite;
}

/* Partículas de fondo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    z-index: -1;
    pointer-events: none;
    animation: particleFloat 30s linear infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(-50%, -50%) rotate(-15deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(-15deg) scale(1.05); }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-15px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Header Principal Mejorado */
.header {
    background: linear-gradient(180deg, #000000 0%, #1a0000 50%, #000000 100%);
    padding: 25px 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #ff0000, #ff3333, #ff0000, transparent) 1;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.4),
        0 5px 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 0, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Indicador de Día Mejorado */
.day-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out;
}

.day-circle {
    width: 90px;
    height: 90px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: 
        linear-gradient(145deg, #1a1a1a, #000000),
        linear-gradient(145deg, #ff0000, #ff3333);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 0, 0.3),
        0 0 30px rgba(255, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.day-circle:hover {
    transform: scale(1.1);
    box-shadow: 
        inset 0 0 40px rgba(255, 0, 0, 0.4),
        0 0 50px rgba(255, 0, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.8);
}

.day-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #ff0000;
    border-radius: 50%;
    animation: pulseRing 3s infinite;
    opacity: 0.7;
}

.day-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.9),
        0 0 40px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.day-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* Redes Sociales Header Mejoradas */
.social-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.social-message {
    text-align: center;
}

.social-message-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.social-header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid transparent;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-header-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-header-link:hover::before {
    left: 100%;
}

.social-header-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-header-link.instagram {
    border-color: rgba(225, 48, 108, 0.5);
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(0, 0, 0, 0.8));
}

.social-header-link.instagram:hover {
    border-color: #e1306c;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(0, 0, 0, 0.8));
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.social-header-link.youtube {
    border-color: rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.social-header-link.youtube:hover {
    border-color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.social-header-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.social-header-link:hover .social-header-icon {
    transform: scale(1.2) rotate(5deg);
}

.social-header-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contenedor Principal */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Panel de Concursantes Mejorado */
.contestants-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 0, 0, 0.9)),
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contestants-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff0000);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.contestants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Tarjetas de Concursantes Mejoradas */
.contestant-card {
    background: 
        linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 26, 0.8)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.05), transparent);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardEntrance 0.8s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
    opacity: 0;
    transform: translateY(30px);
}

/* Animación de entrada para las tarjetas */
@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contestant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.5), rgba(255, 51, 51, 0.3), rgba(255, 0, 0, 0.5));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contestant-card:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contestant-card:hover::before {
    opacity: 1;
}

/* Animación mejorada cuando el concursante recibe puntos */
.contestant-card.points-received {
    animation: pointsReceivedNew 2s ease-in-out;
    transform: scale(1.2) translateY(-20px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(255, 215, 0, 0.9),
        0 0 120px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    background: 
        linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(0, 0, 0, 0.8)),
        radial-gradient(circle at center, rgba(255, 215, 0, 0.2), transparent);
}

@keyframes pointsReceivedNew {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    15% {
        transform: scale(1.3) translateY(-25px) rotate(2deg);
        filter: brightness(1.5);
    }
    30% {
        transform: scale(1.25) translateY(-20px) rotate(-1deg);
        filter: brightness(1.3);
    }
    60% { 
        transform: scale(1.2) translateY(-18px);
        filter: brightness(1.2);
    }
    100% { 
        transform: scale(1.2) translateY(-20px);
        filter: brightness(1.1);
    }
}

.contestant-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.contestant-card:hover .contestant-name {
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.4);
    color: #ff3333;
}

.contestant-photo {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
    position: relative;
}

.profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid transparent;
    object-fit: cover;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, #ff0000, #ff3333);
    padding: 3px;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #ff3333, #ff0000);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.8),
        inset 0 0 30px rgba(255, 0, 0, 0.2);
}

.profile-img:hover::before {
    opacity: 1;
}

.contestant-score {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.contestant-card:hover .contestant-score {
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.4);
    color: #ff3333;
    transform: scale(1.1);
}

/* Leyenda del Sistema de Puntuación Mejorada */
.scoring-legend {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6)),
        radial-gradient(circle at bottom left, rgba(255, 0, 0, 0.1), transparent);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scoring-legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 51, 51, 0.2), rgba(255, 0, 0, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.legend-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.4);
    position: relative;
}

.legend-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff3333);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.legend-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff0000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.legend-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Estilo específico para la sección de distribución de puntos mejorado */
.distribution-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 0, 0.4);
    grid-template-columns: 1fr; /* Una sola columna para esta sección */
    position: relative;
}

.distribution-info::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff3333);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.distribution-info .legend-item {
    background: 
        linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 0, 0, 0.08)),
        radial-gradient(circle at top right, rgba(255, 51, 51, 0.1), transparent);
    padding: 18px;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.distribution-info .legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(255, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.distribution-info .legend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff0000, #ff3333);
    border-radius: 0 0 0 15px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.distribution-info .legend-label {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.distribution-info .legend-value {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateX(3px);
}

.legend-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.legend-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #cccccc;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Disclaimer Legal Mejorado */
.disclaimer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.disclaimer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.disclaimer-content {
    padding: 20px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.disclaimer-content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.disclaimer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.7));
    border-radius: 0 0 0 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.disclaimer-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    text-align: left;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.disclaimer-text strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Responsive Mejorado */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 15px;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .day-circle {
        width: 80px;
        height: 80px;
    }
    
    .day-number {
        font-size: 2.4rem;
    }
    
    .social-links {
        gap: 25px;
    }
    
    /* Pestañas responsive */
    .tabs-header {
        padding: 18px;
        gap: 15px;
    }
    
    .tab-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* SuperChats responsive */
    .superchats-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .superchats-controls {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    body::before {
        font-size: 1.8rem;
        transform: translate(-50%, -50%) rotate(-10deg);
    }
    
    .header {
        padding: 20px 0;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .contestant-card {
        min-height: 200px;
        padding: 18px 12px;
    }
    
    .profile-img {
        width: 90px;
        height: 90px;
    }
    
    .contestant-name {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .contestant-score {
        font-size: 1.1rem;
    }
    
    .legend-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .distribution-info .legend-label {
        font-size: 1rem;
    }
    
    .distribution-info .legend-value {
        font-size: 0.9rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .day-circle {
        width: 70px;
        height: 70px;
    }
    
    .day-number {
        font-size: 2.2rem;
    }
    
    .day-text {
        font-size: 1.4rem;
    }
    
    .social-header {
        gap: 15px;
    }
    
    .social-message-text {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-header-link {
        padding: 12px 20px;
    }
    
    .social-header-text {
        font-size: 1rem;
    }
    
    .social-header-icon {
        width: 35px;
        height: 35px;
    }
    
    .scoring-legend {
        padding: 20px;
        margin-top: 25px;
    }
    
    .legend-header h3 {
        font-size: 1rem;
    }
    
    /* Pestañas responsive */
    .tabs-header {
        padding: 15px;
        gap: 12px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .tab-icon {
        font-size: 1.1rem;
    }
    
    /* SuperChats responsive */
    .superchats-panel {
        padding: 25px 20px;
        min-height: 500px;
    }
    
    .superchats-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .superchats-title h2 {
        font-size: 1.3rem;
    }
    
    .superchats-stats {
        gap: 15px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .superchats-controls {
        gap: 10px;
    }
    
    .control-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .superchats-container {
        height: 400px;
    }
    
    .superchats-list {
        padding: 15px;
        gap: 12px;
    }
    
    .superchat-item {
        padding: 12px;
    }
    
    .superchat-author {
        font-size: 0.85rem;
    }
    
    .superchat-amount {
        font-size: 0.9rem;
    }
    
    .superchat-message {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body::before {
        font-size: 1.4rem;
        transform: translate(-50%, -50%) rotate(-8deg);
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 0 15px;
        gap: 20px;
    }
    
    .main-container {
        padding: 30px 15px;
        gap: 30px;
    }
    
    .contestants-panel {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contestant-card {
        padding: 15px 10px;
        min-height: 180px;
        border-radius: 15px;
    }
    
    .profile-img {
        width: 70px;
        height: 70px;
    }
    
    .contestant-name {
        font-size: 0.75rem;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    
    .contestant-score {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .day-circle {
        width: 60px;
        height: 60px;
    }
    
    .day-number {
        font-size: 1.8rem;
    }
    
    .day-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    /* Redes sociales responsive mejoradas */
    .social-header {
        gap: 12px;
    }
    
    .social-message-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .social-header-link {
        padding: 10px 20px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        border-radius: 25px;
    }
    
    .social-header-text {
        font-size: 0.9rem;
    }
    
    .social-header-icon {
        width: 30px;
        height: 30px;
    }
    
    /* Leyenda responsive mejorada */
    .scoring-legend {
        padding: 18px;
        margin-top: 20px;
        border-radius: 15px;
    }
    
    .legend-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .legend-header h3 {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    
    .legend-content {
        gap: 12px;
    }
    
    .legend-label {
        font-size: 0.85rem;
    }
    
    .legend-value {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .distribution-info {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .distribution-info .legend-item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .distribution-info .legend-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .distribution-info .legend-value {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Disclaimer responsive mejorado */
    .disclaimer {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .disclaimer-content {
        padding: 15px;
        border-radius: 12px;
        text-align: center;
    }
    
    .disclaimer-text {
        font-size: 0.8rem;
        line-height: 1.5;
        padding-left: 12px;
    }
    
    /* Pestañas responsive móvil */
    .tabs-header {
        padding: 12px;
        gap: 8px;
        flex-direction: column;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* SuperChats responsive móvil */
    .superchats-panel {
        padding: 20px 15px;
        min-height: 450px;
        border-radius: 20px;
    }
    
    .superchats-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .superchats-title h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .superchats-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .superchats-controls {
        justify-content: center;
        gap: 8px;
    }
    
    .control-button {
        padding: 8px 15px;
        font-size: 0.8rem;
        flex: 1;
        max-width: 120px;
    }
    
    .control-icon {
        font-size: 0.9rem;
    }
    
    .superchats-container {
        height: 350px;
        border-radius: 12px;
    }
    
    .superchats-list {
        padding: 12px;
        gap: 10px;
    }
    
    .superchat-item {
        padding: 12px;
        border-radius: 12px;
    }
    
    .superchat-header {
        margin-bottom: 8px;
    }
    
    .superchat-author {
        font-size: 0.8rem;
    }
    
    .superchat-amount {
        font-size: 0.85rem;
    }
    
    .superchat-message {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .superchat-footer {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .no-superchats-icon {
        font-size: 2.5rem;
    }
    
    .no-superchats-text {
        font-size: 1.1rem;
    }
    
    .no-superchats-subtext {
        font-size: 0.9rem;
    }
    
    /* Animaciones optimizadas para móvil */
    .contestant-card:hover {
        transform: translateY(-8px) scale(1.05);
    }
    
    .profile-img:hover {
        transform: scale(1.1) rotate(3deg);
    }
    
    .contestant-card.points-received {
        transform: scale(1.15) translateY(-15px);
    }
}

/* Optimización para pantallas muy pequeñas */
@media (max-width: 360px) {
    .contestants-grid {
        gap: 12px;
    }
    
    .contestant-card {
        padding: 12px 8px;
        min-height: 160px;
    }
    
    .profile-img {
        width: 60px;
        height: 60px;
    }
    
    .contestant-name {
        font-size: 0.7rem;
    }
    
    .contestant-score {
        font-size: 0.9rem;
    }
    
    .social-header-link {
        padding: 8px 15px;
        max-width: 250px;
    }
    
    .social-header-text {
        font-size: 0.8rem;
    }
    
    .scoring-legend {
        padding: 15px;
    }
    
    .distribution-info .legend-item {
        padding: 12px;
    }
    
    .disclaimer-content {
        padding: 12px;
    }
    
    /* Pestañas muy pequeñas */
    .tab-button {
        padding: 10px 15px;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    /* SuperChats muy pequeñas */
    .superchats-panel {
        padding: 15px 12px;
    }
    
    .superchats-title h2 {
        font-size: 1.1rem;
    }
    
    .superchats-container {
        height: 300px;
    }
    
    .control-button {
        padding: 6px 10px;
        font-size: 0.75rem;
        max-width: 100px;
    }
} 

/* Sistema de Pestañas */
.tabs-container {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.tabs-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 51, 51, 0.2), rgba(255, 0, 0, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(26, 26, 26, 0.5)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.05), transparent);
    border: 2px solid transparent;
    border-radius: 15px;
    color: #cccccc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.3);
}

.tab-button.active {
    background: 
        linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 51, 51, 0.1)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.15), transparent);
    border-color: #ff0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff3333, #ff0000);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.tab-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.tab-button:hover .tab-icon {
    transform: scale(1.2) rotate(5deg);
}

.tab-button.active .tab-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
}

.tab-text {
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tab-button.active .tab-text {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

/* Contenido de Pestañas */
.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

/* Panel de SuperChats */
.superchats-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 0, 0, 0.9)),
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.superchats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff0000);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.superchats-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.superchats-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff3333);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.superchats-title h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 0, 0, 0.2);
}

.superchats-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar para SuperChats */
.superchats-container::-webkit-scrollbar {
    width: 6px;
}

.superchats-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.superchats-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0000, #ff3333);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.superchats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-superchats {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-superchats-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.no-superchats-subtext {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* SuperChat Item - COMPACTO Y MEJORADO */
.superchat-item {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(26, 26, 26, 0.5)),
        radial-gradient(circle at left, rgba(255, 0, 0, 0.05), transparent);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.5s ease-out;
}

.superchat-item:hover {
    transform: translateX(-3px);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.2);
}

/* Header del SuperChat - MÁS COMPACTO */
.superchat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.superchat-author {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Montos con colores según valor */
.superchat-amount {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Colores según monto USD */
.superchat-amount.tier-1 { /* $1-4.99 */
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #ffffff;
    border: 1px solid rgba(30, 136, 229, 0.5);
}

.superchat-amount.tier-2 { /* $5-9.99 */
    background: linear-gradient(135deg, #00acc1, #00838f);
    color: #ffffff;
    border: 1px solid rgba(0, 172, 193, 0.5);
}

.superchat-amount.tier-3 { /* $10-19.99 */
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #ffffff;
    border: 1px solid rgba(67, 160, 71, 0.5);
}

.superchat-amount.tier-4 { /* $20-49.99 */
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
    color: #ffffff;
    border: 1px solid rgba(251, 140, 0, 0.5);
}

.superchat-amount.tier-5 { /* $50-99.99 */
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #ffffff;
    border: 1px solid rgba(229, 57, 53, 0.5);
}

.superchat-amount.tier-6 { /* $100+ */
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
    color: #ffffff;
    border: 1px solid rgba(142, 36, 170, 0.5);
    box-shadow: 0 0 15px rgba(142, 36, 170, 0.4);
}

/* Conversión de moneda */
.superchat-conversion {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* Mensaje del SuperChat */
.superchat-message {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Footer del SuperChat - MÁS COMPACTO */
.superchat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.superchat-contestants {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.superchat-contestants.sin-clasificar {
    color: #ff6b6b;
    font-style: italic;
}

/* Imágenes de participantes en SuperChats */
.contestants-images {
    display: flex;
    gap: 4px;
    align-items: center;
}

.contestant-mini-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: all 0.2s ease;
}

.contestant-mini-img:hover {
    transform: scale(1.2);
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Para múltiples participantes, hacer las imágenes un poco más pequeñas */
.contestants-images.multiple .contestant-mini-img {
    width: 18px;
    height: 18px;
}

/* Texto de participantes */
.contestants-text {
    font-size: 0.75rem;
}

.superchat-time {
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

/* Switch de Vista */
.view-switch {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.switch-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 51, 51, 0.2), rgba(255, 0, 0, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.switch-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.switch-label.active {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(26, 26, 26, 0.5)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 25px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 0, 0, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 3px;
    top: 3px;
    background: 
        linear-gradient(145deg, #ffffff, #e0e0e0),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.1), transparent);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

input:checked + .slider {
    background: 
        linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 51, 51, 0.2)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.2), transparent);
    border-color: #ff0000;
    box-shadow: 
        inset 0 2px 10px rgba(255, 0, 0, 0.2),
        0 0 25px rgba(255, 0, 0, 0.5);
}

input:checked + .slider:before {
    transform: translateX(40px);
    background: 
        linear-gradient(145deg, #ff0000, #ff3333),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    box-shadow: 
        0 4px 15px rgba(255, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* Vista Combinada */
.live-view {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    min-height: 600px;
}

/* Panel de SuperChats (Izquierda) */
.live-view .superchats-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 0, 0, 0.9)),
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.live-view .superchats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff0000);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Panel de Tabla Lista (Derecha) */
.positions-list-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 0, 0, 0.9)),
        radial-gradient(circle at top left, rgba(255, 0, 0, 0.1), transparent);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 25px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.positions-list-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, #ff0000, #ff3333, #ff0000);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.positions-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

.positions-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff3333);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.positions-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ff0000;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.3);
}

.positions-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

/* Scrollbar para lista de posiciones */
.positions-list::-webkit-scrollbar {
    width: 6px;
}

.positions-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.positions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0000, #ff3333);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* Item de Posición */
.position-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(26, 26, 26, 0.4)),
        radial-gradient(circle at left, rgba(255, 0, 0, 0.05), transparent);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.6s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
    opacity: 0;
    transform: translateX(30px);
}

.position-item:hover {
    transform: translateX(-3px);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.2);
}

.position-rank {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    min-width: 25px;
    text-align: center;
}

.position-avatar {
    flex-shrink: 0;
}

.position-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, 0.3);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.position-img:hover {
    transform: scale(1.1);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.position-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.position-score {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 

/* Responsive Design */

/* Pantallas grandes (escritorio) */
@media (max-width: 1200px) {
    .main-container {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Vista combinada responsive */
    .live-view {
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
    
    .positions-list-panel {
        padding: 20px;
    }
    
    .positions-header h2 {
        font-size: 1.1rem;
    }
    
    .position-item {
        padding: 8px;
        gap: 10px;
    }
    
    .position-img {
        width: 35px;
        height: 35px;
    }
    
    .position-name {
        font-size: 0.8rem;
    }
    
    .position-score {
        font-size: 0.75rem;
    }
}

/* Tablets y Móviles - Layout VERTICAL */
@media (max-width: 768px) {
    .main-container {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .contestant-card {
        padding: 20px 15px;
    }
    
    .contestant-name {
        font-size: 1.1rem;
    }
    
    .contestant-score {
        font-size: 1.3rem;
    }
    
    .profile-img {
        width: 80px;
        height: 80px;
    }
    
    /* Vista combinada COMPLETAMENTE VERTICAL */
    .live-view:not([style*="display: none"]) {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        min-height: auto;
        grid-template-columns: none !important; /* Eliminar grid */
    }
    
    /* Asegurar que se respete display: none */
    .live-view[style*="display: none"] {
        display: none !important;
    }
    
    .positions-list-panel {
        order: 1; /* Tabla ARRIBA */
        width: 100% !important;
        padding: 20px;
    }
    
    .live-view .superchats-panel {
        order: 2; /* Chat ABAJO */
        width: 100% !important;
        padding: 20px;
        min-height: 400px;
    }
    
    .positions-list {
        max-height: 300px;
    }
    
    .superchats-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .superchats-controls {
        justify-content: center;
    }
    
    /* Switch responsive */
    .switch-container {
        padding: 15px;
        gap: 15px;
    }
    
    .switch-label {
        font-size: 1rem;
    }
    
    .switch {
        width: 70px;
        height: 35px;
    }
    
    .slider:before {
        height: 27px;
        width: 27px;
        left: 2px;
        top: 2px;
    }
    
    input:checked + .slider:before {
        transform: translateX(35px);
    }
}

/* Móviles - Layout VERTICAL FORZADO */
@media (max-width: 480px) {
    .main-container {
        padding: 20px 10px;
        gap: 15px;
    }
    
    .contestants-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .contestant-card {
        padding: 15px 10px;
    }
    
    .contestant-name {
        font-size: 1rem;
    }
    
    .contestant-score {
        font-size: 1.2rem;
    }
    
    .profile-img {
        width: 70px;
        height: 70px;
    }
    
    /* Vista combinada móvil - SOLO VERTICAL */
    .live-view:not([style*="display: none"]) {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        grid-template-columns: none !important;
    }
    
    /* Asegurar que se respete display: none en móvil */
    .live-view[style*="display: none"] {
        display: none !important;
    }
    
    .positions-list-panel {
        order: 1 !important; /* Tabla ARRIBA siempre */
        width: 100% !important;
        padding: 15px;
        border-radius: 15px;
    }
    
    .live-view .superchats-panel {
        order: 2 !important; /* Chat ABAJO siempre */
        width: 100% !important;
        padding: 15px;
        border-radius: 15px;
        min-height: 350px;
    }
    
    .positions-list {
        max-height: 250px;
    }
    
    .position-item {
        padding: 6px;
        gap: 8px;
    }
    
    .position-img {
        width: 30px;
        height: 30px;
    }
    
    .position-name {
        font-size: 0.75rem;
    }
    
    .position-score {
        font-size: 0.7rem;
    }
    
    .position-rank {
        font-size: 0.9rem;
        min-width: 20px;
    }
    
    .positions-header h2 {
        font-size: 1rem;
    }
    
    .positions-subtitle {
        font-size: 0.8rem;
    }
    
    /* SuperChats móvil */
    .superchats-header h2 {
        font-size: 1.1rem;
    }
    
    .superchats-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .control-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .superchat-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .superchat-author {
        font-size: 0.8rem;
    }
    
    .superchat-amount {
        font-size: 0.9rem;
    }
    
    .superchat-message {
        font-size: 0.8rem;
    }
    
    .superchat-contestants,
    .superchat-time {
        font-size: 0.7rem;
    }
    
    /* Switch móvil */
    .switch-container {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .switch-label {
        font-size: 0.9rem;
    }
    
    .switch {
        width: 60px;
        height: 30px;
    }
    
    .slider:before {
        height: 22px;
        width: 22px;
        left: 2px;
        top: 2px;
    }
    
    input:checked + .slider:before {
        transform: translateX(30px);
    }
}

/* Móviles muy pequeños - VERTICAL EXTREMO */
@media (max-width: 360px) {
    .main-container {
        padding: 15px 8px;
    }
    
    .contestants-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contestant-card {
        padding: 12px 8px;
    }
    
    .profile-img {
        width: 60px;
        height: 60px;
    }
    
    /* Vista combinada muy pequeña - FORZAR VERTICAL */
    .live-view:not([style*="display: none"]) {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }
    
    /* Asegurar que se respete display: none en pantallas muy pequeñas */
    .live-view[style*="display: none"] {
        display: none !important;
    }
    
    .positions-list-panel {
        order: 1 !important;
        width: 100% !important;
        padding: 12px;
    }
    
    .live-view .superchats-panel {
        order: 2 !important;
        width: 100% !important;
        padding: 12px;
        min-height: 300px;
    }
    
    .positions-list {
        max-height: 200px;
    }
    
    .position-item {
        padding: 5px;
        gap: 6px;
    }
    
    .position-img {
        width: 25px;
        height: 25px;
    }
    
    .position-name {
        font-size: 0.7rem;
    }
    
    .position-score {
        font-size: 0.65rem;
    }
    
    .position-rank {
        font-size: 0.8rem;
        min-width: 18px;
    }
    
    /* Footer responsive */
    .footer {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 4px;
        padding: 10px 15px;
        max-width: 250px;
    }
    
    .powered-by {
        font-size: 0.8rem;
    }
    
    .creator-name {
        font-size: 0.9rem;
    }
}

/* Forzar ocultamiento de vistas según el switch */
#superchats-view[style*="display: none"] {
    display: none !important;
}

#puntuaciones-view[style*="display: none"] {
    display: none !important;
}

/* Animaciones para cambios de posición */
@keyframes positionUp {
    0% {
        transform: translateY(0);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.1));
        box-shadow: 
            0 20px 40px rgba(0, 255, 0, 0.3),
            0 0 30px rgba(0, 255, 0, 0.4);
        border-color: rgba(0, 255, 0, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

@keyframes positionDown {
    0% {
        transform: translateY(0);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateY(20px) scale(0.95);
        background: linear-gradient(135deg, rgba(255, 100, 0, 0.2), rgba(255, 50, 0, 0.1));
        box-shadow: 
            0 5px 20px rgba(255, 100, 0, 0.3),
            0 0 20px rgba(255, 100, 0, 0.3);
        border-color: rgba(255, 100, 0, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 0, 0, 0.6));
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

@keyframes positionMove {
    0% {
        transform: translateX(0) scale(1);
        z-index: 1;
    }
    25% {
        transform: translateX(-10px) scale(1.02);
        z-index: 10;
        box-shadow: 
            0 15px 35px rgba(255, 0, 0, 0.4),
            0 0 25px rgba(255, 0, 0, 0.3);
    }
    75% {
        transform: translateX(10px) scale(1.02);
        z-index: 10;
        box-shadow: 
            0 15px 35px rgba(255, 0, 0, 0.4),
            0 0 25px rgba(255, 0, 0, 0.3);
    }
    100% {
        transform: translateX(0) scale(1);
        z-index: 1;
    }
}

/* Clases para aplicar las animaciones */
.contestant-card.moving-up,
.position-item.moving-up {
    animation: positionUp 1.5s ease-out;
    z-index: 10;
}

.contestant-card.moving-down,
.position-item.moving-down {
    animation: positionDown 1.5s ease-out;
    z-index: 10;
}

.contestant-card.position-changed,
.position-item.position-changed {
    animation: positionMove 1s ease-in-out;
    z-index: 10;
}

/* Efecto especial para el primer lugar */
@keyframes crownEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    25% {
        transform: scale(1.08);
        box-shadow: 
            0 20px 50px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.5),
            inset 0 0 20px rgba(255, 215, 0, 0.1);
        border-color: rgba(255, 215, 0, 0.8);
    }
    50% {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

.contestant-card.new-leader,
.position-item.new-leader {
    animation: crownEffect 2s ease-in-out;
    z-index: 15;
}

/* Transiciones suaves para reordenamiento */
.contestant-card,
.position-item {
    transition: 
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Efecto de reordenamiento suave */
.contestants-grid,
.positions-list {
    transition: all 0.6s ease;
}

.contestants-grid.reordering,
.positions-list.reordering {
    pointer-events: none;
}

.contestants-grid.reordering .contestant-card,
.positions-list.reordering .position-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(26, 0, 0, 0.4)),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.05), transparent);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 300px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 51, 51, 0.1), rgba(255, 0, 0, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.footer-content:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.powered-by {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-name {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #ff0000;
    text-shadow: 
        0 0 10px rgba(255, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
}

.creator-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-content:hover .creator-name::after {
    opacity: 1;
}

/* Estilos para progresión de puntos */
.contestants-text {
    line-height: 1.4;
}

.contestants-text br {
    margin-bottom: 2px;
}

/* Resaltar los números en la progresión */
.contestants-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Notificación de nuevos SuperChats */
.new-chats-notification {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    z-index: 100;
    animation: slideInDown 0.3s ease-out;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.new-chats-text {
    font-size: 0.9rem;
}

.new-chats-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.new-chats-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Asegurar que el contenedor tenga posición relativa */
.superchats-container {
    position: relative;
}

/* Indicador de estado del monitor */
.monitor-status {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-dot {
    font-size: 0.9rem;
    line-height: 1;
}

.status-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.5px;
}

.status-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.status-detail {
    font-weight: 500;
}

.status-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Responsive para indicador de estado */
@media (max-width: 768px) {
    .status-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .status-separator {
        display: none;
    }
    
    .monitor-status {
        padding: 10px 12px;
    }
}

/* Modal de Historial de SuperChats */
.contestant-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
    border: 2px solid #ff0000;
    border-radius: 15px;
    box-shadow: 
        0 0 50px rgba(255, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1), transparent);
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.1);
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    max-height: 60vh;
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: historyItemSlideIn 0.5s ease-out;
}

.history-item:hover {
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.history-author {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.history-amount {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.history-message {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.4;
    font-style: italic;
}

.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.history-conversion {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.history-time {
    font-weight: 500;
}

.history-points {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6666;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.05));
}

.instagram-btn, .load-more-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.instagram-btn:hover, .load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff3333, #ff0000);
}

.load-more-btn {
    background: linear-gradient(135deg, #333333, #666666);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #444444, #777777);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-history-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-history-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.no-history-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animaciones del modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes historyItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .contestant-history-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .history-list {
        padding: 15px 20px;
        max-height: 50vh;
    }
    
    .history-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .instagram-btn, .load-more-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* Scrollbar personalizado para el historial */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.3);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.5);
}

