.radio-detail {
    gap: clamp(.75rem, 2vw, 1.25rem);
    padding: clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2.5vw, 1.75rem) 2.5rem;
}

.radio-detail .radio-header {
    grid-template-columns: clamp(192px, 14.6vw, 210px) minmax(0, 1fr) auto;
    gap: .5rem clamp(1rem, 2vw, 1.75rem);
    padding: clamp(.75rem, 2vw, 1.25rem);
    margin-bottom: .75rem;
    background: linear-gradient(128deg, #14232c, #0d1319 72%);
    border-color: #2c3943;
    border-radius: 12px;
}

.radio-detail .radio-logo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    grid-row: 1 / span 2;
    border: 1px solid #3b4b57;
    border-radius: 12px;
    background: #0b1116;
    box-shadow: 0 8px 22px #060a0e66;
}

.radio-detail .radio-details {
    grid-column: 2 / -1;
}

.radio-detail .radio-title {
    margin: 0 0 .3rem;
    color: #f4f8fb;
    font-size: clamp(1.25rem, 3vw, 2.15rem);
}

.radio-detail .radio-header :is(.radio-location, .radio-location-link, .radio-slogan) {
    color: #a9bbc8;
}

.radio-detail .radio-header :is(.radio-location-link:hover, .radio-location-link:focus-visible, .radio-freq) {
    color: #83ddf6;
}

.radio-detail .radio-meta {
    gap: .3rem .65rem;
    margin-block: .35rem;
}

.radio-detail .radio-meta .radio-slogan {
    margin: 0;
    min-width: 0;
}

.radio-detail .radio-location {
    font-size: .875rem;
    font-weight: 600;
}

.radio-detail .radio-location-link {
    text-underline-offset: .2em;
    transition: color .18s ease;
}

.radio-detail .radio-location-link:hover {
    text-decoration: underline;
}

.radio-detail .radio-location-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.radio-detail .radio-header .radio-freq {
    background: #14232a;
    border-color: #36505c;
    border-radius: var(--hero-button-radius, 8px);
}

.radio-detail :is(.radio-genres, .station-sidebar-genres) {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.radio-detail .genre-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    max-width: 100%;
    min-height: 28px;
    padding: .25rem .65rem;
    border-radius: var(--hero-button-radius, 8px);
    background: rgba(0, 153, 255, .12);
    color: #4db8ff;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease;
}

.radio-detail .genre-tag:is(:hover, :focus-visible) {
    background: rgba(0, 153, 255, .25);
    color: #dbf7ff;
}

.radio-detail .genre-tag:focus-visible {
    outline: 2px solid #4db8ff;
    outline-offset: 2px;
}

.radio-detail .radio-slogan,
.radio-detail .radio-location,
.radio-detail .radio-genres,
.radio-detail .station-tools,
.radio-detail .now-playing-text {
    overflow-wrap: anywhere;
}

.radio-detail .radio-genres {
    margin-bottom: .55rem;
}

.radio-detail :is(.station-social-links, .station-action-buttons) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.radio-detail .btn-play-main {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    background: #53d4f3;
    border-color: #86e4f9;
    box-shadow: 0 0 0 4px #53d4f31c;
    color: #081922;
    font-size: 25px;
}

.station-favorite-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.radio-detail .station-tools {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid #2a3842;
}

.radio-detail .station-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: auto;
    min-width: 0;
    min-height: 44px;
    flex: 0 1 auto;
    padding: .45rem .7rem;
    border: 1px solid var(--border2);
    border-radius: 5px;
    background: #162431;
    color: #e2edf4;
    font: 600 .8125rem/1.3 'DM Sans', sans-serif;
    text-decoration: none;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
}

.radio-detail .station-button:is(a, button:not(:disabled)):hover,
.radio-detail .station-button[aria-pressed="true"] {
    background: #1b3042;
    border-color: var(--accent);
    color: #a9f1ff;
}

.radio-detail :is(.station-button, .btn-play-main):focus-visible {
    outline: 2px solid #62dcf5;
    outline-offset: 2px;
}

.radio-detail button.station-button:disabled {
    opacity: .6;
    cursor: wait;
}

.station-reaction-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .45rem;
}

.radio-detail .station-reaction-list .station-button {
    flex: 0 1 min(9rem, calc((100% - .45rem) / 2));
}

.station-reaction-icon,
.station-reaction-list [data-total] {
    flex: 0 0 auto;
}

.station-reactions [role="status"] {
    color: #b9c8d2;
    font-size: .825rem;
}

.station-reactions [role="status"]:empty {
    display: none;
}

.radio-detail .now-playing {
    width: fit-content;
    max-width: 100%;
    margin-top: .65rem;
    padding: .3rem .6rem;
}

.radio-detail .now-playing .wave-bars {
    flex-shrink: 0;
}

.radio-detail .info-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: .65rem;
    margin-bottom: .75rem;
}

.radio-detail .info-card {
    min-width: 0;
    padding: .75rem;
    background: #121a21;
    border-color: #2b3843;
}

.radio-detail .info-card-title {
    margin-bottom: .5rem;
    color: #a8c7da;
}

.radio-detail :is(.station-rating, .station-reactions, .station-stats) {
    text-align: center;
}

.radio-detail .station-rating :is(#rating-summary, .station-rating-options) {
    justify-content: center;
}

.station-rating-summary {
    color: #dcebf4;
    font-size: .875rem;
}

#rating-summary:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .5rem;
}

.station-rating-summary .rating-number {
    color: #e6f6ff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.station-rating-summary .rating-count {
    color: #a8c7da;
    font-size: .8rem;
}

.station-rating-stars,
.station-rating-options {
    display: inline-flex;
    gap: .15rem;
    color: #7c9bad;
}

.station-rating-stars .is-filled { color: #e6b65a; }

.station-rating-personal {
    margin-top: .5rem;
    padding-top: .45rem;
    border-top: 1px solid #34444f;
    color: #b7d0df;
    font-size: .825rem;
}

.station-rating-label {
    font-weight: 600;
}

.station-rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 40px));
    width: 100%;
}

.station-rating-options button {
    width: min(40px, 100%);
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.station-rating-options button.is-filled {
    color: #e6b65a;
}

.station-rating-options button:hover {
    color: #ffcf79;
    background: #1b4053;
    border-color: #34617a;
}

.radio-detail :is(.station-rating, .station-tools) :is(button, a):focus-visible,
.radio-detail :is(.btn-fav-main, .btn-website):focus-visible {
    outline: 2px solid #62dcf5;
    outline-offset: 2px;
}

.radio-detail .stats-list li {
    gap: .5rem;
    padding-block: .4rem;
    overflow-wrap: anywhere;
}

.radio-detail #community-room {
    margin-block: 0 .75rem;
    padding: .7rem .8rem;
    background: #121a21;
    border-color: #303f4b;
}

@media (768px < width < 1200px) {
    body:has(.radio-detail) nav:has(> #hamburger) .nav-desktop {
        display: none !important;
    }

    body:has(.radio-detail) #hamburger {
        display: block;
    }

    body:has(.radio-detail) nav:has(> #hamburger) .search-instant {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 1024px) {
    .radio-detail {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "main" "sidebar" "comments";
    }
}

@media (max-width: 520px) {
    .radio-detail .radio-header {
        grid-template-columns: clamp(104px, 29vw, 126px) minmax(0, 1fr) auto;
        gap: .75rem;
    }

    .radio-detail .radio-logo {
        font-size: 2.4rem;
        grid-row: 1;
    }

    .radio-detail .btn-play-main {
        width: 48px;
        height: 48px;
    }

    .radio-detail .radio-details {
        grid-column: 1 / -1;
    }

    .radio-detail .info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .radio-detail .stats-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .radio-detail .stats-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
        border-bottom: 0;
    }
}

.radio-detail .station-description {
    padding: .85rem 1rem;
    margin-bottom: .75rem;
}

.station-description .radio-description,
.radio-detail .station-description-preview {
    min-width: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.station-description-body {
    position: relative;
}

.radio-detail .station-description-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    color: #b9c8d2;
    font-size: .875rem;
    overflow: hidden;
    white-space: pre-line;
}

.station-description-body:has(details[open]) .station-description-preview {
    position: absolute;
    inset-inline: 0;
    visibility: hidden;
}

.radio-detail .station-description-toggle {
    width: fit-content;
    max-width: 100%;
    margin-block: .45rem;
    list-style: none;
    cursor: pointer;
}

.radio-detail .station-description-toggle[hidden] {
    display: none;
}

.station-description-toggle::-webkit-details-marker {
    display: none;
}

.radio-detail .station-description-toggle:is(:hover, :focus-visible, :active) {
    background: #1b3042;
    border-color: var(--accent);
    color: #a9f1ff;
}

.station-description-chevron {
    flex: none;
}

.station-description details[open] .station-description-chevron {
    transform: rotate(180deg);
}

.station-description details:not([open]) .station-description-less,
.station-description details[open] .station-description-more {
    display: none;
}

.radio-detail .station-tools .station-button,
.radio-detail .station-description-toggle {
    border-radius: var(--hero-button-radius, 8px);
    padding: .5rem .75rem;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.station-description:not([data-station-description]) .station-tools {
    margin-top: .5rem;
}

.station-tools .station-social-link svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .radio-detail .station-tools .station-button,
    .radio-detail .station-description-toggle,
    .radio-detail .station-participation-link,
    .radio-detail .genre-tag {
        transition: none;
    }
}

.radio-detail .station-participation {
    scroll-margin-top: 76px;
}

.radio-detail #station-participation-title {
    grid-column: 1 / -1;
    font-size: 1rem;
}

.station-participation:has(.station-reactions) .station-stats {
    grid-column: 1 / -1;
}

.radio-detail .station-stat-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 25rem;
    margin: 0 auto;
}

.radio-detail .station-stat {
    display: flex;
    flex: 1 1 9rem;
    flex-direction: column-reverse;
    justify-content: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: var(--card);
    color: var(--muted2);
    text-align: center;
}

.radio-detail .station-stat dd {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.radio-detail .station-stat svg,
.radio-detail .share-modal svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.radio-detail .share-modal {
    position: fixed;
    inset: 0;
    width: min(26rem, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border2);
    border-radius: 12px;
    box-shadow: 0 20px 60px #0008;
}

.radio-detail .share-modal::backdrop {
    background: #000a;
}

.radio-detail .share-modal-box {
    padding: 16px;
}

.radio-detail .share-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.radio-detail .share-modal-identity {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.radio-detail .share-modal-identity h2 {
    margin: 0;
    font-size: 1.125rem;
}

.radio-detail .share-modal-identity p {
    margin: 2px 0 0;
    color: var(--muted2);
}

.radio-detail .share-radio-logo {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: var(--card);
}

.radio-detail .share-modal-close {
    flex: none;
    align-self: flex-start;
}

.radio-detail .share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.radio-detail .share-modal .station-button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.radio-detail .share-modal .share-copy {
    width: 100%;
    margin-top: 12px;
    background: var(--accent);
    color: #08141d;
}

.radio-detail .share-modal button.share-copy:hover {
    background: #82d7ff;
    color: #08141d;
}

.radio-detail .station-share-toast:not(:empty) {
    position: fixed;
    bottom: calc(var(--player-h) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 10px 16px;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: var(--card2);
    color: var(--text);
    text-align: center;
}

.station-rating-summary {
    min-height: 1.4rem;
}

.station-rating-summary .rating-number {
    font-size: 1.4rem;
}

.station-rating-feedback {
    color: #d6e5f0;
    margin-top: .35rem;
}

.station-rating-feedback:empty {
    display: none;
}

.station-reaction-list .station-button[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px #4db8ff;
}

.station-rating-remove {
    min-height: 32px;
    padding: .2rem .45rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #a9dff2;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}

.station-rating-remove:is(:hover, :focus-visible) {
    background: #1b3042;
    border-color: #34617a;
}

.station-rating[aria-busy="true"] :is(.station-rating-options button, .station-rating-remove) {
    cursor: wait;
    opacity: .65;
}

.station-rating-options button[aria-pressed="true"] {
    background: #1b3042;
    border-color: #4db8ff;
}

.radio-detail .station-participation-link {
    border-radius: var(--hero-button-radius, 8px);
}

.radio-detail .community-room .station-participation-link {
    color: #e2edf4;
}

.radio-detail .community-room .station-general-link {
    margin-inline-start: auto;
}

.radio-detail .community-room .station-participation-link:is(:hover, :focus-visible) {
    color: #a9f1ff;
}

.radio-detail .station-participation-link svg {
    flex: 0 0 auto;
}

.radio-detail .station-participation-link:focus-visible {
    border-color: var(--accent);
    background: #1b3042;
}

.radio-detail .station-social-links + .station-action-buttons {
    border-block-start: 1px solid var(--border2);
    margin-block-start: .65rem;
    padding-block-start: .65rem;
}

.radio-detail :is(.station-rating, .station-reactions) {
    border-block-start-color: #34617a;
}

.radio-detail :is(.station-rating, .station-reactions) .info-card-title {
    color: #a9dff2;
}

.radio-detail .station-reaction-list button.station-button:not([aria-pressed="true"]):not(:disabled):hover {
    background: #20384b;
}

.radio-detail .station-reaction-list button.station-button[aria-pressed="true"] {
    background: #18384e;
    border-color: #4db8ff;
    color: #a9f1ff;
}

.radio-detail .station-participation-link {
    text-align: center;
}

.radio-detail :is(.station-rating, .station-reactions):has(.station-participation-link) {
    display: flex;
    flex-direction: column;
}

.radio-detail .station-rating-personal:has(.station-participation-link) {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.radio-detail :is(.station-rating-personal, .station-reactions) > .station-participation-link {
    align-self: center;
    margin-block-start: auto;
}

.radio-detail #btn-report-stream {
    background: #302219;
    border-color: #90522f;
    color: #ffc295;
}

.radio-detail #btn-report-stream:is(:hover, :focus-visible):not(:disabled) {
    background: #452c1e;
    border-color: #df8550;
    color: #ffd2ae;
}

@media (min-width: 521px) {
    .radio-detail .station-participation:has(.station-reactions .station-participation-link) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch;
    }
}
