*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
    /* ---- Color Tokens ---- */
    --ds-color-background: #FFFFFF;
    --ds-color-foreground: #111827;
    --ds-color-primary: #3B82F6;
    --ds-color-primary-hover: #2563EB;
    --ds-color-secondary: #10B981;
    --ds-color-secondary-hover: #059669;
    --ds-color-accent: #F59E0B;
    --ds-color-accent-hover: #D97706;
    --ds-color-muted: #F3F4F6;
    --ds-color-border: #E5E7EB;
    --ds-color-success: #10B981;
    --ds-color-warning: #F59E0B;
    --ds-color-danger: #EF4444;
    --ds-color-live: #EF4444;
    --ds-color-vod: #2563EB;
    /* ---- Typography Tokens ---- */
    --ds-font-family-base: 'Outfit', sans-serif;
    --ds-font-family-heading: 'Outfit', sans-serif;
    --ds-font-size-xs: 0.75rem;
    --ds-font-size-sm: 0.875rem;
    --ds-font-size-md: 1rem;
    --ds-font-size-lg: 1.25rem;
    --ds-font-size-xl: 1.5rem;
    --ds-font-size-2xl: 2rem;
    --ds-font-weight-body: 400;
    --ds-font-weight-label: 500;
    --ds-font-weight-button: 600;
    --ds-font-weight-heading: 700;
    --ds-line-height-tight: 1.2;
    --ds-line-height-normal: 1.5;
    /* ---- Spacing Tokens (4px grid) ---- */
    --ds-space-1: 0.25rem;
    --ds-space-2: 0.5rem;
    --ds-space-3: 0.75rem;
    --ds-space-4: 1rem;
    --ds-space-6: 1.5rem;
    --ds-space-8: 2rem;
    --ds-space-10: 2.5rem;
    --ds-space-12: 3rem;
    --ds-space-16: 4rem;
    /* ---- Radius Tokens ---- */
    --ds-radius-sm: 0.25rem;
    --ds-radius-md: 0.5rem;
    --ds-radius-lg: 0.75rem;
    --ds-radius-xl: 1rem;
    --ds-radius-full: 9999px;
    /* ---- Motion Tokens ---- */
    --ds-transition-fast: 120ms ease;
    --ds-transition-normal: 200ms ease;
    --ds-transition-slow: 350ms ease;
    /* ---- Z-index Tokens ---- */
    --ds-z-dropdown: 1000;
    --ds-z-sticky: 1100;
    --ds-z-overlay: 1300;
    --ds-z-modal: 1400;
    --ds-z-toast: 1500;
}

body {
    font-family: var(--ds-font-family-base) !important;
    font-size: var(--ds-font-size-md) !important;
    font-weight: var(--ds-font-weight-body) !important;
    line-height: var(--ds-line-height-normal) !important;
    color: var(--ds-color-foreground) !important;
    background-color: var(--ds-color-background);
}

h1, h2, h3, h4, h5, h6,
.ds-h1, .ds-h2, .ds-h3, .ds-h4, .ds-h5, .ds-h6 {
    font-family: var(--ds-font-family-heading);
    font-weight: var(--ds-font-weight-heading);
    line-height: var(--ds-line-height-tight);
    letter-spacing: -0.02em;
    color: var(--ds-color-foreground);
}

h1, .ds-h1 {
    font-size: var(--ds-font-size-2xl);
}

h2, .ds-h2 {
    font-size: var(--ds-font-size-xl);
}

h3, .ds-h3 {
    font-size: var(--ds-font-size-lg);
}

h4, .ds-h4 {
    font-size: var(--ds-font-size-md);
}

h5, .ds-h5 {
    font-size: var(--ds-font-size-sm);
}

h6, .ds-h6 {
    font-size: var(--ds-font-size-xs);
}

.ds-text-xs {
    font-size: var(--ds-font-size-xs);
}

.ds-text-sm {
    font-size: var(--ds-font-size-sm);
}

.ds-text-md {
    font-size: var(--ds-font-size-md);
}

.ds-text-lg {
    font-size: var(--ds-font-size-lg);
}

.ds-text-xl {
    font-size: var(--ds-font-size-xl);
}

.ds-text-2xl {
    font-size: var(--ds-font-size-2xl);
}

.ds-text-muted {
    color: #6B7280;
}

.ds-text-label {
    font-weight: var(--ds-font-weight-label);
    font-size: var(--ds-font-size-sm);
    letter-spacing: 0.01em;
}

/* ========================================
   LAYOUT PRIMITIVES
   ======================================== */

.ds-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--ds-space-4);
}

.ds-section {
    padding-block: var(--ds-space-8);
}

.ds-stack {
    display: flex;
    flex-direction: column;
}

    .ds-stack > * + * {
        margin-top: var(--ds-space-4);
    }

.ds-stack--sm > * + * {
    margin-top: var(--ds-space-2);
}

.ds-stack--lg > * + * {
    margin-top: var(--ds-space-6);
}

.ds-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-4);
}

.ds-grid {
    display: grid;
    gap: var(--ds-space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .ds-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .ds-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .ds-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ds-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.ds-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ds-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-mt-0 {
    margin-top: 0 !important;
}

.ds-mb-0 {
    margin-bottom: 0 !important;
}

.ds-mt-2 {
    margin-top: var(--ds-space-2) !important;
}

.ds-mt-4 {
    margin-top: var(--ds-space-4) !important;
}

.ds-mt-6 {
    margin-top: var(--ds-space-6) !important;
}

.ds-mt-8 {
    margin-top: var(--ds-space-8) !important;
}

.ds-mb-2 {
    margin-bottom: var(--ds-space-2) !important;
}

.ds-mb-4 {
    margin-bottom: var(--ds-space-4) !important;
}

.ds-mb-6 {
    margin-bottom: var(--ds-space-6) !important;
}

.ds-mb-8 {
    margin-bottom: var(--ds-space-8) !important;
}

.ds-p-2 {
    padding: var(--ds-space-2) !important;
}

.ds-p-4 {
    padding: var(--ds-space-4) !important;
}

.ds-p-6 {
    padding: var(--ds-space-6) !important;
}

.ds-p-8 {
    padding: var(--ds-space-8) !important;
}

.ds-gap-2 {
    gap: var(--ds-space-2);
}

.ds-gap-4 {
    gap: var(--ds-space-4);
}

.ds-gap-6 {
    gap: var(--ds-space-6);
}

.ds-text-center {
    text-align: center;
}

.ds-text-left {
    text-align: left;
}

.ds-text-right {
    text-align: right;
}

.ds-w-full {
    width: 100%;
}

/* ========================================
   COMPONENT PRIMITIVES
   ======================================== */

/* ---- Buttons ---- */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds-space-2);
    padding: var(--ds-space-3) var(--ds-space-6);
    font-family: var(--ds-font-family-base);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-button);
    line-height: var(--ds-line-height-tight);
    border: 2px solid transparent;
    border-radius: var(--ds-radius-md);
    cursor: pointer;
    transition: transform var(--ds-transition-fast), background-color var(--ds-transition-normal), border-color var(--ds-transition-normal);
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    user-select: none;
}

    .ds-btn:focus-visible {
        outline: 2px solid var(--ds-color-primary);
        outline-offset: 2px;
    }

    .ds-btn:active {
        transform: scale(0.97);
    }

.ds-btn-primary {
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
}

    .ds-btn-primary:hover {
        background-color: var(--ds-color-primary-hover);
    }

.ds-btn-secondary {
    background-color: var(--ds-color-secondary);
    color: var(--ds-color-background);
}

    .ds-btn-secondary:hover {
        background-color: var(--ds-color-secondary-hover);
    }

.ds-btn-outline {
    background-color: transparent;
    color: var(--ds-color-primary);
    border-color: var(--ds-color-primary);
}

    .ds-btn-outline:hover {
        background-color: var(--ds-color-primary);
        color: var(--ds-color-background);
    }

.ds-btn-danger {
    background-color: var(--ds-color-danger);
    color: var(--ds-color-background);
}

    .ds-btn-danger:hover {
        background-color: #DC2626;
    }

.ds-btn-lg {
    padding: var(--ds-space-4) var(--ds-space-8);
    font-size: var(--ds-font-size-md);
}

.ds-btn-sm {
    padding: var(--ds-space-1) var(--ds-space-3);
    font-size: var(--ds-font-size-xs);
}

.ds-btn-block {
    display: flex;
    width: 100%;
}

/* ---- Pill variant ---- */
.ds-btn-pill {
    border-radius: var(--ds-radius-full) !important;
}

.ds-btn.is-disabled,
.ds-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ---- Cards ---- */
.ds-card {
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    padding: var(--ds-space-6);
    transition: transform var(--ds-transition-fast);
}

    .ds-card:hover {
        transform: scale(1.01);
    }

.ds-card-header {
    padding-bottom: var(--ds-space-4);
    border-bottom: 1px solid var(--ds-color-border);
    margin-bottom: var(--ds-space-4);
}

.ds-card-body {
    flex: 1;
}

.ds-card-footer {
    padding-top: var(--ds-space-4);
    border-top: 1px solid var(--ds-color-border);
    margin-top: var(--ds-space-4);
}

/* ---- Inputs ---- */
.ds-input {
    width: 100%;
    padding: var(--ds-space-3) var(--ds-space-4);
    font-family: var(--ds-font-family-base);
    font-size: var(--ds-font-size-md);
    font-weight: var(--ds-font-weight-body);
    line-height: var(--ds-line-height-normal);
    color: var(--ds-color-foreground);
    background-color: var(--ds-color-muted);
    border: 2px solid transparent;
    border-radius: var(--ds-radius-md);
    transition: border-color var(--ds-transition-normal);
    appearance: none;
}

    .ds-input::placeholder {
        color: #9CA3AF;
    }

    .ds-input:focus {
        outline: none;
        border-color: var(--ds-color-primary);
        background-color: var(--ds-color-background);
    }

    .ds-input.is-error {
        border-color: var(--ds-color-danger);
    }

.ds-input-label {
    display: block;
    font-weight: var(--ds-font-weight-label);
    font-size: var(--ds-font-size-sm);
    margin-bottom: var(--ds-space-1);
    color: var(--ds-color-foreground);
}

.ds-form-group {
    margin-bottom: var(--ds-space-4);
}

    .ds-form-group .text-danger,
    .ds-form-group .ds-input-error {
        display: block;
        font-size: var(--ds-font-size-xs);
        color: var(--ds-color-danger);
        margin-top: var(--ds-space-1);
    }

/* ---- Badges ---- */
.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1) var(--ds-space-3);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-button);
    line-height: 1;
    border-radius: var(--ds-radius-full);
    white-space: nowrap;
}

.ds-badge-primary {
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
}

.ds-badge-success {
    background-color: var(--ds-color-success);
    color: var(--ds-color-background);
}

.ds-badge-warning {
    background-color: var(--ds-color-warning);
    color: var(--ds-color-foreground);
}

.ds-badge-danger {
    background-color: var(--ds-color-danger);
    color: var(--ds-color-background);
}

.ds-badge-muted {
    background-color: var(--ds-color-muted);
    color: #6B7280;
}

/* ---- Tags ---- */
.ds-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1) var(--ds-space-2);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-label);
    background-color: var(--ds-color-muted);
    color: var(--ds-color-foreground);
    border-radius: var(--ds-radius-sm);
}

/* ---- Avatar / Icon Circle ---- */
.ds-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ds-radius-full);
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
    font-weight: var(--ds-font-weight-heading);
    font-size: var(--ds-font-size-sm);
    flex-shrink: 0;
}

.ds-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: var(--ds-font-size-xs);
}

.ds-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: var(--ds-font-size-lg);
}

.ds-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ds-radius-full);
    background-color: var(--ds-color-muted);
    color: var(--ds-color-foreground);
    flex-shrink: 0;
}

/* ---- Alert ---- */
.ds-alert {
    padding: var(--ds-space-3) var(--ds-space-4);
    border-radius: var(--ds-radius-md);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-body);
    border: 2px solid transparent;
}

.ds-alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.ds-alert-warning {
    background-color: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

.ds-alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.ds-alert-info {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
}

/* ---- Divider ---- */
.ds-divider {
    border: none;
    border-top: 1px solid var(--ds-color-border);
    margin-block: var(--ds-space-6);
}

/* ========================================
   APPLICATION COMPONENTS
   ======================================== */

/* ---- Navbar ---- */
.ds-navbar {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-2) var(--ds-space-4);
    background-color: var(--ds-color-background);
    border-bottom: 2px solid var(--ds-color-border);
    position: sticky;
    top: 0;
    z-index: var(--ds-z-sticky);
    min-height: 56px;
}

.ds-navbar-brand img {
    height: 28px;
    width: auto;
}

.ds-navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    margin-left: auto;
}

.ds-navbar-search {
    display: none;
    flex: 1;
    max-width: 400px;
    margin-inline: var(--ds-space-6);
}

@media (min-width: 768px) {
    .ds-navbar-search {
        display: flex;
    }
}

.ds-navbar-search .ds-input {
    border-radius: var(--ds-radius-md) 0 0 var(--ds-radius-md);
    border-right: none;
}

.ds-navbar-search .ds-btn {
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
    padding-inline: var(--ds-space-3);
}

.ds-navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ds-radius-md);
    color: var(--ds-color-foreground);
    transition: background-color var(--ds-transition-fast);
}

    .ds-navbar-toggle:hover {
        background-color: var(--ds-color-muted);
    }

.ds-lang-flags {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
}

    .ds-lang-flags img,
    .ds-lang-flags .language-flag {
        width: 24px;
        height: 18px;
        border-radius: 2px;
        transition: transform var(--ds-transition-fast);
    }

        .ds-lang-flags img:hover,
        .ds-lang-flags .language-flag:hover {
            transform: scale(1.15);
        }

/* Cart */
.ds-cart-dropdown {
    min-width: 300px;
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    padding: var(--ds-space-4);
    z-index: var(--ds-z-dropdown);
}

.ds-cart-item {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-2) 0;
    border-bottom: 1px solid var(--ds-color-border);
    font-size: var(--ds-font-size-sm);
}

    .ds-cart-item:last-child {
        border-bottom: none;
    }

.ds-cart-item-remove {
    color: var(--ds-color-danger);
    transition: transform var(--ds-transition-fast);
    flex-shrink: 0;
}

    .ds-cart-item-remove:hover {
        transform: scale(1.2);
    }

.ds-cart-item-price {
    font-weight: var(--ds-font-weight-button);
    margin-left: auto;
    white-space: nowrap;
}

.ds-cart-empty {
    text-align: center;
    color: #9CA3AF;
    padding: var(--ds-space-4);
    font-size: var(--ds-font-size-sm);
}

.ds-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: var(--ds-font-weight-heading);
    background-color: var(--ds-color-success);
    color: var(--ds-color-background);
    border-radius: var(--ds-radius-full);
    padding: 0 4px;
    line-height: 1;
}

.ds-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ds-radius-full);
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
    font-weight: var(--ds-font-weight-heading);
    font-size: var(--ds-font-size-xs);
    letter-spacing: 0.05em;
}

/* ---- Sidebar ---- */
.ds-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 240px;
    background-color: var(--ds-color-background);
    border-right: 1px solid var(--ds-color-border);
    z-index: var(--ds-z-sticky);
    overflow-y: auto;
    transition: transform var(--ds-transition-normal);
    transform: translateX(-100%);
}

    .ds-sidebar.is-active {
        transform: translateX(0);
    }

@media (min-width: 992px) {
    .ds-sidebar {
        transform: translateX(0);
    }

        .ds-sidebar.is-collapsed {
            width: 64px;
        }
}

.ds-sidebar-nav {
    list-style: none;
    padding: var(--ds-space-2) 0;
}

.ds-sidebar-item a {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3) var(--ds-space-4);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-label);
    color: #6B7280;
    transition: background-color var(--ds-transition-fast), color var(--ds-transition-fast);
    border-left: 3px solid transparent;
}

    .ds-sidebar-item a:hover {
        background-color: var(--ds-color-muted);
        color: var(--ds-color-foreground);
    }

.ds-sidebar-item.is-active a {
    color: var(--ds-color-primary);
    border-left-color: var(--ds-color-primary);
    background-color: #EFF6FF;
}

.ds-sidebar-item a i {
    width: 20px;
    text-align: center;
    font-size: var(--ds-font-size-md);
}

/* ---- Content Wrapper ---- */
.ds-content {
    padding: var(--ds-space-4);
    min-height: calc(100vh - 56px);
}

@media (min-width: 992px) {
    .ds-content {
        margin-left: 240px;
        padding: var(--ds-space-6);
    }

    .ds-sidebar.is-collapsed ~ .ds-content {
        margin-left: 64px;
    }
}

/* ---- Footer ---- */
.ds-footer {
    padding: var(--ds-space-8) var(--ds-space-4);
    border-top: 1px solid var(--ds-color-border);
    text-align: center;
    font-size: var(--ds-font-size-xs);
    color: #9CA3AF;
}

.ds-footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

    .ds-footer-badges img {
        max-width: 120px;
        height: auto;
    }

.ds-footer a {
    color: var(--ds-color-primary);
    font-weight: var(--ds-font-weight-label);
}

    .ds-footer a:hover {
        text-decoration: underline;
    }

/* ---- Cookie Policy Banner ---- */
.ds-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--ds-z-toast);
    background-color: var(--ds-color-foreground);
    color: var(--ds-color-background);
    padding: var(--ds-space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-space-3);
    font-size: var(--ds-font-size-sm);
}

@media (min-width: 768px) {
    .ds-cookie-banner {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   LOGIN PAGE (IntegratedClientLogin)
   ======================================== */

.ds-login-header {
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding-block: var(--ds-space-6);
    margin-inline: auto;
}

    .ds-login-header img {
        max-width: 260px;
        margin-inline: auto;
        margin-bottom: var(--ds-space-4);
    }

.ds-login-title {
    font-size: var(--ds-font-size-xl);
    font-weight: var(--ds-font-weight-heading);
    color: var(--ds-color-foreground);
    margin-bottom: var(--ds-space-2);
}

@media (min-width: 768px) {
    .ds-login-title {
        font-size: var(--ds-font-size-2xl);
    }
}

.ds-login-period {
    color: #6B7280;
    font-size: var(--ds-font-size-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-space-2);
}

    .ds-login-period i {
        margin-right: var(--ds-space-1);
    }

.ds-login-container {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-8);
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .ds-login-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.ds-login-form-wrapper {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-xl);
    padding: var(--ds-space-8) var(--ds-space-6);
}

@media (max-width: 575.98px) {
    .ds-login-form-wrapper {
        padding: var(--ds-space-6) var(--ds-space-4);
    }
}

.ds-login-welcome {
    text-align: center;
    margin-bottom: var(--ds-space-6);
}

    .ds-login-welcome h3 {
        font-size: var(--ds-font-size-lg);
        font-weight: var(--ds-font-weight-heading);
        color: var(--ds-color-foreground);
        margin-bottom: var(--ds-space-2);
    }

    .ds-login-welcome h6 {
        font-size: var(--ds-font-size-sm);
        font-weight: var(--ds-font-weight-body);
        color: #6B7280;
    }

.ds-login-form .ds-form-group {
    text-align: left;
}

.ds-login-form .ds-btn-block + .ds-btn-block {
    margin-top: var(--ds-space-3);
}

.ds-login-more-info {
    flex: 1;
    min-width: 0;
    padding: var(--ds-space-6);
    background-color: var(--ds-color-muted);
    border-radius: var(--ds-radius-xl);
    font-size: var(--ds-font-size-sm);
    line-height: var(--ds-line-height-normal);
}

/* Caps lock warning */
.ds-capslock-alert {
    display: none;
    text-align: center;
}

    .ds-capslock-alert.is-active {
        display: block;
    }

/* WhatsApp support button */
.ds-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 2px solid var(--ds-color-success);
    border-radius: var(--ds-radius-md);
    color: var(--ds-color-success);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-label);
    transition: background-color var(--ds-transition-normal), color var(--ds-transition-normal);
    text-align: left;
}

    .ds-whatsapp-btn:hover {
        background-color: var(--ds-color-success);
        color: var(--ds-color-background);
    }

    .ds-whatsapp-btn i {
        font-size: var(--ds-font-size-2xl);
    }

.ds-translated-info {
    font-style: italic;
    font-size: var(--ds-font-size-xs);
    color: #9CA3AF;
}

/* ========================================
   BROADCAST COMPONENTS
   ======================================== */

.ds-broadcast-card {
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    padding: var(--ds-space-6);
    transition: transform var(--ds-transition-fast);
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
}

    .ds-broadcast-card:hover {
        transform: scale(1.01);
    }

    .ds-broadcast-card.is-live {
        border-color: var(--ds-color-live);
        border-width: 2px;
    }

.ds-broadcast-card-title {
    font-size: var(--ds-font-size-lg);
    font-weight: var(--ds-font-weight-heading);
}

.ds-broadcast-card-meta {
    font-size: var(--ds-font-size-xs);
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-2);
}

.ds-session-card {
    background-color: var(--ds-color-muted);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

.ds-speaker-card {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    transition: background-color var(--ds-transition-fast);
}

    .ds-speaker-card:hover {
        background-color: var(--ds-color-muted);
    }

    .ds-speaker-card img {
        width: 48px;
        height: 48px;
        border-radius: var(--ds-radius-full);
        object-fit: cover;
    }

.ds-speaker-card-name {
    font-weight: var(--ds-font-weight-button);
    font-size: var(--ds-font-size-sm);
}

.ds-speaker-card-role {
    font-size: var(--ds-font-size-xs);
    color: #6B7280;
}

/* ---- Live Indicator ---- */
.ds-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ds-color-live);
}

.ds-live-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--ds-radius-full);
    background-color: var(--ds-color-live);
    animation: ds-pulse 1.5s ease-in-out infinite;
}

@keyframes ds-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.ds-live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1) var(--ds-space-3);
    background-color: var(--ds-color-live);
    color: var(--ds-color-background);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--ds-radius-sm);
}

/* ---- Broadcast Status ---- */
.ds-status {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1) var(--ds-space-3);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-button);
    border-radius: var(--ds-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ds-status-live {
    background-color: var(--ds-color-live);
    color: var(--ds-color-background);
}

.ds-status-scheduled {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.ds-status-finished {
    background-color: var(--ds-color-muted);
    color: #6B7280;
}

.ds-status-offline {
    background-color: #F3F4F6;
    color: #9CA3AF;
}

.ds-status-cancelled {
    background-color: #FEF2F2;
    color: #991B1B;
}

.ds-stat-card {
    background-color: var(--ds-color-muted);
    border-radius: var(--ds-radius-lg);
    padding: var(--ds-space-6);
    text-align: center;
}

.ds-stat-card-value {
    font-size: var(--ds-font-size-2xl);
    font-weight: var(--ds-font-weight-heading);
    color: var(--ds-color-foreground);
}

.ds-stat-card-label {
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-label);
    color: #6B7280;
    margin-top: var(--ds-space-1);
}

/* ---- Panel ---- */
.ds-panel {
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
}

.ds-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-space-4) var(--ds-space-6);
    border-bottom: 1px solid var(--ds-color-border);
    font-weight: var(--ds-font-weight-button);
}

.ds-panel-body {
    padding: var(--ds-space-6);
}

.ds-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ds-space-3);
    padding: var(--ds-space-4) var(--ds-space-6);
    border-top: 1px solid var(--ds-color-border);
}

/* ---- Player Container ---- */
.ds-player-container {
    position: relative;
    width: 100%;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    background-color: #000;
}

    .ds-player-container::before {
        content: '';
        display: block;
        padding-top: 56.25%;
    }

    .ds-player-container > * {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

/* ---- Viewer ---- */
.ds-viewer-header {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
    padding: var(--ds-space-4);
}

@media (min-width: 768px) {
    .ds-viewer-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ds-viewer-count {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-label);
    color: #6B7280;
}

.ds-live-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-2) var(--ds-space-4);
    background-color: var(--ds-color-live);
    color: var(--ds-color-background);
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Viewer Chat ---- */
.ds-viewer-chat {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    height: 400px;
}

@media (min-width: 768px) {
    .ds-viewer-chat {
        height: 500px;
    }
}

.ds-viewer-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--ds-space-3);
    background-color: var(--ds-color-muted);
}

.ds-viewer-chat-input {
    display: flex;
    gap: var(--ds-space-2);
    padding: var(--ds-space-3);
    border-top: 1px solid var(--ds-color-border);
    background-color: var(--ds-color-background);
}

    .ds-viewer-chat-input .ds-input {
        flex: 1;
    }

/* ---- Timeline ---- */
.ds-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: var(--ds-space-6);
}

    .ds-timeline::before {
        content: '';
        position: absolute;
        left: 11px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: var(--ds-color-border);
    }

.ds-timeline-item {
    position: relative;
    padding-bottom: var(--ds-space-6);
}

    .ds-timeline-item::before {
        content: '';
        position: absolute;
        left: calc(-1 * var(--ds-space-6) + 6px);
        top: 6px;
        width: 12px;
        height: 12px;
        border-radius: var(--ds-radius-full);
        background-color: var(--ds-color-border);
        border: 2px solid var(--ds-color-background);
    }

    .ds-timeline-item.is-live::before {
        background-color: var(--ds-color-live);
        animation: ds-pulse 1.5s ease-in-out infinite;
    }

    .ds-timeline-item.is-active::before {
        background-color: var(--ds-color-primary);
    }

.ds-time-badge {
    display: inline-block;
    padding: var(--ds-space-1) var(--ds-space-2);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-button);
    background-color: var(--ds-color-muted);
    border-radius: var(--ds-radius-sm);
    color: #6B7280;
    margin-bottom: var(--ds-space-1);
}

.ds-vod-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: var(--ds-space-1) var(--ds-space-3);
    background-color: var(--ds-color-warning);
    color: var(--ds-color-foreground);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-button);
    border-radius: var(--ds-radius-sm);
}

/* ---- Sponsor Grid ---- */
.ds-sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--ds-space-8);
    padding: var(--ds-space-8) var(--ds-space-4);
    width: 100%;
}

.ds-sponsor-group {
    text-align: center;
}

    .ds-sponsor-group p {
        font-size: var(--ds-font-size-sm);
        font-weight: var(--ds-font-weight-button);
        color: #374151;
        margin-bottom: var(--ds-space-3);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .ds-sponsor-group img {
        max-height: 175px;
        width: auto;
        margin: var(--ds-space-3);
        display: inline-block;
    }

@media (max-width: 575.98px) {
    .ds-sponsor-group img {
        max-height: 125px;
        margin: var(--ds-space-1);
    }
}

/* ---- Overlay ---- */
.ds-overlay-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: var(--ds-z-overlay);
    display: none;
}

    .ds-overlay-backdrop.is-active {
        display: block;
    }

.ds-overlay-content {
    position: fixed;
    top: 0;
    right: 0;
    z-index: calc(var(--ds-z-overlay) + 1);
    padding: var(--ds-space-6);
    color: var(--ds-color-background);
    text-align: right;
    display: none;
}

    .ds-overlay-content.is-active {
        display: block;
    }

.ds-livestream-page {
    min-height: 100vh;
    min-height: 100dvh; /* respects mobile browser chrome */
    display: flex;
    flex-direction: column;
    color: var(--ds-color-foreground);
    overflow-x: clip;
    /* ---- Flat design background: soft gradient mesh ---- */
    background-color: #F8FAFC;
    background-image: radial-gradient( ellipse 60% 50% at 85% 5%, rgba(59, 130, 246, 0.08) 0%, transparent 70% ), radial-gradient( ellipse 50% 60% at 10% 90%, rgba(16, 185, 129, 0.07) 0%, transparent 70% ), radial-gradient( ellipse 40% 40% at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 70% ), repeating-linear-gradient( 135deg, transparent 0px, transparent 40px, rgba(59, 130, 246, 0.015) 40px, rgba(59, 130, 246, 0.015) 41px );
    background-attachment: fixed;
}

    /* ---- Decorative geometric accents ---- */
    .ds-livestream-page::before,
    .ds-livestream-page::after {
        content: '';
        position: fixed;
        z-index: 0;
        pointer-events: none;
        border-radius: var(--ds-radius-full);
        opacity: 0.5;
    }

    /* Top-left — large soft circle */
    .ds-livestream-page::before {
        width: 500px;
        height: 500px;
        top: -180px;
        left: -120px;
        background: linear-gradient( 135deg, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.04) 100% );
    }

    /* Bottom-right — smaller accent circle */
    .ds-livestream-page::after {
        width: 350px;
        height: 350px;
        bottom: -100px;
        right: -80px;
        background: linear-gradient( 315deg, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.04) 100% );
    }

    /* Ensure all direct children stack above the decorative pseudo-elements */
    .ds-livestream-page > * {
        position: relative;
        z-index: 1;
    }

/* ========================================
   CLIENT PAGE — View Overrides
   ======================================== */

/* Legacy element overrides */
.live-header,
.banner-live {
    display: none !important;
}

.btn-change-live {
    white-space: break-spaces;
}

footer {
    position: relative !important;
}

.emoji-picker__wrapper {
    z-index: 99;
}

.stream-main-container {
    max-width: 100vw;
}

/* ---- Header logo fallback ---- */
.ds-client-header-logo {
    height: 24px;
    width: auto;
}

/* ---- Zoom modifier ---- */
.ds-client-layout--zoom .stream-main-container,
.ds-client-layout--zoom .zoom-MuiPopper-root,
.ds-client-layout--zoom .client-banner {
    z-index: 1 !important;
}

.ds-client-layout--zoom .div-footer,
.ds-client-layout--zoom .live-page-header-container,
.ds-client-layout--zoom .banner-live,
.ds-client-layout--zoom .programacao-live {
    display: none;
}

.ds-client-layout--zoom .live-stream-header-banner {
    max-height: 80px !important;
}

/* ---- Player Embed ---- */
.ds-player-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: inherit;
}

    .ds-player-embed > * {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none;
        padding: 0 !important;
    }

/* ---- SVG icon sizing ---- */
.ds-icon-inline {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* ---- Chat controls footer ---- */
.ds-chat-controls {
    padding: 0 var(--ds-space-2);
    flex-shrink: 0;
}

/* ---- Reply preview ---- */
.ds-reply-preview {
    font-size: var(--ds-font-size-sm);
    text-align: left;
    background-color: #eef2f7;
    color: var(--ds-color-foreground);
    padding: var(--ds-space-2) var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    border-left: 3px solid var(--ds-color-primary);
    margin-top: var(--ds-space-1);
    position: relative;
}

.ds-reply-preview-close {
    float: right;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: var(--ds-space-1);
}

    .ds-reply-preview-close:hover {
        color: var(--ds-color-danger);
    }

/* ---- Load more link ---- */
.ds-load-more-link {
    color: var(--ds-color-primary);
    font-weight: var(--ds-font-weight-button);
    font-size: var(--ds-font-size-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    background: none;
    border: none;
    padding: var(--ds-space-2);
}

    .ds-load-more-link:hover {
        text-decoration: underline;
    }

/* ---- Schedule panel (inline variant) ---- */
.ds-schedule-panel--inline {
    overflow-y: auto;
    flex: 1;
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

/* ---- Dialog (image preview) ---- */
.moderator-image-container {
    max-width: 800px;
    overflow-x: hidden;
}

    .moderator-image-container img {
        max-width: 100%;
    }

/* ========================================
   CLIENT — Desktop (≥ 925px)
   ======================================== */
@media (min-width: 925px) {
    .ds-client-layout {
        display: flex;
        height: calc(100dvh - 56px);
        min-height: 0;
    }
    .ds-client-chat-col {
        width: 420px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .ds-chat-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .ds-chat-body .tab-content {
        flex: 1;
        position: relative;
        overflow: hidden;
        min-height: 0;
    }
    .ds-client-layout {
        align-items: flex-start;
        min-height: 0;
    }
    .ds-client-player-col {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    .ds-client-player-col,
    .ds-client-chat-col {
        height: 100%;
    }

    .ds-chat-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .live-chat-box,
    .live-question-box {
        flex: 1;
        overflow-y: auto;
    }

    .ds-chat-body .tab-content {
        flex: 1;
        position: relative;
        overflow: hidden;
        min-height: 0;
    }

    .ds-chat-body .tab-pane.show.active {
        position: absolute;
        inset: 0;
        display: flex !important;
        flex-direction: column;
    }

    .ds-mobile-only-tab {
        display: none !important;
    }

    .ds-chat-body .tab-pane.ds-mobile-only-pane {
        display: none !important;
    }

    /* Desktop shows programacao-live-md in flow; footer duplicate not needed */
    .ds-client-footer-description {
        display: none !important;
    }
}

/* ========================================
   CLIENT — Mobile (≤ 924px)
   ======================================== */
@media (max-width: 924px) {
    .ds-mobile-sticky-player {
        position: sticky;
        top: 0;
        z-index: 50;
        background-color: var(--ds-color-background, #fff);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    #chatTabs {
        flex-wrap: nowrap;
    }

        #chatTabs .nav-item {
            flex: 1 !important;
            width: auto !important;
            min-width: 0;
        }

        #chatTabs .nav-link small {
            font-size: 0.6rem;
            white-space: normal;
        }

    .btn-programacao,
    .programacao-live-xs,
    .ds-client-footer-description {
        display: none !important;
    }

    .live-chat-box,
    .live-question-box {
        height: 350px;
    }

    .ds-mobile-only-pane.show.active {
        display: flex !important;
        flex-direction: column;
    }
}

/* ---- Livestream Hero Header ---- */

.ds-livestream-header {
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

@media (min-width: 768px) {
    .ds-livestream-header {
        min-height: 140px;
    }
}

.ds-livestream-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    transform: scale(1.3);
}

.ds-livestream-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-4);
    min-height: inherit;
}

/* ---- Banner Image (inside hero) ---- */

.ds-livestream-banner-img {
    display: block;
    max-height: 120px;
    max-width: 90%;
    border-radius: var(--ds-radius-md);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .ds-livestream-banner-img {
        max-height: 160px;
    }
}

@media (min-width: 992px) {
    .ds-livestream-banner-img {
        max-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .ds-livestream-banner-img {
        max-height: 80px;
        border-radius: var(--ds-radius-sm);
    }
}

/* ---- Moderator Badge ---- */

.ds-moderator-badge {
    position: absolute;
    top: var(--ds-space-2);
    right: var(--ds-space-4);
    z-index: 2;
    background-color: var(--ds-color-background);
    color: var(--ds-color-foreground);
    padding: var(--ds-space-1) var(--ds-space-3);
    border-radius: var(--ds-radius-full);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-label);
}

    .ds-moderator-badge a {
        color: var(--ds-color-primary);
        font-weight: var(--ds-font-weight-button);
    }

        .ds-moderator-badge a:hover {
            text-decoration: underline;
        }

/* ---- Stream Main Container ---- */

.ds-stream-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--ds-space-4);
    padding-bottom: var(--ds-space-4);
    flex: 1 0 auto;
}

@media (min-width: 768px) {
    .ds-stream-container {
        padding-inline: var(--ds-space-6);
    }
}

@media (max-width: 767.98px) {
    .ds-stream-container {
        flex: 0 0 auto;
    }
}

/* ---- Footer (Livestream variant — compact) ---- */

.ds-footer--stream {
    padding: var(--ds-space-6) var(--ds-space-4);
    max-width: 480px;
    margin-inline: auto;
}

    .ds-footer--stream .ds-footer-label {
        font-size: var(--ds-font-size-xs);
        font-weight: var(--ds-font-weight-body);
        color: #9CA3AF;
        margin-bottom: var(--ds-space-3);
    }

    .ds-footer--stream .ds-footer-credit {
        font-size: var(--ds-font-size-sm);
        color: #9CA3AF;
    }

        .ds-footer--stream .ds-footer-credit img {
            display: inline-block;
            width: 45px;
            height: auto;
            vertical-align: middle;
            margin-right: var(--ds-space-1);
        }

/* ========================================
   STATE MODIFIERS
   ======================================== */

.is-live { /* broadcast live state */
}

.is-active { /* nav, timeline, sidebar items */
}

.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.is-warning {
    border-color: var(--ds-color-warning) !important;
}

.is-error {
    border-color: var(--ds-color-danger) !important;
}

.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

/* ========================================
   MOTION & ANIMATION
   ======================================== */

@keyframes ds-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ds-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ds-slide-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ds-animate-fade-in {
    animation: ds-fade-in var(--ds-transition-normal) both;
}

.ds-animate-slide-up {
    animation: ds-slide-up var(--ds-transition-normal) both;
}

.ds-animate-slide-down {
    animation: ds-slide-down var(--ds-transition-normal) both;
}

.ds-hover-scale {
    transition: transform var(--ds-transition-fast);
}

    .ds-hover-scale:hover {
        transform: scale(1.03);
    }

/* ========================================
   MOBILE-FIRST RESPONSIVE REFINEMENTS
   ======================================== */

@media (max-width: 575.98px) {
    .ds-navbar {
        padding: var(--ds-space-2);
        gap: var(--ds-space-2);
    }

    .ds-navbar-brand img {
        height: 22px;
    }

    .ds-lang-flags {
        display: none;
    }

    .ds-login-header {
        padding-block: var(--ds-space-4);
    }

    .ds-login-title {
        font-size: var(--ds-font-size-lg);
    }

    .ds-btn-lg {
        padding: var(--ds-space-3) var(--ds-space-4);
        font-size: var(--ds-font-size-sm);
    }

    .ds-broadcast-card {
        padding: var(--ds-space-4);
    }

    .ds-panel-header,
    .ds-panel-body,
    .ds-panel-footer {
        padding: var(--ds-space-3) var(--ds-space-4);
    }

    .ds-viewer-chat {
        height: 300px;
    }

    .ds-stat-card {
        padding: var(--ds-space-4);
    }

    .ds-stat-card-value {
        font-size: var(--ds-font-size-xl);
    }

    .ds-footer-badges img {
        max-width: 100px;
    }

    .ds-whatsapp-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .ds-moderator-badge {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: var(--ds-space-2);
    }

    .ds-livestream-header-content {
        padding: var(--ds-space-2);
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .ds-login-container {
        max-width: 540px;
        margin-inline: auto;
    }

    .ds-lang-flags img,
    .ds-lang-flags .language-flag {
        width: 20px;
        height: 15px;
    }
}

@media (min-width: 992px) {
    .ds-login-page {
        padding: var(--ds-space-8);
    }

    .ds-login-header {
        padding-block: var(--ds-space-8);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

:focus-visible {
    outline: 2px solid var(--ds-color-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   CLIENT PAGE (Live/VOD Viewer)
   ======================================== */

/* ---- Full-bleed breakout from ds-stream-container ---- */
.ds-client-header,
.ds-client-layout,
.ds-client-footer-description {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

/* ---- Client Header Bar ---- */
.ds-client-header {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-6);
    border-bottom: 1px solid var(--ds-color-border);
    background-color: var(--ds-color-background);
    flex-wrap: wrap;
    min-height: 56px;
}

.ds-client-header-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
}

    .ds-client-header-title h5 {
        font-size: var(--ds-font-size-lg);
        font-weight: var(--ds-font-weight-heading);
        margin: 0;
        color: var(--ds-color-foreground);
        line-height: var(--ds-line-height-tight);
    }

    .ds-client-header-title .ds-livestream-banner-img {
        max-height: 38px;
        border-radius: var(--ds-radius-sm);
    }

.ds-client-header-user {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    font-size: var(--ds-font-size-md);
    color: var(--ds-color-foreground);
    margin-left: auto;
    white-space: nowrap;
}

    .ds-client-header-user b {
        color: var(--ds-color-foreground);
    }

    .ds-client-header-user img {
        width: 36px;
        height: 36px;
        object-fit: cover;
        border-radius: var(--ds-radius-full);
        border: 2px solid var(--ds-color-border);
    }

    .ds-client-header-user a {
        color: var(--ds-color-primary);
        font-weight: var(--ds-font-weight-button);
    }

        .ds-client-header-user a:hover {
            text-decoration: underline;
        }

/* ---- Stream Type Badge ---- */
.ds-type-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    padding: 0.3rem 0.6rem;
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--ds-radius-sm);
    line-height: 1;
    flex-shrink: 0;
}

.ds-type-badge--live {
    background-color: var(--ds-color-danger);
    color: var(--ds-color-background);
}

.ds-type-badge--vod {
    background-color: var(--ds-color-warning);
    color: var(--ds-color-foreground);
}

.ds-type-badge--redirect {
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
}

/* ---- Client Layout (sidebar + player + chat) ---- */
.ds-client-layout {
    display: flex;
    gap: 0;
    min-height: calc(100dvh - 200px);
    background-color: var(--ds-color-background);
}

/* ---- Player Column ---- */
.ds-client-player-col {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--ds-space-4) var(--ds-space-6) var(--ds-space-8);
}

/* ---- Language Bar ---- */
.ds-language-bar {
    padding: var(--ds-space-3) var(--ds-space-4);
    margin-bottom: var(--ds-space-3);
    background: var(--ds-color-muted);
    border-radius: var(--ds-radius-lg);
}

    .ds-language-bar .language-switch {
        display: flex;
        gap: var(--ds-space-2);
    }

        .ds-language-bar .language-switch img {
            height: 22px;
            max-width: 32px;
        }

/* ---- Player Wrapper ---- */
.ds-client-player {
    border-radius: var(--ds-radius-xl);
    overflow: hidden;
    background-color: #000;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

    .ds-client-player iframe,
    .ds-client-player .plyr {
        width: 100%;
        border: 0;
    }

/* ---- Video Info ---- */
.ds-video-info {
    padding: var(--ds-space-6) 0 var(--ds-space-4);
}

.ds-video-info-title {
    font-size: var(--ds-font-size-xl);
    font-weight: var(--ds-font-weight-heading);
    color: var(--ds-color-foreground);
    margin-bottom: var(--ds-space-3);
    line-height: var(--ds-line-height-tight);
}

    .ds-video-info-title a {
        color: inherit;
    }

        .ds-video-info-title a:hover {
            color: var(--ds-color-primary);
        }

.ds-video-info-meta {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    font-size: var(--ds-font-size-md);
    color: #6B7280;
    flex-wrap: wrap;
}

    .ds-video-info-meta img {
        height: 28px;
        width: auto;
    }

    .ds-video-info-meta strong {
        color: var(--ds-color-foreground);
    }

/* ---- Evaluation Buttons ---- */
.ds-eval-group {
    display: inline-flex;
    gap: var(--ds-space-2);
    margin-left: auto;
}

    .ds-eval-group .btn-evaluation {
        border-radius: var(--ds-radius-full);
        padding: var(--ds-space-2) var(--ds-space-4);
        font-size: var(--ds-font-size-md);
        transition: transform var(--ds-transition-fast), background-color var(--ds-transition-normal);
    }

        .ds-eval-group .btn-evaluation:active {
            transform: scale(0.92);
        }

/* ---- Survey Buttons ---- */
.ds-survey-buttons {
    display: block;
    max-width: 500px;
    margin: var(--ds-space-3) auto;
}

/* ---- Schedule / Description Panel ---- */
.ds-schedule-panel {
    background-color: var(--ds-color-background);
    border: 1px solid var(--ds-color-border);
    border-radius: var(--ds-radius-xl);
    padding: var(--ds-space-6);
    margin-top: var(--ds-space-6);
    font-size: var(--ds-font-size-md);
    line-height: var(--ds-line-height-normal);
}

    .ds-schedule-panel img {
        max-width: 100%;
        height: auto;
    }

    .ds-schedule-panel table {
        width: 100%;
    }

/* ---- Client Banner (inside player area) ---- */
.ds-client-banner {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto var(--ds-space-6);
    border-radius: var(--ds-radius-lg);
}

/* ---- No Stream Configured ---- */
.ds-no-stream {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--ds-space-8);
}

    .ds-no-stream h2 {
        font-size: var(--ds-font-size-xl);
    }

/* ========================================
   CHAT COLUMN — Enhanced
   ======================================== */

.ds-client-chat-col {
    width: 100%;
    max-width: 460px;
    min-width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ds-color-border);
    background-color: #FAFBFC;
}

.ds-chat-header-actions {
    display: flex;
    gap: var(--ds-space-2);
    padding: var(--ds-space-3) var(--ds-space-4);
    border-bottom: 1px solid var(--ds-color-border);
    background-color: var(--ds-color-background);
}

    .ds-chat-header-actions .btn {
        border-radius: var(--ds-radius-full);
        font-size: var(--ds-font-size-sm);
        font-weight: var(--ds-font-weight-button);
        line-height: 1.3;
        white-space: normal;
        flex: 1;
        padding: var(--ds-space-2) var(--ds-space-3);
    }

/* ---- Chat Topbar (header actions + quiz entry grouped) ---- */
.ds-chat-topbar {
    flex-shrink: 0;
    background-color: var(--ds-color-background);
}

/* ---- Chat Quiz Entry ---- */
.ds-chat-quiz-entry {
    padding: var(--ds-space-2) var(--ds-space-4);
    border-bottom: 1px solid var(--ds-color-border);
}

/* ---- Chat Stream (scrollable messages wrapper) ---- */
.ds-chat-stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ds-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--ds-space-3);
}

    /* ---- Chat Tabs ---- */
    .ds-chat-body .nav-tabs {
        border: none;
        background: #EEF2F7;
        border-radius: var(--ds-radius-lg);
        padding: 4px;
        display: flex;
        margin-bottom: var(--ds-space-3);
    }

        .ds-chat-body .nav-tabs .nav-link {
            border: none !important;
            border-radius: var(--ds-radius-md);
            background: transparent;
            color: #334155;
            padding: var(--ds-space-3);
            font-size: var(--ds-font-size-sm);
            font-weight: var(--ds-font-weight-button);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: var(--ds-space-1);
            line-height: 1.3;
            transition: background var(--ds-transition-fast), color var(--ds-transition-fast);
        }

            .ds-chat-body .nav-tabs .nav-link i {
                font-size: var(--ds-font-size-lg);
                color: #64748B;
            }

            .ds-chat-body .nav-tabs .nav-link.active {
                background: var(--ds-color-background);
                color: var(--ds-color-foreground);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                font-weight: var(--ds-font-weight-heading);
            }

                .ds-chat-body .nav-tabs .nav-link.active i {
                    color: var(--ds-color-primary);
                }

        .ds-chat-body .nav-tabs small {
            font-size: var(--ds-font-size-xs);
            font-weight: var(--ds-font-weight-button);
            letter-spacing: 0.03em;
        }

    /* ---- Chat Input Wrapper ---- */
    .ds-chat-body .chat-input-wrapper {
        display: flex;
        gap: var(--ds-space-2);
        padding: var(--ds-space-3) 0;
        align-items: flex-end;
    }

    .ds-chat-body .chat-textarea {
        flex: 1;
        min-height: 44px;
        font-size: var(--ds-font-size-md);
        font-family: var(--ds-font-family-base);
        padding: var(--ds-space-3) var(--ds-space-4);
        border: 2px solid var(--ds-color-border);
        border-radius: var(--ds-radius-lg);
        background-color: var(--ds-color-background);
        color: var(--ds-color-foreground);
        resize: none;
        transition: border-color var(--ds-transition-normal);
    }

        .ds-chat-body .chat-textarea:focus {
            outline: none;
            border-color: var(--ds-color-primary);
        }

        .ds-chat-body .chat-textarea::placeholder {
            color: #9CA3AF;
            font-size: var(--ds-font-size-sm);
        }

    .ds-chat-body .btn-send-msg,
    .ds-chat-body #emoji-button-chat-box,
    .ds-chat-body #emoji-button-question-box {
        height: 44px;
        width: 44px;
        border-radius: var(--ds-radius-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .ds-chat-body .btn-send-msg {
        font-size: var(--ds-font-size-md);
    }

    .ds-chat-body #emoji-button-chat-box,
    .ds-chat-body #emoji-button-question-box {
        font-size: var(--ds-font-size-lg);
    }

    /* ---- Chat Messages ---- */
    .ds-chat-body .live-chat-box,
    .ds-chat-body .live-question-box {
        font-size: var(--ds-font-size-md);
    }

    .ds-chat-body .live-chat-msg-welcome,
    .ds-chat-body .live-chat-msg-welcome-question-box {
        font-size: var(--ds-font-size-sm);
        padding: var(--ds-space-3);
        line-height: var(--ds-line-height-normal);
    }

    .ds-chat-body .badge-moderator-info,
    .ds-chat-body .badge-moderator-info-question-box {
        font-size: var(--ds-font-size-sm);
        padding: var(--ds-space-2) 0;
    }

/* ---- Zoom Container ---- */
.ds-zoom-wrapper {
    width: 100%;
}

    .ds-zoom-wrapper #zmmtg-root {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        z-index: 1;
    }

/* ---- Mobile Description Footer ---- */
.ds-client-footer-description {
    padding: 0 var(--ds-space-6) var(--ds-space-8);
}

/* ========================================
   CHAT COMPOSER — Redesigned
   ======================================== */

/* ---- Moderator notice ---- */
.ds-chat-moderator-notice {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    padding: var(--ds-space-2) var(--ds-space-3);
    margin-bottom: var(--ds-space-2);
    background-color: #EFF6FF;
    color: #1E40AF;
    border-radius: var(--ds-radius-md);
    font-size: var(--ds-font-size-xs);
    font-weight: var(--ds-font-weight-label);
    line-height: var(--ds-line-height-normal);
}

    .ds-chat-moderator-notice i {
        flex-shrink: 0;
        font-size: var(--ds-font-size-sm);
    }

/* ---- Image helper strip ---- */
.ds-chat-image-helper {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-2) var(--ds-space-3);
    background-color: var(--ds-color-muted);
    border-radius: var(--ds-radius-md);
    margin-bottom: var(--ds-space-2);
}

.ds-chat-image-helper-close {
    margin-left: auto;
    color: #6B7280;
    padding: var(--ds-space-1);
    border-radius: var(--ds-radius-sm);
    transition: color var(--ds-transition-fast), background-color var(--ds-transition-fast);
}

    .ds-chat-image-helper-close:hover {
        color: var(--ds-color-danger);
        background-color: #FEF2F2;
    }

.ds-chat-image-helper-link {
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-label);
    color: var(--ds-color-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-1);
    transition: color var(--ds-transition-fast);
}

    .ds-chat-image-helper-link:hover {
        color: var(--ds-color-primary-hover);
        text-decoration: underline;
    }

/* ---- Reply preview header/author/body ---- */
.ds-reply-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ds-space-1);
}

.ds-reply-preview-author {
    font-weight: var(--ds-font-weight-heading);
    font-size: var(--ds-font-size-sm);
    color: var(--ds-color-primary);
}

.ds-reply-preview-body {
    display: block;
    font-size: var(--ds-font-size-sm);
    color: #6B7280;
    line-height: var(--ds-line-height-normal);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Composer bar ---- */
.ds-chat-composer {
    display: flex;
    align-items: flex-end;
    gap: var(--ds-space-2);
    padding: var(--ds-space-3) 0;
    border-top: 1px solid var(--ds-color-border);
    margin-top: var(--ds-space-2);
}

.ds-chat-composer-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    font-size: var(--ds-font-size-md);
    font-family: var(--ds-font-family-base);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 2px solid var(--ds-color-border);
    border-radius: var(--ds-radius-xl);
    background-color: var(--ds-color-muted);
    color: var(--ds-color-foreground);
    resize: none;
    transition: border-color var(--ds-transition-normal), background-color var(--ds-transition-normal);
}

    .ds-chat-composer-input:focus {
        outline: none;
        border-color: var(--ds-color-primary);
        background-color: var(--ds-color-background);
    }

    .ds-chat-composer-input::placeholder {
        color: #9CA3AF;
        font-size: var(--ds-font-size-sm);
    }

.ds-chat-composer-actions {
    display: flex;
    gap: var(--ds-space-1);
    flex-shrink: 0;
}

.ds-chat-composer-btn {
    height: 44px;
    width: 44px;
    border-radius: var(--ds-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ds-font-size-md);
    transition: transform var(--ds-transition-fast), background-color var(--ds-transition-normal);
}

    .ds-chat-composer-btn:active {
        transform: scale(0.92);
    }

.ds-chat-composer-btn--emoji {
    background-color: var(--ds-color-muted);
    color: #6B7280;
}

    .ds-chat-composer-btn--emoji:hover {
        background-color: var(--ds-color-border);
        color: var(--ds-color-foreground);
    }

.ds-chat-composer-btn--send {
    background-color: var(--ds-color-primary);
    color: var(--ds-color-background);
}

    .ds-chat-composer-btn--send:hover {
        background-color: var(--ds-color-primary-hover);
    }

/* ---- Responsive tweaks ---- */
@media (max-width: 575.98px) {
    .ds-chat-composer-input {
        font-size: var(--ds-font-size-sm);
        padding: var(--ds-space-2) var(--ds-space-3);
        min-height: 40px;
    }

    .ds-chat-composer-btn {
        height: 40px;
        width: 40px;
    }
}

@media (min-width: 1600px) {
    .ds-client-player-col {
        padding: var(--ds-space-6) var(--ds-space-10) var(--ds-space-10);
    }

    .ds-video-info-title {
        font-size: var(--ds-font-size-2xl);
    }

    .ds-client-chat-col {
        max-width: 500px;
    }
}

@media (max-width: 1279px) {
    .ds-client-chat-col {
        max-width: 380px;
        min-width: 320px;
    }

    .ds-client-player-col {
        padding: var(--ds-space-3) var(--ds-space-4) var(--ds-space-6);
    }
}

@media (max-width: 924px) {
    .ds-client-layout {
        flex-direction: column;
        min-height: auto;
    }

    .ds-client-chat-col {
        max-width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid var(--ds-color-border);
    }

    .ds-client-player-col {
        overflow: visible;
        height: auto;
        padding: var(--ds-space-3) var(--ds-space-4);
    }

    .ds-client-header {
        padding: var(--ds-space-3) var(--ds-space-4);
    }

    .ds-client-header-user img {
        width: 32px;
        height: 32px;
    }

    .ds-client-footer-description {
        padding: 0 var(--ds-space-4) var(--ds-space-6);
    }

    .ds-chat-body {
        padding: var(--ds-space-2);
    }
}

@media (max-width: 575.98px) {
    .ds-client-header {
        padding: var(--ds-space-2) var(--ds-space-3);
        gap: var(--ds-space-2);
    }

    .ds-client-header-title h5 {
        font-size: var(--ds-font-size-md);
    }

    .ds-client-header-user {
        font-size: var(--ds-font-size-sm);
    }

    .ds-client-player-col {
        padding: var(--ds-space-2) var(--ds-space-3);
    }

    .ds-client-player {
        border-radius: var(--ds-radius-md);
    }

    .ds-video-info {
        padding: var(--ds-space-4) 0 var(--ds-space-2);
    }

    .ds-video-info-title {
        font-size: var(--ds-font-size-lg);
    }

    .ds-video-info-meta {
        font-size: var(--ds-font-size-sm);
        gap: var(--ds-space-2);
    }

    .ds-schedule-panel {
        padding: var(--ds-space-4);
        font-size: var(--ds-font-size-sm);
    }

    .ds-client-footer-description {
        padding: 0 var(--ds-space-3) var(--ds-space-4);
    }
}

/* ========================================
   PARALLEL LIVES SIDEBAR
   ======================================== */

.live-sidebar {
    display: flex;
    flex-direction: column;
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    background-color: var(--ds-color-background);
    border-right: 1px solid var(--ds-color-border);
    padding: var(--ds-space-4);
    overflow-y: auto;
    transition: width var(--ds-transition-normal), min-width var(--ds-transition-normal), padding var(--ds-transition-normal);
}

    /* ---- Collapsed state ---- */
    .live-sidebar.is-collapsed {
        width: 48px;
        min-width: 48px;
        padding: var(--ds-space-2);
        overflow: hidden;
    }

        .live-sidebar.is-collapsed .sidebar-section-header,
        .live-sidebar.is-collapsed #divParallelLivesList,
        .live-sidebar.is-collapsed #btnHideParallelRooms,
        .live-sidebar.is-collapsed .notification {
            display: none !important;
        }

        .live-sidebar.is-collapsed .sidebar-header {
            flex-direction: column;
            align-items: center;
            gap: var(--ds-space-2);
            margin-bottom: 0;
        }

        .live-sidebar.is-collapsed .sidebar-toggle {
            width: 32px;
            height: 32px;
        }

            .live-sidebar.is-collapsed .sidebar-toggle i {
                transform: rotate(180deg);
            }
            
.sidebar-header {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-4);
}

.sidebar-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ds-radius-md);
    color: var(--ds-color-foreground);
    transition: background-color var(--ds-transition-fast);
}

    .sidebar-toggle:hover {
        background-color: var(--ds-color-muted);
    }

    .sidebar-toggle i {
        transition: transform var(--ds-transition-normal);
    }

.sidebar-section-header {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-1);
    min-width: 0;
}

.sidebar-title {
    font-size: var(--ds-font-size-sm);
    font-weight: var(--ds-font-weight-heading);
    color: var(--ds-color-foreground);
    line-height: var(--ds-line-height-tight);
}

.sidebar-subtitle {
    font-size: var(--ds-font-size-xs);
    color: #6B7280;
    line-height: var(--ds-line-height-normal);
}

.live-sidebar .notification {
    display: none;
    font-size: var(--ds-font-size-xs);
    color: var(--ds-color-primary);
    font-weight: var(--ds-font-weight-label);
    padding: var(--ds-space-2) 0;
    margin-top: var(--ds-space-3);
}

/* ---- Mobile: sidebar as a FAB when collapsed ---- */
@media (max-width: 924px) {
    /* Override the ID-level base styles from site.css */
    #client-sidebar.live-sidebar {
        position: fixed;
        bottom: var(--ds-space-4);
        left: var(--ds-space-4);
        z-index: var(--ds-z-overlay);
        width: auto;
        min-width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        padding: 0;
        border: none;
        border-right: none;
        border-radius: var(--ds-radius-full);
        background: transparent;
        box-shadow: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        transition: opacity var(--ds-transition-normal), transform var(--ds-transition-normal);
    }

        /* Hide everything except the expand trigger */
        #client-sidebar.live-sidebar .sidebar-header,
        #client-sidebar.live-sidebar #divParallelLivesList,
        #client-sidebar.live-sidebar #btnHideParallelRooms,
        #client-sidebar.live-sidebar .notification {
            display: none !important;
        }

        #client-sidebar.live-sidebar.is-scrolled-away {
            opacity: 0;
            pointer-events: none;
            transform: translateY(20px);
        }

        /* Expanded on mobile = full-screen slide-in panel */
        #client-sidebar.live-sidebar.is-mobile-open {
            position: fixed;
            inset: 0;
            width: 100%;
            min-width: 100%;
            height: 100dvh;
            padding: var(--ds-space-4);
            border-radius: 0;
            background-color: var(--ds-color-background);
            box-shadow: none;
            overflow-y: auto;
            z-index: calc(var(--ds-z-overlay) + 1);
            animation: ds-slide-up var(--ds-transition-normal);
            opacity: 1;
            pointer-events: auto;
            transform: none;
        }

            #client-sidebar.live-sidebar.is-mobile-open .sidebar-header {
                display: flex !important;
            }

            #client-sidebar.live-sidebar.is-mobile-open #divParallelLivesList {
                display: block !important;
            }

            #client-sidebar.live-sidebar.is-mobile-open #btnHideParallelRooms {
                display: block !important;
            }

            #client-sidebar.live-sidebar.is-mobile-open #btnShowParallelRooms {
                display: none !important;
            }

    .btn-mobile-transmissions {
        display: none !important;
    }
}

/* codex-chat-refresh:start */
.ds-client-chat-col.client-right-sidebar {
    position: relative;
    align-self: stretch;
    width: min(100%, 430px);
    max-width: 430px !important;
    min-width: 320px;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3);
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.1), transparent 32%),
        linear-gradient(180deg, #F8FBFF 0%, #F2F6FA 100%);
}

.ds-chat-topbar {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
}

.ds-chat-header-actions {
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.ds-chat-header-actions .btn,
.ds-chat-quiz-entry .btn {
    min-height: 56px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ds-chat-quiz-entry,
#rowInteractiveActions.ds-chat-quiz-entry {
    padding: 0;
}

.ds-chat-body.row-chat-content {
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(14px);
}

.ds-chat-body.row-chat-content .nav-tabs {
    margin: var(--ds-space-3);
    margin-bottom: var(--ds-space-2);
    background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
    padding: 5px;
}

.ds-chat-body.row-chat-content .nav-tabs .nav-link {
    min-height: 78px;
    padding: var(--ds-space-3) var(--ds-space-2);
    gap: 2px;
}

.ds-chat-body.row-chat-content .nav-tabs .nav-link small {
    display: block;
}

.ds-chat-body.row-chat-content .nav-tabs .nav-link i {
    color: #64748B !important;
}

.ds-chat-body.row-chat-content .nav-tabs .nav-link.active i {
    color: var(--ds-color-primary) !important;
}

#chatTabContent {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 var(--ds-space-3) var(--ds-space-3);
}

.ds-chat-pane {
    min-height: 0;
    gap: var(--ds-space-3);
}

.ds-chat-pane.show.active {
    display: flex !important;
    flex-direction: column;
}

.ds-chat-stream {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    overflow: hidden;
}

.ds-client-chat-col .live-chat-box,
.ds-client-chat-col .live-question-box {
    padding: var(--ds-space-4);
}

.ds-chat-controls {
    position: relative;
    padding: var(--ds-space-3);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.ds-chat-moderator-notice {
    margin-bottom: var(--ds-space-3);
}

.ds-reply-preview {
    margin-top: 0;
    margin-bottom: var(--ds-space-2);
}

.message-image-helper-container {
    position: absolute;
    left: var(--ds-space-3);
    right: var(--ds-space-3);
    bottom: calc(100% + var(--ds-space-2));
    max-width: none;
    z-index: 5;
    pointer-events: none;
}

.message-image-helper-container .message-image-helper {
    pointer-events: auto;
}

.moderator-image-container {
    border: none;
    border-radius: 24px;
    padding: var(--ds-space-4);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.moderator-image-container::backdrop {
    background: rgba(15, 23, 42, 0.65);
}

@media (max-width: 924px) {
    .ds-client-chat-col.client-right-sidebar {
        max-width: 100% !important;
        min-width: 0 !important;
        padding: var(--ds-space-2) 0 0;
        border-left: none;
        background: transparent;
    }

    .ds-chat-topbar {
        padding: 0 var(--ds-space-2);
    }

    .ds-chat-body.row-chat-content {
        border-radius: 26px 26px 0 0;
    }

    .ds-chat-body.row-chat-content .nav-tabs {
        margin: var(--ds-space-2);
    }

    .ds-chat-body.row-chat-content .nav-tabs .nav-link {
        min-height: 72px;
        padding: var(--ds-space-2);
    }

    #chatTabContent {
        padding: 0 var(--ds-space-2) var(--ds-space-2);
    }

    .ds-chat-stream,
    .ds-chat-controls {
        border-radius: 20px;
    }

    .message-image-helper-container {
        left: var(--ds-space-2);
        right: var(--ds-space-2);
    }
}

@media (max-width: 575.98px) {
    .ds-chat-header-actions {
        flex-direction: column;
    }
}