body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Reset di base */
.slot-card * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Card principale */
.slot-card {
    background: var(--smr-card-bg, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
}

/* Contenuto della card - display table per layout stabile */
.slot-card-content {
    display: table;
    width: 100%;
    table-layout: fixed;
    height: 90px;
}

/* Ogni sezione come cella della tabella */
.slot-info, 
.slot-params, 
.slot-rtp, 
.slot-max-win, 
.slot-buttons {
    display: table-cell;
    vertical-align: middle;
    padding: 10px;
    border-right: 1px solid #f0f0f0;
}

/* Logo e info - prima cella */
.slot-info {
    width: 260px;
    white-space: nowrap;
    background-color: var(--smr-image-section-bg, #fff);
}

.slot-logo {
    display: inline-block;
    vertical-align: middle;
    width: 90px;
    height: 90px;
    margin-right: 12px;
}

.slot-logo img {
    max-width: 100%;
    max-height: 100%;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    margin-left: 10px;
}

.slot-name-rating {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 105px);
}

.slot-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--smr-text-color, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 100px;
}

.slot-rating {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    padding-left: 100px;
}

.slot-rating span {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* Parametri - seconda cella */
.slot-params {
    width: 250px;
    background-color: var(--smr-center-section-bg, #fff);
}

.slot-params .param-box {
    display: inline-block;
    width: calc(50% - 5px);
    margin-bottom: 5px;
}

.slot-params .param-box:nth-child(odd) {
    margin-right: 5px;
}

.slot-params .param-box:nth-child(3),
.slot-params .param-box:nth-child(4) {
    margin-bottom: 0;
}

/* RTP - terza cella */
.slot-rtp {
    width: 80px;
    text-align: center;
    background-color: var(--smr-center-section-bg, #fff);
}

/* Max Win - quarta cella */
.slot-max-win {
    width: 90px;
    text-align: center;
    background-color: var(--smr-center-section-bg, #fff);
}

/* Pulsanti - ultima cella */
.slot-buttons {
    width: 110px;
    border-right: none;
    text-align: center;
    background-color: var(--smr-buttons-section-bg, #f9f9f9);
}

/* Stile box parametri */
.param-box {
    background: #f7f7f7;
    border-radius: 4px;
    padding: 5px 8px;
}

.param-label {
    display: block;
    font-size: 10px;
    color: #777;
    margin-bottom: 3px;
    font-weight: 600;
}

.param-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--smr-text-color, #333);
}

/* Stile pulsanti */
.slot-btn {
    display: block;
    margin-bottom: 5px;
    padding: 7px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: var(--smr-button-bg-color, #0073aa);
    color: var(--smr-button-text-color, #fff);
}

.primary-btn:hover {
    background-color: var(--smr-button-bg-color, #0073aa);
    filter: brightness(90%);
    color: var(--smr-button-text-color, #fff);
    text-decoration: none;
}

.secondary-btn {
    background: #e0e0e0;
    color: #444;
}

.secondary-btn:hover {
    background: #d0d0d0;
    color: #333;
    text-decoration: none;
}

.slot-btn:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .slot-card-content {
        display: block;
        height: auto;
    }
    
    .slot-info, 
    .slot-params,
    .slot-buttons {
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 8px 10px;
    }
    
    /* Contenitore flex per i parametri */
    .slot-params {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .slot-params .param-box {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }
    
    /* Sezione RTP e Max Win */
    /* Invece di nasconderli, li mettiamo uno accanto all'altro */
    .slot-rtp, 
    .slot-max-win {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Contenitore esterno per RTP e Max Win */
    .rtp-maxwin-wrapper {
        display: block;
        width: 100%;
        font-size: 0; /* Elimina lo spazio tra elementi inline-block */
    }
    
    .slot-rtp .param-box,
    .slot-max-win .param-box {
        width: 100%;
        margin: 0;
    }
    
    /* Ripristina il font-size all'interno dei box */
    .slot-rtp, 
    .slot-max-win {
        font-size: initial;
    }
    
    .slot-buttons {
        border-bottom: none;
        display: flex;
        justify-content: space-between;
    }
    
    .slot-btn {
        flex: 0 0 48%;
        margin: 0;
    }
}

/* Aggiungiamo un media query per schermi ancora più piccoli */
@media (max-width: 480px) {
    /* Su schermi molto piccoli, manteniamo comunque il layout a due colonne */
    .slot-params .param-box {
        width: calc(50% - 4px);
        margin-bottom: 8px;
    }
    
    /* Riduciamo leggermente il padding per dare più spazio al contenuto */
    .param-box {
        padding: 4px 6px;
    }
    
    /* Assicuriamoci che il testo non sia troppo grande */
    .param-label {
        font-size: 9px;
    }
    
    .param-value {
        font-size: 12px;
    }
}