.kh-radio.kh-content-width {
    --radio-ink: #182f36;
    --radio-deck: #1a2b32;
    --radio-screen: #101c22;
    --radio-amber: #f3bd67;
    --radio-paper: #fffcf4;
    --radio-line: #d9cbb4;
    max-width: 1200px;
    padding-block: clamp(20px, 4vw, 46px) 44px;
    color: var(--radio-ink);
}

.kh-radio [hidden] {
    display: none;
}

.kh-radio-heading h1 {
    margin: 12px 0 24px;
}

.kh-radio-heading a {
    display: block;
    border-radius: clamp(8px, 1.4vw, 16px);
}

.kh-radio-heading img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.kh-radio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2.5vw, 30px);
}

.kh-radio-deck {
    min-width: 0;
    padding: clamp(10px, 2vw, 22px);
    border: 1px solid #475454;
    border-radius: 19px;
    background: linear-gradient(150deg, #293c43, var(--radio-deck) 62%);
    box-shadow: 0 7px 0 #13252b, 0 12px 24px #15262d21;
    color: #fff9ea;
}

.kh-radio-screen {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 178px;
    overflow: hidden;
    border: 1px solid #647373;
    border-radius: 10px;
    background: var(--radio-screen);
    box-shadow: inset 0 0 0 3px #13232a;
}

.kh-radio-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kh-radio-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, #3c5555, #101c22 72%);
}

.kh-radio-fallback img {
    width: 32%;
    height: auto;
    max-width: 180px;
    max-height: 78%;
    object-fit: contain;
}

.kh-radio-art:not([hidden]) + .kh-radio-fallback {
    display: none;
}

.kh-radio-transcript {
    position: relative;
    box-sizing: border-box;
    height: clamp(176px, 20vw, 224px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    margin-top: 12px;
    padding: 9px;
    border: 1px solid #53656a;
    border-radius: 9px;
    background: #20363e;
    color: #e8eeeb;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.kh-radio-transcript p {
    margin: 0;
    padding: 5px 9px;
    border-radius: 5px;
}

.kh-radio-transcript [aria-current='true'] {
    background: #ffe4af;
    color: #192a30;
    font-weight: 700;
}

.kh-radio-now {
    padding: 0 3px 13px;
}

.kh-radio-meta,
.kh-radio-status {
    color: #ded5c5;
    font-size: 13px;
}

.kh-radio-meta {
    margin: 0 0 3px;
    color: #ffd68e;
}

.kh-radio-now h2 {
    margin: 0;
    color: #fff9ea;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.kh-radio-article {
    padding: 10px 3px;
}

.kh-radio-article-link {
    color: #ffe0a8;
    font-size: 14px;
    text-underline-offset: 3px;
}

.kh-radio button,
.kh-radio select {
    box-sizing: border-box;
    min-height: 36px;
    border: 1px solid var(--radio-line);
    border-radius: 7px;
    padding: 4px 9px;
    background: #fffdf7;
    color: var(--radio-ink);
    font: inherit;
}

.kh-radio button {
    cursor: pointer;
}

.kh-radio button:disabled,
.kh-radio select:disabled {
    cursor: default;
    opacity: .52;
}

.kh-radio :is(a, button, select, summary, .kh-radio-transcript):focus-visible {
    outline: 3px solid #bc6917;
    outline-offset: 2px;
}

.kh-radio-transport {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-top: 13px;
    border-top: 1px solid #59666a;
}

.kh-radio-transport-main {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1.15vw, 12px);
    width: clamp(222px, 30vw, 324px);
}

.kh-radio-speed {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kh-radio-transport :is(button, select) {
    min-height: 44px;
    border-color: #657377;
    background: #283b42;
    color: #fff9ea;
    font-size: 14px;
    white-space: nowrap;
}

.kh-radio-transport-main button {
    min-height: clamp(64px, 6vw, 76px);
    padding-inline: 4px;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 700;
}

.kh-radio-transport .kh-radio-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    border-color: #ffcf86;
    background: var(--radio-amber);
    box-shadow: 0 2px 0 #a77232;
    color: #222524;
    font-weight: 800;
}

.kh-radio-play-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

.kh-radio-play[data-playing] .kh-radio-play-icon {
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    border: 0;
    border-inline: 3px solid currentColor;
}

@media (min-width: 1100px) {
    .kh-radio-speed::before {
        content: '';
        width: clamp(18px, 3vw, 48px);
        height: 14px;
        border-radius: 4px;
        background: repeating-linear-gradient(0deg, #5e7072 0 1px, #182930 1px 4px);
    }
}

@media (max-width: 900px) {
    .kh-radio-transport .kh-radio-play {
        flex-direction: column;
        gap: 3px;
    }
}

.kh-radio-status {
    min-height: 1.35em;
    margin: 9px 3px 0;
    line-height: 1.5;
}

.kh-radio-queue {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--radio-line);
    border-radius: 14px;
    background: var(--radio-paper);
}

.kh-radio-queue-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--radio-line);
    background: #f4ead8;
}

.kh-radio-queue-head h2 {
    margin: 0;
    font-size: 19px;
}

.kh-radio-queue-head small {
    color: #665b4a;
    font-size: 12px;
    white-space: nowrap;
}

.kh-radio-queue-head button {
    font-size: 12px;
}

.kh-radio-tracks {
    display: grid;
    align-content: start;
    max-height: 31rem;
    overflow: auto;
    margin: 0;
    padding: 5px 12px;
    list-style: none;
}

.kh-radio-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 7px 3px;
    border-bottom: 1px solid #e4dccc;
}

.kh-radio-track:last-child {
    border-bottom: 0;
}

.kh-radio-track[data-current] {
    background: #f6e7cb;
}

.kh-radio-track .kh-radio-track-title {
    min-width: 0;
    border: 0;
    padding: 5px 7px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
}

.kh-radio-track-title small {
    display: block;
    color: #665b4a;
    font-size: 11px;
    font-weight: 500;
}

.kh-radio-track-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 3px;
}

.kh-radio-track-controls button {
    min-width: 32px;
    padding-inline: 6px;
    font-size: 12px;
}

.kh-radio-track button:not(:disabled):hover,
.kh-radio-queue-head button:not(:disabled):hover,
.kh-radio-add button:not(:disabled):hover {
    background: #eee2ca;
}

.kh-radio-empty {
    padding: 14px 6px;
    color: #665b4a;
}

.kh-radio-add {
    padding: 11px 14px 14px;
    border-top: 1px solid var(--radio-line);
}

.kh-radio-add summary {
    cursor: pointer;
    font-weight: 700;
}

.kh-radio-add-controls {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.kh-radio-add-controls select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 760px) {
    .kh-radio-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 23px;
    }

    .kh-radio-tracks {
        max-height: 24rem;
    }

    .kh-radio-transport-main {
        grid-column: 1 / -1;
        width: min(100%, 380px);
        justify-self: center;
    }

    .kh-radio-track-controls button {
        min-height: 40px;
    }
}
