/* ==========================================================================
   ANDROIDI — стили карточки приложения / игры (fullstory.tpl)
   Подключается после styles.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ОБЁРТКА СТРАНИЦЫ
   -------------------------------------------------------------------------- */
.app-page {
    padding-bottom: 24px;
}

/* --------------------------------------------------------------------------
   2. ШАПКА КАРТОЧКИ
   -------------------------------------------------------------------------- */
.app-hero {
    position: relative;
    margin-top: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(680px 260px at 92% 0%, rgba(108, 76, 241, .14), transparent 70%),
        var(--surface);
    overflow: hidden;
}

html[data-theme="dark"] .app-hero {
    background:
        radial-gradient(680px 260px at 92% 0%, rgba(108, 76, 241, .26), transparent 70%),
        var(--surface);
}

.app-hero__grid {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.app-hero__icon {
    width: 148px;
    height: 148px;
    border-radius: 30px;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 18px 34px -18px rgba(16, 24, 40, .45);
}

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

.app-hero__body {
    min-width: 0;
}

.app-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.14;
}

.app-hero__dev {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 16px;
    color: var(--text-2);
    font-size: 14.5px;
}

.app-hero__dev a {
    color: var(--brand);
    font-weight: 600;
}

.app-hero__dev .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
}

.app-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

/* Блок рейтинга */
.app-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.app-rating__score {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.app-rating__value {
    color: var(--text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}

.app-rating__stars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-rating__votes {
    color: var(--text-3);
    font-size: 12.5px;
}

.app-rating__sep {
    width: 1px;
    height: 34px;
    background: var(--line);
}

.app-rating__extra {
    display: flex;
    gap: 22px;
    color: var(--text-3);
    font-size: 12.5px;
}

.app-rating__extra b {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* Кнопки скачивания в шапке */
.app-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
}

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

.app-hero__cta-note {
    margin: 0;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.app-hero__tools {
    display: flex;
    gap: 8px;
}

.app-hero__tools .btn {
    flex: 1 1 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: var(--r-sm);
}

/* Мета-строка под шапкой */
.app-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.app-meta__item {
    padding: 0 16px 0 0;
}

.app-meta__label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
}

.app-meta__value {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
}

.app-meta__value .icon {
    width: 15px;
    height: 15px;
    color: var(--text-3);
    stroke-width: 2;
}

@media (max-width: 1024px) {
    .app-hero__grid {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .app-hero__icon {
        width: 112px;
        height: 112px;
        border-radius: 24px;
    }

    .app-hero__cta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        align-items: center;
    }

    .app-hero__cta .btn--download {
        width: auto;
        flex: 1 1 240px;
    }

    .app-hero__cta-note {
        flex: 1 1 100%;
        order: 3;
        text-align: left;
    }

    .app-hero__tools {
        flex: 1 1 100%;
    }

    .app-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 8px;
    }
}

@media (max-width: 560px) {
    .app-hero {
        padding: 18px;
        border-radius: var(--r-lg);
    }

    .app-hero__grid {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 16px;
    }

    .app-hero__icon {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }

    .app-hero h1 {
        font-size: 22px;
    }

    .app-rating {
        gap: 14px;
    }

    .app-rating__value {
        font-size: 26px;
    }

    .app-rating__extra {
        display: none;
    }

    .app-rating__sep {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   3. ДВУХКОЛОНОЧНЫЙ МАКЕТ
   -------------------------------------------------------------------------- */
.app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

/* Все блоки основного столбца идут с одинаковым шагом */
.app-main {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
}

.app-main>*,
.app-side>* {
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Дочерние блоки не должны раздвигать колонку своим содержимым */
.app-main .dle-text,
.app-main .shots,
.app-main .shots__track,
.app-main .video,
.app-main table {
    min-width: 0;
    max-width: 100%;
}

.app-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    display: grid;
    gap: 14px;
    align-content: start;
}

.app-block {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.app-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.app-block__title .icon {
    width: 19px;
    height: 19px;
    color: var(--brand);
}

.app-block__sub {
    margin: -10px 0 16px;
    color: var(--text-3);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .app-side {
        position: static;
        grid-row: 1;
    }
}

/* --------------------------------------------------------------------------
   4. БЛОК СКАЧИВАНИЯ (сайдбар)
   -------------------------------------------------------------------------- */
.dl-box {
    position: relative;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--brand-grad);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--sh-brand);
}

.dl-box::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
}

.dl-box__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dl-box__title {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
}

.dl-box__sub {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .78);
    font-size: 13.5px;
}

.dl-box .btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 52px;
    background: #fff;
    color: var(--brand);
    box-shadow: none;
    font-size: 16px;
}

.dl-box .btn:hover {
    background: #f6f3ff;
    color: var(--brand-700);
}

.dl-box__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.dl-box__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dl-box__meta .icon {
    width: 13px;
    height: 13px;
}

/* Обычная карточка скачивания (светлая) */
.dl-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.dl-card__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dl-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--brand-100);
    color: var(--brand);
}

.dl-card__name {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-card__sub {
    color: var(--text-3);
    font-size: 12px;
}

.dl-card .btn {
    width: 100%;
}

.dl-card__note {
    margin: 12px 0 0;
    color: var(--text-3);
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
}

/* --------------------------------------------------------------------------
   5. БЛОК «ЧТО В МОДЕ»
   -------------------------------------------------------------------------- */
.mod-box {
    position: relative;
    padding: 20px 22px;
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
    border-radius: var(--r-lg);
    background: var(--brand-50);
}

.mod-box__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 16px;
    font-weight: 700;
}

.mod-box__title .icon {
    width: 20px;
    height: 20px;
}

.mod-box ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: 14.5px;
}

.mod-box li {
    position: relative;
    margin: 0;
    padding-left: 26px;
}

.mod-box li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.mod-box__note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed color-mix(in srgb, var(--brand) 25%, transparent);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.55;
}

/* Плашка предупреждения */
.notice {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--r);
    background: var(--orange-100);
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.55;
}

.notice .icon {
    flex: 0 0 auto;
    color: var(--orange);
    margin-top: 1px;
}

.notice b {
    display: block;
    margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   6. СКРИНШОТЫ: одна высота, ширина по пропорциям кадра (как в RuStore)
   -------------------------------------------------------------------------- */
.shots {
    position: relative;
}

.shots__track {
    display: flex;
    gap: 12px;
    height: 300px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shots__track::-webkit-scrollbar {
    display: none;
}

.shot {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
    overflow: hidden;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.shot img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.shot:hover img {
    transform: scale(1.02);
}

.shots__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.shots__head h2 {
    margin: 0;
}

.shots__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--sh-2);
    transition: opacity .18s, border-color .18s, color .18s;
}

.shots__arrow:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.shots__arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

.shots__arrow--prev {
    left: -18px;
}

.shots__arrow--next {
    right: -18px;
}

@media (hover: none) {
    .shots__arrow {
        display: none;
    }
}

@media (max-width: 1024px) {
    .shots__track {
        height: 340px;
    }
}

@media (max-width: 720px) {
    .shots__track {
        height: 260px;
        gap: 8px;
    }

    .shot {
        border-radius: 14px;
    }
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(8, 9, 14, .88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    backdrop-filter: blur(4px);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--r);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(6px);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, .26);
}

@media (max-width: 720px) {

    .lightbox__prev,
    .lightbox__next {
        display: none;
    }

    .lightbox {
        padding: 14px;
    }
}

/* --------------------------------------------------------------------------
   7. ВКЛАДКИ (описание / характеристики / отзывы)
   -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs__btn {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: .18s ease;
}

.tabs__btn:hover {
    color: var(--text);
}

.tabs__btn.is-active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--sh-1);
}

.tabs__panel {
    display: none;
}

.tabs__panel.is-active {
    display: block;
    animation: fadeUp .25s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   8. СПИСОК ИЗМЕНЕНИЙ
   -------------------------------------------------------------------------- */
.changelog {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.changelog li {
    position: relative;
    padding-left: 26px;
    margin: 0;
}

.changelog li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    background: var(--surface);
}

.changelog li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: -18px;
    width: 1px;
    background: var(--line);
}

.changelog li:last-child::after {
    display: none;
}

.changelog__ver {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
}

.changelog__ver span {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
}

.changelog__text {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. ВИДЕО
   -------------------------------------------------------------------------- */
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #000;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   10. ХАРАКТЕРИСТИКИ (сайдбар)
   -------------------------------------------------------------------------- */
.spec-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.spec-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.spec-list li:last-child {
    border-bottom: 0;
}

.spec-list__key {
    flex: 0 0 46%;
    color: var(--text-3);
}

.spec-list__val {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   11. КОММЕНТАРИИ
   -------------------------------------------------------------------------- */
.dle-comm {
    margin: 0 auto;
}

.dle-comm h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.dle-comm__count {
    color: var(--text-3);
    font-size: 15px;
    font-weight: 500;
}

.dle-comm_item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.dle-comm_meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dle-comm_user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dle-comm_avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
}

.dle-comm_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dle-comm_user>div {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
}

.dle-comm_user>div span {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 400;
}

.dle-comm_text {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    padding-top: 4px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.6;
}

.dle-comm_item>div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.dle-comm form textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    resize: vertical;
    outline: 0;
}

.dle-comm form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
}

.dle-comm_submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.comments_subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   12. ПОХОЖИЕ
   -------------------------------------------------------------------------- */
.related {
    margin-top: 14px;
}

.related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

/* --------------------------------------------------------------------------
   13. ЛИПКАЯ КНОПКА НА МОБИЛЬНОМ
   -------------------------------------------------------------------------- */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .25s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

.sticky-cta>span:not(.sticky-cta__icon) {
    flex: 1 1 auto;
    min-width: 0;
}

.sticky-cta__name {
    max-width: 100%;
}

.sticky-cta__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
}

.sticky-cta__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-cta__name {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sticky-cta__size {
    color: var(--text-3);
    font-size: 11.5px;
}

.sticky-cta .btn {
    margin-left: auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .sticky-cta {
        display: flex;
    }

    .app-page {
        padding-bottom: 76px;
    }
}

/* --------------------------------------------------------------------------
   14. АВТОР / ПОДЕЛИТЬСЯ
   -------------------------------------------------------------------------- */
.app-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.share-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.share-btn .icon {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   15. ОГЛАВЛЕНИЕ / ЯКОРЯ
    -------------------------------------------------------------------------- */
.anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.anchors li {
    margin: 0;
}

.anchors a {
    display: inline-block;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.anchors a:hover {
    background: var(--brand-100);
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   16. ОШИБКИ / ПУСТЫЕ СОСТОЯНИЯ В КАРТОЧКЕ
   -------------------------------------------------------------------------- */
.app-empty {
    padding: 40px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
    color: var(--text-2);
    text-align: center;
}


/* --------------------------------------------------------------------------
   17. ШИРОКИЙ БЛОК СКАЧИВАНИЯ (внизу карточки)
   -------------------------------------------------------------------------- */
.dl-wide {
    position: relative;
    margin-top: 0;
    padding: 26px 26px 22px;
    border-radius: var(--r-xl);
    background: var(--brand-grad);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--sh-brand);
}

.dl-wide::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    pointer-events: none;
}

.dl-wide__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dl-wide__title {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 30px);
}

.dl-wide__sub {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.dl-wide__btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 56px;
    border-radius: var(--r);
    background: #fff;
    color: var(--brand);
    font-size: 17px;
    font-weight: 600;
    box-shadow: none;
}

.dl-wide__btn:hover {
    background: #f4f0ff;
    color: var(--brand-700);
}

.dl-wide__meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
}

.dl-wide__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 560px) {
    .dl-wide {
        padding: 20px 18px 18px;
        border-radius: var(--r-lg);
    }

    .dl-wide__btn {
        min-height: 50px;
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
   18. ПОДБОРКИ (теги) И РАЗРАБОТЧИК В САЙДБАРЕ
   -------------------------------------------------------------------------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.tag-cloud a:hover {
    background: var(--brand-100);
    color: var(--brand);
}

.app-block__empty {
    margin: 0;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.5;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.dev-card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
}

.dev-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dev-card__body {
    min-width: 0;
}

.dev-card__name {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-card__sub {
    color: var(--text-3);
    font-size: 12px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    word-break: break-all;
}

.dev-link:hover {
    color: var(--brand);
}


/* Длинные строки и ссылки в комментариях не растягивают карточку */
.dle-comm,
.dle-comm_item,
.dle-comm_text,
.dle-comm_text * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 100%;
}

.dle-comm_item>div {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   19. ЗАГЛУШКА «ФАЙЛ СКОРО ПОЯВИТСЯ» (кот с тележкой APK, по центру)
   -------------------------------------------------------------------------- */
.dl-wait-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 14px 10px 6px;
}

.dl-wait-center__art {
    width: 210px;
    max-width: 72%;
    height: auto;
    overflow: visible;
}

.dl-wait-center__text {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.dl-wait-center__sub {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

/* анимации */
.wc-cat {
    animation: wc-bob 1.5s ease-in-out infinite;
}

.wc-leg-a {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: wc-step-a .8s ease-in-out infinite;
}

.wc-leg-b {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: wc-step-b .8s ease-in-out infinite;
}

.wc-tail {
    transform-box: fill-box;
    transform-origin: 100% 100%;
    animation: wc-tail 1.3s ease-in-out infinite;
}

.wc-wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: wc-spin 1.5s linear infinite;
}

.wc-apk {
    transform-box: fill-box;
    transform-origin: center;
    animation: wc-bob 1.5s ease-in-out infinite .15s;
}

.wc-road {
    stroke-dasharray: 7 9;
    animation: wc-road 1s linear infinite;
}

@keyframes wc-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes wc-step-a {
    0%, 100% { transform: rotate(14deg); }
    50% { transform: rotate(-14deg); }
}

@keyframes wc-step-b {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(14deg); }
}

@keyframes wc-tail {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(8deg); }
}

@keyframes wc-spin {
    to { transform: rotate(360deg); }
}

@keyframes wc-road {
    to { stroke-dashoffset: -32; }
}

@media (max-width: 560px) {
    .dl-wait-center {
        padding: 10px 4px 4px;
    }

    .dl-wait-center__art {
        width: 190px;
    }

    .dl-wait-center__text {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-cat,
    .wc-leg-a,
    .wc-leg-b,
    .wc-tail,
    .wc-wheel,
    .wc-apk,
    .wc-road {
        animation: none !important;
    }
}




.dl-files { display: grid; gap: 10px; margin: 6px 0 4px; }

.dl-file {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    color: #fff; text-decoration: none; transition: background .16s;
}

.dl-file:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.dl-file__num {
    flex: none; display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; color: #6242ee; font-size: 14px; font-weight: 800;
}

.dl-file__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dl-file__name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.dl-file__meta { font-size: 12.5px; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-file__go {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: #fff; color: #6242ee; font-size: 13px; font-weight: 700;
}

@media (max-width: 560px) {
    .dl-file { padding: 12px 14px; gap: 10px; }
    .dl-file__go span { display: none; }
}
/* чтобы строка не раздувалась */
.dl-file,
.dl-file__body { min-width: 0; }

@media (max-width: 560px) {
    .dl-file {
        padding: 12px 12px;
        gap: 10px;
    }

    /* описание файла скрыто */
    .dl-file__meta {
        display: none;
    }

    .dl-file__name {
        font-size: 14px;
    }

    /* кнопка — только иконка, без текста */
    .dl-file__go {
        padding: 9px;
    }

    .dl-file__go span {
        display: none;
    }
}
.dl-fast {
    position: relative;
    overflow: hidden;
    margin: 14px 0;
    padding: 20px 22px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(98, 66, 238, .10), transparent 55%),
        radial-gradient(120% 140% at 100% 0%, rgba(34, 158, 217, .10), transparent 55%),
        var(--surface);
    box-shadow: 0 12px 32px rgba(98, 66, 238, .08);
}

.dl-fast__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.dl-fast__ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand-grad);
    color: #fff;
}

.dl-fast__ico svg {
    width: 20px;
    height: 20px;
}

.dl-fast__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dl-fast__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text);
}

.dl-fast__sub {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-2);
}

.dl-fast__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dl-fast__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.dl-fast__btn:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
}

.dl-fast__logo {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
}

.dl-fast__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dl-fast__btn--max {
    background: linear-gradient(135deg, #3a2bd6 0%, #6a4cff 55%, #a06cff 100%);
}

.dl-fast__btn--tg {
    background: linear-gradient(135deg, #1c8ac0 0%, #229ed9 55%, #38bdf8 100%);
}

@media (max-width: 560px) {
    .dl-fast {
        padding: 16px;
        border-radius: 16px;
    }

    .dl-fast__btns {
        grid-template-columns: 1fr;
    }

    .dl-fast__btn {
        padding: 14px 16px;
    }

    .dl-fast__title {
        font-size: 16px;
    }
}