<style>

/* ============================================================
   ΚΙΝΟ Stats — Unified stylesheet
   Καλύπτει και τα δύο layouts:
     - Horizontal (ranked list): .stats-bars-*
     - Vertical   (bar graph):   .stats-bargraph-*
   ============================================================ */


/* ============================================================
   SECTION 1: HORIZONTAL LAYOUT (ranked list με μπίλια + οριζόντια μπάρα)
   ============================================================ */

/* Container 3 καρτών δίπλα-δίπλα (desktop) ή στοίβα (mobile) */
.stats-bars-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .stats-bars-row { grid-template-columns: 1fr; }
}

/* Κάρτα */
.stats-bars-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 18px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.stats-bars-card__title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* Γραμμή ανά αριθμό: μπίλια | μπάρα | τιμή */
.stats-bars-item {
    display: grid;
    grid-template-columns: 34px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.stats-bars-item + .stats-bars-item {
    border-top: 1px solid #f3f4f6;
}

/* Μπίλια */
.stats-bars-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

.stats-bars-ball--kino  { background: #FFA800; color: #4a2f00; }
.stats-bars-ball--bonus { background: #FF0000; color: #ffffff; }

/* Μπάρα */
.stats-bars-track {
    height: 5px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}

.stats-bars-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.stats-bars-fill--kino  { background: #FFA800; }
.stats-bars-fill--bonus { background: #FF0000; }

/* Τιμή δεξιά */
.stats-bars-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
}

/* Thresholds:
   - ΚΙΝΟ: >9 warning, >19 critical
   - BONUS: >99 warning, >179 critical */
.stats-bars-value.is-warning  { color: #c06b00; }
.stats-bars-value.is-critical { color: #b91c1c; }

/* Empty state */
.stats-bars-empty {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}


/* ============================================================
   SECTION 2: VERTICAL LAYOUT (bar graph με μπίλια κάτω)
   ============================================================ */

/* Wrapper (στοίβα 3 καρτών σε desktop και mobile) */
.stats-bargraph-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 540px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.stats-bargraph-wrapper *,
.stats-bargraph-wrapper *::before,
.stats-bargraph-wrapper *::after {
    box-sizing: border-box;
}

/* Κάρτα */
.stats-bargraph-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.stats-bargraph-card__title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1.4;
}

/* Γραμμή 10 στηλών */
.stats-bargraph-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    align-items: end;
    min-height: 120px;
}

/* Μία στήλη: τιμή πάνω, μπάρα στη μέση, μπίλια κάτω */
.stats-bargraph-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.stats-bargraph-value {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1;
}

.stats-bargraph-stick {
    width: 100%;
    max-width: 24px;
    background: #64748b;  /* slate — ουδέτερο για ΚΙΝΟ και BONUS */
    border-radius: 3px 3px 0 0;
}

/* Μπίλια */
.stats-bargraph-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

.stats-bargraph-ball--kino  { background: #FFA800; color: #4a2f00; }
.stats-bargraph-ball--bonus { background: #FF0000; color: #ffffff; }

/* Mobile: μικρότερες μπίλιες σε πολύ στενά κινητά */
@media (max-width: 380px) {
    .stats-bargraph-ball {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .stats-bargraph-row {
        gap: 4px;
    }
}

</style>