:root {
    /* -----------------------------------
        COLOR SYSTEM
    ------------------------------------ */

    --color-background: #242d3b;
    --color-background-glow: rgba(59, 92, 141, 0.16);

    --color-text-primary: #f5f7fb;
    --color-text-secondary: #b9c0cc;
    --color-text-tertiary: #8d96a5;
    --color-text-on-accent: #ffffff;

    --color-accent: #3f86ed;
    --color-accent-bright: #73aafd;
    --color-accent-muted: rgba(63, 134, 237, 0.24);

    --color-player-top: rgba(47, 82, 137, 0.58);
    --color-player-bottom: rgba(37, 67, 116, 0.70);

    --color-glow-blue: rgba(42, 112, 218, 0.28);
    --color-glow-purple: rgba(104, 73, 185, 0.16);
    --color-glow-warm: rgba(176, 91, 69, 0.10);
    --color-glass-surface: rgba(255, 255, 255, 0.09);
    --color-glass-surface-strong: rgba(45, 82, 139, 0.48);
    --color-glass-border: rgba(255, 255, 255, 0.13);
    --color-glass-highlight: rgba(255, 255, 255, 0.08);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 18px;
    --glass-saturation: 125%;

    --color-selector-background: rgba(255, 255, 255, 0.17);
    --color-selector-hover: rgba(255, 255, 255, 0.1);

    --color-list-background: rgba(255, 255, 255, 0.17);
    --color-list-hover: rgb(74, 96, 143);
    --color-list-border: rgba(255, 255, 255, 0.06);

    --color-badge-background: rgba(91, 154, 246, 0.28);
    --color-badge-border: rgba(138, 183, 249, 0.18);

    --color-track-background: rgba(255, 255, 255, 0.13);
    --color-track-fill: rgba(239, 242, 247, 0.72);
    --color-track-thumb: #e7e9ed;

    --color-shadow: rgba(0, 0, 0, 0.32);
    --color-focus-ring: rgba(102, 163, 255, 0.78);

    /* -----------------------------------
        DIMENSIONS
    ------------------------------------ */

    --app-max-width: 430px;

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;

    --glass-blur: 14px;

    --shadow-card:
        0 14px 30px var(--color-shadow),
        inset 0 1px 0 var(--color-glass-highlight);

    --transition-fast: 140ms ease;
    --transition-standard: 240ms ease;
}

@font-face {
    font-family: "LoadingTitle";
    src: url("assets/Bernhard Gothic Medium.ttf") format("truetype");
    font-weight: lighter;
    font-style: normal;
}

/* -----------------------------------
    LOADING SCREEN
------------------------------------ */
.loading-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    background: var(--color-background);
    color: var(--color-text-primary);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.loading-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    transform: translateY(-200px);
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-screen h1 {
    font-family: "LoadingTitle", Arial, Helvetica, sans-serif;
    font-weight: 100;
    font-size: 1.8rem;
    margin-bottom: -10px;
}

.loading-screen h2 {
    font-family: "LoadingTitle", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.loading-screen p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-top: 37px;
    margin-bottom: 10px;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 108px;
  height: 60px;
  color: var(--color-accent-bright);
  --c: radial-gradient(farthest-side,currentColor 96%,#0000);
  background: 
    var(--c) 100% 100% /30% 60%,
    var(--c) 70%  0    /50% 100%,
    var(--c) 0    100% /36% 68%,
    var(--c) 27%  18%  /26% 40%,
    linear-gradient(currentColor 0 0) bottom/67% 58%;
  background-repeat: no-repeat;
  position: relative;
}

.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.4;
  animation: l7 1s infinite;
}

@keyframes l7 {
  to {transform:scale(1.8);opacity:0}
}

.logo-loader {
    position: relative;
    width: 158px;
    height: 158px;
}

.logo-loader img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-loader-base {
    opacity: 0.63;
}

.logo-loader-mark {
    color: var(--color-accent-bright);
}

.logo-loader-pulse {
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
    will-change: transform, opacity;
    animation: logoPulse 1.5s ease-out infinite;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        opacity: 0.33;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* -----------------------------------
    RESET
------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-background);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;

    color: var(--color-text-primary);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    background: var(--color-background);
}

button, input {
    font: inherit;
}

button {
    color: inherit;
}

button, input[type="range"] {
    -webkit-tap-highlight-color: transparent;
}

button,
.part-selector,
.transport-controls,
.setlist-item {
    user-select: none;
    -webkit-user-select: none;
}

.svg-sprite {
    position: absolute;
    overflow: hidden;
}

/* -----------------------------------
    APP FRAME
------------------------------------ */

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell {
    width: min(100%, var(--app-max-width));
    height: 100svh;

    margin-inline: auto;

    display: none;
    flex-direction: column;

    padding:
        max(var(--space-6), env(safe-area-inset-top))
        var(--space-2)
        max(var(--space-5), env(safe-area-inset-bottom));

    overflow: hidden;
}

/* -----------------------------------
    HEADER
------------------------------------ */

.app-header {
    margin-bottom: var(--space-6);
    text-align: center;
}

.brand {
    width: 100%;

    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 35px;
    align-items: center;
}

.brand-phone {
    display: none;
}

.brand__title {
    margin: 0;
    grid-column: 2;
    text-align: center;

    font-size: clamp(1rem, 5.2vw, 1.25rem);
    font-weight: 450;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.brand__logo {
    grid-column: 3;
    justify-self: end;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;

    object-fit: contain;

    opacity: 0.92;
}

.app-header__subtitle {
    margin: var(--space-2) 0 0;

    color: var(--color-text-secondary);

    font-size: 0.91rem;
    font-style: italic;
}

.app-header__subtitle strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* -----------------------------------
    GLASS PLAYER CARD
------------------------------------ */

.glass-card {
    position: relative;
    overflow: hidden;

    border: 1px solid var(--color-glass-border);

    background:
        linear-gradient(
            145deg,
            var(--color-player-top),
            var(--color-player-bottom)
        );
    
    backdrop-filter:
        blur(var(--glass-blur))
        saturate(var(--glass-saturation));
    
    -webkit-backdrop-filter: 
        blur(var(--glass-blur))
        saturate(var(--glass-saturation));

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 var(--color-glass-highlight);   
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: 
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.11),
            transparent 32%
        );

    opacity: 0.55;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.now-playing {
    position: relative;
    padding: var(--space-3);
    border-radius: var(--radius-large);
    min-height: 248px;

    background:
        radial-gradient(
            circle at 90% -10%,
            var(--color-background-glow),
            transparent 96%
        ),
        radial-gradient(
            circle at 8% 55%,
            var(--color-glow-purple),
            transparent 98%
        ),
        radial-gradient(
            circle at 80% 92%,
            var(--color-glow-warm),
            transparent 90%
        ),
        linear-gradient(
            145deg,
            var(--color-player-top),
            var(--color-player-bottom)
        );

    background-attachment: fixed;
}

.now-playing__heading {
    min-width: 0;
    padding-right: 0px;
}

.element-badge {
    display: inline-flex;
    align-items: center;

    min-height: 23px;
    padding: 10px 10px;

    border: 1px solid var(--color-badge-border);
    border-radius: 45px;

    color: var(--color-text-primary);
    background: var(--color-badge-background);

    font-size: 0.69rem;
    font-weight: 500;
    line-height: 1;
}

.now-playing__title {
    min-height: calc(1.42rem * 1.18 * 1.3);
    max-height: calc(1.42rem * 1.18 * 2);

    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    margin: var(--space-5) 0 0;
    margin-bottom: 0;

    font-size: clamp(1.15rem, 5vw, 1.42rem);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.now-playing__notes {
    min-height: calc(0.83rem * 1.4);
    max-height: calc(0.83rem * 1.4);

    overflow-x:auto;
    overflow-y:hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    white-space: nowrap;
    scrollbar-width: none;

    margin: 0;

    color: var(--color-text-secondary);

    font-size: 0.83rem;
    font-style: italic;
    line-height: 1.4;
}

.now-playing__notes::-webkit-scrollbar {
    display: none;
}

.now-playing__notes-text {
    display: inline-block;
    transform: translateX(0);
}

.now-playing__notes.is-scrolling .now-playing__notes-text {
    animation: scrollNotes var(--notes-scroll-duration, 35s) linear infinite;
}

@keyframes scrollNotes {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    2% {
        transform: translateX(0);
        opacity: 1;
    }

    72% {
        transform: translateX(calc(-1 * var(--notes-scroll-distance, 0px)));
        opacity: 1;
    }

    82% {
        transform: translateX(calc(-1 * var(--notes-scroll-distance, 0px)));
        opacity: 0;
    }

    88% {
        transform: translateX(0);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* -----------------------------------
    NEXT TRACK
------------------------------------ */

.next-track {
    position: absolute;
    top: var(--space-5);
    right: var(--space-2);

    width: auto;
    min-height: 0;
    height: auto;

    margin-top: 0;
    padding: 4px 0px 4px 8px;

    display: inline-flex;
    align-items: start;
    justify-content: flex-end;
    gap: 10px;

    border: 0;

    color: var(--color-accent);
    background: transparent;

    font-size: 0.72rem;
    text-align: right;

    cursor: pointer;
}

.next-track span {
    max-width: 150px;
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.next-track strong{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 10px;
    color: var(--color-text-primary);
    font-weight: 400;
    font-style: italic;
}

.next-track .italic{
    font-style: italic;
    font-weight: 400;
}

.next-track svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.next-track:hover {
    color: var(--color-text-primary);
}

/* -----------------------------------
    RANGE CONTROLS
------------------------------------ */

.progress-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);

    margin-top: 37px;
}

.progress-range {
    position: relative;
    z-index: 1;
}

.time-display {
    min-width: 28px;

    color: var(--color-text-secondary);

    font-size: 0.71rem;
    font-variant-numeric: tabular-nums;
}

.time-display:last-child {
    text-align: right;
}

.range-control {
    width: 100%;
    height: 28px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;
}

.range-control::-webkit-slider-runnable-track {
    height: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            to right,
            var(--color-track-fill) 0 var(--range-value),
            var(--color-track-background) var(--range-value) 100%
        );
}

.range-control::-webkit-slider-thumb {
    width: 13px;
    height: 13px;

    margin-top: -4.5px;

    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 50%;

    background: var(--color-track-thumb);

    box-shadow: 0 2px 7px var(--color-shadow);
}

.range-control::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--color-track-background);
}

.range-control::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--color-track-fill);
}

.range-control::-moz-range-thumb {
    width: 13px;
    height: 13px;

    border: 0;
    border-radius: 50%;

    background: var(--color-track-thumb);
}

.progress-slider-shell {
    position: relative;
    min-width: 0;
    padding-top: 7px;
}

.progress-markers {
    position: absolute;
    left: 6.5px;
    right: 6.5px;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.progress-marker {
    position: absolute;
    top: 50%;
    left: 0;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    padding: 0;
    border: 0;
    background: transparent;

    color: var(--color-text-secondary);
    font-size: 0.62rem;
    white-space: nowrap;

    cursor: pointer;
    pointer-events: auto;
}

.progress-marker__top {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.progress-marker__flag {
    width: 30px;
    height: 30px;
    transform: translate(-1px, -53%);
    
    flex: 0 0 auto;
    color: var(--color-accent-bright);
}

.progress-marker__label {
    position: relative;
    transform: translate(11px, -15px);
    color: var(--color-accent-bright);
    line-height: 1;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.45rem;
}

.progress-marker:hover .progress-marker__label,
.progress-marker:hover .progress-marker__flag {
    color: var(--color-text-primary);
}


/* -----------------------------------
    TRANSPOART CONTROLS
------------------------------------ */

.transport-controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: var(--space-2);

    margin-top: var(--space-3);
}

.transport-button {
    width: 46px;
    height: 46px;

    justify-self: center;

    display: inline-grid;
    place-items: center;

    border: 1px solid transparent;
    border-radius: 50%;

    color: var(--color-text-secondary);
    background: transparent;

    cursor: pointer;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.transport-button svg {
    width: 24px;
    height: 24px;
}

.transport-button:hover {
    color: var(--color-text-primary);
    background: var(--color-glass-highlight);
}

.transport-button:active {
    transform: scale(0.94);
}

.transport-button--primary {
    width: 58px;
    height: 58px;

    color: var(--color-text-on-accent);

    border-color: rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            145deg,
            var(--color-accent-bright),
            var(--color-accent)
        );

    box-shadow:
        0 10px 22px rgba(17, 47, 91, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.transport-button--primary svg {
    width: 29px;
    height: 29px;
}


/* -----------------------------------
    PART SELECTOR
------------------------------------ */

.part-selector {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;

    margin-top: 10px;
    padding: 3px;

    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-medium);

    background:
    radial-gradient(circle at 90% -10%,
        var(--color-background-glow),
        transparent 96%
    ),
    radial-gradient(
        circle at 8% 55%,
        var(--color-glow-purple),
        transparent 98%
    ),
    radial-gradient(
        circle at 80% 92%,
        var(--color-glow-warm),
        transparent 90%
    ),
    var(--color-selector-background);

    box-shadow:
        inset 0 1px 0 var(--color-glass-highlight),
        0 8px 18px rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.part-selector__indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;

    width: calc((100% - 6px - 9px) / 4);

    border-radius: 9px;
    background: var(--color-accent);

    box-shadow:
        0 5px 12px rgba(10, 42, 91, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transform: translateX(calc(var(--active-index, 0) * 100% + var(--active-index, 0) * 3px));
    transition: transform 240ms ease;
}

.part-button {
    position: relative;
    z-index: 1;

    min-width: 0;
    min-height: 40px;

    padding: 0 var(--space-2);

    display: flex;
    align-items: center;
    justify-content: center; 

    border: 0;
    border-radius: 9px;

    color: var(--color-text-primary);
    background: transparent;

    font-size: 0.98rem;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.part-button:hover:not(.is-active) {
    background: var(--color-selector-hover);
}

.part-button:active {
    transform: scale(0.97);
}

.part-button.is-active {
    color: var(--color-text-on-accent);

    background: transparent;
    box-shadow: none;
}

/* -----------------------------------
    SETLIST
------------------------------------ */

.setlist-section {
    flex: 1;
    min-height: 0;

    margin-top: var(--space-6);
    padding-top: var(--space-3);
    padding-inline: 0;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;    
}

.section-label {
    flex: 0 0 auto;
    margin: 0 0 var(--space-2) 4px;

    color: var(--color-text-secondary);

    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setlist {
    flex: 1;
    min-height: 252px;

    display: grid;
    align-content: start;
    gap: 6px;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;

    padding-right: 6px;
    padding-bottom: 90px;

    scrollbar-width: thin;
    scrollbar-color: var(--color-text-tertiary) transparent;
}

.setlist::--webkit-scrollbar {
    width: 6px;
}

.setlist::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--color-text-tertiary);
}

.setlist::-webkit-scrollbar-track {
    background: transparent;
}

.setlist-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    height: 24px;
    pointer-events: none;
    z-index: 2;
}

.setlist-section::before {
    top: cal(var(--space-3) + 1rem);
    background: linear-gradient(
        to bottom,
        var(--color-background),
        transparent
    );
}

.setlist-section::after {
    bottom: 0;
    height: 72px;
    
}

.setlist-item {
    width: 100%;
    min-height: 42px;

    position: relative;
    overflow: hidden;

    padding: 5px 10px 5px 7px;
    
    display: grid;
    grid-template-columns:
        28px
        minmax(0, 1.55fr)
        minmax(74px, 0.9fr)
        36px;

    align-items: center;
    gap: var(--space-2);

    border: 1px solid var(--color-list-border);
    border-radius: var(--radius-small);

    color: var(--color-text-primary);
    background:
    radial-gradient(circle at 90% -10%,
        var(--color-background-glow),
        transparent 96%
    ),
    radial-gradient(
        circle at 8% 55%,
        var(--color-glow-purple),
        transparent 98%
    ),
    radial-gradient(
        circle at 80% 92%,
        var(--color-glow-warm),
        transparent 90%
    ),
    var(--color-list-background);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    text-align: left;

    cursor: pointer;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.setlist-item:hover {
    background: var(--color-list-hover);
    border-color: var(--color-glass-border);
}

.setlist-item:active {
    transform: scale(0.99);
}

.setlist-item__number {
    width: 24px;
    height: 24px;

    display: inline-grid;
    place-items: center;

    border-radius: 50%;

    color: var(--color-text-on-accent);

    background:
        linear-gradient(
            145deg,
            var(--color-accent-bright),
            var(--color-accent-muted)   
        );

    font-size: 0.74rem;
    font-weight: 650;

    box-shadow:
        0 3px 8px rgba(13, 52, 107, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.setlist-item__number--icon {
    color: var(--color-text-on-accent);
}

.setlist-item__icon {
    width: 16px;
    height: 13px;
    display: block;

    background: currentColor;

    -webkit-mask: var(--icon-url) center / contain no-repeat;
    mask: var(--icon-url) center / contain no-repeat;
}

.setlist-item__icon-gathering {
    width: 16px;
    height: 16px;
}

.setlist-item__icon-psalm {
    width: 16px;
    height: 15.5px;
    transform: translate(-.5px, -1px);
}

.setlist-item__icon-offertory {
    width: 18px;
    height: 18px;
}

.setlist-item__icon-communion {
    width: 18px;
    height: 18px;
    transform: translate(0px, -.5px);
}

.setlist-item__icon-sending {
    width: 18px;
    height: 18px;
    transform: translateX(0px);
}

.setlist-item__title {
    min-width: 0;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 0.79rem;
    font-weight: 500;
}

.setlist-item__element {
    min-width: 0;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--color-text-secondary);

    font-size: 0.69rem;
}

.setlist-item__duration {
    color: var(--color-text-secondary);
    line-height: 1.15;
    font-size: 0.70rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.setlist-item.is-current {
    background: var(--color-list-hover);
    border-color: var(--color-accent-muted);
    font-style: italic;
}

.setlist-item.is-current .setlist-item__number {
    background: var(--color-accent);
}

.setlist-item.is-current .setlist-item__title {
    font-weight: 650;
}

.setlist-item.is-current .setlist-item__element,
.setlist-item.is-current .setlist-item__duration {
    color: var(--color-text-primary);
}

.setlist-item.is-current::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 999px;
    background: var(--color-accent);
}

.setlist-item.is-current:active {
    transform: scale(0.99)
}

.setlist-item,
.part-button,
.transport-button,
.next-track {
    transition:
        transform 120ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.app-signature {
    position: fixed;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: 22px;
    opacity: 0.25;
    pointer-events: none;
}

.app-signature img {
    width: 28px;
    height: auto;
}


/* -----------------------------------
    VOLUME
------------------------------------ */

.volume-control {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: min(100%, var(--app-max-width));

    padding:
        var(--space-4)
        var(--space-5)
        max(var(--space-4), env(safe-area-inset-bottom));

    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: var(--space-3);

    background:
        linear-gradient(
            to top,
            var(--color-background) 70%,
            rgba(17, 21, 27, 0)
        );

    z-index: 20;
}

.volume-control__icon {
    width: 22px;
    height: 22px;

    color: var(--color-text-secondary);
}

.volume-range {
    --range-value: 74%;
}

/* -----------------------------------
    ACCESSIBILITY
------------------------------------ */

button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-focus-ring);
    outline-offset: 3px;
}

/* -----------------------------------
    REG PHONE ADJUSTMENTS
------------------------------------ */
@media (max-width: 700px), (pointer: coarse) {

    .loading-screen {
        min-height: 100svh;
        padding:
            max(var(--space-6), env(safe-area-inset-top))
            var(--space-5)
            max(var(--space 6), env(safe-area-inset-bottom));
    }

    .loading-content {
        min-height: auto;
        transform: translateY(-100px);
    }

    .brand {
        display: none;
    }

    .app-header__subtitle {
        display: none;
    }

    .brand-phone {
        width: 100%;

        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        align-items: center;

    }

    .app-header__subtitle-phone {
        grid-column: 2;
        justify-self: center;

        margin: 0;

        color: var(--color-text-secondary);

        font-size: 0.91rem;
        font-style: italic;
        text-align: center;
        
    }

    .brand-phone .brand__logo {
        grid-column: 3;
        justify-self: end;

        width: 30px;
        height: 30px;
    }

    .app-header__subtitle-phone strong {
        color: var(--color-text-primary);
        font-weight: 600;
    }

    .brand__logo {
        width: 30px;
        height: auto;
    }

    .app-shell {
        padding-top: max(var(--space-3), env(safe-area-inset-top));
        padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
    }

    .app-header {
        margin-bottom: var(--space-3);
    }

    .setlist {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: auto;
    }

    .setlist-section {
        flex: 1;
        min-height: 0;
        margin-top: var(--space-1);
    }

    .volume-control {
        display: none;
    }
}





/* -----------------------------------
    SMALL PHONE ADJUSTMENTS
------------------------------------ */
@media (max-width: 370px) {

    .app-shell {
        padding-inline: var(--space-4);
    }

    .brand__title {
        font-size: 1.12rem;
    }

    .brand__logo {
        width: 30px;
        height: 30px;
    }

    .setlist-item {
        grid-template-columns:
            27px
            minmax(0, 1.4fr)
            minmax(66px, 0.8fr)
            33px;
    }

    .part-button {
        font-size: 0.88rem;
    }
}

/* -----------------------------------
    REDUCED MOTION
------------------------------------ */

/*
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
    */