@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

.yararadio-top-ocho-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.header-section {
    text-align: center;
    margin-bottom: 25px;
}

.top-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.title-top {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    display: inline-block;
}

.title-yara {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    display: inline-block;
}

/* Versión mejorada para móviles */
@media (max-width: 768px) {
    .top-title {
        font-size: 20px;
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .title-top {
        font-size: 24px;
    }
    
    .title-yara {
        font-size: 24px;
        margin-left: 0;
    }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .top-title {
        font-size: 18px;
        gap: 5px;
    }
    
    .title-top {
        font-size: 20px;
    }
    
    .title-yara {
        font-size: 20px;
    }
}

.subtitle {
    color: #FFD700;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 5px;
}

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

.top-item {
    display: grid;
    grid-template-columns: 70px 1fr 120px;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-item:hover {
    transform: translateX(5px);
}

.top-item.even {
    background: linear-gradient(90deg, rgba(255,215,0,0.08) 0%, #000000 100%);
    border-right: 3px solid #FFD700;
}

.top-item.odd {
    background: linear-gradient(90deg, rgba(0,102,204,0.08) 0%, #000000 100%);
    border-right: 3px solid #0066CC;
}

.top-item.empty-slot-item {
    background: linear-gradient(90deg, rgba(40,167,69,0.1) 0%, #000000 100%);
    border-right: 3px solid #28a745;
}

.position-number {
    text-align: center;
}

.position-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: #FFD700;
    display: block;
    text-shadow: 0 0 5px rgba(255,215,0,0.3);
}

.trend-indicator {
    font-size: 10px;
    margin-top: 3px;
    display: inline-block;
}

.trend-indicator.up {
    color: #00ff00;
    animation: bounce 1s ease infinite;
}

.trend-indicator.down {
    color: #ff0000;
}

.trend-indicator.same {
    color: #FFD700;
}

.trend-indicator.new {
    color: #ff00ff;
    animation: spin 2s linear infinite;
}

.trend-indicator.empty {
    color: #888;
}

.song-info {
    padding: 0 15px;
}

.song-name {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #fff;
    margin: 0 0 3px 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #FFD700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-name.empty-slot, .artist-name.empty-slot {
    color: #28a745;
    font-style: italic;
    opacity: 0.9;
}

.previous-info {
    text-align: right;
    font-size: 10px;
}

.previous-label {
    color: #888;
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
}

.previous-position {
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-top: 3px;
}

/* Pron贸stico de la Semana */
.pronostico-semana {
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,102,204,0.1));
    border-radius: 12px;
    border: 2px solid #FFD700;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pronostico-semana:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.3);
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(0,102,204,0.15));
}

.pronostico-semana::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.pronostico-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pronostico-emoji {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.pronostico-titulo {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255,215,0,0.5);
}

.pronostico-contenido {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.footer-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,215,0,0.2);
}

.footer-note p {
    color: #666;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
}

/* Animaciones */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .yararadio-top-ocho-container {
        padding: 15px;
    }
    
    .top-title {
        font-size: 20px;
    }
    
    .title-yara {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 9px;
    }
    
    .top-item {
        grid-template-columns: 50px 1fr 90px;
        padding: 8px 10px;
        gap: 5px;
    }
    
    .position-value {
        font-size: 18px;
    }
    
    .song-name {
        font-size: 11px;
    }
    
    .artist-name {
        font-size: 9px;
    }
    
    .previous-info {
        font-size: 8px;
    }
    
    .previous-position {
        font-size: 10px;
    }
    
    .pronostico-titulo {
        font-size: 12px;
    }
    
    .pronostico-contenido {
        font-size: 11px;
    }
    
    .pronostico-emoji {
        font-size: 20px;
    }
    
    .pronostico-header {
        gap: 8px;
    }
}

/* Efecto de brillo en hover */
.top-item:hover .position-value {
    text-shadow: 0 0 15px rgba(255,215,0,0.8);
    animation: pulse 0.5s ease;
}

.trend-indicator.featured {
    color: #FFA500;
    animation: pulse 1.5s ease infinite;
}

.trend-indicator.up {
    color: #00ff00;
    animation: bounce 1s ease infinite;
}

.trend-indicator.down {
    color: #ff0000;
}

.trend-indicator.same {
    color: #FFD700;
}

.trend-indicator.new {
    color: #ff00ff;
    animation: spin 2s linear infinite;
}