/* =====================================================
   RESPONSIVE STYLES - All breakpoints in one place
   ===================================================== */

/* =====================================================
   CHART GRID BASE STYLES
   ===================================================== */

/* Grid row styles */
.grid-row {
    display: grid;
    margin-bottom: 2px;
    gap: 2px;
    grid-template-columns: 20px repeat(var(--grid-columns, 10), 1fr);
}

/* Score overlay - z-index: 10 */
div[mu-score]:after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    width: 80%;
    height: 80%;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Prefix overlay - z-index: 11 (above score) */
div[mu-prefix]:before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    width: 90%;
    height: 90%;
    z-index: 11;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%) rotate(-45deg);
    pointer-events: none;
}

/* List container styles */
.list-container ul {
    column-count: 2;
    list-style-type: none;
    padding-inline-start: 0px;
    margin: 0;
}

.list-container li {
    break-inside: avoid;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0;
    opacity: 0.7;
    font-size: 10px;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.list-container .album-id {
    min-width: 30px;
    flex-shrink: 0;
    text-align: right;
    font-weight: bold;
    color: white;
    font-size: 11px;
}

.list-container .album-name {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #aaa;
}

/* =====================================================
   CHART GRID RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Mobile: 2 columns, no row/col headers */
.grid-row { --grid-columns: 2; }
.grid-row {
    grid-template-columns: repeat(var(--grid-columns, 10), 1fr);
}

/* Hide headers on mobile */
.grid-row > .row-header { display: none !important; }
.grid-container > .grid-row > .header-cell { display: none !important; }

/* Tablet: 3 columns with headers */
@media (min-width: 768px) {
    .grid-row { --grid-columns: 3; }
    .grid-row {
        grid-template-columns: 20px repeat(var(--grid-columns, 10), 1fr);
    }
    .grid-row > .row-header { display: flex !important; }
    .grid-container > .grid-row > .header-cell { display: block !important; }
}

/* Laptop: 6 columns */
@media (min-width: 1024px) {
    .grid-row { --grid-columns: 6; }
}

/* Desktop: full columns */
@media (min-width: 1280px) {
    .grid-row { --grid-columns: 10; }
}

/* =====================================================
   NAVBAR
   ===================================================== */
@media (min-width: 768px) {
    .navbar {
        padding: 8px 16px;
    }
}

/* =====================================================
   CHART LIST
   ===================================================== */
@media (min-width: 768px) {
    .chart-list {
        padding: 40px;
    }
}

/* =====================================================
   GROUP CONTAINER (two-column layout)
   ===================================================== */
@media (min-width: 1024px) {
    .group-container {
        flex-direction: row;
    }
}

/* =====================================================
   GRID CELL (touch targets)
   ===================================================== */
@media (min-width: 768px) {
    .grid-cell {
        min-height: 80px;
    }
}

/* =====================================================
   LIST CONTAINER (album list sidebar)
   ===================================================== */
@media (min-width: 1024px) {
    .list-container {
        flex: 0 0 380px;
    }
}
