:root {
    color-scheme: dark;
    --base: #0c151c;
    --card: #13222c;
    --line: #2a3e48;
    --text: #f1f9f7;
    --muted: #acbfca;
    --mint: #75f1ce;
    --coral: #ff987f;
    --ink: #09271e;
    font:
        16px/1.5 system-ui,
        sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    background: var(--base);
    color: var(--text);
    padding-bottom: 100px;
}
a {
    color: var(--mint);
    text-underline-offset: 0.25em;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a.primary {
    cursor: pointer;
}
img {
    display: block;
    object-fit: contain;
    max-width: 100%;
}
button {
    color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}
.wrap {
    width: min(100% - 3rem, 1200px);
    margin-inline: auto;
}
.top {
    border-bottom: 1px solid var(--line);
}
.top-inner,
.top nav,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.top-inner {
    min-height: 72px;
}
.brand {
    color: var(--text);
    font-size: 1.24rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.brand em {
    font-style: normal;
    color: var(--mint);
}
.mark {
    color: var(--coral);
    margin-right: 0.25rem;
}
.top nav a,
.top nav button {
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}
.top nav button,
#player-close {
    background: none;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.38rem 0.7rem;
}
#favorites {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.38rem 0.7rem;
    text-align: center;
}
#favorites[aria-current='page'] {
    color: var(--mint);
    border-color: var(--mint);
}
.favorites-page {
    margin-top: 2rem;
}
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    margin: 2rem 0 2.75rem;
    padding: clamp(1.5rem, 6vw, 5rem);
    min-height: 385px;
    border: 1px solid #2b554d;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 85% 60%, #276258 0%, transparent 60%),
        linear-gradient(110deg, #132a30, #123b39);
}
.hero-copy {
    position: relative;
    z-index: 1;
}
.eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--mint);
    margin: 0 0 0.9rem;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.hero h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(2.45rem, 6.6vw, 5.55rem);
    letter-spacing: -0.073em;
}
.hero h1 span {
    color: var(--coral);
}
.hero-copy > p:not(.eyebrow) {
    color: #d1e9e3;
}
.primary,
.play,
.station-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 750;
    min-height: 44px;
    padding: 0.55rem 0.86rem;
}
.primary {
    color: var(--ink);
    background: var(--mint);
}
.primary:hover {
    background: #a6ffea;
}
.play,
.station-save {
    color: var(--mint);
    border-color: #3f6d65;
    background: #102925;
    font-size: 0.88rem;
}
.play:hover,
.station-save:hover {
    border-color: var(--mint);
}
.signal {
    height: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1.4vw, 18px);
}
.signal i {
    display: block;
    width: clamp(7px, 1.25vw, 14px);
    height: 22%;
    border-radius: 20px;
    background: var(--mint);
    box-shadow: 0 0 30px #75f1ce53;
    transform: rotate(12deg);
}
.signal i:nth-child(2n) {
    height: 38%;
    background: #a6f6d4;
}
.signal i:nth-child(3n) {
    height: 61%;
    background: #50cdb5;
}
.signal i:nth-child(5) {
    height: 84%;
    background: var(--coral);
    box-shadow: 0 0 48px #ff987f75;
}
.signal i:nth-child(6) {
    height: 69%;
}
.signal i:nth-child(9) {
    height: 17%;
}
#catalog {
    scroll-margin-top: 1.5rem;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}
.section-head h2,
.section-head h1,
.section-head p {
    margin: 0;
}
h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
}
.muted {
    color: var(--muted);
    font-size: 0.92rem;
}
.filters,
.admin-search {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1.3rem;
}
label {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--muted);
}
input,
select,
textarea {
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.72rem;
}
select {
    appearance: none;
    padding-right: 1.6rem;
    background:
        linear-gradient(45deg, transparent 50%, var(--mint) 50%) right 0.85rem center/5px 5px
            no-repeat,
        linear-gradient(135deg, var(--mint) 50%, transparent 50%) right 0.55rem center/5px 5px
            no-repeat,
        var(--card);
}
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.card,
.panel,
.description,
.detail {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.card {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
}
.card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
}
.card img,
.detail img,
.player img,
.edit img {
    border-radius: 12px;
    background: #e8f1ef;
}
.heart {
    border: 0;
    background: transparent;
    color: var(--coral);
    font-size: 1.4rem;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    line-height: 1;
    flex: none;
}
.heart:hover {
    background: #233644;
}
.card .station-name {
    margin: 0.85rem 0 0.35rem;
    font-size: 1.12rem;
}
.card .station-name a {
    color: var(--text);
    text-decoration: none;
}
.card .station-name a:hover {
    text-decoration: underline;
}
.card .muted {
    margin-bottom: 0.8rem;
}
.card .play {
    margin-top: auto;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    padding: 1rem;
    margin-top: 0.7rem;
}
.footer {
    border-top: 1px solid var(--line);
    margin-top: 2.2rem;
    padding: 1.1rem 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.back {
    margin: 1.75rem 0 1rem;
}
.breadcrumbs {
    margin: 1.5rem 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li + li::before {
    content: '/';
    margin-inline: 0.65rem;
    color: var(--muted);
}
.breadcrumbs li {
    overflow-wrap: anywhere;
}
.detail {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.1rem, 4vw, 3rem);
}
.detail h1 {
    font-size: clamp(1.75rem, 5vw, 3.8rem);
    margin-bottom: 0.6rem;
}
.description {
    margin-top: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    overflow-wrap: anywhere;
}
.recommendations {
    margin-top: 2rem;
}
.player {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    background: #11262d;
    border-top: 1px solid #3f6d65;
    padding: 0.7rem 0 max(0.7rem, env(safe-area-inset-bottom));
}
.player-inner {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 36px 36px;
    align-items: center;
    gap: 0.75rem;
}
.player-inner strong,
.player-inner span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-inner span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin {
    margin-top: 2.5rem;
}
.panel {
    padding: 1.25rem;
}
.login {
    width: min(100%, 440px);
    margin-inline: auto;
}
.fields {
    display: grid;
    gap: 1rem;
}
.edit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}
.wide {
    grid-column: 1/-1;
}
.check {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.check input {
    width: 1.1rem;
    min-height: auto;
    height: 1.1rem;
}
.admin-search {
    grid-template-columns: minmax(0, 400px) auto;
    justify-content: start;
}
.rows {
    padding-block: 0.25rem;
}
.row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
}
.row + .row {
    border-top: 1px solid var(--line);
}
.row a {
    overflow-wrap: anywhere;
}
.row span {
    white-space: nowrap;
}
.alert,
.notice,
.empty {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 1rem 0;
}
.alert {
    border-color: var(--coral);
}
.top .top-inner nav #favorites {
    display: inline-flex;
}
.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-logo {
    border-radius: 0;
    flex: none;
}
.footer {
    flex-wrap: wrap;
}
.footer nav,
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}
.settings-tabs {
    margin-bottom: 1.25rem;
}
.settings-tabs a[aria-current='page'] {
    color: var(--text);
    font-weight: 750;
}
.seo-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
}
.settings-preview {
    border-radius: 0.45rem;
}
.directory {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.65rem;
    padding-left: 0;
}
.directory a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.75rem;
}
.site-fragment {
    display: block;
    width: 100%;
    margin: 1rem auto;
    border: 0;
}
.home-catalog {
    color-scheme: light;
    background: #f2f2f2;
    color: #20202b;
    margin-top: 1.25rem;
    padding: clamp(0.9rem, 3.5vw, 2.5rem);
    border-radius: 1.25rem;
}
.home-catalog .muted,
.home-catalog label {
    color: #4e4e5c;
}
.home-catalog input,
.home-catalog select {
    background-color: #fff;
    color: #272732;
    border-color: #d4d4de;
}
.home-catalog .empty a {
    color: #b50012;
}
.station-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: clamp(0.65rem, 1.7vw, 1.25rem);
    row-gap: clamp(1.25rem, 3.4vw, 2.65rem);
}
.station-tile {
    text-align: center;
    min-width: 0;
}
.tile-media {
    position: relative;
    aspect-ratio: 1;
    border-radius: 30%;
    background: #e5e5e8;
    overflow: hidden;
}
.tile-media > a,
.tile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.station-tile .station-name {
    margin: 0.75rem 0 0;
    font-size: 0.94rem;
    line-height: 1.25;
}
.station-tile .station-name a {
    color: #d60010;
    text-decoration: none;
}
.station-tile .station-name a:hover {
    text-decoration: underline;
}
.tile-actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.tile-actions button {
    pointer-events: auto;
    color: #fff;
    background: #0b1219d9;
    border: 0;
    border-radius: 50%;
    padding: 0;
    width: 38px;
    height: 38px;
    min-height: 38px;
}
.tile-actions [aria-pressed='true'] {
    background: #b50012;
}
.tile-actions .heart {
    position: absolute;
    inset-block-start: 7%;
    inset-inline-end: 7%;
    font-size: 1.15rem;
}
.tile-actions .play {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    font-size: 1rem;
    background: #10131ab8;
}
[dir='rtl'] .tile-actions .play {
    transform: translate(50%, -50%);
}
.tile-actions .play:hover {
    background: #10131a;
}
.number-pages {
    display: flex;
    justify-content: center;
    margin: 2rem auto 0;
    color-scheme: light;
}
.number-pages ol {
    display: flex;
    background: #fcfcfd;
    border: 1px solid #000;
    border-radius: 99px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 100%;
}
.number-pages li + li {
    border-inline-start: 1px solid #000;
}
.number-pages a,
.number-pages span {
    display: grid;
    place-items: center;
    min-width: clamp(27px, 7vw, 53px);
    height: 50px;
    color: #000;
    text-decoration: none;
    font-size: 0.94rem;
}
.number-pages li:first-child > *,
.number-pages li:last-child > * {
    min-width: clamp(30px, 8vw, 80px);
}
.number-pages a:hover,
.number-pages [aria-current='page'] {
    color: #000;
    background: #eeeef1;
}
.number-pages [aria-disabled='true'] {
    color: #000;
}
.number-pages a:focus-visible {
    outline-offset: -3px;
}
@media (max-width: 900px) {
    .station-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 580px) {
    .station-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .station-tile .station-name {
        font-size: 0.85rem;
    }
    .tile-actions .heart {
        width: 29px;
        height: 29px;
        min-height: 29px;
    }
    .tile-actions .play {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }
    .top .top-inner nav .admin-nav {
        display: inline-flex;
    }
    .top-inner:has(.admin-nav) {
        flex-wrap: wrap;
        padding-block: 0.55rem;
    }
}
.notice {
    border-color: var(--mint);
}
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .wrap {
        width: calc(100% - 1.5rem);
    }
    .top-inner {
        min-height: 62px;
        gap: 0.55rem;
    }
    .top nav {
        gap: 0.5rem;
    }
    .top nav > a {
        display: none;
    }
    .hero {
        min-height: 300px;
        grid-template-columns: 1fr;
        margin: 1rem 0 1.8rem;
    }
    .signal {
        position: absolute;
        right: 0;
        top: 0;
        width: 45%;
        height: 100%;
        min-height: 0;
        opacity: 0.35;
        z-index: -1;
        gap: 5px;
    }
    .signal i {
        width: 7px;
    }
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.62rem;
    }
    .card {
        padding: 0.7rem;
    }
    .card img {
        width: 62px;
        height: 62px;
    }
    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
    .filters label:first-of-type {
        grid-column: 1/-1;
    }
    .filters button {
        grid-column: auto;
    }
    .edit {
        grid-template-columns: 1fr;
    }
    .detail {
        gap: 1rem;
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .detail img {
        width: 72px;
        height: 72px;
    }

    .pagination {
        gap: 0.65rem;
        font-size: 0.9rem;
    }
}

.tile-media {
    overflow: visible;
}
.tile-media > a {
    border-radius: 30%;
    overflow: hidden;
}
.tile-actions .heart,
.tile-actions .heart:hover,
.tile-actions .heart[aria-pressed='true'] {
    inset-block-start: 0;
    inset-inline-end: 0;
    transform: translate(30%, -25%);
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #ff6978;
    font-size: 1.65rem;
    text-shadow:
        0 1px 2px #000,
        0 0 3px #000;
    padding: 0;
}
.tile-actions .heart[aria-pressed='true'] {
    color: #ff344c;
}
[dir='rtl'] .tile-actions .heart {
    transform: translate(-30%, -25%);
}
.country-flag {
    display: inline-block;
    object-fit: contain;
    width: 28px;
    height: 20px;
    flex: none;
    border-radius: 2px;
}
.directory a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.directory {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.directory a {
    min-width: 0;
    overflow-wrap: anywhere;
}
.play-indicator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 21px;
    height: 22px;
    position: relative;
    flex: none;
}
.play-triangle {
    font: inherit;
}
.play-indicator i {
    display: none;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: currentColor;
}
.play.is-playing .play-triangle,
.play.is-loading .play-triangle {
    display: none;
}
.play.is-playing .play-indicator i {
    display: block;
    animation: radio-equalizer 0.8s ease-in-out infinite alternate;
}
.play.is-playing .play-indicator i:nth-of-type(2) {
    animation-delay: -0.55s;
}
.play.is-playing .play-indicator i:nth-of-type(3) {
    animation-delay: -0.25s;
}
.play.is-loading .play-indicator:after {
    content: '';
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: radio-loading 0.8s linear infinite;
}
.play.is-playing {
    box-shadow: 0 0 0 3px #75f1ce44;
}
#navigation-error {
    padding: 0.8rem;
    border: 1px solid #ff8c78;
    border-radius: 8px;
    color: #ffad9f;
}
@keyframes radio-equalizer {
    from {
        transform: scaleY(0.25);
    }
    to {
        transform: scaleY(1);
    }
}
@keyframes radio-loading {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .play.is-playing .play-indicator i,
    .play.is-loading .play-indicator:after {
        animation: none;
    }
    .play.is-playing .play-indicator i:nth-of-type(2) {
        height: 10px;
    }
    .play.is-playing .play-indicator i:nth-of-type(3) {
        height: 6px;
    }
}
.faq {
    margin-top: 36px;
}
.faq details {
    border-top: 1px solid #2a424d;
    padding: 0;
}
.faq summary {
    padding: 20px 34px 20px 0;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    position: relative;
    list-style: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 16px;
    font-size: 26px;
    color: #70f0d0;
}
.faq details[open] summary::after {
    content: '−';
}
.faq details p {
    margin: 0 0 22px;
    line-height: 1.8;
}
.rating-intro {
    line-height: 1.8;
}
.rating-table-wrap {
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid #2a424d;
    border-radius: 16px;
}
.rating-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.rating-table th,
.rating-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #2a424d;
}
.rating-table th {
    background: #14252e;
}
.rating-table tr:last-child td {
    border-bottom: 0;
}
.rank-number {
    font-size: 1.25rem;
    width: 90px;
    color: #70f0d0;
}
.rank-station {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    text-decoration: none;
}
.rank-station img {
    border-radius: 13px;
    object-fit: cover;
}
.rating-editorial {
    margin-bottom: 32px;
}
.rating-editorial p {
    line-height: 1.8;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 600px) {
    .rating-table th,
    .rating-table td {
        padding: 12px 10px;
    }
    .rating-table th:last-child,
    .rating-table td:last-child {
        display: none;
    }
    .rank-number {
        width: 42px;
    }
    .top-inner nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    .faq summary {
        font-size: 1rem;
    }
}

h1 {
    font-weight: 500;
    line-height: 1.2;
}

.top .brand-logo {
    width: 128px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

@media (max-width: 620px) {
    .top .top-inner nav {
        flex: 1;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.55rem 0.85rem;
        padding: 12px 0;
    }
    .top .top-inner nav > a {
        display: inline-flex;
        font-size: 0.85rem;
    }
}

.home-catalog .tile-media {
    border-radius: 14px;
}
.site-fragment {
    border-radius: 14px;
    overflow: hidden;
    clip-path: inset(0 round 14px);
}
.home-catalog h1,
.detail h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}
.station-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}
.station-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 3px 9px;
    background: #102925;
    color: var(--mint);
    border: 1px solid #3f6d65;
    font-size: .88rem;
    font-weight: 750;
    border-radius: 12px;
    flex: none;
    font-variant-numeric: tabular-nums;
}
.tile-media,
.tile-media > a {
    border-radius: 14px;
}
.tile-media img {
    border-radius: inherit;
}
.recommendations .station-tiles {
    padding-inline: clamp(0.9rem, 3.5vw, 2.5rem);
}
.recommendations .station-tile .station-name a {
    color: var(--text);
}
h2,
.description h2,
.faq h2,
.recommendations h2,
.rating-page h2 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
}
.home-catalog {
    color-scheme: dark;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
}
.home-catalog .muted,
.home-catalog label {
    color: var(--muted);
}
.home-catalog input,
.home-catalog select {
    background: var(--base);
    color: var(--text);
    border-color: var(--line);
}
.home-catalog .station-tile .station-name a,
.home-catalog .empty a {
    color: var(--text);
}
.recommendations {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    padding: clamp(0.9rem, 3.5vw, 2.5rem);
}
.recommendations .station-tiles {
    padding-inline: 0;
}

.menu-toggle {
    display: none;
}
.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 700px;
    margin-top: 1.5rem;
}
.contact-form label {
    display: grid;
    gap: 0.35rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--base);
    color: var(--text);
    padding: 0.75rem;
}
.contact-form button {
    justify-self: start;
}
.contact-form .contact-trap {
    display: none;
}
.contact-status {
    padding: 1rem;
    border: 1px solid var(--mint);
    border-radius: 10px;
}
@media (max-width: 760px) {
    .top-inner {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: transparent;
        color: var(--text);
        padding: 10px;
    }
    .menu-toggle span {
        display: block;
        height: 2px;
        width: 22px;
        background: currentColor;
        transition:
            transform 0.2s,
            opacity 0.2s;
    }
    .menu-toggle[aria-expanded='true'] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle[aria-expanded='true'] span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded='true'] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }
    .top .top-inner #main-menu {
        display: none;
        flex: 0 0 100%;
        padding: 0 0 1rem;
        align-items: stretch;
        gap: 0;
    }
    .top .top-inner #main-menu.is-open {
        display: flex;
        flex-direction: column;
    }
    .top .top-inner #main-menu > a {
        display: block;
        font-size: 1rem;
        padding: 0.75rem 0;
    }
    .menu-toggle:focus-visible {
        outline: 2px solid var(--mint);
        outline-offset: 3px;
    }
}

.contact-message-body {
    white-space: normal;
    overflow-wrap: anywhere;
}
.contact-message dd {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}
.contact-messages .row {
    gap: 1rem;
}

/* Website links stay white; light pagination uses black for contrast. */
a:any-link {
    color: #fff !important;
}

.number-pages a:any-link {
    color: #000 !important;
}

/* Station page: shared frame for the title, player and description. */
.station-profile { display: block; padding: 0; overflow: hidden; }
.station-profile-heading { padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 0; }
.station-profile h1 { margin: 0; overflow-wrap: anywhere; }
.station-profile-main { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem; }
.station-profile img.station-profile-logo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; background: transparent; }
.station-profile-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; min-width: 0; }
.station-profile-meta { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.station-profile .station-favorite { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; color: var(--text); background: #233644; font-size: 2rem; }
.station-profile .station-favorite[aria-pressed=true] { color: #ffcf57; }
.station-profile .station-rank { margin: .15rem 0 0; flex-wrap: nowrap; gap: .45rem; }
.station-profile .station-profile-description { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: clamp(1rem, 3vw, 2rem); background: transparent; }
@media(max-width:580px) {
    .station-profile-main { grid-template-columns: min(150px, calc(100% - 136px)) minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .station-profile-controls { gap: .85rem; }
    .station-profile-meta { font-size: .95rem; }
    .station-profile .station-rank { font-size: .75rem; }
}





.station-tile .tile-actions .play { display: none; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    .station-tile .tile-actions .play {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease;
    }
    .station-tile:hover .tile-actions .play,
    .station-tile:focus-within .tile-actions .play {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Compact persistent radio controls. */
.player-info { min-width: 0; }
.player-toggle { width: 44px; padding: 0; }
.player .player-toggle-icon { display: grid; place-items: center; overflow: visible; color: inherit; }
.player-toggle.is-loading .player-toggle-icon { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: radio-loading .8s linear infinite; }
.player-toggle.is-loading svg { visibility: hidden; }
.player #player-mute, .player #player-close { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.player #player-close { line-height: 1; }
.player #player-close svg { display: block; flex: none; }
.player #player-mute:hover, .player #player-close:hover { background: #233e47; }
.player button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
#player-status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: var(--mint); vertical-align: middle; }
.player[data-paused=true] #player-status::before { background: var(--muted); }
.player[data-error=true] #player-status::before { background: var(--coral); }
@media(max-width:620px) {
    .player-inner { grid-template-columns: 36px 42px minmax(0,1fr) 30px 30px; gap: .35rem .6rem; }
    .player img { width: 36px; height: 36px; }
    .player-toggle { width: 42px; }
    .player #player-mute { grid-column: 4; grid-row: 1; width: 30px; }
    .player #player-close { grid-column: 5; grid-row: 1; width: 30px; }
    .player-info strong { font-size: .95rem; }
    body { padding-bottom: 96px; }
}

.player-info { display: flex; align-items: center; gap: .65rem; }
.player-copy { min-width: 0; flex: 0 1 auto; }
.player #player-heart { display: grid; place-items: center; flex: none; width: 34px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }
.player #player-heart[aria-pressed=true] { color: var(--mint); }
.player #player-heart:hover { background: #233e47; }

/* Header search expands below the main navigation. */
.top { position: relative; z-index: 3; }
.top-inner #main-menu { margin-inline-start: auto; }
.header-search-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; height: 44px; padding: 0 .65rem; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.header-search-toggle:hover, .header-search-toggle[aria-expanded=true] { background: #203740; color: var(--mint); }
.header-search-toggle .search-close-icon { display: none; }
.header-search-toggle[aria-expanded=true] .search-open-icon { display: none; }
.header-search-toggle[aria-expanded=true] .search-close-icon { display: block; }
.site-search { border-top: 1px solid var(--line); padding: .9rem 0; animation: search-reveal .16s ease-out; }
.search-shell { position: relative; }
#header-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: .8rem; }
#header-search-input { width: 100%; min-width: 0; height: 52px; padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 1rem; }
#header-search-input:focus { outline: 2px solid var(--mint); outline-offset: 0; }
.search-submit { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--mint); color: var(--ink); cursor: pointer; }
.search-dropdown { position: absolute; z-index: 5; top: calc(100% + .5rem); left: 0; right: 0; max-height: min(65vh, 460px); overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 12px 32px #0005; }
#header-search-results { list-style: none; padding: .4rem; margin: 0; }
#header-search-results a { display: flex; align-items: center; gap: .85rem; padding: .6rem .75rem; border-radius: 9px; text-decoration: none; }
#header-search-results a:hover, #header-search-results [aria-selected=true] { background: #24404a; }
#header-search-results img { width: 42px; height: 42px; border-radius: 9px; object-fit: contain; flex: none; }
#header-search-results span { overflow-wrap: anywhere; }
.search-all { display: block; padding: .9rem 1.15rem; border-top: 1px solid var(--line); font-size: .9rem; }
.search-empty { padding: 1rem; color: var(--muted); }
.station-save span[aria-hidden] { color: currentColor; font-size: 1.1rem; line-height: 1; }
.station-save[aria-pressed=true] { border-color: var(--mint); }
@keyframes search-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:760px) {
    .header-search-toggle { order: 1; margin-inline-start: auto; padding: 0; }
    .header-search-toggle span { display: none; }
    .top-inner .menu-toggle { order: 2; }
    .top-inner #main-menu { order: 3; margin-inline-start: 0; }
}
@media(prefers-reduced-motion:reduce) { .site-search { animation: none; } }

/* Advertising code is rendered in the page, without an empty iframe. */
div.site-fragment {
    min-height: 0;
    max-height: none;
    overflow: visible;
    clip-path: none;
    margin-block: 0;
    padding: 0;
    background: transparent;
}
div.site-fragment[data-ad-filled=true] {
    overflow: hidden;
    clip-path: inset(0 round 14px);
    margin-block: 1rem;
    padding-block: 12px;
    background: #fff;
}

/* Station reviews: published only after moderation. */
.station-comments { margin-top: 1.5rem; }
.station-comment-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.station-comment { padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: 12px; background: #102029; }
.station-comment-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.station-comment-heading strong { font-size: 1rem; font-weight: 600; }
.station-comment time { color: var(--muted); font-size: .8rem; }
.comment-stars { flex-basis: 100%; color: var(--mint); font-size: 1.4rem; letter-spacing: 2px; }
.station-comment p { margin: .6rem 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.station-comment-form { display: grid; gap: 1rem; max-width: 760px; }
.station-comment-form > label { display: grid; gap: .4rem; }
.station-comment-form input:not([type=radio]), .station-comment-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--base); color: var(--text); }
.station-comment-form textarea { resize: vertical; }
.station-comment-form [aria-invalid=true] { border-color: var(--coral); }
.station-comment-form .comment-trap { display: none; }
.comment-rating { margin: 0; padding: 0; border: 0; }
.comment-rating legend { padding: 0; margin-bottom: .3rem; font-size: .9rem; color: var(--muted); }
.comment-rating-stars { display: inline-flex; gap: 5px; }
.comment-rating-stars label { position: relative; width: 36px; height: 40px; cursor: pointer; }
.comment-rating-stars input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.comment-rating-stars span { display: block; color: #68818d; font-size: 2rem; line-height: 40px; }
.comment-rating-stars label:has(input:checked) span, .comment-rating-stars label:has(~label input:checked) span { color: var(--mint); }
.comment-rating-stars:has(label:hover) label span { color: #68818d; }
.comment-rating-stars:has(label:hover) label:hover span, .comment-rating-stars:has(label:hover) label:has(~label:hover) span { color: var(--mint); }
.comment-rating-stars label:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.comment-status { white-space: pre-line; margin: 0; }
.comment-status:empty { display: none; }
.comment-status[data-state=success] { color: var(--mint); }
.comment-status[data-state=error] { color: var(--coral); }
.station-comment-form > button { justify-self: start; }
.station-comment-form > button:disabled { opacity: .6; cursor: wait; }

.home-countries { margin-top: 36px; }
.home-country-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-country-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    height: 100%;
    padding: 16px 8px;
    border: 1px solid #2a3e48;
    border-radius: 14px;
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.home-country-grid a:hover,
.home-country-grid a:focus-visible { border-color: #75f1ce; }
.home-country-grid .country-flag { width: 64px; height: 44px; border-radius: 4px; }
.home-country-grid span { overflow-wrap: anywhere; }
@media (max-width: 900px) { .home-country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 580px) {
    .home-country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .home-country-grid a { min-height: 108px; padding: 12px 4px; font-size: 13px; }
    .home-country-grid .country-flag { width: 54px; height: 38px; }
}

/* Shared icon links in the main navigation. */
.top .top-inner #main-menu > a,
.top .header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 38px;
    min-height: 38px;
    padding: 0 .75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
.top #main-menu .menu-icon { flex: none; width: 18px; height: 18px; }
.top .top-inner #main-menu > a:hover,
.top .top-inner #main-menu > a[aria-current='page'],
.top .header-search-toggle:hover,
.top .header-search-toggle[aria-expanded='true'] { border-color: var(--mint); color: #fff; }
@media (max-width: 760px) {
    .top .top-inner #main-menu > a { justify-content: flex-start; min-height: 44px; height: auto; padding: .65rem .85rem; }
    .top .header-search-toggle { width: 44px; height: 44px; padding: 0; }
}

.top .header-search-toggle svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 761px) and (max-width: 1000px) {
    .top .top-inner, .top .top-inner #main-menu { gap: .5rem; }
    .top .top-inner #main-menu > a { padding-inline: .55rem; }
    .top .header-search-toggle { width: 38px; padding: 0; }
    .top .header-search-toggle span { display: none; }
}
@media (max-width: 760px) { .top .top-inner #main-menu.is-open { gap: .5rem; } }

.station-profile-actions { display: flex; align-items: center; gap: .75rem; max-width: 100%; }
.station-profile-actions > .play,
.station-profile-actions > .station-save { flex: none; white-space: nowrap; }
@media (max-width: 580px) {
    .station-profile-controls { display: contents; }
    .station-profile .station-logo-like { grid-column: 1; grid-row: 1 / 4; align-self: start; }
    .station-profile-meta { grid-column: 2; grid-row: 1; }
    .station-profile-actions { grid-column: 2; grid-row: 2; flex-direction: column; align-items: flex-start; gap: .6rem; }
    .station-profile-controls > .station-rank { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 380px) {
    .station-profile-main { grid-template-columns: min(150px, calc(100% - 152px)) minmax(0, 1fr); }
    .station-profile-actions { gap: .5rem; }
    .station-profile-actions > .play,
    .station-profile-actions > .station-save { padding-inline: .7rem; font-size: .82rem; }
}

.station-profile .station-logo-like { display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 14px; background: transparent; cursor: pointer; line-height: 0; touch-action: manipulation; }
.station-logo-like:active { transform: scale(.98); }
.station-rating-stats { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; }
.station-likes { display: inline-flex; align-items: center; gap: .4rem; margin: .15rem 0 0; color: var(--mint); font-size: .9rem; white-space: nowrap; }
.station-likes strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.tap-heart { position: fixed; z-index: 10000; pointer-events: none; color: #ff718b; line-height: 0; --heart-rise: -140px; animation: station-heart-rise .95s ease-out both; }
.tap-heart:nth-of-type(even) { color: #75f1ce; }
.tap-heart svg { display: block; overflow: visible; }
@keyframes station-heart-rise {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.45) rotate(0deg); }
    15% { opacity: 1; }
    70% { opacity: .95; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--heart-drift)), var(--heart-rise)) scale(1.25) rotate(var(--heart-rotation)); }
}
@media (max-width: 580px) { .station-profile-controls > .station-rating-stats { grid-column: 2; grid-row: 3; flex-direction: column; align-items: flex-start; gap: .7rem; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-heart { --heart-rise: -18px; animation-duration: .25s; } }

.station-now-playing { margin: 0; max-width: 100%; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.station-now-playing strong { font-weight: 500; }
.station-now-playing [data-now-playing-title] { color: var(--mint); }
@media (max-width: 580px) { .station-profile-controls > .station-now-playing { grid-column: 1 / -1; grid-row: 4; } }

[data-play].is-error {
    color: #ff5c64;
    border-color: #ff5c64;
}

.station-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.station-like-hint { display: inline; color: var(--muted); font-size: .8rem; font-weight: 400; white-space: normal; }
@media (max-width: 580px) {
    .station-profile-controls > .station-rating-stats { display: contents; }
    .station-rating-stats > .station-rank { grid-column: 2; grid-row: 3; }
    .station-rating-stats > .station-likes { grid-column: 1 / -1; grid-row: 4; justify-self: start; display: flex; flex-wrap: wrap; max-width: 100%; white-space: normal; }
    .station-likes > svg, .station-likes > strong { flex: none; }
    .station-likes > .station-like-hint { display: inline; flex: 1 1 200px; color: var(--muted); font-size: .8rem; }
    .station-profile-controls > .station-now-playing { grid-row: 5; }
}

/* Administration: countries, broadcast types and ZIP imports. */
.top-inner:has(.admin-nav) { flex-wrap: wrap; padding-block: .75rem; }
.top-inner:has(.admin-nav) nav { flex-wrap: wrap; justify-content: flex-end; }
.admin .section-head { flex-wrap: wrap; gap: 1rem; }
.admin .row { flex-wrap: wrap; gap: .75rem; }
.admin .row form { margin: 0; }
.import-job progress { width: 100%; height: 1.1rem; accent-color: var(--mint); }
.import-counts { line-height: 1.8; }
.import-format { margin-block: 1.5rem; }
.import-format pre { padding: 1rem; background: var(--base); border-radius: 10px; overflow-x: auto; }
.import-details { max-height: 22rem; overflow: auto; }
.import-details li { overflow-wrap: anywhere; }
@media(max-width:760px) { .top-inner:has(.admin-nav) nav { flex-basis: 100%; justify-content: flex-start; } }
