/* Contenedor principal */
.latino-chart-container {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Tabla */
.latino-chart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: white;
    table-layout: fixed;
}

/* Cabecera */
.latino-chart-table thead {
    background: linear-gradient(90deg, #FF6B00 0%, #FF0080 100%);
}

.latino-chart-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filas */
.latino-chart-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.latino-chart-table td {
    padding: 14px 20px;
    vertical-align: middle;
}

/* CELDAS DE PUESTO - JERARQUÍA DE TAMAÑOS */

/* AJUSTE DE COLUMNA "PUESTO" - VERSIÓN COMPACTA */
.latino-chart-table {
    table-layout: auto; /* Cambiado de 'fixed' a 'auto' */
}

.latino-chart-table td:first-child {
    width: auto !important; /* Ancho automático */
    min-width: 30px; /* Mínimo para 2 dígitos */
    max-width: 50px; /* Máximo permitido */
    padding: 14px 8px !important; /* Padding reducido */
    text-align: center;
}

/* Ajuste fino para números */
.latino-chart-table td:first-child {
    font-size: 16px;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Puesto 1 - Oro */
.latino-chart-table tr:nth-child(1) td:first-child {
    font-size: 50px !important;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Puesto 2 - Plata */
.latino-chart-table tr:nth-child(2) td:first-child {
    font-size: 40px !important;
    color: #C0C0C0;
    text-shadow: 0 0 6px rgba(192, 192, 192, 0.5);
}

/* Puesto 3 - Bronce */
.latino-chart-table tr:nth-child(3) td:first-child {
    font-size: 30px !important;
    color: #CD7F32;
    text-shadow: 0 0 4px rgba(205, 127, 50, 0.5);
}

/* PORTADAS CON BORDES REDONDEADOS */
.album-cover-cell {
    width: 170px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 0 !important;
    overflow: visible;
}

.album-cover {
    width: 150px;
    height: 150px;
    border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    object-fit: cover;
    display: block;
    border: none !important;
    outline: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: none !important;
    mask-image: none !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.album-cover-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 5px !important;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    overflow: visible !important;
}

/* Contenido de texto */
.latino-chart-table td:nth-child(3) {
    font-weight: 600;
    font-size: 16px;
}

.latino-chart-table td:nth-child(4) {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Enlaces */
.latino-chart-table a {
    color: white;
    text-decoration: none;
}

.latino-chart-table a:hover {
    color: #FF6B00;
    text-decoration: underline;
}

/* Pie de página */
.latino-chart-footer {
    padding: 16px 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.latino-chart-date {
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .latino-chart-table th, 
    .latino-chart-table td {
        padding: 10px 12px;
    }
    
    .album-cover, 
    .album-cover-placeholder {
        width: 120px;
        height: 120px;
    }
    
    /* Ajuste de tamaños en móviles */
    .latino-chart-table tr:nth-child(1) td:first-child {
        font-size: 24px !important;
    }
    .latino-chart-table tr:nth-child(2) td:first-child {
        font-size: 20px !important;
    }
    .latino-chart-table tr:nth-child(3) td:first-child {
        font-size: 18px !important;
    }
}