:root {
    color-scheme: dark;
    --pad: 1em;
    --pad-sm: .5em;
    --header-height: 3.5em;
    --doc: #8086a0;
    --dark: #1e1f30;
    --darker: #11121d;
    --text: #858ca4;
    --primary: crimson;
    --primary-text: #ffd5dd;
    --secondary: cornflowerblue;
    --default: lightslategray;
    --bright: whitesmoke;
    --overlay: rgba(0, 0, 0, .42);
    --card: rgba(0, 0, 0, .08);
    --line: rgba(0, 0, 0, .1);
    --radius: 6px;
    --shadow: 0 1px 30px rgba(0, 0, 0, .8);
    --font: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
}

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

html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--doc);
    background-image:
        linear-gradient(217deg, rgba(220, 20, 60, .8), rgba(220, 20, 60, 0) 70.71%),
        linear-gradient(127deg, rgba(128, 134, 160, 1), rgba(128, 134, 160, 0) 70.71%),
        linear-gradient(336deg, rgba(100, 149, 237, .8), rgba(100, 149, 237, 0) 70.71%);
    background-size: cover;
    color: var(--text);
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-wrap {
    align-items: stretch;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: stretch;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.player-wrap {
    background: var(--dark);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    max-width: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.player-bg,
.player-canvas {
    inset: 0;
    margin: 0;
    position: absolute;
}

.player-bg {
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .4;
}

.player-bg::after,
.player-canvas {
    background: linear-gradient(135deg, rgba(30, 31, 48, .1), rgba(30, 31, 48, .28));
    content: "";
}

.player-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 2;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-middle {
    align-items: center;
}

.flex-top {
    align-items: flex-start;
}

.flex-stretch {
    justify-content: stretch;
}

.flex-space {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0;
    min-width: 0;
}

.flex-item {
    margin: 0 0 var(--pad) 0;
    padding: var(--pad);
    width: 100%;
}

.flex-item:last-of-type {
    margin-bottom: 0;
}

.flex-autorow {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.text-clip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-nowrap {
    white-space: nowrap;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-small {
    font-size: .82em;
    line-height: 1.35;
}

.text-faded {
    color: rgba(255, 255, 255, .38);
}

.text-default {
    color: #b5bdcc;
}

.text-secondary {
    color: #9db9ff;
}

.text-bright {
    color: var(--bright);
}

.push-bottom {
    margin-bottom: var(--pad);
}

.push-right {
    margin-right: var(--pad);
}

.push-left {
    margin-left: var(--pad);
}

.pad-left {
    min-width: 0;
    padding-left: var(--pad);
}

.pad-bottom {
    padding-bottom: var(--pad);
}

.border-bottom {
    border-bottom: 2px solid var(--line);
}

.player-header,
.player-footer {
    background: var(--radio-header-color, var(--card));
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 var(--pad);
}

.player-header {
    border-bottom: 0;
}

.player-footer {
    background: var(--radio-footer-color, var(--card));
    border-top: 0;
    flex: 0 0 calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
    min-height: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 var(--pad) env(safe-area-inset-bottom, 0px);
}

.player-header h2,
.player-stations-header h2 {
    color: var(--primary);
    font-size: 1em;
    line-height: var(--header-height);
    margin: 0;
}

.player-header h2 i {
    color: inherit;
    margin-right: .35em;
}

.radio-player-brand {
    align-items: center;
    display: flex;
    min-width: 0;
}

.radio-player-brand__logo {
    display: block;
    max-height: calc(var(--header-height) - 1.2em);
    max-width: min(260px, 60vw);
    object-fit: contain;
    width: auto;
}

.player-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--pad);
}

.player-channel,
.player-greet,
.player-errors {
    margin: auto 0;
}

.player-channel {
    min-width: 0;
    overflow: visible;
}

.player-channel .flex-row {
    min-width: 0;
}

.radio-source-tag {
background: #dd1515;
    border: 1px solid rgba(245, 245, 245, .72);
    border-radius: 999px;
    color: #ffd5dd;
    display: inline-flex;
    font-size: .68em;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: .5em;
    padding: .35em .65em;
    text-transform: uppercase;
    vertical-align: middle;
}

.radio-source-tag--small {
    font-size: .58em;
    font-weight: 800;
    margin-bottom: .2em;
    max-width: max-content;
    padding: .24em .48em;
}

.radio-source-tag--podcast {
    background: rgba(100, 149, 237, .16);
    border-color: rgba(100, 149, 237, .38);
    color: #d8e5ff;
}

.radio-sidebar-description {
    -webkit-box-orient: vertical;
    color: var(--text);
    display: -webkit-box;
    line-height: 1.32;
    margin-top: .2em;
    max-height: calc(1.32em * 2);
    overflow: hidden;
    -webkit-line-clamp: 2;
}

.player-greet {
    align-self: center;
    max-width: 760px;
    padding: 3em;
}

.player-greet h1 {
    color: var(--bright);
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: .95;
    margin: 0;
}

.img-round {
    border-radius: 999px;
    border: 2px solid var(--bright);
    display: block;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.radio-player-cover {
    border: 2px solid var(--bright);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    display: block;
    height: 80px;
    object-fit: cover;
    width: 80px;
}

.radio-sidebar-cover {
    border: 2px solid var(--bright);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    display: block;
    height: 70px;
    object-fit: cover;
    width: 70px;
}

.card {
    background: var(--radio-tab-color, var(--card));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    padding: var(--pad);
}

.radio-clock-card {
    background: rgba(16, 18, 30, .18);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px rgba(0, 0, 0, .18);
    color: #d7deea;
    display: flex;
    flex-direction: column;
    gap: .55em;
    justify-content: center;
    min-height: 220px;
    text-align: center;
}

.radio-clock-card__headline {
    align-items: flex-start;
    display: inline-flex;
    gap: .45em;
    justify-content: center;
}

.radio-clock-card__side {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: .28em;
    justify-content: flex-start;
    min-width: 2.8em;
    padding-top: .4em;
}

.radio-clock-card__time {
    color: #f4f7fb;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: .95;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.radio-clock-card__meridiem {
    color: #9db9ff;
    font-size: .88em;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.radio-clock-card__seconds {
    color: #f6f8fb;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1;
}

.radio-clock-card__date {
    color: #9db9ff;
    font-size: .92em;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.radio-clock-card__listen {
    color: #d8dfea;
    font-size: .95em;
    line-height: 1.45;
    margin: .25em auto 0;
    max-width: min(92%, 420px);
}

.radio-clock-card__listen-name {
    color: #f6f8fb;
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    margin-top: .2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-tracklist,
.player-stations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.player-tracklist .card + .card {
    margin-top: var(--pad-sm);
}

.radio-mini-station {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: var(--pad-sm);
    padding: 0;
    text-align: left;
    width: 100%;
}

.radio-mini-cover {
    border: 2px solid var(--bright);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    display: block;
    flex: 0 0 58px;
    height: 58px;
    object-fit: cover;
    width: 58px;
}

.radio-mini-station__body {
    min-width: 0;
}

.radio-mini-station__body span {
    display: block;
}

.radio-mini-description {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    line-height: 1.25;
    margin-top: .25em;
    overflow: hidden;
    -webkit-line-clamp: 2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bright);
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 0;
}

h2 {
    font-size: 1.8em;
    line-height: 1.05;
    margin: .15em 0 0;
}

h5 {
    font-size: 1em;
    margin: 0;
    text-transform: uppercase;
}

h6 {
    font-size: .95em;
    margin: 0 0 .25em;
}

.common-btn,
.cta-btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--bright);
    cursor: pointer;
    display: inline-block;
    font-size: 180%;
    font-weight: 400;
    height: auto;
    justify-content: center;
    line-height: 1em;
    min-width: 1em;
    padding: 0;
    text-align: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    width: 1em;
}

.common-btn:hover,
.cta-btn:hover {
    background: transparent;
    color: rgba(245, 245, 245, .72);
}

.cta-btn {
    background: #b31237;
    border-radius: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    color: var(--primary-text);
    font-size: 1em;
    font-weight: 700;
    line-height: 1.1em;
    padding: .5em 1em;
    width: auto;
}

.cta-btn:hover {
    background: #cc1740;
    color: #fff;
}

.radio-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
}

.radio-action-row .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .35em;
}

.common-btn--label {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--bright);
    display: inline-block;
    font-size: 190%;
    font-weight: 800;
    line-height: 1em;
    margin-left: var(--pad-sm);
    padding: 0;
    width: 1em;
}

.common-btn--label i {
    font-size: 1em;
    font-weight: 800;
}

.common-btn--label:hover {
    background: transparent;
    color: rgba(245, 245, 245, .72);
}

.player-controls.disabled {
    opacity: .5;
    pointer-events: none;
}

.form-slider {
    align-items: center;
    display: flex;
    gap: .45em;
}

.radio-buffer-indicator {
    align-items: flex-end;
    display: inline-flex;
    gap: 3px;
    height: 16px;
    margin-left: .2em;
    width: 20px;
}

.radio-buffer-indicator span {
    background: rgba(255, 255, 255, .38);
    border-radius: 999px;
    display: block;
    height: 100%;
    transition: background-color .2s ease, box-shadow .2s ease;
    width: 4px;
}

.radio-buffer-indicator span:nth-child(2) {
    animation-delay: .18s;
}

.radio-buffer-indicator span:nth-child(3) {
    animation-delay: .36s;
}

.radio-buffer-indicator.is-loading span {
    animation: radioBufferConnect 1.05s linear infinite;
}

.radio-buffer-indicator.is-ready span {
    animation: none;
    background: #22c55e;
    height: 100%;
    transform: scaleY(1);
}

.radio-buffer-indicator.is-error span {
    animation: none;
    background: #ef4444;
    height: 55%;
}

.common-slider {
    accent-color: var(--primary);
    width: 6em;
}

.player-stations {
    background: rgba(0, 0, 0, 0);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity .25s ease;
    z-index: 4;
}

.app-wrap.is-sidebar-open .player-stations {
    opacity: 1;
    pointer-events: auto;
}

.player-stations-sidebar {
    background: var(--radio-tab-color, #242638);
    bottom: 0;
    box-shadow: -2px 0 20px rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    max-width: 92vw;
    min-height: 100%;
    position: absolute;
    right: -420px;
    top: 0;
    transform: none;
    transition: transform .25s ease;
    width: 420px;
}

.app-wrap.is-sidebar-open .player-stations-sidebar {
    transform: translateX(-420px);
}

.player-stations-header,
.player-stations-footer {
    background: transparent;
    border-bottom: 0;
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    min-height: var(--header-height);
    padding: var(--pad-sm) var(--pad);
}

.form-input {
    align-items: center;
    background: rgba(0, 0, 0, .18);
    border-radius: var(--radius);
    display: flex;
    gap: .5em;
    padding: 0 .65em;
}

.form-input input {
    background: transparent;
    border: 0;
    color: var(--bright);
    height: 2.3em;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.player-stations-list {
    flex: 1;
    height: auto;
    margin-left: -10px;
    overflow: auto;
    padding: 0 0 0 10px;
}

.player-stations-list li + li {
    margin-top: 0;
}

.player-stations-list-item {
    background: rgba(0, 0, 0, .1);
    border: 0;
    border-radius: 0;
    color: var(--text);
    cursor: pointer;
    padding: var(--pad);
    text-align: left;
    width: 100%;
}

.player-stations-list li:nth-child(odd) .player-stations-list-item {
    background: rgba(0, 0, 0, .18);
}

.player-stations-list-item:hover,
.player-stations-list-item.active {
    background: var(--radio-tab-active-color, #191a29);
}

.player-stations-list-item.active h6 {
    color: var(--primary);
}

.player-stations-list-item figure {
    margin: 0 var(--pad) 0 0;
}

.player-stations-list-item aside {
    overflow: hidden;
}

.clickable {
    cursor: pointer;
}

.popover {
    display: inline-block;
    position: relative;
}

.radio-filter-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--secondary);
    display: inline-flex;
    gap: .35em;
    padding: 0;
}

.radio-filter-toggle i {
    font-size: .75em;
}

.popover-box {
    background: var(--radio-tab-active-color, #191a29);
    border-radius: var(--radius);
    bottom: calc(100% + .55em);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
    display: none;
    min-width: 180px;
    padding: .35em;
    position: absolute;
    right: 0;
    z-index: 4;
}

.popover.is-open .popover-box,
.popover:focus-within .popover-box {
    display: grid;
    gap: .25em;
}

.popover-box button {
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    color: var(--bright);
    cursor: pointer;
    padding: .55em .7em;
    text-align: left;
}

.popover-box button:hover,
.popover-box button.is-active {
    background: rgba(255, 255, 255, .08);
    color: var(--primary);
}

@media (min-width: 720px) {
    body {
        font-size: 18px;
    }

    .player-wrap {
        border-radius: 0;
        box-shadow: none;
        height: 100vh;
        margin: 0;
        max-height: none;
        max-width: none;
        width: 100vw;
    }

    .player-content {
        padding: var(--pad) calc(var(--pad) * 2);
    }

    .flex-autorow {
        flex-direction: row;
    }

    .flex-autorow > .flex-item {
        margin: 0 var(--pad) 0 0;
    }

    .flex-autorow > .flex-item:last-of-type {
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 20px;
    }
}

.fx {
    animation-duration: .42s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.215, .61, .355, 1);
}

.fx-fade-in {
    animation-name: fadeIn;
}

.fx-slide-left {
    animation-name: slideLeft;
}

.fx-slide-up {
    animation-name: slideUp;
}

.fx-drop-in {
    animation-name: dropIn;
}

.fx-delay-1 { animation-delay: .08s; }
.fx-delay-2 { animation-delay: .16s; }
.fx-delay-3 { animation-delay: .24s; }
.fx-delay-4 { animation-delay: .32s; }
.fx-delay-5 { animation-delay: .40s; }
.fx-delay-6 { animation-delay: .48s; }
.fx-delay-7 { animation-delay: .56s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes radioBufferConnect {
    0%, 18% {
        background: rgba(255, 255, 255, .38);
        box-shadow: none;
    }

    25%, 72% {
        background: #22c55e;
        box-shadow: 0 0 8px rgba(34, 197, 94, .35);
    }

    80%, 100% {
        background: rgba(255, 255, 255, .38);
        box-shadow: none;
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: scale(.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 760px) {
    html,
    body {
        height: 100dvh;
        overflow: hidden;
    }

    .app-wrap {
        align-items: stretch;
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;
        width: 100vw;
    }

    .player-wrap {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
        width: 100vw;
    }

    .common-btn--label span {
        display: none;
    }

    .common-btn--label {
        font-size: 190%;
    }

    .player-content,
    .flex-autorow {
        display: block;
    }

    .player-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--pad);
    }

    .player-footer {
        align-items: center;
        flex: 0 0 calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
        flex-wrap: nowrap;
        gap: .6em;
        min-height: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
        overflow: hidden;
        padding: 0 .75em env(safe-area-inset-bottom, 0px);
    }

    .player-controls {
        align-items: center;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: .45em;
        margin-right: 0;
        min-width: 0;
        overflow: hidden;
    }

    .player-controls .push-left,
    .player-controls .push-right {
        margin-left: 0;
        margin-right: 0;
    }

    .player-controls > .common-btn,
    .player-footer > .common-btn {
        flex: 0 0 auto;
    }

    .player-controls .form-slider {
        flex: 0 0 auto;
        gap: .3em;
        min-width: 0;
    }

    .player-controls .text-clip {
        flex: 1 1 auto;
        font-size: .8em;
        margin-left: 0;
        min-width: 0;
        overflow: hidden;
    }

    [data-radio-footer-title] {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
        white-space: nowrap;
    }

    .common-slider {
        width: min(24vw, 96px);
    }

    .player-stations-sidebar {
        right: -320px;
        width: 320px;
    }

    .app-wrap.is-sidebar-open .player-stations-sidebar {
        transform: translateX(-320px);
    }
}

@media all and (display-mode: standalone), all and (display-mode: fullscreen) {
    html,
    body,
    .app-wrap,
    .player-wrap {
        height: 100vh;
        height: 100svh;
        max-height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }

    .player-layout {
        height: 100svh;
        min-height: 0;
        padding-bottom: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
    }

    .player-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
    }

    .player-footer {
        bottom: 0;
        height: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
        left: 0;
        min-height: calc(var(--header-height) + env(safe-area-inset-bottom, 0px));
        position: fixed;
        right: 0;
        z-index: 20;
    }
}
