.-ycwt-maher_rating_summary {
    --mrs-gold: var(--mah-gold, #ffc400);
    padding: 72px 0 !important;
    background: radial-gradient(circle at 50% 0, rgb(255 196 0 / 7%), transparent 38%), #090a0a;
    color: #fff;
    font-family: "Tajawal", sans-serif;
}

.-ycwt-maher_rating_summary * {
    box-sizing: border-box;
}

.-ycwt-maher_rating_summary .mrs {
    width: min(100%, 1000px);
    min-height: 310px;
    margin: 0 auto;
    padding: 42px 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 16px;
    background: #151615;
    box-shadow: 0 18px 46px rgb(0 0 0 / 40%);
}

.-ycwt-maher_rating_summary .mrs-score {
    flex: 0 0 235px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.-ycwt-maher_rating_summary .mrs-title {
    width: 100%;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
    white-space: nowrap;
}

.-ycwt-maher_rating_summary .mrs-title::before,
.-ycwt-maher_rating_summary .mrs-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgb(255 255 255 / 9%);
}

.-ycwt-maher_rating_summary .mrs-score > strong {
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
}

.-ycwt-maher_rating_summary .mrs-stars {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    color: var(--mrs-gold);
    font-size: 18px;
}

.-ycwt-maher_rating_summary .mrs-score > span {
    margin-top: 9px;
    color: rgb(255 255 255 / 52%);
    font-size: 13px;
    font-weight: 700;
}

.-ycwt-maher_rating_summary .mrs-bars {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.-ycwt-maher_rating_summary .mrs-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgb(255 255 255 / 66%);
    font-family: Outfit, "Tajawal", sans-serif;
    font-size: 13px;
}

.-ycwt-maher_rating_summary .mrs-row > span {
    width: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-weight: 700;
}

.-ycwt-maher_rating_summary .mrs-row > span i {
    color: var(--mrs-gold);
    font-size: 11px;
}

.-ycwt-maher_rating_summary .mrs-row > b {
    width: 38px;
    flex: 0 0 38px;
    color: rgb(255 255 255 / 52%);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.-ycwt-maher_rating_summary .mrs-row progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: #0d0e0e;
}

.-ycwt-maher_rating_summary .mrs-row progress::-webkit-progress-bar {
    border-radius: 20px;
    background: #0d0e0e;
}

.-ycwt-maher_rating_summary .mrs-row progress::-webkit-progress-value {
    border-radius: 20px;
    background: linear-gradient(90deg, #dfa900, var(--mrs-gold));
}

.-ycwt-maher_rating_summary .mrs-row progress::-moz-progress-bar {
    border-radius: 20px;
    background: linear-gradient(90deg, #dfa900, var(--mrs-gold));
}

.-ycwt-maher_rating_summary .mrs-act {
    flex: 0 0 176px;
}

.-ycwt-maher_rating_summary .mrs-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border: 1px solid var(--mrs-gold);
    border-radius: 10px;
    background: #111211;
    color: var(--mrs-gold);
    box-shadow: 0 10px 22px rgb(0 0 0 / 32%);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.-ycwt-maher_rating_summary .mrs-btn:focus-visible {
    outline: 3px solid rgb(255 196 0 / 35%);
    outline-offset: 3px;
}

@media (hover: hover) {
    .-ycwt-maher_rating_summary .mrs-btn:hover {
        background: #0d0e0e;
        color: #ffd229;
        box-shadow: 0 14px 26px rgb(0 0 0 / 42%);
        transform: translateY(-2px);
    }
}

@media (max-width: 1100px) {
    .-ycwt-maher_rating_summary {
        padding: 60px 0 !important;
    }

    .-ycwt-maher_rating_summary .mrs {
        gap: 30px;
        padding: 38px 34px;
    }

    .-ycwt-maher_rating_summary .mrs-score {
        flex-basis: 205px;
    }

    .-ycwt-maher_rating_summary .mrs-act {
        flex-basis: 158px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .-ycwt-maher_rating_summary {
        padding: 48px 0 !important;
        overflow-wrap: anywhere;
    }

    .-ycwt-maher_rating_summary .container,
    .-ycwt-maher_rating_summary .container.largerContainer {
        padding-inline: 24px;
    }

    .-ycwt-maher_rating_summary .mrs {
        direction: inherit;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        min-height: 0;
        gap: 24px;
        padding: 28px;
    }

    .-ycwt-maher_rating_summary .mrs-score,
    .-ycwt-maher_rating_summary .mrs-act {
        min-width: 0;
    }

    .-ycwt-maher_rating_summary .mrs-title {
        display: block;
        white-space: normal;
    }

    .-ycwt-maher_rating_summary .mrs-stars {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .-ycwt-maher_rating_summary .mrs-bars {
        gap: 12px;
    }

    .-ycwt-maher_rating_summary .mrs-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .-ycwt-maher_rating_summary .mrs-row > span {
        width: auto;
        min-width: 0;
        flex-wrap: wrap;
    }

    .-ycwt-maher_rating_summary .mrs-row > b {
        width: auto;
        min-width: 0;
        text-align: end;
    }

    .-ycwt-maher_rating_summary .mrs-row progress {
        min-width: 0;
    }

    .-ycwt-maher_rating_summary .mrs-act {
        grid-column: 1 / -1;
        text-align: center;
    }

    .-ycwt-maher_rating_summary .mrs-btn {
        max-width: 100%;
        min-width: 44px;
        padding: 12px 20px;
        gap: 10px;
        white-space: normal;
        line-height: 1.5;
    }

    .-ycwt-maher_rating_summary .mrs-btn > span {
        min-width: 0;
    }

    .-ycwt-maher_rating_summary .mrs-btn .icn-btn {
        position: static;
        inset: auto;
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
        background: transparent;
        color: inherit;
        transition: none;
    }

    .-ycwt-maher_rating_summary .container:dir(ltr) .mrs-btn .fa-arrow-left {
        transform: rotate(180deg);
    }

    .-ycwt-maher_rating_summary .mrs-btn:focus-visible {
        outline-color: var(--mrs-gold);
    }

    .-ycwt-maher_rating_summary .mrs-btn:active {
        background: #302910;
        transform: scale(.98);
    }
}

/* Mobile App Experience */
@media (max-width: 520px) {
    .-ycwt-maher_rating_summary {
        padding: 34px 0 !important;
    }

    .-ycwt-maher_rating_summary .container,
    .-ycwt-maher_rating_summary .container.largerContainer {
        padding-inline: 16px;
    }

    .-ycwt-maher_rating_summary .mrs {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        padding: 22px 16px;
        gap: 20px 16px;
        border-radius: 14px;
    }

    .-ycwt-maher_rating_summary .mrs-score > strong {
        font-size: 42px;
    }

    .-ycwt-maher_rating_summary .mrs-title {
        font-size: 16px;
    }

    .-ycwt-maher_rating_summary .mrs-stars {
        gap: 3px;
        font-size: 14px;
    }

    .-ycwt-maher_rating_summary .mrs-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 5px;
    }

    .-ycwt-maher_rating_summary .mrs-row > b {
        grid-column: 2;
        grid-row: 1;
    }

    .-ycwt-maher_rating_summary .mrs-row progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .-ycwt-maher_rating_summary .mrs-btn {
        width: 100%;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 360px) {
    .-ycwt-maher_rating_summary .container,
    .-ycwt-maher_rating_summary .container.largerContainer {
        padding-inline: 12px;
    }

    .-ycwt-maher_rating_summary .mrs {
        padding: 20px 12px;
        column-gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .-ycwt-maher_rating_summary .mrs-btn {
        transition: none;
    }
}
