/* dm-discover.css — TikTok/Shorts-style video discover feed */

/* Flash toast (e.g. go-live redirect hint) */
.dc-flash-toast {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: min(420px, calc(100vw - 24px));
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--dm-border, #e2e8f0);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    color: #111827;
}
.dc-flash-toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.dc-flash-toast__text {
    margin: 0;
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 600;
    color: #334155;
    padding-top: 0.35rem;
}
.dc-flash-toast__close {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.dc-flash-toast__close:hover {
    background: #e2e8f0;
    color: #111827;
}
/* Uses --dm-primary from dm-brand.css when linked on the discover page */

/* ── Go-live modal ───────────────────────────────────────── */
.dc-go-live-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    visibility: hidden;
}
.dc-go-live-modal.is-open {
    pointer-events: auto;
    visibility: visible;
}
.dc-go-live-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.dc-go-live-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 95vw);
    max-height: 92dvh;
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dc-go-live-modal__head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}
.dc-go-live-modal__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.dc-go-live-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
}
.dc-go-live-form {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.dc-go-live-form__preview-wrap {
    display: flex;
    justify-content: center;
}
.dc-go-live-form__preview {
    width: min(320px, 100%);
    aspect-ratio: 9/16;
    border-radius: 12px;
    background: var(--dm-primary, #292c7a);
    position: relative;
    overflow: hidden;
}

.dc-camera-preview-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--dm-primary, #292c7a);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-camera-preview-wrap .dc-camera-placeholder-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
}

.dc-camera-preview-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dc-go-live-form__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.dc-go-live-form__offline,
.dc-go-live-form__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    gap: 0.35rem;
}
.dc-go-live-form__overlay {
    display: none;
    background: rgba(0, 0, 0, 0.55);
}
.dc-go-live-form__live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: none;
    background: #dc2626;
    color: #fff;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dc-go-live-form__error {
    display: none;
    margin: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.78rem;
    font-weight: 600;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.dc-go-live-form__section label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
}
.dc-go-live-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Go-live / upload studio modals (light) */
.dc-gl-modal {
    width: min(440px, 94vw);
    max-height: 92dvh;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dm-border, #e2e8f0);
    border-radius: 1.1rem;
    color: #111827;
    box-shadow: var(--dm-shadow-lg, 0 20px 40px rgba(15, 23, 42, 0.12));
}
.dc-gl-modal--upload {
    width: min(480px, 94vw);
}
.dc-gl-modal--upload-entry {
    width: min(480px, 94vw);
}
.dc-gl-modal__body {
    padding: 0 1.1rem 0.25rem;
}
.dc-upload-entry__text {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
}
.dc-upload-entry__list {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}
.dc-upload-entry__actions {
    padding: 0.85rem 1.1rem 1.1rem;
}
.dc-upload-entry__actions .dc-gl-modal__btn {
    text-decoration: none;
    text-align: center;
}
.dc-gl-modal__field-hint {
    margin: -0.15rem 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}
.dc-gl-modal__field-hint a {
    color: var(--dm-primary, #292c7a);
    font-weight: 700;
    text-decoration: none;
}
.dc-gl-modal__field-hint a:hover {
    text-decoration: underline;
}
.dc-upload-shop-picker .dm-videos-shop-picker__status {
    margin-bottom: 0.55rem;
    color: var(--dm-primary, #292c7a);
}
.dc-upload-promo-table-wrap {
    max-height: min(240px, 38vh);
    overflow: auto;
    border: 1px solid var(--dm-border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
}
.dc-upload-promo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.dc-upload-promo-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.55rem 0.65rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid var(--dm-border, #e2e8f0);
}
.dc-upload-promo-table__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.dc-upload-promo-table__col-check {
    width: 2.4rem;
    text-align: center;
}
.dc-upload-promo-table__col-price {
    width: 5.5rem;
    white-space: nowrap;
}
.dc-upload-promo-table__col-status {
    width: 5.75rem;
}
.dc-upload-promo-table__row {
    cursor: pointer;
    transition: background 0.12s;
}
.dc-upload-promo-table__row:hover {
    background: rgba(41, 44, 122, 0.03);
}
.dc-upload-promo-table__row.is-selected {
    background: rgba(41, 44, 122, 0.1);
    box-shadow: inset 3px 0 0 var(--dm-primary, #292c7a);
}
.dc-upload-promo-table__row td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.dc-upload-promo-table__checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--dm-primary, #292c7a);
    pointer-events: none;
    cursor: default;
}
.dc-upload-promo-table__product {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.dc-upload-promo-table__thumb {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--dm-border, #e2e8f0);
    background: #f8fafc;
}
.dc-upload-promo-table__name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dc-upload-promo-table__col-price {
    font-weight: 700;
    color: var(--dm-primary, #292c7a);
}
.dc-upload-promo-table__status {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}
.dc-upload-promo-table__status--live {
    color: #047857;
    background: #ecfdf5;
}
.dc-upload-promo-table__status--draft {
    color: #64748b;
    background: #f1f5f9;
}
.dc-upload-promo-table__featured-tag {
    display: inline-flex;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #db3630;
}
.dc-gl-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--dm-border, #e2e8f0);
    background: linear-gradient(180deg, rgba(41, 44, 122, 0.04), transparent);
}
.dc-gl-modal__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.dc-gl-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.dc-gl-modal__icon--upload {
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.dc-gl-modal__icon i {
    font-size: 0.82rem;
    color: #fff;
}
.dc-gl-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dm-primary, #292c7a);
}
.dc-gl-modal__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: var(--dm-slate, #64748b);
}
.dc-gl-modal__close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.dc-gl-modal__close:hover {
    background: #e2e8f0;
    color: #111827;
}
.dc-gl-modal__form {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.dc-gl-modal__form--scroll {
    max-height: calc(92dvh - 72px);
    overflow-y: auto;
}
.dc-gl-modal__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 38dvh;
    background-color: #1e2158;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.52)),
        url('/images/african/drummers-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.85rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dm-border, #e2e8f0);
}
.dc-gl-modal__preview video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dc-gl-modal__preview-ph {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    z-index: 1;
}
.dc-gl-modal__live-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.92);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}
.dc-gl-modal__live-badge[hidden] {
    display: none !important;
}
.dc-gl-modal__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: dc-live-pulse 1.2s ease-in-out infinite;
}
@keyframes dc-live-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.dc-gl-modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}
.dc-gl-modal__overlay i {
    font-size: 1.75rem;
}
.dc-gl-modal__error {
    display: none;
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 5;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.76rem;
    font-weight: 600;
}
.dc-gl-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}
.dc-gl-modal__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dc-gl-modal__optional {
    font-weight: 500;
    text-transform: none;
    color: #94a3b8;
    letter-spacing: 0;
}
.dc-gl-modal__input,
.dc-gl-modal__textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--dm-border, #e2e8f0);
    color: #111827;
    border-radius: 0.65rem;
    padding: 0.68rem 0.85rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.dc-gl-modal__textarea {
    resize: vertical;
    min-height: 4.5rem;
}
.dc-gl-modal__input::placeholder,
.dc-gl-modal__textarea::placeholder {
    color: #94a3b8;
}
.dc-gl-modal:not(.dc-gl-modal--upload) .dc-gl-modal__input:focus,
.dc-gl-modal:not(.dc-gl-modal--upload) .dc-gl-modal__textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.dc-gl-modal--upload .dc-gl-modal__input:focus,
.dc-gl-modal--upload .dc-gl-modal__textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.dc-gl-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.dc-gl-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.65rem;
    padding: 0.78rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s, border-color 0.15s;
}
.dc-gl-modal__btn--live {
    background: #ef4444;
    color: #fff;
}
.dc-gl-modal__btn--live:hover:not(:disabled) {
    background: #dc2626;
}
.dc-gl-modal__btn--live:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.dc-gl-modal__btn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}
.dc-gl-modal__btn--end,
.dc-gl-modal__btn--ghost {
    background: #f8fafc;
    color: #475569;
    border: 1px solid var(--dm-border, #e2e8f0);
}
.dc-gl-modal__btn--end:hover:not(:disabled),
.dc-gl-modal__btn--ghost:hover:not(:disabled) {
    background: #f1f5f9;
    color: #111827;
}
.dc-gl-modal__btn--end:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.dc-gl-modal__btn--upload {
    background: linear-gradient(135deg, #f97316, #d97706);
    color: #fff;
}
.dc-gl-modal__btn--upload:hover:not(:disabled) {
    opacity: 0.92;
}
.dc-upload-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 118px;
    border: 2px dashed #cbd5e1;
    border-radius: 0.85rem;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}
.dc-upload-drop:hover,
.dc-upload-drop.is-filled {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}
.dc-upload-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.dc-upload-drop__icon {
    font-size: 1.65rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.dc-upload-drop.is-filled .dc-upload-drop__icon {
    color: #f97316;
}
.dc-upload-drop__copy {
    text-align: center;
    padding: 0 0.75rem;
}
.dc-upload-drop__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    word-break: break-all;
}
.dc-upload-drop__hint {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
}
.dc-upload-promo-card {
    background: #f8fafc;
    border: 1px solid var(--dm-border, #e2e8f0);
    border-radius: 0.85rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.dc-upload-promo-card__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.dc-upload-progress[hidden],
.dc-upload-result[hidden] {
    display: none !important;
}
.dc-upload-progress__track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.dc-upload-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f97316, #d97706);
    transition: width 0.25s;
    border-radius: 999px;
}
.dc-upload-progress__label {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
    text-align: center;
}
.dc-upload-result {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.dc-upload-result.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}
.dc-upload-result.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ── Chat sheet (mobile: left drawer) ───────────────────── */
.dc-chat-sheet {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(88vw, 360px);
    height: 100dvh;
    max-height: none;
    background: #fff;
    border-radius: 0 20px 20px 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.35);
}
.dc-chat-sheet.is-open {
    transform: translateX(0);
}

.dc-chat-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 299;
}
.dc-chat-backdrop.is-show {
    display: block;
}

/* Handle row */
.dc-chat-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.4rem;
    flex-shrink: 0;
}
.dc-chat-bar {
    display: none;
}
.dc-chat-head-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.dc-chat-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
}
.dc-chat-viewers {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}
.dc-chat-viewers i {
    font-size: 0.62rem;
    color: var(--dm-primary, #292c7a);
}
.dc-chat-viewers[hidden] {
    display: none !important;
}
.dc-chat-sheet--streamer .dc-chat-messages {
    background: linear-gradient(180deg, #fafafa, #fff);
}
.dc-chat-msg--emoji .dc-chat-emoji {
    font-size: 1.45rem;
    line-height: 1.2;
}
.dc-chat-emoji {
    font-size: 1.1rem;
    line-height: 1.3;
}
.dc-chat-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 8px;
    transition: background 0.15s;
    line-height: 1;
}
.dc-chat-close:hover {
    background: #f3f4f6;
    color: #111;
}

/* Emoji row */
.dc-chat-reactions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 1rem 0.45rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.dc-chat-emojis {
    display: flex;
    gap: 0.4rem;
    min-width: 0;
    overflow-x: auto;
}
.dc-chat-gif-row {
    display: flex;
    align-items: center;
}
.dc-chat-desktop-only {
    display: flex;
}
@media (max-width: 1023px), (hover: none) {
    .dc-chat-desktop-only {
        display: none !important;
    }
}
.dc-chat-gif-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dc-chat-gif-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.dc-chat-gif-toggle[aria-expanded="true"] {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.dc-chat-gifs {
    display: flex;
    gap: 0.45rem;
    padding: 0.45rem 1rem 0.55rem;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    flex-shrink: 0;
}
.dc-chat-gifs[hidden] {
    display: none !important;
}
.dc-chat-gif-btn {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    background: #f9fafb;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dc-chat-gif-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.dc-chat-gif-btn:disabled,
.dc-chat-gif-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.dc-chat-gif-btn.is-cooling,
.dc-chat-gif-toggle.is-cooling {
    pointer-events: none;
}
.dc-chat-gif-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dc-chat-emoji-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    padding: 0.22rem 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.dc-chat-emoji-btn:hover {
    transform: scale(1.2);
}
.dc-chat-emoji-btn:active {
    transform: scale(0.9);
}

/* Messages list */
.dc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.dc-chat-messages::-webkit-scrollbar {
    width: 4px;
}
.dc-chat-messages::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.dc-chat-msg {
    display: flex;
    gap: 0.55rem;
    animation: dc-msg-in 0.25s ease;
}
@keyframes dc-msg-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}
.dc-chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}
.dc-chat-bubble {
    flex: 1;
    min-width: 0;
}
.dc-chat-author {
    font-size: 0.7rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.1rem;
}
.dc-chat-text {
    font-size: 0.78rem;
    color: #374151;
    line-height: 1.45;
    word-break: break-word;
}

/* Input row */
.dc-chat-input-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}
.dc-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    outline: none;
    background: #f9fafb;
    color: #111;
    font-family: inherit;
}
.dc-chat-input:focus {
    border-color: #ef4444;
    background: #fff;
}
.dc-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s;
}
.dc-chat-send:hover {
    background: #dc2626;
}

/* Desktop: chat panel beside the centered feed column with vertical inset */
@media (min-width: 768px) {
    .dc-chat-sheet {
        right: auto;
        left: max(12px, calc(50% - 530px));
        width: 340px;
        top: 28px;
        bottom: 28px;
        height: auto;
        max-height: none;
        border-radius: 16px;
        transform: none;
        transition: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        box-shadow: 12px 0 48px rgba(0, 0, 0, 0.12);
    }
    .dc-chat-sheet.is-open {
        transform: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .dc-chat-backdrop.is-show {
        display: none;
    }
}

/* ── Simplified footer (shop name + caption only) ──────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #fff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url("../images/african/african-theme.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "DM Sans", system-ui, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── App shell ──────────────────────────────────────────── */
:root {
    --dc-feed-width: 100%;
    --dc-shell-height: 100dvh;
}

.dc-app {
    height: var(--dc-shell-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ── Feed (scroll container) ────────────────────────────── */
.dc-feed {
    flex: 1;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.dc-feed::-webkit-scrollbar {
    display: none;
}

.dc-feed.dc-feed--locked {
    overflow: hidden !important;
    touch-action: none;
}

.dc-feed.dc-feed--self-live .dc-clip,
.dc-clip.dc-clip--hidden-live {
    display: none !important;
}

.dc-self-live-preview {
    display: none;
    position: relative;
    height: var(--dc-shell-height);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--dm-primary, #292c7a);
    flex-shrink: 0;
    overflow: hidden;
}
.dc-self-live-preview.is-show {
    display: block;
}
.dc-self-live-preview video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dc-self-live-preview__badge {
    position: absolute;
    top: calc(52px + 0.65rem);
    left: 1rem;
    z-index: 10;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
}
.dc-self-live-promos {
    position: absolute;
    left: 1rem;
    right: 4.5rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 38vh;
    overflow-y: auto;
}
.dc-self-live-promos[hidden] {
    display: none !important;
}
.dc-self-live-promos__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}
.dc-self-live-promos__item.is-featured {
    border-color: rgba(239, 68, 68, 0.45);
}
.dc-self-live-promos__img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #333;
}
.dc-self-live-promos__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.dc-self-live-promos__name {
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-self-live-promos__price {
    font-size: 0.7rem;
    color: #fca5a5;
    font-weight: 700;
}

/* ── Clip card ──────────────────────────────────────────── */
.dc-clip {
    position: relative;
    height: var(--dc-shell-height);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.dc-clip__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.dc-clip__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s;
}
.dc-clip__poster.is-gone {
    opacity: 0;
    pointer-events: none;
}

/* Gradient: stronger at bottom for info legibility */
.dc-clip__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 28%,
        transparent 52%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Tap zone for single/double tap gestures */
.dc-clip__tap-zone {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ── Bottom info (left side) ────────────────────────────── */
.dc-clip__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 80px;
    z-index: 10;
    padding: 1rem 1rem calc(5rem + env(safe-area-inset-bottom, 0));
}
.dc-clip__creator-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}
.dc-clip__handle {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.dc-clip__follow-pill {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.dc-clip__follow-pill:hover {
    background: rgba(255, 255, 255, 0.15);
}
.dc-clip__follow-pill.is-following {
    background: rgba(255, 255, 255, 0.15);
    border-color: transparent;
}
.dc-clip__tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.dc-clip__tagline i {
    font-size: 0.65rem;
}
.dc-clip__caption {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dc-clip__caption.is-expanded {
    -webkit-line-clamp: unset;
}
.dc-clip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.dc-clip__tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Expand caption button */
.dc-clip__more {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* Audio ticker */
.dc-clip__audio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
}
.dc-clip__audio-disc {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    animation: dc-spin 3s linear infinite;
    flex-shrink: 0;
}
@keyframes dc-spin {
    to {
        transform: rotate(360deg);
    }
}
.dc-clip__audio-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* ── Right action rail ──────────────────────────────────── */
.dc-clip__rail {
    position: absolute;
    right: 0.6rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
}

/* Circular avatar with + follow button */
.dc-clip__avatar-wrap {
    position: relative;
    margin-bottom: 0.1rem;
}
.dc-clip__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.dc-clip__avatar-plus {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    cursor: pointer;
    line-height: 1;
}

/* Action buttons */
.dc-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}
.dc-action__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition:
        background 0.15s,
        transform 0.12s;
}
.dc-action:active .dc-action__icon {
    transform: scale(0.9);
}
.dc-action__count {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}
.dc-action.is-liked .dc-action__icon {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* ── Overlays ───────────────────────────────────────────── */
.dc-clip__pause-flash {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.dc-clip__pause-flash.is-show {
    opacity: 1;
    visibility: visible;
}
.dc-clip__pause-flash i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.dc-clip__like-burst {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%) scale(0.3);
    z-index: 15;
    font-size: 5rem;
    color: #ef4444;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 0 24px rgba(239, 68, 68, 0.6));
}
.dc-clip__like-burst.is-pop {
    animation: dc-heart 0.75s ease-out forwards;
}
@keyframes dc-heart {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -58%) scale(1.4);
    }
}

.dc-clip__play-icon {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.dc-clip__play-icon.is-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.dc-clip__play-icon i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}

.dc-clip__loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
}
.dc-clip__loader.is-show {
    display: flex;
}
.dc-clip__loader::after {
    content: "";
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dc-spin 0.7s linear infinite;
}

/* LIVE badge */
.dc-clip__live-badge {
    position: absolute;
    top: calc(52px + 0.65rem);
    left: 1rem;
    z-index: 10;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dc-clip__live-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: dc-blink 1s infinite;
}
@keyframes dc-blink {
    50% {
        opacity: 0;
    }
}

/* View count badge */
.dc-clip__views-badge {
    position: absolute;
    top: calc(52px + 0.65rem);
    left: 4.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Bottom navigation bar ──────────────────────────────── */
.dc-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    z-index: 50;
}
.dc-nav__group {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    min-width: 0;
}
.dc-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.dc-nav__item i {
    font-size: 1.3rem;
    transition: transform 0.15s;
}
.dc-nav__item.is-active {
    color: #fff;
}
.dc-nav__item:active i {
    transform: scale(0.88);
}
.dc-nav__item--upload-muted {
    color: rgba(255, 255, 255, 0.62);
}
.dc-nav__item--upload-upgrade {
    color: #fde68a;
}
.dc-nav__item--upload-upgrade i {
    color: #fbbf24;
}

/* Center go-live button — always centered regardless of side items */
.dc-nav__upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    padding-bottom: 0.15rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.dc-nav__upload-btn {
    width: 50px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.15s;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.dc-nav__upload-btn::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    background: linear-gradient(90deg, #06b6d4, #ef4444, #f59e0b);
    z-index: -1;
}
.dc-nav__upload-btn i {
    font-size: 1rem;
    color: #fff;
}
.dc-nav__upload-label {
    font-size: 0.58rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}
.dc-nav__upload:active .dc-nav__upload-btn {
    transform: scale(0.92);
}

/* ── Floating emoji ─────────────────────────────────────── */
@keyframes dc-emoji-rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-90px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-160px) scale(1.4);
    }
}
.dc-emoji-float {
    position: fixed;
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
    z-index: 300;
    animation: dc-emoji-rise 2.2s ease-out forwards;
    user-select: none;
}
.dc-emoji-float--on-card {
    position: absolute;
    z-index: 15;
}

.dc-gif-float {
    position: fixed;
    width: min(168px, 24vw);
    pointer-events: none;
    z-index: 280;
    animation: dc-gif-pop 4.5s ease-out forwards;
    user-select: none;
}
.dc-gif-float img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.38);
}
@keyframes dc-gif-pop {
    0% {
        opacity: 0;
        transform: scale(0.72) translateY(12px);
    }
    12% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    82% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
}

/* ── Product strip (top-left overlay, below badge row) ──── */
.dc-clip__promo-wrap {
    position: absolute;
    top: calc(52px + 2.5rem);
    left: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    max-width: calc(100% - 90px);
}
.dc-clip__promo-wrap[hidden],
.dc-clip__product[hidden],
.dc-clip__promo-empty[hidden],
.dc-clip__promo-edit-btn[hidden] {
    display: none !important;
}
.dc-clip__product {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    max-width: 100%;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s;
}
.dc-clip__product:hover {
    background: rgba(0, 0, 0, 0.7);
}
.dc-clip__promo-edit-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dc-clip__promo-edit-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    color: #fde68a;
}
.dc-clip__promo-empty {
    position: absolute;
    top: calc(52px + 2.5rem);
    left: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: min(100%, calc(100% - 90px));
    padding: 0.65rem 0.8rem;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.dc-clip__promo-empty:hover {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(253, 224, 71, 0.45);
}
.dc-clip__promo-empty-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dc-clip__promo-empty-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.dc-clip__promo-empty-title {
    font-size: 0.78rem;
    font-weight: 800;
}
.dc-clip__promo-empty-hint {
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}
.dc-clip__product-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #333;
    flex-shrink: 0;
}
.dc-clip__product-name {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.dc-clip__product-price {
    font-size: 0.7rem;
    color: #fca5a5;
    font-weight: 700;
}
.dc-clip__product-cta {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Simplified: shop name (large bold) */
.dc-clip__bio-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.3rem;
    min-width: 0;
}
.dc-clip__vendor-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
}
.dc-clip__vendor-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
}
.dc-clip__bio-copy {
    min-width: 0;
}
.dc-clip__shop-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.05rem;
}
.dc-clip__shop-name--link {
    text-decoration: none;
    color: inherit;
}
.dc-clip__shop-name--link:hover,
.dc-clip__shop-name--link:focus-visible {
    text-decoration: underline;
}
.dc-clip__vendor-logo-link {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 999px;
}
.dc-clip__vendor-logo-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}
.dc-clip__storefront-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    width: fit-content;
}
.dc-clip__storefront-link:hover,
.dc-clip__storefront-link:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}
.dc-clip__storefront-link i {
    font-size: 0.58rem;
    opacity: 0.9;
}
/* Simplified: @handle (small, muted) */
.dc-clip__vendor-handle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem;
}
/* Simplified: video title/caption */
.dc-clip__video-title {
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Desktop: center the feed in portrait ───────────────── */
@media (min-width: 768px) {
    :root {
        --dc-feed-width: 360px;
    }

    body {
        background-color: #fff;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
            url("../images/african/african-theme.jpg");
    }

    .dc-app {
        width: var(--dc-feed-width);
        max-width: var(--dc-feed-width);
        margin: 0 auto;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        border-right: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 0 48px rgba(41, 44, 122, 0.12);
    }

    .dc-topbar,
    .dc-nav {
        max-width: 360px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 360px;
    }

}

/* ── Gestures hint ──────────────────────────────────────── */
.dc-hint {
    position: absolute;
    bottom: calc(6.5rem + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.5s;
    white-space: nowrap;
}
.dc-hint.is-hidden {
    opacity: 0;
}
.dc-hint p {
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}

/* ── Desktop right rail (promos + live list) ────────────── */
.dc-desktop-rail {
    display: none;
}

@media (min-width: 768px) {
    .dc-desktop-rail {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: fixed;
        top: 0;
        left: max(12px, calc(50% + 192px));
        width: min(300px, calc(100vw - 50% - 204px));
        height: 100dvh;
        padding: 16px 12px 16px 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 30;
        scrollbar-width: thin;
        scrollbar-color: rgba(41, 44, 122, 0.25) transparent;
    }

    .dc-desktop-rail::-webkit-scrollbar {
        width: 6px;
    }

    .dc-desktop-rail::-webkit-scrollbar-thumb {
        background: rgba(41, 44, 122, 0.2);
        border-radius: 999px;
    }

    .dc-desktop-rail__panel {
        background: var(--dm-surface, #fff);
        border: 1px solid var(--dm-border, #e2e8f0);
        border-radius: 16px;
        box-shadow: -8px 0 32px rgba(41, 44, 122, 0.08);
        overflow: hidden;
    }

    .dc-desktop-rail__head {
        padding: 14px 16px 10px;
        border-bottom: 1px solid var(--dm-border, #e2e8f0);
        background: linear-gradient(180deg, rgba(41, 44, 122, 0.04), transparent);
    }

    .dc-desktop-rail__title {
        margin: 0;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--dm-primary, #292c7a);
        line-height: 1.2;
    }

    .dc-desktop-rail__body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: min(42vh, 360px);
        overflow-y: auto;
    }

    .dc-desktop-rail__panel:last-child .dc-desktop-rail__body {
        max-height: none;
    }

    .dc-desktop-rail__empty {
        margin: 0;
        padding: 12px 8px;
        font-size: 0.8rem;
        line-height: 1.45;
        color: var(--dm-slate, #64748b);
        text-align: center;
    }

    .dc-desktop-rail__product {
        display: grid;
        grid-template-columns: 52px 1fr auto;
        gap: 10px;
        align-items: center;
        padding: 8px;
        border-radius: 12px;
        border: 1px solid var(--dm-border, #e2e8f0);
        background: #fff;
        color: #0f172a;
        text-decoration: none;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

    .dc-desktop-rail__product:hover {
        border-color: rgba(41, 44, 122, 0.25);
        box-shadow: 0 4px 14px rgba(41, 44, 122, 0.08);
    }

    .dc-desktop-rail__product.is-featured {
        border-color: rgba(219, 54, 48, 0.35);
        background: rgba(219, 54, 48, 0.04);
    }

    .dc-desktop-rail__product-img,
    .dc-desktop-rail__product-ph {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
        background: rgba(15, 23, 42, 0.04);
    }

    .dc-desktop-rail__product-img.is-fallback-icon,
    .dc-clip__product-img.is-fallback-icon {
        object-fit: contain;
        padding: 12px;
    }

    .dc-desktop-rail__product-ph {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--dm-bg, #f1f5f9);
        color: var(--dm-slate, #64748b);
        font-size: 1rem;
    }

    .dc-desktop-rail__product-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .dc-desktop-rail__product-badge {
        display: inline-block;
        width: fit-content;
        padding: 1px 6px;
        border-radius: 999px;
        background: var(--dm-secondary, #db3630);
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .dc-desktop-rail__product-name {
        font-size: 0.82rem;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dc-desktop-rail__product-price {
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--dm-primary, #292c7a);
    }

    .dc-desktop-rail__product-cta {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--dm-secondary, #db3630);
        white-space: nowrap;
    }

    .dc-desktop-rail__live {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        padding: 10px;
        border: 1px solid var(--dm-border, #e2e8f0);
        border-radius: 12px;
        background: #fff;
        color: #0f172a;
        text-align: left;
        cursor: pointer;
        transition: border-color 0.15s, background 0.15s;
    }

    .dc-desktop-rail__live:hover {
        border-color: rgba(41, 44, 122, 0.25);
        background: rgba(41, 44, 122, 0.03);
    }

    .dc-desktop-rail__live.is-active {
        border-color: rgba(219, 54, 48, 0.4);
        background: rgba(219, 54, 48, 0.05);
    }

    .dc-desktop-rail__live-dot {
        width: 10px;
        height: 10px;
        margin-top: 4px;
        border-radius: 50%;
        background: var(--dm-secondary, #db3630);
        box-shadow: 0 0 0 3px rgba(219, 54, 48, 0.2);
        flex-shrink: 0;
        animation: dc-rail-pulse 1.6s ease-in-out infinite;
    }

    @keyframes dc-rail-pulse {
        0%,
        100% {
            opacity: 1;
        }
        50% {
            opacity: 0.55;
        }
    }

    .dc-desktop-rail__live-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .dc-desktop-rail__live-vendor {
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--dm-primary, #292c7a);
    }

    .dc-desktop-rail__live-title {
        font-size: 0.72rem;
        font-weight: 600;
        color: #334155;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dc-desktop-rail__live-meta {
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--dm-slate, #64748b);
    }
}

/* Share video modal */
.dc-gl-modal__icon--share {
    background: linear-gradient(135deg, #292c7a, #4338ca);
    box-shadow: 0 4px 12px rgba(41, 44, 122, 0.25);
}
.dc-share-modal__input {
    font-size: 0.78rem;
    color: #475569;
}
.dc-share-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.35rem;
}
.dc-share-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.dc-share-modal__btn:active {
    transform: scale(0.98);
}
.dc-share-modal__btn--wa {
    background: #25d366;
    color: #fff;
}
.dc-share-modal__btn--wa:hover {
    background: #1ebe57;
    color: #fff;
}
.dc-share-modal__btn--copy {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid var(--dm-border, #e2e8f0);
}
.dc-share-modal__btn--copy:hover {
    background: #e2e8f0;
}
.dc-share-modal__feedback {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #15803d;
}

/* ── Large screens / TVs: 9:16 aspect, centered stage ─── */
@media (min-width: 1280px) and (min-height: 800px) {
    :root {
        --dc-shell-height: min(calc(var(--dc-feed-width) * 16 / 9), 92dvh);
    }

    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
    }

    .dc-app {
        width: var(--dc-feed-width);
        max-width: var(--dc-feed-width);
        height: var(--dc-shell-height);
        flex-shrink: 0;
        border-radius: 20px;
        overflow: hidden;
    }

    .dc-clip,
    .dc-self-live-preview {
        height: var(--dc-shell-height);
        aspect-ratio: 9 / 16;
    }

    .dc-nav {
        bottom: calc((100dvh - var(--dc-shell-height)) / 2);
    }

    .dc-desktop-rail {
        height: var(--dc-shell-height);
        top: calc((100dvh - var(--dc-shell-height)) / 2);
        padding-top: 0;
        padding-bottom: 0;
    }

    .dc-chat-sheet {
        top: calc((100dvh - var(--dc-shell-height)) / 2 + 28px);
        bottom: calc((100dvh - var(--dc-shell-height)) / 2 + 28px);
    }
}
