.app-add-icon {
    display: grid !important;
    width: 100%;
    height: 100%;
    place-items: center;
    color: currentColor !important;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
}

#prehravac {
    scroll-margin-top: calc(var(--app-header-height, 54px) + 10px);
}

@media (max-width: 820px) {
    .site-footer {
        display: none;
    }

    .app-header-inner {
        width: 100%;
        padding-inline: 18px;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .app-search-toggle {
        position: absolute;
        left: 18px;
    }

    .app-header-actions {
        position: absolute;
        right: 18px;
        width: 36px;
        gap: 0;
        transform: none;
    }

    .app-header-actions .theme-toggle {
        display: none;
    }

    .app-library-shortcut {
        color: #242b36 !important;
    }

    html[data-theme="dark"] .app-library-shortcut {
        color: #f5f7fb !important;
    }

    .detail-backdrop {
        height: clamp(190px, 52vw, 245px);
    }

    .detail-shell,
    .collection-detail-hero {
        padding-top: calc(clamp(190px, 52vw, 245px) - 14px);
        padding-bottom: 12px;
    }

    .detail-copy,
    .collection-hero-grid > div:last-child {
        padding-top: 26px;
        background: linear-gradient(to bottom, transparent, var(--bg) 22px);
    }

    .detail-copy h1,
    .collection-hero-grid h1 {
        font-size: clamp(25px, 7.2vw, 32px);
        line-height: 1.04;
        letter-spacing: -.035em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .detail-original {
        margin-top: 5px;
        font-size: 11px;
    }

    .detail-facts {
        margin-top: 10px;
    }

    .detail-description,
    .collection-hero-grid .detail-description {
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .detail-actions {
        margin-top: 14px;
    }

    .detail-actions .button {
        min-height: 46px;
    }

    .player-section {
        padding-top: 14px;
    }

    .player-section .section-heading.compact {
        margin-bottom: 14px;
    }

    .player-section .section-heading h2 {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(19px, 5.2vw, 24px);
        line-height: 1.08;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    /* Detail kolekce je už pod sticky hlavičkou. Další top podle výšky
       hlavičky vytvářel prázdný pás před bannerem. */
    .collection-page .collection-backdrop {
        top: 0 !important;
        height: 178px !important;
    }

    .collection-page.has-backdrop .collection-detail-hero {
        padding-top: 96px !important;
    }

    .collection-page .collection-hero-card {
        gap: 10px 12px;
        padding: 12px !important;
    }

    .collection-page .collection-poster {
        width: 96px !important;
    }

    .collection-page .collection-hero-body .detail-description {
        -webkit-line-clamp: 2 !important;
    }

    .collection-page .collection-hero-actions {
        margin-top: 11px !important;
    }

    .collection-page .collection-player-shell {
        scroll-margin-bottom: calc(var(--tab-bar-height, 66px) + 14px);
    }
}

@media (max-width: 390px) {
    .app-header-inner {
        padding-inline: 14px;
    }

    .app-search-toggle {
        left: 14px;
    }

    .app-header-actions {
        right: 14px;
    }

    .detail-copy h1,
    .collection-hero-grid h1 {
        font-size: clamp(24px, 7vw, 29px);
    }

    .collection-page .collection-poster {
        width: 90px !important;
    }
}
