body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

.app-container {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box !important;
}

.app-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    gap: 15px;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: box-shadow 0.3s;
}

.app-icon:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-icon img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 20%; /* Добавляем небольшое закругление к иконке */
    transition: transform 0.3s;
}

.app-icon img:hover {
    transform: scale(1.1); /* При наведении увеличиваем иконку */
}

.app-download-btn {
    background-color: #6200ea;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500; /* Делаем текст кнопки немного жирнее */
}

.app-download-btn:hover {
    background-color: #3700b3;
    transform: translateY(-2px); /* При наведении поднимаем кнопку немного вверх */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-details {
    font-size: 14px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    flex-grow: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    transition: background-color 0.3s;
}

.detail-row:hover {
    background-color: #f5f5f5;
}

.detail-label {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.detail-value {
    flex: 2;
    text-align: right;
    color: #555;
}

.detail-value a {
    color: #6200ea;
    text-decoration: dotted underline;
}

.app-rating {
    font-size: 14px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    text-align: center;
}

.app-rating > p {
    margin: 0 auto !important;
}

.app-rating > p:nth-child(3) {
    color: #b6b6b6;
}

.stars {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.star {
    font-size: 25px;
    cursor: pointer;
    color: #e0e0e0; /* Серый цвет для неактивных звезд */
    transition: color 0.3s;
}

.star.active {
    color: #ffd700;
}

.average-rating-badge {
    display: inline-block;
    background-color: #6200ea;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.average-rating-badge span {
    font-weight: bold;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .app-info {
        flex-wrap: wrap;
    }

    .app-info #download-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .app-info .app-icon img {
        width: 150px;
        height: 150px;
    }

    .app-info .app-rating {
        flex-basis: 100%;
    }
}

.pmp-app-container-v2 {
    color: #182133;
}

.pmp-app-summary {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 220px;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .06);
}

.pmp-app-summary__icon {
    width: 132px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .16);
}

.pmp-app-summary__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmp-app-summary__main {
    min-width: 0;
}

.pmp-app-summary__eyebrow,
.pmp-app-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pmp-app-summary__eyebrow {
    margin-bottom: 10px;
}

.pmp-app-summary__eyebrow span,
.pmp-app-summary__eyebrow a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    background: #eef2ff;
    color: #33429b;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.pmp-app-summary__eyebrow span:last-child {
    background: #ffe6aa;
    color: #9a5b00;
}

.pmp-app-summary__title {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 900;
}

.pmp-app-summary__developer {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.pmp-app-summary__chips {
    margin-top: 16px;
}

.pmp-app-summary__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.pmp-app-summary__chips strong {
    margin-right: 4px;
    color: #0f172a;
}

.pmp-app-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.pmp-app-summary__primary.app-download-btn {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border-radius: 9px;
    background: #16a34a;
    font-size: 15px;
    font-weight: 900;
}

.pmp-app-summary__primary.app-download-btn:hover {
    background: #15803d;
}

.pmp-app-summary__source {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pmp-app-summary__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 150px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.pmp-app-summary__rating-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pmp-app-summary__rating .stars {
    margin-bottom: 8px;
}

.pmp-app-summary__rating p {
    margin: 2px 0;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.pmp-app-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.pmp-app-fact {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    background: #fff;
}

.pmp-app-fact span {
    display: block;
    margin-bottom: 6px;
    color: #7a8496;
    font-size: 12px;
    font-weight: 800;
}

.pmp-app-fact strong,
.pmp-app-fact a {
    color: #182133;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 920px) {
    .pmp-app-summary {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .pmp-app-summary__icon {
        width: 108px;
        border-radius: 20px;
    }

    .pmp-app-summary__rating {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .pmp-app-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pmp-app-summary {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }

    .pmp-app-summary__icon {
        width: 82px;
        border-radius: 18px;
    }

    .pmp-app-summary__title {
        font-size: 22px;
    }

    .pmp-app-summary__chips,
    .pmp-app-summary__actions {
        grid-column: 1 / -1;
    }

    .pmp-app-summary__primary.app-download-btn {
        width: 100%;
    }

    .pmp-app-facts {
        grid-template-columns: 1fr;
    }
}

/* slider styles */
.app-media-tabs {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0;
}

.app-media-tabs__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.app-media-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827 !important;
    cursor: pointer;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.app-media-tabs__tab span:not(.app-media-tabs__icon) {
    display: inline-block;
    visibility: visible;
    opacity: 1;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    text-indent: 0;
}

.app-media-tabs__tab:not(.is-active) {
    color: #6b7280 !important;
}

.app-media-tabs__tab:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 4px;
    border-radius: 10px;
}

.app-media-tabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #1787e8;
    background: #dff1ff;
}

.app-media-tabs__tab:not(.is-active) .app-media-tabs__icon {
    color: #667085;
    background: #f2f4f7;
}

.app-media-tabs__icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.app-media-tabs__panel[hidden] {
    display: none;
}

.app-gallery {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.slider-container {
    overflow-x: scroll;
    max-height: 400px;
    height: 100%;
    position: relative;
    white-space: nowrap;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    transition: all 0.3s;
}

.slide {
    display: inline-block;
    min-width: fit-content;
    position: relative;
    overflow: hidden;
    margin: 0 5px;
    border-radius: 10px;
}

.slide img {
    height: 100%;
    max-height: 400px;
    width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #6200ea;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 20px;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #3700b3;
}

.slider-btn > img {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 5px;
    left: 10px;
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-btn-next > img {
    left: 8px;
}

@media (max-width: 768px) {
    .slider-container {
        width: 100%;
    }
}

/* Video block */
.app-video {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.app-video iframe,
.app-video__preview {
    width: min(760px, 100%);
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
}

.app-video__preview {
    position: relative;
    display: block;
    overflow: hidden;
    height: auto !important;
    min-height: 260px;
    padding: 0;
    border: 0;
    background: #111827;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
}

.app-video__preview img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 260px;
    object-fit: cover;
}

.app-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 52px;
    border-radius: 14px;
    background: #ff0033;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.app-video__play:before {
    content: "";
    position: absolute;
    left: 30px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #fff;
}

@media (max-width: 768px) {
    .app-media-tabs {
        margin: 20px auto;
    }

    .app-media-tabs__nav {
        gap: 16px;
    }

    .app-media-tabs__tab {
        font-size: 18px;
        min-width: max-content;
    }

    .app-media-tabs__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .app-video__preview,
    .app-video__preview img {
        min-height: 190px;
    }
}

/* Download block */
.app-download {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.app-download-buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

body .app-download-buttons .file-download-button,
body .app-download-buttons .pmp-light-button {
    pointer-events: auto;
}

body .app-download-buttons .file-download-button.inactive {
    background-color: #797979;
    pointer-events: none;
}

body .app-download-buttons .pmp-light-button.inactive {
    border: 1px solid #797979;
    color: #797979 !important;
    pointer-events: none;
}

.app-download-buttons .file-download-button .app-loader,
.app-download-buttons .pmp-light-button .app-loader {
    display: none;
}

.app-download-buttons .file-download-button.inactive .app-loader,
.app-download-buttons .pmp-light-button.inactive .app-loader {
    display: inline-block;
}

.app-download-buttons .file-download-button img,
.app-download-buttons .pmp-light-button img {
    display: inline-block;
}

.app-download-buttons .file-download-button.inactive img,
.app-download-buttons .pmp-light-button.inactive img {
    display: none;
}

.app-download > p {
    font-size: 24px;
    margin: 15px;
    color: #333;
}

.download-button {
    margin: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    text-align: left;
    text-decoration: none;
    background-color: #6200ea;
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body article .app-container .app-download a {
    text-decoration: none !important;
}

.download-button:hover {
    background-color: #3700b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-button:active {
    background-color: #27006e;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-button .btn-text {
    max-width: calc(100% - 65px);
    flex-basis: calc(100% - 60px);
    font-size: 30px;
}

.file-size, .downloads-count {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    margin: 0;
}

.file-size:before, .downloads-count:before {
    content: '|';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.file-size:before {
    content: none;
}

.pmp-light-button {
    background: #ffffff;
    border: 1px solid #6200ea;
    color: #6200ea !important;
}

.pmp-light-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pmp-light-button:active {
    background-color: rgba(255, 255, 255);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pmp-gray-button {
    background: #ffffff;
    border: 1px solid #797979;
    color: #797979 !important;
}

.pmp-gray-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.pmp-gray-button:active {
    background-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .download-button {
        justify-content: center;
    }

    .download-button .btn-text {
        flex-basis: 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* Cache block */
.cache-faq {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.cache-title {
    font-size: 24px;
    font-weight: 500;
    color: #27006e;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.cache-content {
    font-size: 16px;
    color: #424242;
    text-align: left;
}

.cache-content ol {
    padding-left: 20px;
    margin-top: 10px;
    counter-reset: list-counter;
    list-style-type: none;
}

.cache-content li {
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
}

.cache-content li:before {
    content: counter(list-counter) ".";
    counter-increment: list-counter;
    color: #6200ea;
    font-weight: bold;
    position: absolute;
    left: -25px;
    top: 0;
}

.cache-content a {
    color: #6200ea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cache-content a:hover {
    color: #3700b3;
}

.cache-content p {
    margin: 0;
}

/* Similar apps block */
.app-grid {
    max-width: 1280px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Расстояние между карточками */
    justify-content: center;
}

.app-card {
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px;
    width: calc(25% - 16px); /* Для 4 карточек в ряду */
    box-sizing: border-box;
    transition: transform 0.3s;
    cursor: pointer;
    background: #ffffff;
    text-align: center;
}

.app-card:hover {
    transform: scale(1.05);
}

.app-grid .app-card > a {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    text-decoration: none !important;
    color: #6200ea;
}

.app-card > a:hover {
    color: #3700b3;
}

.app-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.app-card .app-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
    flex-grow: 1;
}

.card-app-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон для лучшей видимости рейтинга */
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
}

/* Пагинация */
.app-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.app-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #6200ea;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.app-pagination .page-numbers:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-pagination .page-numbers.current {
    color: #fff;
    background-color: #6200ea;
    box-shadow: none;
}

.app-pagination .page-numbers.dots {
    pointer-events: none;
    background-color: transparent;
    box-shadow: none;
    color: #757575;
}

.app-pagination .prev, .app-pagination .next {
    background-color: #e0e0e0;
    color: #424242;
}

.app-pagination .prev:hover, .app-pagination .next:hover {
    background-color: #bdbdbd;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .app-card {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .app-card {
        width: 100%;
    }
}

/* request update result */
#request-result {
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2); /* Тени для "поднятого" эффекта */
    background-color: #ffffff;
    max-width: 300px;
    margin: 0 auto;
}

#request-result:empty {
    display: none;
}

/* Стили для текста */
#request-result p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

/* Убираем отступ у последнего параграфа */
#request-result p:last-child {
    margin-bottom: 0;
}

/* Стили для зеленого текста */
#request-result p.green {
    color: #4caf50; /* Зеленый цвет из палитры Material Design */
    font-weight: 500; /* Полужирное начертание */
}

#request-result p.red {
    color: #f44336; /* Красный цвет из палитры Material Design */
    font-weight: 500; /* Полужирное начертание для акцентирования внимания */
    border-left: 4px solid #f44336; /* Вертикальная линия слева для дополнительного акцентирования */
    padding-left: 10px; /* Отступ слева, чтобы текст не прилипал к линии */
    background-color: #ffebee; /* Светло-красный фон для контраста */
    border-radius: 4px; /* Скругленные углы для соответствия стилю Material Design */
    margin: 10px 0; /* Отступы сверху и снизу для разделения контента */
}

/* Убираем пустые параграфы */
#request-result p:empty {
    display: none;
}

/* Страница загрузки */
.pmp-download-page .app-info {
    flex-wrap: wrap;
}

body .pmp-download-page .app-info a {
    color: #ffffff;
    text-decoration: none !important;
}

.pmp-download-page .download-button {
    flex-basis: 100%;
}

.pmp-download-page .download-button img {
    margin-right: 0;
}

.pmp-download-page .download-button .btn-text {
    text-align: center;
}

/* related apps */
.related-apps-grid {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 30px 0;
}

.related-apps-grid__title {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

.related-apps-grid__title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #6200ea; /* Primary color for Material Design */
}

.pmp-related-apps {
    margin: 34px 0;
    padding: 28px;
    background: #f6f8fc;
    border-radius: 18px;
}

.pmp-related-apps__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pmp-related-apps__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pmp-related-apps__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #5b5fed;
    background: #e6e9ff;
}

.pmp-related-apps__icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.pmp-related-apps h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: #101828;
}

.pmp-related-apps__all,
.pmp-related-apps__all:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    background: #615cf6;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.pmp-related-apps__all:hover,
.pmp-related-apps__all:focus {
    color: #fff;
    background: #4f46e5;
}

.pmp-related-apps__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.pmp-related-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef1f6;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
}

.pmp-related-card__link,
.pmp-related-card__link:visited {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: #182133;
    text-decoration: none !important;
}

.pmp-related-card__badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 6px;
    background: #4f83ff;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.pmp-related-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111827;
}

.pmp-related-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pmp-related-card__rating {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .72) 88%);
}

.pmp-related-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.pmp-related-card__title {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pmp-related-card__meta,
.pmp-related-card__chips,
.pmp-related-card__spec,
.pmp-related-card__author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pmp-related-card__meta {
    color: #667085;
    font-size: 12px;
}

.pmp-related-card__meta span:last-child {
    padding: 3px 7px;
    border-radius: 5px;
    color: #9a5b00;
    background: #ffe6aa;
    font-size: 10px;
    font-weight: 900;
}

.pmp-related-card__chips span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #33429b;
    font-size: 10px;
    font-weight: 700;
}

.pmp-related-card__spec {
    justify-content: space-between;
    padding-top: 4px;
    color: #8a94a8;
    font-size: 12px;
}

.pmp-related-card__author {
    padding-top: 8px;
    border-top: 1px solid #edf0f5;
    color: #667085;
    font-size: 12px;
}

.pmp-related-card__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

@media screen and (max-width: 1180px) {
    .pmp-related-apps__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .pmp-related-apps {
        padding: 20px;
    }

    .pmp-related-apps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 520px) {
    .pmp-related-apps {
        margin-left: -10px;
        margin-right: -10px;
        padding: 18px 12px;
        border-radius: 0;
    }

    .pmp-related-apps__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pmp-related-apps__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }

    .pmp-related-card {
        flex: 0 0 210px;
        scroll-snap-align: start;
    }
}

.pmp-yarpp-related {
    margin: 36px 0;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.pmp-yarpp-related__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.pmp-yarpp-related__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #5b5fed;
    background: #e8ebff;
}

.pmp-yarpp-related__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pmp-yarpp-related h2 {
    margin: 0;
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.pmp-yarpp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pmp-yarpp-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .07);
}

.pmp-yarpp-card__link,
.pmp-yarpp-card__link:visited {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: #182133;
    text-decoration: none !important;
}

.pmp-yarpp-card__badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 6px;
    background: #4f83ff;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.pmp-yarpp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111827;
}

.pmp-yarpp-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmp-yarpp-card__rating {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .74) 88%);
}

.pmp-yarpp-card__rating span {
    color: #ffc928;
}

.pmp-yarpp-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.pmp-yarpp-card__title {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pmp-yarpp-card__meta,
.pmp-yarpp-card__chips,
.pmp-yarpp-card__spec,
.pmp-yarpp-card__editor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pmp-yarpp-card__meta {
    color: #667085;
    font-size: 12px;
}

.pmp-yarpp-card__mod {
    padding: 3px 7px;
    border-radius: 5px;
    color: #9a5b00;
    background: #ffe6aa;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.pmp-yarpp-card__chips span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #33429b;
    font-size: 11px;
    line-height: 1.2;
}

.pmp-yarpp-card__spec {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eef1f6;
    color: #7a8496;
    font-size: 12px;
}

.pmp-yarpp-card__editor {
    min-width: 0;
    margin-top: 2px;
    padding-top: 9px;
    border-top: 1px solid #eef1f6;
    color: #667085;
    font-size: 12px;
    line-height: 1.2;
}

.pmp-yarpp-card__editor-avatar {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: block;
    border-radius: 50%;
    border: 1px solid #dbe2ff;
    background: #f2f4ff;
}

.pmp-yarpp-card__editor-name {
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 1180px) {
    .pmp-yarpp-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .pmp-yarpp-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 520px) {
    .pmp-yarpp-related__grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }

    .pmp-yarpp-card {
        flex: 0 0 210px;
        scroll-snap-align: start;
    }
}

/* LOADER */
.app-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: approtate 1s linear infinite
}

.app-loader:before, .app-loader:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

.app-loader:after {
    transform: rotate3d(90, 90, 0, 180deg);
    border-color: #6200ea;
}

@keyframes approtate {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }
    75%, 100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
}

/* Android Mods app-info restyle, 2026-06-03.
   CSS-only layer for the existing Google Play Parser markup. */
.app-container {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 18px 0;
    color: #0f172a;
    box-sizing: border-box !important;
}

.app-container .app-info {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr) 190px;
    gap: 14px;
    align-items: stretch;
    padding: 0;
    margin: 0 0 18px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.app-container .app-icon,
.app-container .app-details,
.app-container .app-rating {
    margin: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    box-shadow: none;
}

.app-container .app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.app-container .app-icon:hover {
    box-shadow: none;
}

.app-container .app-icon img {
    width: 100px;
    height: 100px;
    margin: 0;
    border-radius: 16px;
    object-fit: cover;
    transition: none;
}

.app-container .app-icon img:hover {
    transform: none;
}

.app-container .app-download-btn {
    width: 94px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #16a34a;
    color: #ffffff;
    box-shadow: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.app-container .app-download-btn:hover,
.app-container .app-download-btn:focus-visible {
    background: #12813d;
    transform: translateY(-1px);
    box-shadow: none;
}

.app-container .app-details {
    display: grid;
    align-content: start;
    min-width: 0;
    font-size: 14px;
}

.app-container .detail-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 41px;
    padding: 8px 0;
    border-bottom: 1px solid #dbe2ec;
    transition: none;
}

.app-container .detail-row:last-child {
    border-bottom: 0;
}

.app-container .detail-row:hover {
    background: transparent;
}

.app-container .detail-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #56637a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.app-container .detail-label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
    background: #eef4ff;
}

.app-container .detail-label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #2458f5;
    transform: translateY(-50%);
    -webkit-mask: var(--pmp-detail-icon) center / contain no-repeat;
    mask: var(--pmp-detail-icon) center / contain no-repeat;
}

.app-container .detail-row:nth-child(1) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h8l6 6v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M13 3v6h6M8 14h8M8 18h5'/%3E%3C/svg%3E");
}

.app-container .detail-row:nth-child(2) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4v12a4 4 0 0 0 4 4h1'/%3E%3Cpath d='M18 8a4 4 0 0 1-4 4h-4'/%3E%3Ccircle cx='6' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='13' cy='20' r='2'/%3E%3C/svg%3E");
}

.app-container .detail-row:nth-child(3) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.app-container .detail-row:nth-child(4) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.app-container .detail-row:nth-child(5) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
}

.app-container .detail-row:nth-child(6) .detail-label {
    --pmp-detail-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.app-container .detail-value {
    min-width: 0;
    color: #020617;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
}

.app-container .detail-value a {
    color: #2458f5;
    font-weight: 900;
    text-decoration: none;
}

.app-container .detail-value a:hover,
.app-container .detail-value a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.app-container .app-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 22px;
    text-align: center;
    font-size: 14px;
}

.app-container .stars {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin: 0 0 10px;
}

.app-container .star {
    color: #f5b301;
    font-size: 22px;
    line-height: 1;
    transition: none;
}

.app-container .star:not(.active) {
    color: #f5b301;
}

.app-container .app-rating > p {
    margin: 0 0 6px !important;
    color: #56637a;
    font-size: 13px;
    line-height: 1.3;
}

.app-container .app-rating > p:nth-child(3) {
    color: #56637a;
}

.app-container .average-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 36px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: 10px;
    background: #2f6df6;
    color: #ffffff;
    box-shadow: none;
}

.app-container .average-rating-badge span {
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 920px) {
    .app-container .app-info {
        grid-template-columns: 136px minmax(0, 1fr);
    }

    .app-container .app-rating {
        grid-column: 1 / -1;
        min-height: 0;
        padding-top: 14px;
    }
}

@media (max-width: 620px) {
    .app-container {
        padding: 12px 0;
    }

    .app-container .app-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .app-container .app-icon {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .app-container .app-icon img {
        width: 84px;
        height: 84px;
        border-radius: 15px;
    }

    .app-container .app-download-btn {
        width: auto;
        min-width: 112px;
    }

    .app-container .app-details {
        padding: 12px 14px;
    }

    .app-container .detail-row {
        grid-template-columns: minmax(118px, .9fr) minmax(0, 1.1fr);
        gap: 9px;
        min-height: 0;
        padding: 10px 0;
        align-items: start;
    }

    .app-container .detail-label,
    .app-container .detail-value {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .app-container .detail-label {
        align-items: flex-start;
        gap: 7px;
        font-size: 13px;
        line-height: 1.25;
    }

    .app-container .detail-label::after {
        top: 11px;
    }

    .app-container .detail-value {
        min-height: 22px;
        font-size: 14px;
        line-height: 1.35;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .app-container .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Android Mods media, editor, and mobile polish, 2026-06-03.
   Complements the compact app-info restyle and keeps existing PMP markup. */
.app-gallery .slide.is-clickable img {
    cursor: zoom-in;
}

.app-gallery .slide.is-clickable img:focus-visible {
    outline: 3px solid #2f6df6;
    outline-offset: 3px;
}

.app-gallery .slide {
    border-radius: 12px;
}

.app-gallery .slide img {
    border-radius: 12px;
}

body.pmp-gallery-lightbox-open {
    overflow: hidden;
}

.pmp-gallery-lightbox[hidden] {
    display: none !important;
}

.pmp-gallery-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(8, 13, 24, .92);
    color: #ffffff;
}

.pmp-gallery-lightbox__figure {
    display: grid;
    gap: 12px;
    justify-items: center;
    min-width: 0;
    margin: 0;
}

.pmp-gallery-lightbox__image {
    display: block;
    width: auto;
    max-width: min(100%, 1120px);
    max-height: calc(100vh - 122px);
    border-radius: 12px;
    object-fit: contain;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.pmp-gallery-lightbox__counter {
    min-height: 24px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 800;
}

.pmp-gallery-lightbox__close,
.pmp-gallery-lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.pmp-gallery-lightbox__close:hover,
.pmp-gallery-lightbox__close:focus-visible,
.pmp-gallery-lightbox__nav:hover,
.pmp-gallery-lightbox__nav:focus-visible {
    background: #ffffff;
    color: #111827;
    outline: 0;
}

.pmp-gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 34px;
}

.pmp-gallery-lightbox__nav--prev {
    justify-self: end;
}

.pmp-gallery-lightbox__nav--next {
    justify-self: start;
}

.pansu-editor-box {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}

.pansu-editor-box .peb-profile,
.pansu-editor-box .peb-head,
.pansu-editor-box .peb-stats {
    min-width: 0;
}

.pansu-editor-box .peb-name,
.pansu-editor-box .peb-bio,
.pansu-editor-box .peb-badge,
.pansu-editor-box .peb-stat {
    overflow-wrap: anywhere;
}

.pmp-yarpp-related {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pmp-yarpp-card,
.pmp-yarpp-card__link,
.pmp-yarpp-card__body,
.pmp-yarpp-card__title {
    min-width: 0;
}

@media (max-width: 768px) {
    .app-media-tabs {
        margin: 18px auto;
    }

    .app-gallery {
        overflow: visible;
    }

    .slider-container {
        max-height: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .slider-wrapper {
        gap: 10px;
    }

    .slide {
        scroll-snap-align: start;
    }

    .slide img {
        max-height: 360px;
        object-fit: cover;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(17, 24, 39, .78);
    }

    .pansu-editor-box {
        padding: 16px;
    }

    .pansu-editor-box .peb-head,
    .pansu-editor-box .peb-profile,
    .pansu-editor-box .peb-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .pmp-gallery-lightbox {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 64px 12px 16px;
    }

    .pmp-gallery-lightbox__figure {
        grid-column: 1 / -1;
        align-self: center;
    }

    .pmp-gallery-lightbox__image {
        max-width: 100%;
        max-height: calc(100vh - 156px);
        border-radius: 10px;
    }

    .pmp-gallery-lightbox__nav {
        width: 100%;
        height: 46px;
        font-size: 28px;
    }

    .pmp-gallery-lightbox__nav--prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
    }

    .pmp-gallery-lightbox__nav--next {
        grid-column: 2;
        grid-row: 2;
        justify-self: stretch;
    }

    .pmp-gallery-lightbox__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .app-media-tabs__nav {
        gap: 10px;
    }

    .app-media-tabs__tab {
        font-size: 16px;
    }

    .pansu-editor-box .peb-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pmp-yarpp-related {
        margin-top: 28px;
    }

    .pmp-yarpp-related h2 {
        font-size: 20px;
    }

    .pmp-yarpp-related__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
    }

    .pmp-yarpp-card {
        flex: none;
        width: 100%;
    }
}

/* Related cards cleanup: author belongs on article page, version gets its own line. */
.pmp-yarpp-card__editor,
.pmp-related-card__author,
.pmp-yarpp-card__mod,
.pmp-related-card__mod {
    display: none !important;
}

.pmp-related-card__spec .pmp-related-version,
.pmp-yarpp-card__spec .pmp-related-version {
    flex: 0 0 100%;
    width: 100%;
    display: block;
    margin-top: 4px;
    color: #667085;
}

.pmp-yarpp-card__body > .pmp-related-version {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 700;
}

.pmp-yarpp-card__body > .pmp-related-version::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    background-color: currentColor;
    opacity: .78;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm80 24c0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3V192c0 53 43 96 96 96h48v58.7c-28.3 12.3-48 40.5-48 73.3c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V288h48c53 0 96-43 96-96v-38.7c28.3-12.3 48-40.5 48-73.3c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 32.8 19.7 61 48 73.3V192c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32v-38.7c28.3-12.3 48-40.5 48-73.3zm224-24a24 24 0 1 1 0 48 24 24 0 1 1 0-48zM224 396a24 24 0 1 1 0 48 24 24 0 1 1 0-48z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M80 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm80 24c0-44.2-35.8-80-80-80S0 35.8 0 80c0 32.8 19.7 61 48 73.3V192c0 53 43 96 96 96h48v58.7c-28.3 12.3-48 40.5-48 73.3c0 44.2 35.8 80 80 80s80-35.8 80-80c0-32.8-19.7-61-48-73.3V288h48c53 0 96-43 96-96v-38.7c28.3-12.3 48-40.5 48-73.3c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 32.8 19.7 61 48 73.3V192c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32v-38.7c28.3-12.3 48-40.5 48-73.3zm224-24a24 24 0 1 1 0 48 24 24 0 1 1 0-48zM224 396a24 24 0 1 1 0 48 24 24 0 1 1 0-48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sidebar category icons: replace letter badges with SVG masks. */
:root {
    --pmp-side-icon-gamepad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7.3 8h9.4A5.3 5.3 0 0 1 22 13.3v2.2a2.7 2.7 0 0 1-4.6 1.9L15.9 16H8.1l-1.5 1.4A2.7 2.7 0 0 1 2 15.5v-2.2A5.3 5.3 0 0 1 7.3 8Zm.2 3.1H6v1.6H4.4v1.5H6v1.6h1.5v-1.6h1.6v-1.5H7.5v-1.6Zm9.7.3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-2.4 2.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z'/%3E%3C/svg%3E");
    --pmp-side-icon-action: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m13.2 2-8 11h5.2L8.8 22l8-11h-5.2L13.2 2Z'/%3E%3C/svg%3E");
    --pmp-side-icon-strategy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 3h12l-1.5 3L16 9H4V3Zm0 2v16H2V5h2Zm6 6h10l-1.4 2.8L20 17H10v-6Z'/%3E%3C/svg%3E");
    --pmp-side-icon-arcade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7v2.4A5 5 0 0 1 16.4 21l-2.2-3.2H9.8L7.6 21A5 5 0 0 1 5 11.4V9a7 7 0 0 1 7-7Zm-3 9H7v2H5v2h2v2h2v-2h2v-2H9v-2Zm6.5 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm2.5-3a1.3 1.3 0 1 0 0 2.6A1.3 1.3 0 0 0 18 10Z'/%3E%3C/svg%3E");
    --pmp-side-icon-puzzle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 3a2 2 0 1 1 4 0v3h3a4 4 0 0 1 4 4v2h-3a2 2 0 1 0 0 4h3v2a4 4 0 0 1-4 4h-3v-3a2 2 0 1 0-4 0v3H7a4 4 0 0 1-4-4v-3h3a2 2 0 1 0 0-4H3v-1a4 4 0 0 1 4-4h3V3Z'/%3E%3C/svg%3E");
    --pmp-side-icon-racing: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 11 7.1 6.7A3 3 0 0 1 9.8 5h4.4a3 3 0 0 1 2.7 1.7L19 11a3 3 0 0 1 2 2.8V18h-2.2a2.2 2.2 0 0 1-4.3 0h-5a2.2 2.2 0 0 1-4.3 0H3v-4.2A3 3 0 0 1 5 11Zm2.2-.4h9.6l-1.4-2.8a1.3 1.3 0 0 0-1.2-.8H9.8a1.3 1.3 0 0 0-1.2.8l-1.4 2.8Z'/%3E%3C/svg%3E");
    --pmp-side-icon-rpg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2 5 5v5c0 4.4 2.8 8.5 7 12 4.2-3.5 7-7.6 7-12V5l-7-3Zm0 4 3 1.3V10c0 2.4-1.2 4.8-3 7.1-1.8-2.3-3-4.7-3-7.1V7.3L12 6Z'/%3E%3C/svg%3E");
    --pmp-side-icon-sports: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-4.8 4.8A8 8 0 0 1 12 4v4.6L8.7 11 5.2 8.7a8 8 0 0 1 2-1.9Zm.1 11.5A8 8 0 0 1 4 12c0-.8.1-1.5.3-2.2L8 12.3l-1.7 4.8c.3.5.7.9 1 1.2ZM12 20a8 8 0 0 1-4.1-1.1l1.6-4.7h5l1.6 4.7A8 8 0 0 1 12 20Zm5.7-2.9-1.7-4.8 3.7-2.5c.2.7.3 1.4.3 2.2a8 8 0 0 1-3.3 6.3c.3-.3.7-.7 1-1.2ZM15.3 11 12 8.6V4a8 8 0 0 1 6.8 4.7L15.3 11Z'/%3E%3C/svg%3E");
    --pmp-side-icon-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.9 9h-3.2a15.7 15.7 0 0 0-1.1-5 8 8 0 0 1 4.3 5ZM12 4.1c.8 1.2 1.4 3.6 1.6 6.9h-3.2c.2-3.3.8-5.7 1.6-6.9ZM4.3 13h3.2c.1 1.9.5 3.6 1 5A8 8 0 0 1 4.3 13Zm3.2-2H4.3A8 8 0 0 1 8.5 6c-.5 1.4-.9 3.1-1 5Zm4.5 8.9c-.8-1.2-1.4-3.6-1.6-6.9h3.2c-.2 3.3-.8 5.7-1.6 6.9Zm3.5-1.9c.5-1.4.9-3.1 1-5h3.2a8 8 0 0 1-4.2 5Z'/%3E%3C/svg%3E");
    --pmp-side-icon-apps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 3h5v5H5V3Zm9 0h5v5h-5V3ZM5 10h5v5H5v-5Zm9 0h5v5h-5v-5ZM5 17h5v4H5v-4Zm9 0h5v4h-5v-4Z'/%3E%3C/svg%3E");
}

.am-side-category .am-side-category__mark {
    position: relative;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: linear-gradient(135deg, #d8f7f1 0%, #c7efe7 100%) !important;
}

.am-side-category .am-side-category__mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: #0f8f6a;
    -webkit-mask: var(--pmp-side-category-icon, var(--pmp-side-icon-gamepad)) center / contain no-repeat;
    mask: var(--pmp-side-category-icon, var(--pmp-side-icon-gamepad)) center / contain no-repeat;
}

.am-side-category[href*="/action/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-action);
}

.am-side-category[href*="/strategy/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-strategy);
}

.am-side-category[href*="/arcade/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-arcade);
}

.am-side-category[href*="/puzzle/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-puzzle);
}

.am-side-category[href*="/racing/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-racing);
}

.am-side-category[href*="/role-playing/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-rpg);
}

.am-side-category[href*="/sports-games/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-sports);
}

.am-side-category[href*="/communication/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-network);
}

.am-side-category[href*="/finance/"] {
    --pmp-side-category-icon: var(--pmp-side-icon-apps);
}

/* Download page stat icons. */
.pmp-download-page {
    --pmp-download-icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 2h8l5 5v15H6V2Zm7 1.8V8h4.2L13 3.8ZM8 12v2h8v-2H8Zm0 4v2h6v-2H8Z'/%3E%3C/svg%3E");
    --pmp-download-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10ZM8 12h3v3H8v-3Z'/%3E%3C/svg%3E");
    --pmp-download-icon-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 9 4.5v11L12 22l-9-4.5v-11L12 2Zm0 2.2L6.4 7 12 9.8 17.6 7 12 4.2ZM5 8.7v7.6l6 3V11.7l-6-3Zm8 10.6 6-3V8.7l-6 3v7.6Z'/%3E%3C/svg%3E");
    --pmp-download-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 4h2v8l3.2-3.2 1.4 1.4L12 15.8l-5.6-5.6 1.4-1.4L11 12V4Zm-5 14h12v2H6v-2Z'/%3E%3C/svg%3E");
}

.pmp-download-page .app-details .detail-row {
    position: relative;
    padding-left: 36px;
}

.pmp-download-page .app-details .detail-row::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 15px;
    height: 15px;
    background: #2458f5;
    transform: translateY(-50%);
    -webkit-mask: var(--pmp-download-stat-icon, var(--pmp-download-icon-file)) center / contain no-repeat;
    mask: var(--pmp-download-stat-icon, var(--pmp-download-icon-file)) center / contain no-repeat;
}

.pmp-download-page .app-details .detail-row:nth-child(2) {
    --pmp-download-stat-icon: var(--pmp-download-icon-calendar);
}

.pmp-download-page .app-details .detail-row:nth-child(3) {
    --pmp-download-stat-icon: var(--pmp-download-icon-box);
}

.pmp-download-page .app-details .detail-row:nth-child(5) {
    --pmp-download-stat-icon: var(--pmp-download-icon-download);
}

.pmp-download-page .app-details .detail-label::before,
.pmp-download-page .app-details .detail-label::after {
    content: none;
}

.app-download-variant-c {
    --pmp-download-icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 2h8l5 5v15H6V2Zm7 1.8V8h4.2L13 3.8ZM8 12v2h8v-2H8Zm0 4v2h6v-2H8Z'/%3E%3C/svg%3E");
    --pmp-download-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm11 8H6v10h12V10ZM8 12h3v3H8v-3Z'/%3E%3C/svg%3E");
    --pmp-download-icon-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 9 4.5v11L12 22l-9-4.5v-11L12 2Zm0 2.2L6.4 7 12 9.8 17.6 7 12 4.2ZM5 8.7v7.6l6 3V11.7l-6-3Zm8 10.6 6-3V8.7l-6 3v7.6Z'/%3E%3C/svg%3E");
    --pmp-download-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 4h2v8l3.2-3.2 1.4 1.4L12 15.8l-5.6-5.6 1.4-1.4L11 12V4Zm-5 14h12v2H6v-2Z'/%3E%3C/svg%3E");
}

.app-download-variant-c .pmp-download-c__stats span {
    position: relative;
    padding-left: 38px !important;
}

.app-download-variant-c .pmp-download-c__stats span::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 15px;
    height: 15px;
    background: #2458f5;
    transform: translateY(-50%);
    -webkit-mask: var(--pmp-download-stat-icon, var(--pmp-download-icon-file)) center / contain no-repeat;
    mask: var(--pmp-download-stat-icon, var(--pmp-download-icon-file)) center / contain no-repeat;
}

.app-download-variant-c .pmp-download-c__stats span:nth-child(2) {
    --pmp-download-stat-icon: var(--pmp-download-icon-calendar);
}

.app-download-variant-c .pmp-download-c__stats span:nth-child(3) {
    --pmp-download-stat-icon: var(--pmp-download-icon-box);
}

.app-download-variant-c .pmp-download-c__stats span:nth-child(4) {
    --pmp-download-stat-icon: var(--pmp-download-icon-download);
}

/* Standalone download page mobile polish. */
@media (max-width: 620px) {
    .pmp-download-page.app-container {
        padding: 12px 0;
    }

    .pmp-download-page .app-info {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .pmp-download-page .app-icon {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px 12px;
        align-items: center;
        padding: 12px;
    }

    .pmp-download-page .app-icon img {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .pmp-download-page .app-icon .app-download-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 2;
        align-self: center;
        justify-self: stretch;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 10px;
        background: linear-gradient(135deg, #16a34a 0%, #0f8f5c 100%);
        border: 0;
        color: #ffffff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 14px rgba(18, 168, 107, .16);
        font-size: 14px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .01em;
    }

    .pmp-download-page .app-icon .app-download-btn:hover,
    .pmp-download-page .app-icon .app-download-btn:focus-visible {
        background: linear-gradient(135deg, #12813d 0%, #08784d 100%);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .pmp-download-page .app-details {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .pmp-download-page .app-details .detail-row {
        min-height: 0;
        padding: 10px 12px 10px 38px;
        border: 1px solid #dbe2ec;
        border-radius: 8px;
        background: #f8fafc;
    }

    .pmp-download-page .app-details .detail-label {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.15;
    }

    .pmp-download-page .app-details .detail-value {
        min-height: 0;
        font-size: 13px;
        line-height: 1.25;
    }

    .pmp-download-page .download-button {
        width: 100%;
        min-height: 54px;
        margin: 0;
        padding: 12px 14px;
        justify-content: center;
        gap: 8px;
        border-radius: 9px;
        font-size: 16px;
        line-height: 1.2;
    }

    .pmp-download-page .download-button img {
        width: 22px;
        height: 22px;
    }

    .pmp-download-page .download-button .btn-text {
        flex: 1 1 auto;
        max-width: calc(100% - 34px);
        font-size: 16px;
        line-height: 1.25;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .pmp-download-page .download-button .downloads-count {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .pmp-download-page .app-icon {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
    }

    .pmp-download-page .app-icon img {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }
}

/* Standalone download page layout: put action below details. */
.pmp-download-page .app-info {
    display: grid;
    grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
    gap: 14px 18px;
    align-items: stretch;
}

.pmp-download-page .app-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
}

.pmp-download-page .app-details {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    box-sizing: border-box;
}

.pmp-download-page .download-button {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    min-height: 58px;
    margin: 0;
    box-sizing: border-box;
    justify-content: center;
}

.pmp-download-page .download-button .btn-text {
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 620px) {
    .pmp-download-page .app-info {
        grid-template-columns: 1fr;
    }

    .pmp-download-page .app-icon,
    .pmp-download-page .app-details,
    .pmp-download-page .download-button {
        grid-column: 1;
        grid-row: auto;
    }
}
/* Standalone download page compact action button. */
.pmp-download-page .download-button {
    padding: 12px 16px;
    align-content: center;
    gap: 4px 10px;
}

.pmp-download-page .download-button img {
    width: 24px;
    height: 24px;
    margin: 0;
}

.pmp-download-page .download-button .btn-text {
    flex: 1 1 calc(100% - 34px);
    max-width: none;
    font-size: 18px;
    line-height: 1.25;
    text-align: left;
}

.pmp-download-page .download-button .downloads-count {
    flex: 0 0 100%;
    width: 100%;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}