.igm-discography-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Tabs */
.igm-discography-tabs {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 12px;
}

.igm-tab-btn {
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.igm-tab-btn.igm-tab-active {
    border-bottom-color: #000;
}

/* Filters */
.igm-discography-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.igm-filter-search-wrap {
    flex: 1 1 320px;
    border-bottom: 1px solid #999;
    padding-bottom: 4px;
}

.igm-discography-search {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 4px 0;
}

.igm-filter-years-wrap {
    flex: 1 1 260px;
    text-align: center;
}

.igm-filter-years-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #666;
}

.igm-filter-years-chips {
    display: inline-flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.igm-year-chip {
    background: transparent;
    border: 0;
    border-bottom: 2px solid #555;
    padding: 2px 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.igm-year-chip.igm-year-active {
    border-bottom-color: #c62828;
    color: #c62828;
}

.igm-filter-sort-wrap {
    flex: 0 0 auto;
}

.igm-discography-sort {
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* Grid */
.igm-discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-gap: 18px;
    margin-top: 8px;
}

.igm-discography-grid.igm-loading {
    opacity: 0.5;
    pointer-events: none;
}

.igm-discography-grid.igm-grid-animating {
    opacity: 0.7;
    transform: translateY(4px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.igm-discography-card {
    cursor: pointer;
}

.igm-discography-cover {
    position: relative;
    width: 100%;
}

.igm-discography-cover-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.35);
    background: #222;
}

.igm-discography-cover-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.igm-discography-placeholder {
    width: 100%;
    height: 100%;
    background: #444;
}

.igm-discography-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    color: #fff;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    transform: translateY(6px);
}

.igm-discography-card:hover .igm-discography-overlay {
    opacity: 1;
    transform: translateY(0);
}

.igm-discography-overlay-inner {
    text-align: center;
    padding: 10px;
}

.igm-overlay-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.igm-overlay-artist {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Empty state */
.igm-discography-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 0;
    color: #888;
}

/* Modal */
.igm-discography-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.igm-discography-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.igm-discography-modal-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    width: 90%;
    max-height: 90vh;
    margin: 40px auto;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 24px 28px 26px;
    color: #f5f5f5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.igm-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: #c62828;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.igm-modal-header {
    padding: 8px 20px 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.igm-modal-artist {
    font-size: 1.6rem;
    margin: 0 0 6px 0;
}

.igm-modal-album-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.igm-modal-type-year {
    font-weight: 400;
}

.igm-modal-title {
    font-style: italic;
}

.igm-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 24px;
    padding-top: 18px;
    overflow: auto;
    max-height: calc(90vh - 120px);
}

.igm-modal-cover-wrap img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 22px rgba(0,0,0,0.6);
}

.igm-modal-tracks-wrap h3 {
    margin: 0 0 10px 0;
}

.igm-modal-tracklist {
    margin: 0;
    padding-left: 22px;
}

.igm-modal-tracklist li {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
    .igm-discography-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .igm-filter-search-wrap {
        order: 1;
    }

    .igm-filter-years-wrap {
        order: 2;
    }

    .igm-filter-sort-wrap {
        order: 3;
        align-self: flex-end;
    }

    .igm-discography-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .igm-discography-modal-inner {
        width: 94%;
        padding: 18px 16px 20px;
    }

    .igm-modal-body {
        grid-template-columns: 1fr;
        max-height: calc(90vh - 110px);
    }
}
