/* =========================================================
   Biblioteca da Música dos Anos 70/80/90/2000
   Design tokens + estilos globais
   ========================================================= */

:root {
    /* Cores */
    --color-navy-900: #0B1B34;
    --color-navy-800: #122A4D;
    --color-navy-700: #1B3A66;
    --color-gold-500: #C9A227;
    --color-gold-300: #E4C767;
    --color-white: #FFFFFF;
    --color-bg: #F7F8FA;
    --color-text: #1A1A1A;
    --color-text-muted: #4B4F58;
    --color-border: #E5E7EB;
    --color-danger: #B3261E;
    --color-success: #1E7A46;

    /* Tipografia */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --sidebar-width: 320px;
    --sidebar-width-collapsed: 76px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 20px rgba(11, 27, 52, 0.06);
    --shadow-elevated: 0 10px 30px rgba(11, 27, 52, 0.12);
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-navy-900);
    margin: 0 0 0.5em 0;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
}

p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1em 0;
}

/* =========================================================
   Layout geral (sidebar + conteúdo)
   ========================================================= */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar (menu vertical) ---------- */

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-navy-900) 0%, var(--color-navy-800) 100%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand .vinyl {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.sidebar-brand:hover .vinyl {
    transform: rotate(180deg);
}

/* Logo personalizada completa (substitui ícone + texto) —
   ocupa toda a área do bloco de cabeçalho da sidebar */
.sidebar-brand--logo-full {
    padding: 0;
    align-items: stretch;
}

.sidebar-brand--logo-full .sidebar-logo-full {
    width: 100%;
    height: 100px;
    max-width: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.sidebar-brand--logo-full .sidebar-brand-text {
    position: absolute;
    top: 10px;
    left: 16px;
}

.sidebar-brand--logo-full {
    position: relative;
}

.sidebar-brand:hover .sidebar-logo-full {
    transform: none;
}

/* Logo em formato quadrado (1:1), estilo capinha de pasta —
   usado quando o cabeçalho mostra a capa da pasta atual */
.sidebar-brand .sidebar-logo-quadrada {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
    object-position: center;
}

.sidebar-brand:hover .sidebar-logo-quadrada {
    transform: none;
}

.sidebar-brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--color-white);
}

.sidebar-brand-text span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--color-gold-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-admin-label {
    margin-top: 0 !important;
    margin-bottom: 3px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 12px 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background var(--transition), color var(--transition);
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.sidebar-nav a.active {
    background: rgba(201, 162, 39, 0.16);
    color: var(--color-gold-300);
    border-left: 3px solid var(--color-gold-500);
    padding-left: 11px;
}

.sidebar-footer {
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

/* ---------- Barra de marca fixa (mobile) ---------- */

.mobile-topbar {
    display: none;
}

.sidebar-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
}

.mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.mobile-topbar-brand svg,
.mobile-topbar-brand img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.mobile-topbar-brand img {
    border-radius: 50%;
    object-fit: cover;
}

/* Logo em formato quadrado (1:1), estilo capinha de pasta */
.mobile-topbar-brand .mobile-topbar-logo-quadrada {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.mobile-topbar-brand span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--color-white);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-topbar-brand small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.66rem;
    color: var(--color-gold-300);
    letter-spacing: 0.04em;
}

.mobile-topbar-admin-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.62rem;
    color: var(--color-gold-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 27, 52, 0.45);
    z-index: 99;
}

/* ---------- Conteúdo principal ---------- */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

.content-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.content-header h1 {
    font-size: 1.4rem;
    margin: 0;
}

.content-header .eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold-500);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.content-body {
    padding: 32px 36px;
    flex: 1;
}

/* =========================================================
   Componentes reutilizáveis
   ========================================================= */

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    padding: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    background: var(--color-navy-900);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-navy-800);
}

.btn-gold {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

.btn-gold:hover {
    background: var(--color-gold-300);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy-900);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-navy-900);
}

.btn-danger {
    background: transparent;
    color: var(--color-danger);
    border: 1.5px solid rgba(179, 38, 30, 0.3);
}

.btn-danger:hover {
    background: rgba(179, 38, 30, 0.06);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.78rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(201, 162, 39, 0.12);
    color: #8A6B14;
}

.grid-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (min-width: 901px) {
    .grid-folders {
        grid-template-columns: repeat(5, 1fr);
        max-height: 840px;
        overflow-y: auto;
        padding-right: 6px;
    }
}

.folder-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.folder-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--color-gold-300);
}

.folder-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.folder-card-header,
.folder-card > .folder-meta {
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.folder-card-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11, 27, 52, 0.55);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background var(--transition), color var(--transition);
}

.folder-card-menu-btn:hover {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

.folder-card-menu-btn svg {
    width: 15px;
    height: 15px;
}

.folder-card-menu {
    display: none;
    position: absolute;
    top: 42px;
    right: 10px;
    z-index: 4;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-elevated);
    min-width: 220px;
    overflow: hidden;
}

.folder-card-menu.open {
    display: block;
}

.folder-card-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.84rem;
    color: var(--color-text);
    font-weight: 500;
    transition: background var(--transition);
}

.folder-card-menu-item:hover {
    background: var(--color-bg);
}

.folder-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-right: 0;
}

.folder-card .folder-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--color-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-card .folder-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-gold-300);
}

.folder-card h3 {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.folder-card .folder-meta {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

.folder-card .folder-card-btn-acessar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-navy-900);
    color: var(--color-white) !important;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--font-body);
    align-self: center;
    margin-top: 2px;
    transition: background var(--transition), color var(--transition);
}

.folder-card:hover .folder-card-btn-acessar {
    background: var(--color-gold-500);
    color: var(--color-navy-900) !important;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

table.data-table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

table.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

table.data-table tr:last-child td {
    border-bottom: none;
}

table.data-table tr:hover td {
    background: rgba(11, 27, 52, 0.015);
}

table.data-table.track-table {
    table-layout: fixed;
    width: 100%;
}

.col-nome-titulo {
    text-align: center;
}

.col-nome-musica {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.track-name-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-download-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 27, 52, 0.06);
    color: var(--color-navy-900);
    transition: background 0.15s ease, color 0.15s ease;
}

.track-download-icon:hover {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

.track-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.track-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
}

.track-play-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--color-gold-300);
}

.track-play-btn:hover {
    background: var(--color-gold-500);
}

.track-play-btn:hover svg {
    fill: var(--color-navy-900);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-navy-900);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(179, 38, 30, 0.08);
    color: var(--color-danger);
    border: 1px solid rgba(179, 38, 30, 0.2);
}

.alert-success {
    background: rgba(30, 122, 70, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(30, 122, 70, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-gold-500);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy-900);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ---------- Modal de reprodução (estilo Google Drive) ---------- */

.player-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 27, 52, 0.65);
    backdrop-filter: blur(3px);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.player-modal-overlay.open {
    display: flex;
}

.player-modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: var(--shadow-elevated);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    height: 38px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    background: #FDECEA;
    border: 1.5px solid rgba(179, 38, 30, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-danger);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.player-modal-close:hover {
    background: var(--color-danger);
    color: var(--color-white);
    transform: scale(1.03);
}

.player-modal-close svg {
    width: 16px;
    height: 16px;
}

.player-modal-art-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 18px;
}

.retro-scene {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #1b2a52 0%, #0B1B34 55%, #060f22 100%);
    box-shadow: inset 0 0 0 2px rgba(201, 162, 39, 0.35);
}

.retro-sun {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 168px;
    height: 168px;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.45));
}

.retro-grid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 46%;
    z-index: 2;
}

.retro-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #E4C767;
    z-index: 1;
    animation: retroStarBlink 1.6s ease-in-out infinite;
}

.retro-star--1 { top: 22px; left: 34px; animation-delay: 0s; }
.retro-star--2 { top: 46px; left: 232px; animation-delay: 0.3s; }
.retro-star--3 { top: 90px; left: 20px; animation-delay: 0.7s; }
.retro-star--4 { top: 34px; left: 130px; animation-delay: 1.05s; }
.retro-star--5 { top: 100px; left: 250px; animation-delay: 1.3s; }

@keyframes retroStarBlink {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.4); }
}

.player-modal-visualizer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.retro-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    z-index: 4;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.retro-disc svg {
    width: 100%;
    height: 100%;
    display: block;
}

.player-modal-overlay.playing .retro-disc {
    animation: spinVinyl 3.2s linear infinite;
}

.player-modal-overlay.playing .retro-sun {
    animation: retroSunPulse 1.8s ease-in-out infinite;
}

@keyframes retroSunPulse {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.45)); }
    50% { filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8)); }
}

@keyframes spinVinyl {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.player-modal-title {
    font-size: 1.05rem;
    margin-bottom: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-modal-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}

.player-modal-controls {
    margin-bottom: 18px;
}

.player-modal-playbtn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-navy-900);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.player-modal-playbtn:hover {
    background: var(--color-gold-500);
    transform: scale(1.04);
}

.player-modal-playbtn svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold-300);
}

.player-modal-playbtn:hover svg {
    color: var(--color-navy-900);
}

.player-modal-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.player-modal-time {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    min-width: 32px;
    font-variant-numeric: tabular-nums;
}

.player-modal-progress-track {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
}

.player-modal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-300));
    border-radius: 999px;
    position: relative;
    transition: width 0.1s linear;
}

.player-modal-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

tr[data-musica-id] {
    cursor: pointer;
}

tr[data-musica-id].is-playing td {
    background: rgba(201, 162, 39, 0.06);
}

/* =========================================================
   Responsivo
   ========================================================= */

.mobile-page-footer {
    display: none;
}

.mobile-pasta-titulo {
    display: none;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-elevated);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 96px;
        padding: 0 16px;
        background: linear-gradient(180deg, var(--color-navy-900) 0%, var(--color-navy-800) 100%);
        z-index: 200;
        box-shadow: var(--shadow-elevated);
    }

    /* Logo personalizada preenchendo 100% da barra mobile */
    .mobile-topbar--logo-full {
        padding: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .mobile-topbar--logo-full .sidebar-toggle {
        margin-left: 12px;
        background: rgba(11, 27, 52, 0.55);
        backdrop-filter: blur(2px);
    }

    .mobile-topbar-admin-label--floating {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(11, 27, 52, 0.6);
        padding: 4px 10px;
        border-radius: var(--radius-sm);
    }

    body {
        padding-top: 96px;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .content-header {
        padding: 18px 20px;
    }

    .content-body {
        padding: 22px 20px;
    }

    /* Área do Cliente no mobile: sem menu lateral, sem hambúrguer */
    body.area-cliente .sidebar,
    body.area-cliente .sidebar-toggle,
    body.area-cliente .sidebar-overlay {
        display: none !important;
    }

    body.area-cliente .mobile-page-footer {
        display: block;
        text-align: center;
        padding: 20px;
        margin-top: 12px;
        font-size: 0.78rem;
        color: var(--color-text-muted);
        line-height: 1.5;
    }

    /* Área do Cliente no mobile: esconde a barra branca de título
       e aumenta a barra azul, que passa a ser o cabeçalho principal */
    body.area-cliente .content-header {
        display: none;
    }

    body.area-cliente .mobile-pasta-titulo {
        display: block;
        font-size: 1.15rem;
        margin: 0 0 18px 0;
    }

    body.area-cliente .mobile-topbar {
        height: 130px;
        padding: 0 20px;
        justify-content: center;
    }

    body.area-cliente {
        padding-top: 130px;
    }

    body.area-cliente .mobile-topbar-brand svg,
    body.area-cliente .mobile-topbar-brand img {
        width: 48px;
        height: 48px;
    }

    body.area-cliente .mobile-topbar-brand .mobile-topbar-logo-quadrada {
        width: 56px;
        height: 56px;
    }

    body.area-cliente .mobile-topbar-brand span {
        font-size: 1.05rem;
        white-space: normal;
    }

    body.area-cliente .mobile-topbar-brand small {
        font-size: 0.76rem;
    }
}

@media (max-width: 560px) {
    .grid-folders {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .folder-card {
        padding: 12px;
    }

    .folder-card-header {
        gap: 8px;
    }

    .folder-card .folder-icon svg {
        width: 26px;
        height: 26px;
    }

    .folder-card h3 {
        font-size: 0.82rem;
    }

    .folder-card-btn-acessar {
        font-size: 0.72rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    table.data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .col-duracao,
    .col-tamanho {
        display: none;
    }

    table.data-table.track-table {
        display: table;
        table-layout: fixed;
        width: 100%;
        white-space: normal;
        overflow-x: visible;
    }

    table.data-table.track-table th {
        text-align: center;
    }
}