html.filtered {
    overflow: hidden;
}

main > div {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: calc(100% + env(safe-area-inset-bottom));
    z-index: 3;
    overflow: auto;
    max-width: 1024px;
    padding: 2.5rem 0 5rem;
    padding-top: calc(2.5rem + env(safe-area-inset-top));
    padding-bottom: calc(7rem + env(safe-area-inset-bottom));
    box-sizing: border-box;
    margin-left: max(0px, calc((100vw - 1024px) / 2));
    background: var(--backgroundColor);
    margin-right: 2px;
}

html:not(.filtered) main > div {
    display: none;
}

main > div > header {
    top: 0;
    z-index: 2;
    max-width: 1024px;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--headerBackgroundColor);
    backdrop-filter: blur(30px);
    position: fixed;
    padding-top: env(safe-area-inset-top);
}

main > div > header h3 {
    text-align: center;
    font-size: 1rem;
    max-width: calc(100% - 10rem);
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.8rem 1px;
    flex: 1;
}

section, section + details, details + details,
.modal > section > details, main > details {
    margin-top: 1.5rem;
    background: var(--foregroundColor);
}

main > section {
    margin: 0;
}

fieldset {
    border: 0;
    position: relative;
}

section > fieldset {
    padding: 1.3em 0 0 1rem;
}

legend {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    background: var(--backgroundColor);
    padding: 0 1rem 0.45em;
    font-size: min(0.8rem, max(0.5rem, 3vw));
    box-sizing: border-box;
}

input:not([type=radio]) {
    padding: 0;
    font: inherit;
    color: inherit;
    background: inherit;
    border: 0;
    width: 100%;
    display: block;
    margin: 0;
}

fieldset > input:not([type=radio]) {
    padding: var(--standardPadding);
    box-sizing: border-box;
    min-height: var(--standardHeight);
}

legend ~ button,
legend ~ a {
    /* position: absolute; */
    right: 0;
    top: 0;
    padding: 0 1rem 0.45em;
    font-size: min(0.8rem, max(0.5rem, 3vw));
}

legend ~ ul {
    border-top: 1px solid var(--horizontalRuleColor);
    margin: 0;
    padding: 0;
    list-style: none;
}

section li {
    /* display: flex; */
}

section ul li + li, section > header + div ~ div, fieldset > div + div, fieldset > div + ul {
    border-top: 1px solid var(--horizontalRuleColor);
}

.radio {
    display: flex;
    position: relative;
    column-gap: 1rem;
    width: 100%;
}

.radio > div {
    display: flex;
    gap: 1rem;
    padding-right: 0.5rem;
    width: 100%;
    align-items: center;
}

.radio span {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: var(--standardHeight);
    padding: var(--standardPadding);
    box-sizing: border-box;
    position: relative;
}

.radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio label {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--accentColor);
    border-radius: 0.25em;
    width: 10vw;
    min-width: 5ch;
    max-width: 170px;
    justify-content: center;
    color: white;
    padding-bottom: 0.2em;
    border: 1px outset white;
    margin: 0.5rem 0;
}

.radio input:checked + label {
    background: #1d4380;
    border-style: inset;
}

section > button {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--standardHeight);
    padding: var(--standardPadding);
    display: flex;
    align-items: center;
    justify-content: center;
}

#results {
    background: var(--backgroundColor);
    margin-top: 1rem;
}

#results::before {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 128px;
    z-index: 1;
    background: inherit;
    position: fixed;
    max-width: 1024px;
    margin: 0 max(0px, calc((50vw - 512px)));

    height: 0;
}

#results > p:only-child {
    margin: 1rem;
}

section header {
    display: flex;
    background: inherit;
    padding: 0 1rem;
    font-size: min(0.8rem, max(0.5rem, 3vw));
    justify-content: space-between;
    padding-bottom: 0.25rem;

    position: sticky;
    top: 127px;
    z-index: 1;

    top: 0;
    align-items: end;
}

section header > * {
    font-size: min(0.9rem, max(0.7rem, 4vw));
    margin: 0;
}

section > ul {
    padding: 0;
}

#results ul {
    background: var(--foregroundColor);
    border-bottom: 1px solid var(--horizontalRuleColor);
    border-top: 1px solid var(--horizontalRuleColor);
    margin: 0;

    position: relative;
    z-index: 0;
}

section > ul#listings li {
    display: flex;
    position: relative;
    padding: 0.5em 1rem;
    display: grid;
    /* grid-template-columns: auto auto 1fr; */

    grid-template-columns: auto 1fr auto;
    grid-template-areas: "image contents contents""ignore tags notices";
    align-items: center;
}

#results .hidden {
    display: none;
}

#results header.new ~ ul#listings li:not(.new),
#results header:not(.ignored) ~ ul .ignored,
#results header.new ~ ul.calendar-grid div:not(.new) {
    display: none;
}

section .image {
    background: no-repeat;
    background-position: center;
    position: relative;
    width: 120vw;
    max-width: 3rem;
    min-width: 3rem;
    margin-right: 1rem;
    width: 25vw;
    aspect-ratio: 16/9;
    background-size: cover;

    max-width: 240px;
    grid-area: image;
}

section li.top .image {
    background-position: top;
}

section li.contain .image {
    background-size: contain;
}

section .image:not([style]) {
    background-image: url(https://static.breaklegs.app/app/images/icon-256.png), linear-gradient(#fbcb00, #203e90);
    background-size: contain;
}

section .ignore {
    /* position: absolute; */
    /* right: 0; */
    /* top: 0.3rem; */
    /* font-size: 0; */
    z-index: 2;
    /* cursor: pointer; */

    color: var(--accentColor);
    grid-area: ignore;
    margin-top: 0.5rem;
    align-self: start;

    text-align: center;
}

section .ignore input {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

section .ignore label::before {
    /* font-size: min(1.2rem, max(0.5rem, 4.5vw)); */
    /* padding: 0.3rem 1rem; */
    content: "\f070";
    /* color: var(--accentColor); */
    /* cursor: pointer; */
    /* font-weight: 400; */

    margin-right: 0.25rem;
}

@media screen and (max-width: 768px) {
    section .ignore label::before {
        padding: 0;
        margin-right: 0.25rem;
        font-size: min(0.8rem, max(0.5rem, 3.5vw));
    }
}

section .ignore input:checked + label::before {
    content: "\f06e";
}

section li.ignored .ignore span.hide,
section li:not(.ignored) .ignore span.show {
    display: none;
}

section ul#listings .contents {
    padding: var(--standardPadding);
    padding-right: 0;
    min-height: var(--standardHeight);
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-wrap: wrap;

    grid-area: contents;
    padding-top: 0;
}

@media screen and (max-width: 768px) {
    section ul#listings .contents {
        padding: 0;
        min-height: 5rem;
    }
}

section .contents::before {
    content: "";
    height: 0;
    flex-basis: 100%;
    order: 4;
}

section .contents > * {
    align-self: flex-end;
    overflow-wrap: break-word;
    margin: 0;
}

section .contents .text,
section .contents .detail-text {
    flex: 1;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    overflow: hidden;
    /* max-width: 100%; */
    min-width: 1ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

section .contents .text {
    font-size: min(1.4rem, max(1.1rem, 2.5vw));
    font-weight: 500;
    margin: 0;
    order: 1;
    flex: 2;
}

section .contents .detail-text,
section .contents .secondary-detail-text {
    margin-top: 0.25em;

    margin-bottom: auto;
}

section .contents .detail-text {
    font-style: normal;
    font-size: min(1.2rem, max(1rem, 2.5vw));
    order: 5;
}

section .contents .secondary-text,
section .contents .secondary-detail-text {
    font-size: min(1.2rem, max(1rem, 2.5vw));
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-left: 1ch;
}

section .contents .secondary-text {
    order: 3;
}

section .contents > .detail-text + .secondary-detail-text {
    order: 7;
    white-space: nowrap;
}

section .contents .details {
    order: 8;
    margin-top: 0.5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: min(0.9rem, max(0.8rem, 3.5vw));
    flex-basis: 100%;
    overflow: hidden;
    line-height: 1.35;
}

@media screen and (max-width: 768px) {
    section .contents .details {
        /* position: absolute; */
        /* opacity: 0; */
        /* pointer-events: none; */
    }
}

section .subtext {
    font-size: min(0.8rem, max(0.5rem, 3.5vw));
    overflow-wrap: normal;
    /* flex-basis: 100%; */
    align-self: flex-end;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* margin-top: 0.5rem; */
    /* order: 9; */

    grid-area: tags;
    /* padding: 0 1rem 0 0; */
    margin: 0.5rem 0 0;
    align-self: start;
}

.subtext span {
    background: var(--secondaryBackgroundColor);
    padding: 0.25em 0.5em;
    border-radius: 0.5em;
    line-height: 1.2;
    border: 0.5px solid;
}

.subtext span.video_only {
    display: none;
}

.subtext.notices {
    grid-area: notices;
    align-self: start;
}

.notices span.new {
    margin-left: auto;
    color: var(--constructiveColor);
    border: 1px solid;
    background: none;
    line-height: 1;
    padding: 0.3em 1em 0.4em;
    font-weight: 600;
}

.notices span.updated,
.notices span.ending-soon {
    margin-left: auto;
    color: orange;
    border: 1px solid;
    background: none;
    line-height: 1;
    padding: 0.3em 1em 0.4em;
    font-weight: 600;
}

.notices span.updated {
    color: var(--alertColor);
}

.notices span.new ~ span.updated,
.notices span.new ~ span.ending-soon,
.notices span.updated ~ span.ending-soon {
    margin-left: 0;
}

.notices span.unpublished {
    margin-left: auto;
    color: var(--alertColor);
    border: 1px solid;
    background: none;
    line-height: 1;
    padding: 0.3em 1em 0.4em;
    font-weight: 600;
}

.subtext span::before {
    margin-right: 0.25em;
}

section .view {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0;
    color: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* pointer-events: none; */
}

.iso span.image:not([style])::before {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Barlow';
    font-size: min(2.5rem, max(0.5rem, 4vw));
    font-weight: 500;
    text-align: center;
    line-height: 1;
    box-sizing: border-box;
    /* content: attr(data-iso); */
    color: white;
    text-transform: uppercase;
}

.iso.board_op span.image:not([style])::before {
    background: rgb(128 192 0);
}

.iso.stage_manager span.image:not([style])::before {
    background: purple;
}

.iso.other span.image:not([style])::before {
    background: brown;
}


section .contents span.break {
    border: 0;
    padding: 0;
}

section .contents .new + .break {
    flex-basis: 100%;
    /* display: none; */
}

section .contents .new ~ span.updated,
section .contents .new ~ span.ending-soon {
    margin-top: -0.5rem;
    /* display: none; */
    /* font-size: min(0.8rem, max(0.5rem, 3.5vw)); */
    /* padding: 0; */
}

@media screen and (max-width: 768px) {
    section .ignore {
        /* left: 0; */
        /* right: initial; */
        /* bottom: 0.5rem; */
        /* top: initial; */
        /* color: var(--accentColor); */
        font-size: min(0.8rem, max(0.5rem, 3.5vw));
    }
}

@media screen and (max-width: 725px) {
    section > ul#listings li {
        align-items: start;
        grid-template-areas:
            "image image contents contents"
            "tags tags tags tags"
            "notices notices notices notices";
    }

    section .ignore {
        bottom: 0;
        color: var(--accentColor);
        left: 0;
        background: var(--backgroundColor);
        grid-area: image;
        position: absolute;
        font-size: 0;
    }

    section .ignore label {
        display: flex;
        justify-content: center;
        width: 2rem;
        box-sizing: border-box;
        height: 2rem;
        align-items: center;
    }

    section .ignore label::before {
        margin: 0;
    }
}

@media screen and (max-width: 600px) {
    section header > label span {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    section header > label.new {
        margin-right: 1rem !important;
    }

    section > ul#listings li {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        padding-right: 1rem;
    }

    section .image {
        display: block;
        width: 100%;
        max-width: none;
        margin-bottom: 0.5rem;
    }

    section .ignore {
        bottom: auto;
        top: 0;
    }

    .text,
    .secondary-text,
    .detail-text,
    .secondary-detail-text {
        /* font-family: Barlow Condensed; */
    }

    .subtext span,
    .notices span.new,
    .notices span.updated,
    .notices span.ending-soon {
        /* border: 0; */
        /* padding: 0; */
        /* background: none; */
    }
}






            nav a.tpane.active {
    background: var(--accentColor);
    color: white;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 0.5em;
    font-size: 90%;
}

nav a.tpane.active::before {
    content: "\e361";
    margin-right: 0.5rem;
}

@media (max-width: 1079px) {
    nav a.tpane {
        display: none;
    }
}

section > ul#listings li {
    grid-template-areas:
    "image contents contents"
    "ignore tags notices"
    "children children children";
}

#results ul ul {
    grid-area: children;
    padding: 0.5rem 1rem 0;
    border: 0;
    position: relative;
    z-index: 2;
    background: var(--secondaryBackgroundColor);
    box-sizing: border-box;
}

section > ul#listings li:has(ul) {
    background: var(--secondaryBackgroundColor);
}

section ul ul li + li {
    border: 0;
}

section ul ul .image {
    border-radius: 0.5rem;
}

section > ul#listings li:has(ul) > span:first-child::before {
    /* content: "Group Audition"; */
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    z-index: 13;
    font: inherit;
    padding: 0.05rem 0.5rem 0.25rem;
    display: block;
    background: rgba(0, 0, 0, 0.65);
    font-size: 0.8em;
    border-radius: 0.5rem;
}

section ul ul .subtext {
    order: 8;
}

@media screen and (max-width: 768px) {
    #results ul ul {
        padding: 0.5rem 1rem;
    }

    section > ul#listings li {
        padding-right: 0;
    }
}

section .contents .secondary-text {
    display: flex;
    gap: 0 0.75rem;
    flex-wrap: wrap;

    font-size: min(1rem, max(1rem, 2.5vw));

    flex: 1;
    justify-content: end;
}

section li li.video-only .contents .secondary-text {
    gap: 0;
    align-items: baseline;
}

li.video-only .secondary-detail-text::before {
    content: "\f03d";
    margin-right: 0.5em;
}

li li.video-only .secondary-text::before {
    content: "\f03d";
    margin-right: 0.5em;
}

.secondary-text > span.updated > span {
    /* font-size: 0; */
}

.secondary-text > span::before {
    margin-right: 0.25em;
    display: none;
}

.secondary-text .updated {
    color: var(--alertColor);
}

.secondary-text .updated::before {
    content: "\f303";
}

.secondary-text > .new {
    color: var(--constructiveColor);
}

.secondary-text > .new::before {
    content: "\f890";
}

.secondary-text .ending-soon {
    color: orange;
}

.secondary-text .ending-soon::before {
    content: "\e46e";
}

.subtext span.video_only {
    display: inline;
}

@media screen and (max-width: 768px) {
    .secondary-text span {
        position: static;
        opacity: 1;
    }
}