.stc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 10010; /* above .modal (10000) so the overlay stacks over media detail / list detail */
}
.stc-modal {
    width: 480px;
    max-width: 92vw;
    max-height: 80vh;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.stc-header { display: flex; justify-content: space-between; align-items: center; }
.stc-header h3 { margin: 0; font-size: 16px; color: #fff; }
.stc-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 18px;
    cursor: pointer;
}
.stc-section-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.stc-preview {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px;
}
.stc-preview-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.stc-preview-info { flex: 1; min-width: 0; }
.stc-preview-title { font-weight: 600; color: #fff; font-size: 14px; }
.stc-preview-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}
.stc-recent,
.stc-recipients {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stc-recent-row,
.stc-recipient-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.stc-recent-row:hover,
.stc-recipient-row:hover { background: rgba(255, 255, 255, 0.06); }
.stc-recent-row.active,
.stc-recipient-row.active { background: rgba(59, 130, 246, 0.18); }
.stc-recipient-hint {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stc-recent-avatar {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stc-recent-name { color: #fff; font-size: 14px; }
.stc-empty {
    color: rgba(255, 255, 255, 0.55);
    padding: 12px;
    text-align: center;
}
.stc-note {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
}
.stc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}
.stc-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}
.stc-btn-send {
    background: #3B82F6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.stc-btn-send:disabled { opacity: 0.5; cursor: default; }

.stc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 28, 0.96);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10020; /* above the overlay (10010) so it shows on close */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.stc-toast a { color: #3B82F6; margin-left: 8px; text-decoration: underline; }
.stc-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
