.title-bar {
    position: fixed;
    z-index: var(--rl-z-titlebar, 5500);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--ui-titlebar-height, 40px);
    padding: 0;
    overflow: visible;
    --ui-titlebar-leading-reserve: 248px;
    --ui-titlebar-trailing-reserve: 182px;
}

@supports (-webkit-app-region: drag) {
    .title-bar {
        -webkit-app-region: drag;
    }

    .title-bar-controls,
    .title-bar-actions,
    .title-bar-update-slot {
        -webkit-app-region: no-drag;
    }
}

/* Title Bar - Tema Escuro */
body.theme-dark .title-bar {
    background: linear-gradient(180deg,
            rgba(50, 50, 50, 0.95) 0%,
            rgba(40, 40, 40, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Title Bar - Tema Claro */
body:not(.theme-dark) .title-bar {
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.platform-mac.theme-dark .title-bar {
    background: #3a3a3c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.platform-mac:not(.theme-dark) .title-bar {
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: none;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap: clamp(8px, calc(var(--ui-titlebar-height, 40px) * 0.18), 12px);
    color: var(--text-secondary);
    font-size: calc(var(--font-size-l) * var(--ui-titlebar-text-scale, 1.4));
    font-weight: 500;
    -webkit-user-select: none;
    user-select: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    pointer-events: none;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - var(--ui-titlebar-leading-reserve) - var(--ui-titlebar-trailing-reserve) - 32px);
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--transition-smooth),
        transform var(--transition-smooth),
        visibility var(--transition-smooth);
}

.title-bar-update-home {
    display: contents;
}

.title-bar-update-slot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - var(--ui-titlebar-leading-reserve) - var(--ui-titlebar-trailing-reserve) - 16px);
    min-width: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.96);
    transition:
        opacity var(--transition-smooth),
        transform var(--transition-smooth),
        visibility var(--transition-smooth);
    z-index: 4;
}

.title-bar-update-slot>* {
    pointer-events: auto;
}

body.has-update-available .title-bar-text {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(0.96);
}

body.has-update-available .title-bar-update-slot {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.title-brand-lockup {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: clamp(10px, calc(var(--ui-titlebar-height, 40px) * 0.22), 14px);
}

.title-brand-cluster {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, calc(var(--ui-titlebar-height, 40px) * 0.18), 10px);
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.title-brand-cluster::before {
    display: none;
}

.title-brand-cluster>* {
    position: relative;
    z-index: 1;
}

.title-brand-cluster__divider {
    display: none;
}

.title-bar-text h1 {
    font-size: inherit;
    font-weight: 700;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

.title-logo-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.title-logo-shell::before {
    display: none;
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.46), transparent 42%);
    pointer-events: none;
}

.title-bar-text .title-logo {
    width: calc(var(--ui-titlebar-logo-size, 29px) + 2px);
    height: calc(var(--ui-titlebar-logo-size, 29px) + 2px);
    padding: 0;
    opacity: 1;
    filter: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.title-bar-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    height: 100%;
}

.title-bar-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: var(--ui-titlebar-actions-gap, 10px);
    height: 100%;
    min-width: 0;
    width: max-content;
    overflow: visible;
}

.platform-win .title-bar-controls {
    display: flex;
}

.platform-mac .title-bar {
    padding-left: 86px;
    padding-right: 14px;
    --ui-titlebar-leading-reserve: 106px;
    --ui-titlebar-trailing-reserve: 258px;
}

.platform-mac .title-bar-text h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-mac .title-bar-text {
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - var(--ui-titlebar-leading-reserve) - var(--ui-titlebar-trailing-reserve) - 32px);
}

.platform-win .title-bar-actions {
    left: 12px;
    right: auto;
    max-width: min(var(--ui-titlebar-leading-reserve), calc(100% - 260px));
}

.platform-win .title-bar-actions .status-seal {
    order: -1;
}

.platform-mac .title-bar-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    justify-content: flex-end;
    max-width: min(var(--ui-titlebar-trailing-reserve), calc(100% - 180px));
}

body.platform-win.has-update-available .title-bar {
    --ui-titlebar-leading-reserve: 248px;
    --ui-titlebar-trailing-reserve: 182px;
}

body.platform-mac.has-update-available .title-bar {
    --ui-titlebar-leading-reserve: 106px;
    --ui-titlebar-trailing-reserve: 258px;
}

.title-bar-actions .status-seal {
    position: static;
    transform: none;
    height: auto;
}

.player-container {
    z-index: 1;
    display: flex;
    flex-grow: 1;
    gap: var(--ui-layout-gap, 0.65rem);
    width: var(--ui-main-content-width, min(98.5vw, calc(100vw - 8px)));
    max-width: var(--ui-main-content-width, min(98.5vw, calc(100vw - 8px)));
    min-height: 0;
    margin: 0 auto;
    padding: var(--ui-player-container-padding, 52px 12px 12px 12px);
    /* visible: não cortar o popover de detalhes técnicos que ultrapassa a coluna (ver .player-column-lhs) */
    overflow: visible;
    transition: none;
}

.player-column-lhs,
.content-rhs-column {
    contain: layout style paint;
    transform: translateZ(0);
}

/* player column lhs */
.player-column-lhs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 var(--ui-player-column-width, 260px);
    min-width: var(--ui-player-column-width, 260px);
    max-width: var(--ui-player-column-width, 260px);
    height: 100%;
    min-height: 0;
    padding: var(--ui-player-column-padding, 18px);
    gap: var(--ui-player-column-gap, 16px);
    position: relative;
    transform: none;
    border-radius: var(--border-radius-l);
    transition: none;
    isolation: auto;
    /* hidden recortava o painel de detalhes (position:absolute) na borda inferior */
    overflow: visible;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    contain: layout style;
}

/* Container interno para controlar overflow do conteúdo */
.player-column-lhs>* {
    position: relative;
    z-index: 1;
}

/* tema escuro - modo fixo */
body.theme-dark.bg-fixed .player-column-lhs {
    background: linear-gradient(168deg,
            #3A3A3A 0%,
            #353535 40%,
            #303030 70%,
            #2B2B2B 100%);
    border: none;
    box-shadow: none;
    position: relative;
}

/* Borda Premium - Tema Escuro Fixo */
body.theme-dark.bg-fixed .player-column-lhs::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.06) 75%,
            rgba(255, 255, 255, 0.12) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

/* tema claro - modo fixo */
body:not(.theme-dark).bg-fixed .player-column-lhs {
    background: linear-gradient(168deg,
            #F3F4F6 0%,
            #E5E7EB 25%,
            #D1D5DB 50%,
            #C4C8CC 75%,
            #B8BCC0 100%);
    border: none;
    box-shadow:
        0 8px 16px -4px rgba(0, 0, 0, 0.12),
        0 4px 8px -2px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Borda Premium - Tema Claro Fixo */
body:not(.theme-dark).bg-fixed .player-column-lhs::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.04) 25%,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.04) 75%,
            rgba(0, 0, 0, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

body:not(.theme-dark).bg-fixed .player-column-lhs::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--border-radius-l) - 1px);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.content-rhs-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--ui-content-column-gap, 0.5rem);
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.panel-animating {
    transition: none;
}

.playlists-row {
    display: flex;
    flex: 1 1 50%;
    gap: var(--ui-content-row-gap, 0.5rem);
    min-height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* playlist & chamadas panels */
.playlist-panel,
.chamadas-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-radius: var(--border-radius-l);
    transition: none;
    flex: 1 1 auto;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    clip-path: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    contain: layout style paint;
}

/* elementos internos dos paineis */

/* Elementos internos com scroll - sem border-radius para não conflitar */
.playlist-panel>[id*="content-area"],
.playlist-panel>[id*="Container"],
.chamadas-panel>[id*="content-area"],
.chamadas-panel>[id*="Container"],
.playlist-panel .playlist-scroll,
.chamadas-panel .playlist-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    margin: 0;
    /* Garantir que não criem fundos adicionais */
    box-shadow: none;
}

/* Container de chamadas - garantir transparência total */
#chamadasContainer {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Tema Escuro - Fixo */
body.theme-dark.bg-fixed .playlist-panel,
body.theme-dark.bg-fixed .chamadas-panel {
    background: linear-gradient(168deg,
            #3A3A3A 0%,
            #353535 50%,
            #303030 100%);
    border: none;
    box-shadow: none;
    position: relative;
}

/* Borda Premium - Painéis Tema Escuro Fixo */
body.theme-dark.bg-fixed .playlist-panel::before,
body.theme-dark.bg-fixed .chamadas-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.06) 75%,
            rgba(255, 255, 255, 0.12) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

/* Tema Claro - Fixo */
body:not(.theme-dark).bg-fixed .playlist-panel,
body:not(.theme-dark).bg-fixed .chamadas-panel {
    background: linear-gradient(168deg,
            #F3F4F6 0%,
            #E5E7EB 40%,
            #D1D5DB 100%);
    border: none;
    box-shadow: none;
    position: relative;
}

/* Borda Premium - Painéis Tema Claro Fixo */
body:not(.theme-dark).bg-fixed .playlist-panel::before,
body:not(.theme-dark).bg-fixed .chamadas-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.04) 25%,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.04) 75%,
            rgba(0, 0, 0, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}


.playlist-panel.dragover {
    background-color: var(--accent-tts-bg);
    border: 2px dashed var(--accent-tts);
}

.playlists-row>.playlist-panel {
    flex: 1;
}

.chamadas-panel {
    flex: 1 1 50%;
}

/* panel header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ui-panel-header-gap, 12px);
    flex-shrink: 0;
    padding: var(--ui-panel-header-padding, 10px 14px);
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 1;
    background: var(--panel-header-bg, transparent);
    /* Cantos superiores arredondados */
    border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
    /* Garantir que o fundo respeite os cantos */
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    overflow: hidden;
    border-bottom: 1px solid var(--panel-header-border, var(--border-primary));
    box-shadow: var(--panel-header-shadow, none);
}

.panel-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--panel-header-gloss, transparent);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.panel-header>* {
    position: relative;
    z-index: 1;
}

.panel-header-meta,
.panel-header-actions {
    min-height: var(--ui-panel-header-min-height, 25px);
}

/* Playlist / Chamadas: mesma altura de faixa que o rodapé; botões do header = --panel-control-size */
.playlist-panel .panel-header,
.chamadas-panel .panel-header {
    box-sizing: border-box;
    height: calc(var(--panel-footer-height) * var(--rl-panel-header-height-scale, 0.8));
    min-height: 0;
    padding: var(--ui-panel-header-padding);
}

/* Músicas (abas/sombras) e Chamadas: altura ao conteúdo + sombras visíveis */
#music-panel-header.panel-header,
#chamadas-panel-header.panel-header {
    overflow: visible;
}

/* Headers principais: mesma faixa visual */
#music-panel-header.panel-header,
#announcements-panel-header.panel-header,
#chamadas-panel-header.panel-header {
    height: var(--rl-main-panel-header-height, 33px) !important;
    min-height: var(--rl-main-panel-header-height, 33px) !important;
    max-height: var(--rl-main-panel-header-height, 33px) !important;
    box-sizing: border-box !important;
}

/* Chamadas: mesma faixa vertical do header de Músicas */
#chamadas-panel-header.panel-header {
    padding: 0 0 0 12px !important;
    gap: 6px 10px;
    align-items: center;
}

#chamadas-panel-header {
    --chamadas-header-edge: 2px;
    --chamadas-header-edge-radius: 20px;
}

#chamadas-panel-header .panel-header-actions {
    display: inline-flex;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    /* Mesma lógica do Menu: margem 2px no contorno direito do header. */
    padding: var(--chamadas-header-edge, 2px);
    padding-left: 0;
    gap: var(--chamadas-header-edge, 2px);
}

#chamadas-panel-header .panel-header-btn {
    box-sizing: border-box;
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: var(--rl-soft-radius, 8px);
}

/* Maximizar (canto direito): mesma lógica aninhada do Menu do toolbar. */
#chamadas-panel-header #toggleChamadasPanelBtn {
    border-radius:
        var(--rl-soft-radius, 8px)
        calc(var(--chamadas-header-edge-radius, 20px) - var(--chamadas-header-edge, 2px))
        0
        var(--rl-soft-radius, 8px);
}

/* Menu no canto quando maximizar some (retrato). */
@media (max-width: 670px) and (orientation: portrait) {
    #chamadas-panel-header .mobile-panel-menu-trigger {
        border-radius:
            var(--rl-soft-radius, 8px)
            calc(var(--chamadas-header-edge-radius, 20px) - var(--chamadas-header-edge, 2px))
            0
            var(--rl-soft-radius, 8px);
    }
}

#chamadas-panel-header .panel-title-wrapper {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: var(--chamadas-header-edge, 2px);
    min-width: 0;
    gap: 0.7rem;
}

#chamadas-panel-header .panel-title-text {
    font-size: calc(var(--font-size-base, 1rem) * 0.9);
    line-height: 1;
}

#chamadas-panel-header .panel-title-icon {
    font-size: 0.9em;
    line-height: 1;
}

#music-panel-header.panel-header,
#announcements-panel-header.panel-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 8px;
    padding: 0 12px !important;
}

#music-panel-header .panel-header-meta.panel-counter-group,
#announcements-panel-header .panel-header-meta.panel-counter-group {
    order: 0;
    flex: 0 1 auto;
    margin-left: auto;
    align-self: center;
    justify-content: flex-end;
    min-height: 0;
}

#music-panel-header .panel-header-title,
#announcements-panel-header .panel-title-wrapper {
    order: 0;
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    gap: 5px;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
}

#music-panel-header .panel-title-text,
#announcements-panel-header .panel-title-text {
    font-size: calc(var(--font-size-base, 1rem) * 0.85);
    line-height: 1.1;
}

#music-panel-header .panel-title-icon,
#announcements-panel-header .panel-title-icon {
    font-size: 0.9em;
}

#music-panel-header .panel-stat,
#announcements-panel-header .panel-stat {
    min-height: calc(var(--rl-main-panel-header-height, 33px) - 10px);
    min-width: 0;
    gap: 4px;
    padding: 0 8px;
}

#music-panel-header .playlist-tabs {
    order: 0;
}

.playlist-panel .panel-header .panel-header-meta,
.playlist-panel .panel-header .panel-header-actions,
.chamadas-panel .panel-header .panel-header-meta,
.chamadas-panel .panel-header .panel-header-actions {
    min-height: 0;
}

.playlist-panel .panel-header .panel-header-btn {
    box-sizing: border-box;
    width: calc(var(--panel-control-size) * var(--rl-panel-header-height-scale, 0.8));
    height: calc(var(--panel-control-size) * var(--rl-panel-header-height-scale, 0.8));
    min-width: calc(var(--panel-control-size) * var(--rl-panel-header-height-scale, 0.8));
    min-height: calc(var(--panel-control-size) * var(--rl-panel-header-height-scale, 0.8));
}

.playlist-panel .panel-header .panel-header-btn i,
.chamadas-panel .panel-header .panel-header-btn i {
    font-size: var(--panel-control-icon-size, 0.9rem);
}

.panel-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.panel-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: var(--font-size-s);
    font-weight: 500;
    line-height: 1.2;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* Panel Footer base - definido em components.css para evitar duplicação */

#announcements-controls-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2px 12px;
}

/* player footer */
#player-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    --progress-bar-height: 6px;
    --progress-bar-height-hover: 6px;
    padding: var(--ui-player-footer-padding, 12px 0 18px 0);
    margin: var(--ui-player-footer-margin, 0 -16px -16px -16px);
    width: var(--ui-player-footer-width, calc(100% + 32px));
    border-radius: 0 0 var(--border-radius-l) var(--border-radius-l);
    margin-top: auto;
    min-height: var(--ui-player-footer-min-height, 136px);
    height: auto;
    box-sizing: border-box;
    overflow: visible;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
}

#player-footer .player-footer-content .progress-bar-container {
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    grid-column: 1 / -1;
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 2px;
    align-items: center;
}

#player-footer .player-footer-content {
    width: var(--ui-player-footer-content-width, 100%);
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: start;
    justify-content: stretch;
    row-gap: var(--ui-player-footer-row-gap, 10px);
    column-gap: var(--player-controls-gap, 14px);
}

#player-footer .progress-bar-row {
    display: contents;
}

#player-footer .progress-bar-row input[type="range"] {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

#player-footer .progress-bar-row .control-button-volume-wrapper {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    margin: 0;
}

#player-footer .progress-bar-container .time-display {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-weight: 540;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    font-size: 0.74rem;
}

#player-footer .player-footer-content>.control-button,
#player-footer .player-footer-content>.control-button-volume-wrapper {
    justify-self: center;
    align-self: center;
    grid-row: 2;
}

#player-footer .player-footer-content>#prevButton {
    grid-column: 2;
    justify-self: center;
}

#player-footer .player-footer-content>#playPauseButton {
    grid-column: 3;
    justify-self: center;
}

#player-footer .player-footer-content>#nextButton {
    grid-column: 4;
    justify-self: center;
}

#player-footer .control-button-volume-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-rhs-column.chamadas-expanded .playlists-row,
.content-rhs-column.chamadas-maximized .playlists-row {
    display: none !important;
}

.content-rhs-column.chamadas-expanded #music-playlist-panel,
.content-rhs-column.chamadas-maximized #music-playlist-panel {
    display: none !important;
}

.content-rhs-column.chamadas-expanded #announcements-playlist-panel,
.content-rhs-column.chamadas-maximized #announcements-playlist-panel {
    display: none !important;
}

.content-rhs-column.chamadas-expanded .chamadas-panel,
.content-rhs-column.chamadas-maximized .chamadas-panel {
    flex: 1 1 100% !important;
}

.app-footer {
    flex-shrink: 0;
    width: 100%;
    padding: var(--ui-app-footer-padding, 2px 12px 3px);
    color: var(--text-tertiary);
    font-size: 10px;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: var(--ui-app-footer-gap, 0px);
    line-height: var(--ui-app-footer-line-height, 1.05);
    min-height: 0;
}

.app-footer p {
    margin: 0;
    padding: 0;
    line-height: 1.15;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    line-height: 1;
}

.footer-brand__lockup {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.footer-brand__logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
}

.footer-brand__logo {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: none;
}

.footer-brand__name {
    font-family: var(--font-family-base);
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.footer-brand .title-bar-plan-badge {
    min-height: 18px;
    height: 18px;
    padding: 0 7px;
    font-size: 0.55rem;
    font-weight: 720;
    line-height: 1;
}

.player-panel-brand {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-self: center;
    height: 32px;
    min-width: 0;
    padding-left: 2px;
    overflow: hidden;
}

.player-panel-brand .footer-brand__lockup {
    gap: 6px;
}

.player-panel-brand .footer-brand__logo-shell {
    width: 22px;
    height: 22px;
    border-radius: 0;
}

.player-panel-brand .footer-brand__logo {
    width: 20px;
    height: 20px;
}

.player-panel-brand .footer-brand__name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.82rem;
    text-overflow: ellipsis;
}

.player-panel-brand .title-bar-plan-badge {
    flex: 0 0 auto;
}

@media (max-width: 1180px), (max-height: 760px) {
    .player-panel-brand {
        gap: 5px;
        height: 28px;
        padding-left: 0;
    }

    .player-panel-brand .footer-brand__lockup {
        gap: 4px;
    }

    .player-panel-brand .footer-brand__logo-shell {
        width: 18px;
        height: 18px;
        border-radius: 0;
    }

    .player-panel-brand .footer-brand__logo {
        width: 16px;
        height: 16px;
    }

    .player-panel-brand .footer-brand__name {
        max-width: clamp(74px, 18vw, 116px);
        font-size: 0.68rem;
    }

    .player-panel-brand .title-bar-plan-badge {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .player-panel-brand .footer-brand__name {
        max-width: clamp(62px, 20vw, 92px);
        font-size: 0.64rem;
    }
}

.app-footer .footer-line-1 {
    font-weight: 500;
}

.app-footer .footer-line-2 {
    font-size: 8.5px;
    opacity: 0.62;
}

.app-footer .app-version {
    color: var(--text-secondary);
    font-size: 0.54rem;
    font-weight: 360;
    margin-left: 0;
    white-space: nowrap;
    line-height: 1.05;
    letter-spacing: 0;
    opacity: 0.74;
}

/* App Footer - Tema Escuro */
body.theme-dark .app-footer {
    background: linear-gradient(180deg,
            rgba(30, 30, 30, 0.9) 0%,
            rgba(25, 25, 25, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* App Footer - Tema Claro */
body:not(.theme-dark) .app-footer {
    background: linear-gradient(180deg,
            rgba(235, 240, 245, 0.9) 0%,
            rgba(241, 245, 249, 0.95) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #374151;
}

body:not(.theme-dark) .app-footer :is(p, span, strong, b, small),
body:not(.theme-dark) .app-footer .app-version {
    color: #374151;
}

.title-premium {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -0.028em;
    display: inline-flex;
    align-items: center;
    gap: 0.1em;
    line-height: 0.94;
}

.title-premium-text {
    background-image: linear-gradient(180deg, var(--title-brand-primary-from) 0%, var(--title-brand-primary-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: var(--title-brand-text-shadow);
}

.title-premium-accent {
    background-image: linear-gradient(180deg, var(--title-brand-accent-from) 0%, var(--title-brand-accent-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
    font-weight: 800;
    text-shadow: var(--title-brand-accent-shadow);
}
