:root {
    --bg-odd: #181818;
    --bg-even: #343434;
    --bg-hover: #545454;
    --border: #3a3a3a;
    --header-bg: #3a0d24;
    --header-text: #f2f2f2;
}

.container {
    margin-inline: auto;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
}

.container h1 {
    margin-bottom: 1rem;
    text-align: center;
}

.page_description {
    text-align: center;
    color: var(--header-text);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.period_tabs {
    margin-bottom: 2rem;
}

.tab_buttons_container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tab_buttons_backplate {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(32, 32, 32, 0.86), rgba(12, 12, 12, 0.82));
    border: 1px solid rgba(210, 210, 210, 0.12);
    box-shadow:
        0 26px 34px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tab_button {
    position: relative;
    font-family: 'NewRocker-Regular', serif;
    letter-spacing: .3px;
    font-size: 1.02rem;
    padding: .65rem 1.9rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(74, 74, 74, 0.72), rgba(32, 32, 32, 0.68));
    color: #f5f6f7;
    border: 1px solid rgba(210, 210, 210, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 -4px 12px rgba(0, 0, 0, 0.35);
    transition: color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
    overflow: hidden;
    cursor: pointer;
}

.tab_button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 55%);
    opacity: .65;
    transition: opacity .3s ease;
    pointer-events: none;
}

.tab_button.active_tab_button {
    color: #111;
    background: linear-gradient(150deg, rgba(228, 228, 228, 0.94), rgba(158, 158, 158, 0.82));
    border-color: rgba(250, 250, 250, 0.55);
    box-shadow:
        0 10px 26px rgba(24, 24, 24, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tab_button.active_tab_button::before {
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.55), transparent 58%);
    opacity: .95;
}

.tab_button:hover:not(.active_tab_button),
.tab_button:focus-visible:not(.active_tab_button) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 -4px 12px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.missing_bands_content {
    position: relative;
}

.bands_count {
    text-align: center;
    color: var(--header-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.no_results {
    text-align: center;
    color: var(--header-text);
    padding: 3rem 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

.error_message {
    padding: 2rem;
    text-align: center;
    color: #ff6b6b;
    background: var(--bg-odd);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 1.05rem;
}

.htmx-indicator {
    display: none;
    text-align: center;
    padding: 2rem;
}

.htmx-indicator.htmx-request {
    display: block;
}

.indicator_text {
    color: var(--header-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.indicator_image {
    width: 50px;
    height: auto;
}

/* Band card styling */
.photo {
    border: solid 1.2px #3c0f0f;
    width: 100%;
    max-width: 150px;
    aspect-ratio: 1.3;
    margin-top: 10px;
    margin-bottom: 5px;
    object-fit: cover;
    border-radius: 50%;
}

.top_bands_table {
    table-layout: fixed;
    width: 100%;
    max-width: 1400px;
    border-collapse: collapse;
    border-style: hidden;
    margin-top: 20px;
}

.top_bands_table td {
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
}

.top_bands_table .band_card {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 1.8fr 1fr;
    align-items: center;
    background: linear-gradient(to bottom right, rgba(50, 50, 50, 0.4), rgba(30, 30, 30, 0.4));
    background-color: rgba(48, 48, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    overflow: hidden;
    margin-bottom: 10px;
    transition:
        background-color 0.3s ease 50ms,
        box-shadow 0.4s ease 50ms,
        transform 0.2s ease;
}

.top_bands_table .band_card div {
    padding: 10px;
}

.top_bands_table .band_card:hover {
    background: linear-gradient(to bottom right, rgba(80, 80, 80, 0.5), rgba(50, 50, 50, 0.5));
    background-color: rgba(109, 109, 109, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.band_name {
    font-weight: bold;
}

.top_bands_table div.band_genres {
    line-height: 1;
}

.top_bands_table a {
    color: var(--header-text);
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
    font-size: 1.25rem;
}

.pagination a {
    color: var(--header-text);
    text-underline-offset: 0.2em;
    transition: color .15s;
}

.pagination a:hover {
    color: #fff;
}

.selected_page {
    font-weight: 700;
}

@media (max-width: 768px) {
    .tab_button {
        font-size: 0.9rem;
        padding: .55rem 1.4rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .page_description {
        font-size: 0.95rem;
    }
}

@media (max-width: 530px) {
    .top_bands_table .band_card {
        grid-template-columns: 1fr;
    }

    .top_bands_table .band_card div:nth-child(4) {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top_bands_table .band_card > div {
        padding: 6px 0;
        margin-left: 7px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tab_buttons_backplate {
        flex-direction: column;
        width: 100%;
    }
    
    .tab_button {
        width: 100%;
        text-align: center;
    }
}
