/* World Radios – station page & submit page · © Anow Hosting */
html:has(body.page), body.page { overflow-x: hidden; overflow-x: clip; }
body.page { min-height: 100vh; }
.page-bg {
    /* One fixed, pre-composited layer: scrolling never has to repaint the blur. */
    position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center;
    filter: blur(28px) saturate(140%); opacity: .55; transform: translateZ(0) scale(1.15); will-change: transform;
    pointer-events: none;
}
:root[data-theme=light] .page-bg { opacity: .35; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg) 85%); }

.page-top {
    position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 12px 16px; max-width: 1180px; margin: 0 auto;
}
.page-top nav { display: flex; gap: 8px; align-items: center; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.narrow-page { max-width: 720px; padding-top: 80px; }
.center { text-align: center; }
.crumb { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.card { border-radius: 22px; padding: 22px; }
.card h2, .block h2 { margin: 0 0 12px; font-size: 19px; }
.small-h { font-size: 13px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* hero */
.hero { display: flex; gap: 28px; align-items: center; border-radius: 28px; padding: 28px; }
.hero-disc {
    flex: none; width: 190px; height: 190px; border-radius: 50%; overflow: hidden; background: var(--thumb-bg);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18), 0 20px 50px rgba(0, 0, 0, .35);
}
.hero-disc { position: relative; }
.hero-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-disc .disc-ph { position: absolute; inset: 0; width: 100% !important; height: 100%; display: grid; place-items: center; font-size: 64px; color: var(--on-accent);
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%), var(--accent); }
.eyebrow i { margin-right: 2px; }
.tag i { font-size: 10px; margin-right: 4px; opacity: .6; }
.hero-status i, .facts dt i, .card h2 i, .block h2 i { color: var(--accent); }
.card h2 i, .block h2 i { margin-right: 6px; font-size: .9em; }
.facts dt i { width: 14px; }
.vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.vol input { width: 130px; accent-color: var(--accent); }
.btn-soft i { color: var(--accent); }
.btn-soft.accent i { color: inherit; }
.pill-btn i { color: var(--accent); }
.hero-disc { transform: translateZ(0); }
body.playing .hero-disc img { animation: spin 18s linear infinite; will-change: transform; }
.hero-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--accent); opacity: 0; z-index: 2; pointer-events: none; }
body.playing .hero-disc::after { animation: livePulse 2.4s ease-in-out infinite; }
.hero-info { min-width: 0; flex: 1; }
.hero h1 { margin: 6px 0 10px; font-size: clamp(28px, 5vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { padding: 5px 11px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 12.5px; }
.tag:hover { border-color: var(--accent); }
.hero-player { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-player .play-btn { width: 66px; height: 66px; flex: none; }
.hero-status { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0 0; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--hover); }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.map { height: 280px; border-radius: 16px; overflow: hidden; margin-bottom: 8px; background: var(--hover); z-index: 0; }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .3), 0 4px 12px rgba(0,0,0,.4); }

.block { margin-top: 28px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mini-station { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; color: var(--text); text-decoration: none; transition: transform .2s var(--ease); }
.mini-station:hover { transform: translateY(-2px); }
.mini-logo { position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: var(--thumb-bg); display: grid; place-items: center; color: var(--accent); font-size: 18px; }
.mini-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mini-station .go { margin-left: auto; color: var(--accent); font-size: 22px; opacity: .8; flex: none; }
.mini-station small i { font-size: 11px; }
.mini-station > span:not(.mini-logo) { min-width: 0; display: flex; flex-direction: column; }
.mini-station strong, .mini-station small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-station small { color: var(--muted); }
.keywords p { line-height: 1.7; }
.page-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 30px; }
.page-foot a { color: inherit; }

/* submit form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.field { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--hover); color: var(--text); font: inherit; font-weight: 400; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select option { background: var(--bg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.picker { height: 420px; border-radius: 18px; overflow: hidden; background: var(--hover); position: relative; z-index: 0; }
.picker-tools { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.picker-tools input { flex: 1; min-width: 160px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--hover); color: var(--text); font: inherit; }
.suggest { list-style: none; margin: 0 0 8px; padding: 4px; border-radius: 12px; }
.suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggest li:hover { background: var(--hover); }
.coords { font: 13px ui-monospace, monospace; color: var(--muted); }
.logo-drop { display: flex; gap: 14px; align-items: center; }
.logo-drop img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--thumb-bg); flex: none; }
.logo-drop img:not([src]) { visibility: hidden; }
.logo-ph { position: relative; width: 72px; height: 72px; flex: none; border-radius: 16px; background: var(--thumb-bg); display: grid; place-items: center; color: var(--accent); font-size: 26px; overflow: hidden; }
.logo-ph img { position: absolute; inset: 0; }
.alert { padding: 12px 16px; border-radius: 14px; margin: 12px 0; }
.alert.error { background: rgba(255, 93, 108, .12); border: 1px solid rgba(255, 93, 108, .5); }
.alert.ok { background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .5); }
.hp { position: absolute; left: -9999px; }
button.btn-soft { cursor: pointer; font-family: inherit; }
.btn-soft.big { padding: 14px 24px; font-size: 16px; }

@media (max-width: 820px) {
    .hero { flex-direction: column; text-align: center; padding: 24px 18px; gap: 18px; border-radius: 24px; }
    .hero-disc { width: 150px; height: 150px; }
    .hero-disc .disc-ph { font-size: 52px; }
    .tag-row, .hero-actions { justify-content: center; }
    .hero-player { justify-content: center; gap: 12px; }
    .hero-status { flex-basis: 100%; order: 3; text-align: center; }
    .grid, .form-grid, .row2 { grid-template-columns: 1fr; }
    .pill-btn span { display: none; }
    .pill-btn { width: 42px; padding: 0; justify-content: center; }
    .picker { height: 340px; }
}
@media (max-width: 560px) {
    /* Phones: no live blur behind cards while scrolling (smooth), just solid glass colour. */
    .card.glass, .hero.glass, .mini-station.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(var(--glass-rgb), .88); }
    .page-bg { filter: blur(18px); }
    .wrap { padding: 4px 10px 30px; }
    .facts dd { overflow-wrap: anywhere; word-break: normal; }
    .page-top { padding: 10px; }
    .brand > span:not(.brand-icon) { max-width: 52vw; }
    .crumb { margin: 2px 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero { padding: 20px 14px; }
    .hero h1 { font-size: 30px; }
    .hero-disc { width: 124px; height: 124px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero-actions .btn-soft { justify-content: center; }
    .vol input { width: 110px; }
    .card { padding: 16px; border-radius: 18px; }
    .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .map { height: 220px; }
    .mini-grid { grid-template-columns: 1fr; }
    .block { margin-top: 22px; }
    .card h2, .block h2 { font-size: 17px; }
    .picker-tools { display: grid; grid-template-columns: 1fr 1fr; }
    .picker-tools input { grid-column: 1 / -1; }
    .picker { height: 300px; }
    .logo-drop { flex-wrap: wrap; }
    .logo-drop input { min-width: 0; }
    .btn-soft.big { width: 100%; justify-content: center; }
}

.done-icon { font-size: 54px; color: var(--accent); margin: 0; }
.card h1 i { margin-right: 4px; }
.coords i, .suggest i { color: var(--accent); }
.alert i { margin-right: 4px; }
@media (max-width: 760px) {
    .page-top .brand { font-size: 17px; padding: 6px 14px 6px 7px; }
    .page-top .brand > span:not(.brand-icon) { display: inline; }
}

/* ---------- v3 */
.card h2 .small-btn { margin-inline-start: auto; padding: 6px 10px; font-size: 12.5px; }
.map-card h2 { display: flex; align-items: center; gap: 8px; }
[dir=rtl] .crumb, [dir=rtl] .hero-info { text-align: right; }
.page .play-btn .i-pause { display: none; }
body.page.playing .play-btn .i-pause, body.page.buffering .play-btn .i-pause { display: block; }
body.page.playing .play-btn .i-play, body.page.buffering .play-btn .i-play { display: none; }

/* ---------- 3.1: pages, accounts, ratings, in-app frame */
.page-article h1 { margin: 0 0 14px; }
.page-content { line-height: 1.7; }
.page-content h2, .page-content h3 { margin: 1.4em 0 .4em; }
.page-content a { color: var(--accent); }
.page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.foot-links a { color: var(--text); opacity: .85; text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.auth-card { max-width: 460px; margin: 30px auto; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card h1 i { color: var(--accent); }
.auth-card .btn-soft.big { width: 100%; justify-content: center; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: 14px; }
.auth-links a { color: var(--accent); }
.account-page { max-width: 900px; padding-top: 80px; display: grid; gap: 16px; }
.acc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-head h1 { margin: 0; font-size: 24px; }
.acc-head p { margin: 2px 0 0; }
.acc-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 24px/1 inherit; flex: none; }
.acc-out { margin-inline-start: auto; }
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 19px; }
.card h2 > i { color: var(--accent); }
.acc-list { list-style: none; margin: 0 0 10px; padding: 0; }
.acc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.ok { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.tag.warn { color: #ffb547; border-color: rgba(255, 181, 71, .5); }
.tag.bad { color: #ff8a95; border-color: rgba(255, 93, 108, .5); }
.acc-delete { margin-top: 18px; }
.acc-delete summary { cursor: pointer; color: #ff8a95; }
.btn-soft.danger { color: #ff8a95; border-color: rgba(255, 93, 108, .5); }
.mini-meta { display: flex; flex-direction: column; min-width: 0; }
.mini-meta b, .mini-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta small { color: var(--muted); }
.stars-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars-input { display: inline-flex; gap: 2px; }
.stars-input button { border: 0; background: none; padding: 2px; font-size: 22px; color: var(--muted); cursor: pointer; transition: transform .15s, color .15s; }
.stars-input button.on { color: #ffb547; }
.stars-input button:hover { transform: scale(1.15); }
.stars-avg { color: var(--muted); font-size: 14px; }
.stars-avg b { color: var(--text); }
/* Opened over the globe (in-app frame): no own header, the globe's sheet shows the title and the close button. */
html[data-inframe] .page-top, html[data-inframe] .page-bg { display: none; }
html[data-inframe] .narrow-page, html[data-inframe] .account-page { padding-top: 12px; }
html[data-inframe] body.page { background: transparent; }
/* Long station names never make a page wider than the phone: grid tracks may shrink below their content. */
.account-page { grid-template-columns: minmax(0, 1fr); }
.grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.mini-station, .card, .block, .acc-head > div { min-width: 0; }
.acc-head > div { flex: 1 1 160px; }
.acc-head h1, .acc-head p, .acc-list li > :first-child, .card h1, .hero h1 { overflow-wrap: anywhere; min-width: 0; }
.card h2 { flex-wrap: wrap; }
@media (max-width: 820px) {
    .grid, .form-grid, .row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .mini-grid { grid-template-columns: minmax(0, 1fr); }
    .acc-head { gap: 12px; }
    .acc-head h1 { font-size: 21px; }
    .acc-avatar { width: 48px; height: 48px; font-size: 20px; }
    .acc-out { margin-inline-start: 0; width: 100%; }
    .acc-out .btn-soft { width: 100%; justify-content: center; }
}
/* Star rating: centred on phones, locked after rating */
.stars-note { flex-basis: 100%; font-size: 13.5px; color: var(--accent); }
.stars-row.rated .stars-input button, .rate-box.rated button { cursor: default; }
.stars-row.rated .stars-input button:hover { transform: none; }
@media (max-width: 820px) {
    .stars-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 12px auto 0; text-align: center; }
    .stars-input button { font-size: 28px; padding: 3px 5px; }
    .stars-note { flex-basis: auto; }
}
