/* Profile Statistics Cards - Left text, Right positioned */
.profile-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50px !important;
    transition: all 0.3s ease;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    box-sizing: border-box !important;
}

.profile-stat-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    flex-shrink: 0;
    margin: 0;
    padding: 7.5px !important;
    box-sizing: border-box !important;
}

.profile-stat-icon-bg i,
.profile-stat-icon-bg svg {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
    width: 20px !important;
    height: 20px !important;
}

.profile-stat-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    margin-left: 0;
    height: 100%;
    flex: 1 1 auto;
}

.profile-stat-value {
    font-size: 1.25rem !important;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    font-display: swap;
    flex: 0 0 auto;
}

.profile-stat-label {
    font-size: 0.65rem !important;
    color: #888;
    margin: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    font-display: swap;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

/* Stats Overview Cards */
.stat-row {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

.stat-label {
    color: var(--muted-color);
    font-weight: 500;
    text-align: left !important;
    text-align-last: left;
    margin-right: 20px;
}

.stat-val {
    text-align: left;
}

@media (min-width: 768px) {
    .stats-grid .stat-card .stat-label {
        text-align: left !important;
        line-height: 1.65;
        margin-left: auto;
        margin-right: 20px !important;
    }
}

/* Dark theme text color for stat cards */
body[data-theme="dark"] .profile-stat-value,
body[data-theme="dark"] .profile-stat-label,
body[data-theme="dark"] .stat-val,
body[data-theme="dark"] .stat-label {
    color: #BBC6CE;
}

/* Fix alignment for stats cards on series/movies/games pages */
.stat-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.stat-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    margin: -7px 0 0 0 !important;
    flex-shrink: 0 !important;
}

.stat-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    margin: -5px 0 0 15px !important;
    line-height: 1 !important;
}

/* Mobile: Reduce font size for profile stat values */
@media (max-width: 768px) {
    .profile-stat-card {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }

    .profile-stat-card .profile-stat-value {
        font-size: 1rem !important;
    }

    .profile-stat-card .profile-stat-label {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}