: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: 50px;
    text-align: center;
}

.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);
}

.table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.45;
    background: var(--bg-odd);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    overflow: hidden;
    table-layout: fixed;
}

.thead {
    display: table-header-group;
}

.thead .tr {
    background: var(--header-bg);
    color: var(--header-text);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .04em;
}

.th {
    display: table-cell;
}

.th:nth-child(1) {
    width: 25%;
}

.th:nth-child(2) {
    width: 15%;
}

.th:nth-child(3) {
    width: 20%;
}

.th:nth-child(4) {
    width: 20%;
}

.th:nth-child(5) {
    width: 20%;
}

.tbody {
    display: table-row-group;
}

.tr {
    display: table-row;
    transition: background-color .2s ease;
    color: inherit;
    text-decoration: none;
}

.tr:nth-child(odd) {
    background: var(--bg-odd);
}

.tr:nth-child(even) {
    background: var(--bg-even);
}

.tr:hover {
    background: var(--bg-hover);
}

.contributor_row_wrapper {
    display: contents;
}

.contributor_row {
    cursor: pointer;
}

.contributor_details_row {
    background: var(--bg-odd) !important;
}

.contributor_details_row .td {
    background: var(--bg-odd) !important;
}

.td,
.th {
    padding: 0.65rem 0.85rem;
    display: table-cell;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.contributor_main_info {
    cursor: pointer;
}

.contributor_username {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bootstrap_icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    opacity: 1;
    filter: brightness(5) invert(1);
}

.bootstrap_icon:hover {
    opacity: 1;
    filter: brightness(6) invert(1);
}

.contributor_row:hover .bootstrap_icon.closed {
    transform: rotate(15deg);
}

.contributor_row:hover .bootstrap_icon.expanded {
    transform: rotate(-15deg);
}

.contributor_details {
    background: var(--bg-odd) !important;
    padding: 1rem 0.85rem;
}

.contributor_extra_info {
    padding-left: 1.5rem;
}

.contributor_extra_info p {
    margin: 0.5rem 0;
    color: var(--header-text);
}

.contributor_extra_info strong {
    color: #aaa;
    margin-right: 0.5rem;
}

.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: var(--hover-page);
}

.selected_page {
    font-weight: 700;
}

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

@media (max-width: 640px) {
    #stats_table .thead {
        display: none;
    }

    #stats_table .tr {
        display: flex;
        flex-wrap: wrap;
    }

    #stats_table .td {
        flex: 1 1 50%;
        min-width: 0;
        padding: .4rem .5rem;
    }

    #stats_table .td:nth-child(1) {
        flex: 1 1 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #stats_table .td:nth-child(1)::before {
        content: "Username: ";
        font-weight: bold;
        color: #aaa;
    }

    #stats_table .td:nth-child(2)::before {
        content: "Score: ";
        font-weight: bold;
        color: #aaa;
    }

    #stats_table .td:nth-child(3)::before {
        content: "Bands Created: ";
        font-weight: bold;
        color: #aaa;
    }

    #stats_table .td:nth-child(4)::before {
        content: "Albums Created: ";
        font-weight: bold;
        color: #aaa;
    }

    #stats_table .td:nth-child(5)::before {
        content: "Non-Goth Bands Created: ";
        font-weight: bold;
        color: #aaa;
    }

    #stats_table .td::before {
        margin-right: 0.25rem;
    }
}

