body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #545454;
    background: #e5e5e5;
    line-height: 1.5;
}

a,
a:link,
a:visited {
    color: #005c82;
    text-decoration: none;
}

a:hover {
    color: #000;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

.explanation {
    margin: 18px auto 10px;
    padding: 0 20px;
    font-style: italic;
    font-size: 10px;
    color: #9e9e9e;
    text-align: center;
    max-width: 900px;
}

#content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    padding-top: 0;
    border-radius: 1em;
    box-shadow: 0 0 2px #5d5d5d;
}

.subscription-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 24px;
}

.listen-badge {
    display: inline-block;
    background-color: #fff;
    background-repeat: no-repeat;
    border: 1px solid #000;
    border-radius: 5px;
    text-indent: -9000px;
    overflow: hidden;
    height: 40px;
}

.badge-apple,
.badge-overcast,
.badge-addict,
.badge-rss {
    background-image: url('https://podcast.pz.is/images/listen-on-embed.svg');
}

.badge-mixcloud {
    background-image: url('https://podcast.pz.is/images/mixcloud.svg');
}

.badge-apple {
    background-position: -230px 7px;
    width: 165px;
}

.badge-overcast {
    background-position: -230px -233px;
    width: 120px;
}

.badge-addict {
    background-position: -230px -413px;
    width: 162px;
}

.badge-mixcloud {
    background-position: 10px 10px;
    width: 121px;
}

.badge-rss {
    background-position: -230px -653px;
    width: 121px;
}

#channel-header {
    margin-bottom: 20px;
    padding-top: 20px;
    margin-left: -10px;
}

#channel-image {
    float: right;
    width: 200px;
    margin-bottom: 20px;
}

#channel-image img {
    width: 200px;
    height: auto;
    border-radius: 3px;
    margin-left: 10px;
}

h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 300;
    font-size: xx-large;
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a7a7a;
}

h2,
h3 {
    margin-top: 0;
    margin-bottom: 0;
}

h2 {
    font-weight: 300;
    font-size: 30px;
}

h3 {
    font-size: small;
    font-weight: 500;
}

.channel-subtitle {
    font-size: small;
    font-weight: 500;
    margin-bottom: 20px;
}

.channel-description {
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.channel-author {
    font-size: small;
    font-weight: 600;
    margin-bottom: 16px;
}

.channel-author a {
    font-size: large;
    font-weight: 600;
    margin-left: 6px;
}

.search-panel {
    display: grid;
    gap: 10px;
    clear: both;
}

.search-wrap {
    display: grid;
    gap: 6px;
    max-width: 420px;
    font-size: 12px;
    font-weight: 500;
    color: #707070;
}

.search-wrap input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d2d2d2;
    box-sizing: border-box;
}

.search-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    font-size: 11px;
    font-weight: 500;
    color: #7a7a7a;
}

.site-main {
    display: grid;
    gap: 10px;
}

.show-spotlight {
    padding: 18px;
    border: 1px solid #d8e6ed;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5fbff, #ffffff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.show-spotlight .eyebrow {
    margin: 0 0 10px;
}

.show-spotlight-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
}

.show-spotlight-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #ddd;
}

.show-spotlight-copy {
    display: grid;
    gap: 10px;
}

.show-spotlight-meta,
.show-spotlight-description {
    margin: 0;
}

.show-spotlight-meta {
    font-size: 12px;
    font-weight: 600;
    color: #005c82;
}

.player-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    width: min(100%, 520px);
    margin: 0 auto 18px;
    color: #1b2c35;
    filter: drop-shadow(0 12px 18px rgba(16, 29, 35, 0.14));
}

.cassette-shell {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 800 / 534;
    border: 0;
    border-radius: 0;
    background: url('cassette-rawpixel.png') center center / contain no-repeat;
    box-shadow: none;
    overflow: hidden;
}

.cassette-label-stack {
    position: absolute;
    top: 12%;
    left: 50%;
    z-index: 1;
    display: grid;
    gap: 4px;
    width: 70%;
    transform: translateX(-50%);
    pointer-events: none;
}

.cassette-shell-button {
    appearance: none;
    cursor: pointer;
}

.cassette-shell-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 32, 41, 0.06));
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.cassette-shell-button:hover::after,
.cassette-shell-button:focus-visible::after,
.cassette-shell-button.is-playing::after {
    opacity: 1;
}

.cassette-shell-button:focus-visible {
    outline: 2px solid #005c82;
    outline-offset: 4px;
}

.cassette-top-label {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 50px;
    height: 50px;
    max-height: 50px;
    box-sizing: border-box;
    padding: 8px 10px 7px;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 16%),
        repeating-linear-gradient(180deg, transparent 0 10px, rgba(86, 103, 109, 0.12) 10px 11px),
        linear-gradient(180deg, #f8f1d7 0%, #efe0b5 100%);
    border: 1px solid #c6b584;
    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.cassette-top-label::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    height: 1px;
    background: rgba(62, 70, 75, 0.22);
}

.cassette-top-copy {
    display: grid;
    gap: 2px;
    height: 100%;
    align-content: center;
    transform: rotate(-1.35deg);
    transform-origin: center;
}

.cassette-label-title,
.cassette-label-meta {
    margin: 0;
}

.cassette-label-title {
    font-family: "Caveat", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(16px, 1.65vw, 22px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: rgba(44, 36, 22, 0.92);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-wrap: balance;
}

.cassette-label-meta {
    font-family: "Caveat", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(11px, 1.02vw, 14px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.015em;
    color: rgba(58, 45, 22, 0.76);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cassette-song-label {
    position: relative;
    justify-self: center;
    width: 62%;
    min-height: 34px;
    padding: 6px 12px 7px;
    border-radius: 0 0 8px 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 18%),
        repeating-linear-gradient(180deg, transparent 0 11px, rgba(33, 83, 108, 0.12) 11px 12px),
        linear-gradient(180deg, #d9edf5 0%, #a7cfdf 100%);
    border: 1px solid #7ba6b8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.cassette-song-kicker {
    display: block;
    margin: 0 0 1px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(32, 77, 99, 0.72);
}

.cassette-song-title {
    display: block;
    margin: 0;
    font-family: "Caveat", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 700;
    line-height: 0.95;
    color: rgba(19, 63, 84, 0.94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: rotate(-0.65deg);
}

.cassette-controls-panel {
    display: grid;
    gap: 10px;
    padding: 12px 14px 14px;
    border: 1px solid #d8e6ed;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(242, 247, 250, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cassette-controls-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cassette-toggle-button,
.episode-play-button,
.cassette-download-link {
    appearance: none;
    border: 1px solid #c5dbe5;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    color: #005c82;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.cassette-toggle-button:hover,
.episode-play-button:hover,
.cassette-download-link:hover,
.cassette-toggle-button:focus-visible,
.episode-play-button:focus-visible,
.cassette-download-link:focus-visible {
    border-color: #8eb9ca;
    background: #f1f8fb;
    outline: none;
}

.cassette-toggle-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.episode-play-button.is-active,
.cassette-shell-button.is-playing + .cassette-controls-panel .cassette-toggle-button {
    border-color: #005c82;
    background: #005c82;
    color: #fff;
}

.cassette-status {
    display: grid;
    gap: 2px;
    flex: 1 1 180px;
    min-width: 0;
}

.cassette-status strong,
.cassette-status span {
    display: block;
}

.cassette-status strong {
    font-size: 13px;
    color: #17303b;
}

.cassette-status span {
    font-size: 11px;
    color: #55707c;
}

.cassette-status-song {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #005c82;
}

.cassette-audio {
    width: 100%;
}

.cassette-controls-panel .plyr {
    border-radius: 14px;
    --plyr-color-main: #005c82;
    --plyr-audio-controls-background: #eef5f8;
}

.cassette-controls-panel .plyr--audio .plyr__controls {
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eef5f8;
}

.cassette-controls-panel .plyr__control {
    border-radius: 999px;
}

.cassette-controls-panel .plyr__time {
    min-width: 42px;
}


.shows-list {
    display: grid;
}

.channel-item {
    border-top: 2px solid #e5e5e5;
    padding: 14px 10px 6px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.channel-item-selected {
    background: linear-gradient(180deg, rgba(242, 248, 251, 0.85), rgba(255, 255, 255, 0));
}

.channel-item-playing {
    border-top-color: #7ab8d0;
    background: linear-gradient(180deg, rgba(236, 248, 253, 0.88), rgba(255, 255, 255, 0));
}

.channel-item-inner {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
}

.episode-image {
    width: 100px;
    margin-top: 4px;
}

.episode-image img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #ddd;
}

.episode-title {
    margin-bottom: 14px;
}

.episode-title h2 {
    margin-bottom: 4px;
}

.episode-description {
    margin-bottom: 8px;
}

.episode-description p {
    margin: 0;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    margin-top: 14px;
    margin-bottom: 8px;
}

.episode-meta-separator {
    color: #999;
}

.show-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
}

.show-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.show-tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid #dbe7ec;
    border-radius: 999px;
    background: #f6fafc;
    color: #45626d;
    font-size: 11px;
    font-weight: 600;
}

.show-tag-chip-dj {
    border-color: #ead9bf;
    background: #faf3e7;
    color: #7a4d0f;
}

.show-tag-list-spotlight {
    margin-top: 2px;
}

.show-tracklist,
.show-bookmarks {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7f8f9;
    font-size: 12px;
}

.show-tracklist summary,
.show-bookmarks summary {
    cursor: pointer;
    font-weight: 600;
    color: #005c82;
}

.show-tracklist ul,
.show-bookmarks ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.show-tracklist li,
.show-bookmarks li {
    margin-bottom: 4px;
}

.show-bookmark-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.show-bookmark-jump {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #005c82;
    cursor: pointer;
    font: inherit;
}

.show-bookmark-jump:hover,
.show-bookmark-jump:focus-visible {
    text-decoration: underline;
    outline: none;
}

.show-bookmark-time {
    font-family: "Courier New", "Liberation Mono", monospace;
    font-weight: 700;
}

.show-bookmark-label {
    color: #2d2d2d;
    flex: 1 1 180px;
}

.show-bookmark-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.show-bookmark-meta-link {
    color: #005c82;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.show-bookmark-youtube-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.show-bookmark-meta-link:hover,
.show-bookmark-meta-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.shows-loading,
.shows-empty {
    padding: 14px 10px 6px;
    color: #8a8a8a;
    text-align: center;
}

.channel-copyright {
    text-align: center;
    margin: 10px;
    font-size: small;
}

@media (max-width: 760px) {
    body {
        font-size: 13px;
    }

    #content {
        margin: 0 12px;
        padding: 18px;
        padding-top: 0;
    }

    #channel-image {
        float: none;
        width: 160px;
        margin: 0 auto 16px;
    }

    #channel-image img {
        width: 160px;
        margin-left: 0;
    }

    .channel-item-inner {
        grid-template-columns: 1fr;
    }

    .show-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .player-panel {
        width: min(100%, 380px);
        gap: 4px;
        margin-bottom: 12px;
    }

    .cassette-shell {
        padding: 0;
        border-radius: 0;
    }

    .cassette-label-stack {
        width: 76%;
        top: 14%;
    }

    .cassette-top-label {
        min-height: 64px;
        height: 64px;
        max-height: 64px;
        padding: 6px 8px 6px;
    }

    .cassette-top-copy {
        gap: 1px;
    }

    .cassette-label-title {
        font-size: 13px;
    }

    .cassette-label-meta {
        font-size: 10px;
    }

    .cassette-song-label {
        width: 70%;
        min-height: 30px;
        padding: 5px 10px 6px;
    }

    .cassette-song-kicker {
        font-size: 8px;
    }

    .cassette-song-title {
        font-size: 12px;
    }

    .cassette-controls-panel {
        padding: 12px;
    }

    .cassette-controls-head {
        gap: 10px;
    }

    .cassette-toggle-button,
    .cassette-download-link {
        width: 100%;
        text-align: center;
    }

    .episode-image {
        order: -1;
        width: 120px;
    }

    .episode-image img {
        width: 120px;
    }

    .search-wrap {
        max-width: none;
    }

    .subscription-buttons {
        gap: 8px;
    }

}
