/* --- Details Modal --- */
.pp-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pp-details-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #0a2745;
    color: #cde4ff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    width: 90%;
    max-width: 420px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.pp-details-modal.visible, .pp-details-modal-overlay.visible {
    display: block;
    opacity: 1;
}
.pp-details-modal.visible {
    transform: translate(-50%, -50%) scale(1);
}
.pp-details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #004a87;
}
.pp-details-modal-header h2 {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pp-details-modal-header .participant-count {
    font-size: 0.8em;
    color: #a0c8f0;
    font-weight: normal;
}
.pp-details-modal-close {
    font-size: 1.8em;
    line-height: 1;
    cursor: pointer;
    color: #cde4ff;
    transition: color 0.2s;
}
.pp-details-modal-close:hover {
    color: #fff;
}
.pp-details-modal-body {
    padding: 15px;
}
.details-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.details-section {
    flex: 1;
}
.details-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Probabilities Section --- */
.prob-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.prob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.prob-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: 
        radial-gradient(closest-side, #0a2745 79%, transparent 80% 100%),
        conic-gradient(var(--c, #8bc34a) calc(var(--p, 0) * 1%), #0e4c81 0);
}
.prob-label {
    font-size: 0.8em;
    width: 80px;
    white-space: nowrap;
}

/* --- (اصلاح) Frequent Scores Section با پروگرس بار میله‌ای --- */
.frequent-scores ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.frequent-scores li {
    background-color: #00294e;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px; /* فاصله بین المان‌ها */
}
.frequent-scores .score {
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    color: #fff;
    flex-shrink: 0; /* جلوگیری از کوچک شدن این بخش */
}
.frequent-scores .team-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 8px;
}
.frequent-scores .count {
    color: #cde4ff;
    font-size: 1.1em;
    font-weight: bold;
    flex-shrink: 0;
}

/* (جدید) استایل برای پروگرس بار میله‌ای */
.progress-bar-container {
    flex-grow: 1; /* تمام فضای خالی را پر می‌کند */
    height: 8px;
    background-color: #0a2745; /* رنگ بخش خالی */
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: #007cbe; /* رنگ بخش پر شده */
    border-radius: 4px;
    transition: width 0.5s ease-out;
}