/* =============================
   LAYOUT GENERALE APP CATALOGO
   ============================= */

   .lag-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 320px;
    gap: 0;
    background: #111;
    color: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Helvetica Neue", Arial, sans-serif;
}

/* per pagine con sfondo chiaro (Divi ecc.) */
.lag-app {
    margin: 40px auto;
}

/* =============================
   SIDEBAR SINISTRA
   ============================= */

.lag-sidebar {
    background: radial-gradient(circle at top left, #222 0, #050505 60%);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* logo in alto */

.lag-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lag-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb347, #ff6b3d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.lag-logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #f7f7f7;
}

/* sezioni sidebar */

.lag-sidebar-section {
    margin-top: 10px;
}

.lag-sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,0.55);
    margin: 0 0 10px;
}

/* bottoni “filtri rapidi” */

.lag-sidebar-btn {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    margin-bottom: 6px;
    font-size: 13px;
    background: transparent;
    color: rgba(255,255,255,0.72);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .08s ease;
}

.lag-sidebar-btn:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(2px);
}

.lag-sidebar-btn.is-active {
    background: #f5f5f5;
    color: #111;
    font-weight: 600;
}

/* “pill” mood / strumenti */

.lag-sidebar-pill {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 5px 11px;
    margin: 0 6px 6px 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.lag-sidebar-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

/* =============================
   COLONNA CENTRALE
   ============================= */

.lag-main {
    display: flex;
    flex-direction: column;
    background: #151515;
}

/* barra superiore (search + select) */

.lag-toolbar {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    background: #181818;
}

.lag-search-wrapper {
    flex: 1;
    position: relative;
}

.lag-search-input {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 10px 14px 10px 30px;
    background: #101010;
    color: #f5f5f5;
    font-size: 13px;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.lag-search-input::placeholder {
    color: rgba(255,255,255,0.45);
}

.lag-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: .75;
}

.lag-toolbar-right {
    display: flex;
    gap: 8px;
}

.lag-select {
    border-radius: 999px;
    border: none;
    background: #101010;
    color: #f5f5f5;
    font-size: 12px;
    padding: 8px 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* contenitore tabella */

.lag-table-wrapper {
    flex: 1;
    overflow: auto;
    background: #151515;
}

/* tabella stile “lista brani” */

.lag-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #f5f5f5;
}

.lag-table thead {
    background: #141414;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(255,255,255,0.55);
}

.lag-table th,
.lag-table td {
    padding: 10px 16px;
    white-space: nowrap;
}

.lag-table th {
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lag-col-small {
    width: 40px;
    text-align: center;
}

/* righe */

.lag-row {
    background: #181818;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .12s ease, box-shadow .12s ease, transform .04s ease;
}

.lag-row:nth-child(2n) {
    background: #171717;
}

.lag-row:hover {
    background: #232323;
    box-shadow: inset 3px 0 0 #f5b33c;
}

.lag-cell-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lag-track-title {
    font-weight: 600;
    font-size: 13px;
}

.lag-track-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}

/* pulsante play in tabella */

.lag-play-btn {
    border-radius: 999px;
    width: 24px;
    height: 24px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    background: #f5f5f5;
    color: #111;
    transition: transform .06s ease, box-shadow .06s ease, background .12s ease;
}

.lag-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(245,179,60,0.35);
    background: #ffd87a;
}

/* stato “no results” */

.lag-no-results {
    text-align: center;
    padding: 30px 0;
    color: rgba(255,255,255,0.65);
}

/* =============================
   COLONNA DESTRA – CODA
   ============================= */

.lag-right {
    background: #0f0f0f;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
}

.lag-right-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255,255,255,0.65);
    margin: 0 0 12px;
}

.lag-right-empty {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 1100px) {
    .lag-app {
        grid-template-columns: 220px minmax(0,1fr);
    }
    .lag-right {
        display: none;
    }
}

@media (max-width: 800px) {
    .lag-app {
        grid-template-columns: minmax(0,1fr);
        border-radius: 0;
        box-shadow: none;
        margin: 20px -15px;
    }
    .lag-sidebar {
        display: none;
    }
}