/* لوحة سفلية موحّدة: إعجاب/مشاركة + سابق/تالي */
:root {
    --qgame-footer-h: calc(102px + env(safe-area-inset-bottom, 0px));
    --qgame-actions-h: var(--qgame-footer-h);
}

.qcwf,
.qseq,
.qds {
    display: flex;
    flex-direction: column;
}

.qcwf-container,
.qseq-container,
.qds-container {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.qgame-feed-footer {
    flex: 0 0 auto;
    width: 100%;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.55);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 120;
}

.qgame-feed-footer__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 5vw, 32px);
    padding: 5px 16px 2px;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 0;
}

.qcwf-actions,
.qseq-actions,
.qds-actions,
.qgame-actions-dock {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qcwf-action-btn,
.qseq-action-btn,
.qds-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.68);
    min-width: 44px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    padding: 2px 4px;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.qcwf-action-btn svg,
.qseq-action-btn svg,
.qds-action-btn svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.qcwf-action-btn:active,
.qseq-action-btn:active,
.qds-action-btn:active {
    transform: scale(0.9);
}

.qcwf-action-count,
.qseq-action-count,
.qds-action-count {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1;
}

.qcwf-card {
    padding-bottom: 16px !important;
}

.qseq-card {
    padding: 16px !important;
}

.qds-card {
    padding: 16px !important;
}

@media (min-width: 901px) {
    :root {
        --qgame-footer-h: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .qgame-feed-footer__actions {
        gap: clamp(16px, 2.5vw, 28px);
        padding: 6px clamp(20px, 4vw, 48px) 2px;
    }

    .qcwf-card,
    .qseq-card,
    .qds-card {
        padding-bottom: 12px !important;
    }
}
