/* MISH — Mousa International Software House. Mobile-first stylesheet. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

/* Light theme */
:root {
  --bg: #f7f5fb; --surface: #ffffff; --surface-2: #f0ecf7; --text: #16121f; --muted: #5f5873;
  --border: #e4dff0; --brand: #e0306f; --brand-2: #ff7a59; --accent: #ffb13f; --accent-text: #2a1600;
  --ok: #0f8a5f; --warn: #a35d00; --err: #c62f3d; --focus: #ff7a59;
  --grad: linear-gradient(135deg, #ff3d86 0%, #ff6f5b 55%, #ffb13f 100%);
  --shadow: 0 1px 2px rgba(22, 18, 31, .06), 0 8px 24px rgba(22, 18, 31, .07);
  --radius: 16px; --radius-sm: 10px; --player-h: 76px;
  color-scheme: light;
}
/* Dark theme (default for most music listeners) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0b16; --surface: #17131f; --surface-2: #211b2e; --text: #f4f0ff; --muted: #a59dc0;
    --border: #2b2440; --brand: #ff5c96; --ok: #3ad29a; --warn: #ffb547; --err: #ff6b78;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0b16; --surface: #17131f; --surface-2: #211b2e; --text: #f4f0ff; --muted: #a59dc0;
  --border: #2b2440; --brand: #ff5c96; --ok: #3ad29a; --warn: #ffb547; --err: #ff6b78;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); font-weight: 800; }
h3, .h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
main:focus { outline: none; }
body { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); }
body.admin { padding-bottom: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }
.break { word-break: break-all; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 inherit; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #2a0a17; box-shadow: 0 6px 18px rgba(255, 61, 134, .3); }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge-free { background: rgba(15, 138, 95, .14); color: var(--ok); }
.badge-donation { background: rgba(91, 77, 255, .14); color: var(--brand); }
.badge-paid { background: rgba(255, 176, 32, .2); color: var(--warn); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover { border-color: var(--brand); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: .7rem; color: var(--muted); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 4px; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.menu.open { display: flex; }
.menu a:not(.btn) { padding: 12px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--brand); background: var(--surface-2); }
.menu .btn { margin-top: 8px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; margin-top: 6px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; background: none; border: 0; box-shadow: none; gap: 2px; }
  .menu a:not(.btn) { padding: 8px 12px; font-size: .93rem; }
  .menu a[aria-current="page"] { background: none; }
  .menu .btn { margin: 0 0 0 8px; }
  .theme-toggle { margin: 0 0 0 6px; }
}

/* ---------- layout pieces ---------- */
.page { padding-top: 24px; padding-bottom: 56px; }
.narrow { max-width: 820px; }
.page-head { margin: 8px 0 24px; }
.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-title { margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.three { grid-template-columns: 1fr; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); } }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--border); background: var(--surface); }
.flash-success { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.flash-warning { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.flash-error { border-color: color-mix(in srgb, var(--err) 50%, transparent); background: color-mix(in srgb, var(--err) 10%, var(--surface)); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 32px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 560px; background: radial-gradient(closest-side, rgba(255, 61, 134, .22), transparent), radial-gradient(closest-side at 80% 40%, rgba(255, 177, 63, .18), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem); }
.hero-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 560px; margin: 8px 0 16px; }
.hero-search input[type="search"] { flex: 1; min-width: 0; min-height: 40px; border: 0 !important; background: transparent !important; padding: 8px 4px !important; font: inherit; color: var(--text); outline: none !important; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-page .hero-search { margin: 20px auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; display: grid; justify-items: center; gap: 18px; }
.hero-art img { position: relative; width: 160px; filter: drop-shadow(0 20px 40px rgba(255, 61, 134, .35)); }
.orb { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--grad); opacity: .16; filter: blur(30px); top: -10px; }
.hero-facts { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; max-width: 360px; }
.hero-facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: var(--muted); }
.hero-facts strong { color: var(--text); }
@media (min-width: 900px) { .hero { padding: 72px 0 48px; } .hero-grid { grid-template-columns: 1.3fr 1fr; } .hero-art img { width: 220px; } }

/* ---------- software cards ---------- */
.sw-card { position: relative; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, border-color .15s; }
.sw-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.sw-card-top { display: flex; gap: 14px; align-items: center; }
.sw-card h3 { margin: 0; font-size: 1.08rem; }
.sw-card h3 a { color: var(--text); text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.sw-card-head p { margin: 2px 0 0; }
.sw-card-desc { color: var(--muted); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sw-card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw-card-foot .os { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cta { margin-left: auto; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); }
.app-icon-fallback { display: inline-grid; place-items: center; background: var(--grad); color: #2a0a17; font-weight: 800; font-size: 1.4rem; }
.cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface)); }
@media (min-width: 760px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.cats { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat-card { color: var(--text); text-decoration: none; }
.cat-card:hover { border-color: var(--brand); }
.related-cats { margin-top: 32px; }

/* ---------- filters & forms ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; } }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.filters label { margin-top: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
input[type="file"] { font: inherit; max-width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 50%, transparent); border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .88rem; margin: 6px 0 0; }
.req { color: var(--err); }
.form .btn { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; }
.rating-field legend { font-weight: 600; font-size: .92rem; margin: 10px 0 4px; padding: 0; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { margin: 0; font-size: 2rem; line-height: 1; color: var(--border); cursor: pointer; padding: 2px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent); }
.rating-input input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 6px; }

/* ---------- detail page ---------- */
.detail-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .detail-side { position: sticky; top: 88px; } }
.detail-main > * + * { margin-top: 20px; }
.detail-side > * + * { margin-top: 16px; }
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .app-icon { width: 88px; height: 88px; border-radius: 20px; }
.detail-head h1 { margin-bottom: 4px; }
.badges { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 18px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.checksum, .copy-row { display: grid; gap: 6px; margin: 12px 0; }
.checksum code, .copy-row code, .copy-row pre { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); word-break: break-all; white-space: pre-wrap; margin: 0; font-size: .9rem; }
.copy-row { grid-template-columns: 1fr auto; align-items: center; }
.copy-row > span { grid-column: 1 / -1; }
.copy-row.block { grid-template-columns: 1fr; }
.copy-row.block .btn { justify-self: start; }
.shot-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shot { flex: 0 0 auto; width: min(85%, 520px); scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose > :last-child { margin-bottom: 0; }
.related ul { margin: 0; padding-left: 1.1em; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .off { color: var(--border); }
.review header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.review + .review, .review-form { margin-top: 14px; }
.review-body { white-space: pre-line; margin-bottom: 6px; }
.report summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.report form { display: grid; gap: 8px; margin-top: 8px; }
.report label { margin: 0; font-weight: 400; font-size: .85rem; }
.reviews-block { margin-top: 28px; }

/* ---------- donate ---------- */
.notice { border-left: 4px solid var(--accent); margin-bottom: 8px; }
.donate-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .donate-grid { grid-template-columns: 1fr 1fr; } }
.donate-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.pay-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.pay-dot.jc { background: #d71920; } .pay-dot.np { background: #ff6b00; } .pay-dot.wise { background: #9fe870; }
.qr { display: block; margin: 8px auto 12px; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; cursor: zoom-in; }
.qr img { display: block; width: 220px; height: 220px; object-fit: contain; }
.intl .btn { margin: 4px 0 8px; }
.about-head { display: flex; gap: 18px; align-items: center; }
.about-points { margin: 20px 0; }
.error-code { font-size: 5rem; font-weight: 800; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5, 8, 20, .88); padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer nav a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-size: .93rem; }
.site-footer nav a:hover { color: var(--brand); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ================= admin ================= */
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 240px 1fr; } }
.admin-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px; }
@media (min-width: 960px) { .admin-nav { border-bottom: 0; border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-nav .brand { margin-bottom: 12px; }
.admin-links { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 960px) { .admin-links { flex-direction: column; } }
.admin-links a { white-space: nowrap; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.admin-links a[aria-current="page"], .admin-links a:hover { background: var(--surface-2); color: var(--brand); }
.admin-main { padding: 20px 16px 60px; min-width: 0; }
@media (min-width: 960px) { .admin-main { padding: 28px 36px 60px; } }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); }
.status-published, .status-approved { color: var(--ok); }
.status-draft, .status-pending { color: var(--warn); }
.status-archived, .status-rejected, .status-unpublished { color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; }
.tabs a[aria-current="page"] { background: var(--grad); color: #2a0a17; border-color: transparent; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .form-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.form-grid .card + .card { margin-top: 20px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 12px 0; }
.check input { width: 20px; height: 20px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.checks .check { margin: 4px 0; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: inline; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { margin: 0; width: 150px; }
.thumbs img { border-radius: 8px; border: 1px solid var(--border); display: block; }
.warn-list { border-left: 4px solid var(--warn); }
.warn-list ul { margin: 0; padding-left: 1.2em; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.bars span { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.help { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 50%, var(--border)); }
.login-box { max-width: 420px; margin: 10vh auto; }
.ready { color: var(--ok); font-weight: 600; } .notready { color: var(--warn); font-weight: 600; }
.mt { margin-top: 24px; } .mt0 { margin-top: 0; }
.chart { width: 100%; height: auto; color: var(--text); }
.page > .card + .card, .page > section.card + section.card { margin-top: 20px; }
a.stat { color: var(--text); text-decoration: none; } a.stat:hover { border-color: var(--brand); }
.mobile-only { display: none; }
@media (max-width: 959px) { .mobile-only { display: inline-flex; } .file-info-link { display: block; margin-top: 10px; } }

/* ================= Sur Music additions ================= */
.btn-primary { color: #2a0a17; }
.linklike { background: none; border: 0; padding: 12px 10px; color: var(--text); font: 600 .93rem inherit; font-family: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--brand); }
.inline { display: inline; }
.nav-search input[type="search"] { min-height: 38px; padding: 6px 14px; border-radius: 999px; font-size: .9rem; width: 100%; }
@media (min-width: 1200px) {
  .nav-search { margin-left: 4px; } .nav-search input[type="search"] { width: 150px; }
  .menu a:not(.btn), .menu .linklike { padding: 8px 9px; font-size: .9rem; white-space: nowrap; }
  .menu .btn { margin-left: 4px; white-space: nowrap; }
}
@media (max-width: 1199px) { .nav-search { margin: 6px 0; } .menu .linklike { text-align: left; width: 100%; } }
.nav-user { white-space: nowrap; }
.two-col { grid-template-columns: 1fr; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero-art .eq-big { position: relative; display: flex; gap: 6px; align-items: flex-end; height: 48px; }
.eq-big i { width: 8px; border-radius: 4px; background: var(--grad); animation: eqb 1.1s ease-in-out infinite; }
.eq-big i:nth-child(2n) { animation-delay: .2s; } .eq-big i:nth-child(3n) { animation-delay: .45s; } .eq-big i:nth-child(5n) { animation-delay: .7s; }
@keyframes eqb { 0%, 100% { height: 10px; } 50% { height: 48px; } }

/* category tabs */
.cat-tabs { display: flex; gap: 8px; margin: 4px 0 18px; overflow-x: auto; }
.cat-tabs a { flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; text-decoration: none; }
.cat-tabs a.active { background: var(--grad); color: #2a0a17; border-color: transparent; }

/* station list */
.stations { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .page-home .stations { grid-template-columns: 1fr 1fr 1fr; } }
.with-side .stations { grid-template-columns: 1fr; }
@media (min-width: 760px) { .with-side .stations { grid-template-columns: 1fr 1fr; } }
.stations.compact { grid-template-columns: 1fr; }
.st { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, transform .15s; }
.st:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.st.playing { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.st-sponsored { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); }
.st-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.st-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-meta { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-fav { flex: none; width: 44px; height: 44px; margin-right: 6px; border: 0; background: none; color: var(--border); font-size: 1.35rem; cursor: pointer; border-radius: 10px; }
.st-fav:hover, .st-fav.on { color: var(--accent); }
.st-eq { display: none; gap: 2px; align-items: flex-end; height: 14px; margin-right: 4px; }
.st.playing .st-eq { display: inline-flex; }
.st-eq i, .pl-status .eq i { width: 3px; height: 10px; background: var(--brand); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.st-eq i:nth-child(2) { animation-delay: .2s; } .st-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.st-ad { list-style: none; grid-column: 1 / -1; }
.badge-sponsored { background: var(--accent); color: var(--accent-text); font-size: .65rem; padding: 1px 6px; letter-spacing: .03em; }

.thumb { position: relative; width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 800; }
.thumb::before { content: attr(data-letter); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.thumb.c0 { background: linear-gradient(135deg, #ff3d86, #a2245e); } .thumb.c1 { background: linear-gradient(135deg, #7b5cff, #3b2a8c); }
.thumb.c2 { background: linear-gradient(135deg, #ff8a5c, #b0402a); } .thumb.c3 { background: linear-gradient(135deg, #2ec4b6, #146b63); }
.thumb.c4 { background: linear-gradient(135deg, #ffb547, #b06a12); } .thumb.c5 { background: linear-gradient(135deg, #4d8dff, #1f4aa0); }
.thumb.c6 { background: linear-gradient(135deg, #d14bff, #6d1f8f); }

/* side layout */
.with-side { display: grid; gap: 20px; }
@media (min-width: 1100px) { .with-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .with-side .side { position: sticky; top: 88px; } }
.side > * + * { margin-top: 16px; }

/* genre cards */
.genre { color: var(--text); text-decoration: none; position: relative; overflow: hidden; min-height: 150px; }
.genre h2 { margin-bottom: 6px; }
.genre span { font-weight: 700; color: var(--brand); }
.genre::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .25; }
.g-bolly::after { background: #ff3d86; } .g-lolly::after { background: #2ec4b6; } .g-holly::after { background: #7b5cff; }
.genre:hover { border-color: var(--brand); }
.popular-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .popular-list { grid-template-columns: 1fr 1fr; } }
.popular-list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pop-rank { font-weight: 800; color: var(--brand); min-width: 1.4em; }
.pop-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-text { color: var(--muted); }

/* player bar */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px) saturate(150%); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.player-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: var(--player-h); }
@media (min-width: 760px) { .player-inner { grid-template-columns: minmax(0, 1fr) auto 160px; } }
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-thumb { width: 48px; height: 48px; background: var(--grad); color: #2a0a17; }
.pl-thumb::before { content: none; }
.pl-text { min-width: 0; }
.pl-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-status { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; min-height: 1.2em; }
.player[data-state="playing"] .pl-status { color: var(--ok); }
.player[data-state="error"] .pl-status { color: var(--err); }
.pl-status .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; }
.pl-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.pl-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pl-main { width: 52px; height: 52px; background: var(--grad); color: #2a0a17; box-shadow: 0 6px 18px rgba(255, 61, 134, .35); }
.pl-main .i-pause { display: none; }
.player[data-state="playing"] .pl-main .i-play, .player[data-state="loading"] .pl-main .i-play { display: none; }
.player[data-state="playing"] .pl-main .i-pause, .player[data-state="loading"] .pl-main .i-pause { display: block; }
.pl-fav { font-size: 1.1rem; color: var(--muted); }
.pl-fav.on { color: var(--accent); }
.pl-vol { display: none; }
@media (min-width: 760px) { .pl-vol { display: block; } }
.pl-vol input { width: 100%; accent-color: var(--brand); }
@media (max-width: 479px) { #pl-prev, .pl-fav { display: none; } }
.player[data-state="loading"] .pl-main { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); } }

/* ads */
.ad { margin: 18px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wrap > .ad, main > .ad { padding: 0 16px; }

/* auth */
.auth-wrap { display: grid; place-items: center; padding: 32px 16px 56px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { margin-bottom: 14px; }
.auth-card h1 { margin-top: 6px; }
.pw-field { position: relative; }
.pw-field input { padding-right: 70px !important; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--text); border-radius: 8px; padding: 6px 10px; font: 600 .8rem inherit; font-family: inherit; cursor: pointer; }
.check a { font-weight: 600; }

/* account / misc */
.stat-grid.two { grid-template-columns: 1fr 1fr; }
.page > .card + .card, .page > form.card + form.card, .page > .card + form.card, .page > form.card + .card { margin-top: 20px; }
.page > section.card { margin-top: 20px; }
.made-by { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin: 12px 0; }
.made-by img { border-radius: 8px; }
.made-by-card { display: flex; gap: 16px; align-items: center; margin-top: 20px; }
.made-by-card img { border-radius: 14px; }
.app-card .app-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.app-card h2 { margin: 0; }
.app-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); }
.app-card .btn { margin: 8px 0; }
.chart { width: 100%; height: auto; color: var(--text); }
.mt { margin-top: 24px; } .mt0 { margin-top: 0; }
a.stat { color: var(--text); text-decoration: none; } a.stat:hover { border-color: var(--brand); }
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: calc(var(--player-h) + 12px + env(safe-area-inset-bottom)); z-index: 70; max-width: 560px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); font-size: .88rem; }
.cookie-note p { margin: 0; }
.cookie-note[hidden] { display: none; }
body.admin .cookie-note { bottom: 12px; }
table td input { min-height: 38px !important; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 12px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }
body.admin .cookie-note { display: none; }
.brand-text strong { white-space: nowrap; }
@media (max-width: 899px) { .page-home .hero-art { display: none; } .page-home .hero { padding-bottom: 8px; } }

/* ================= sign-in gate ================= */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 14, .72); backdrop-filter: blur(6px); }
.gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 400px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.gate-card img { border-radius: 16px; }
.gate-card h2 { margin: 4px 0 0; }
.gate-card p { margin: 0 0 6px; }
.gate-card .btn { width: 100%; }

/* ================= admin analytics ================= */
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 599px) { .stat-grid.three { grid-template-columns: 1fr 1fr; } }
.live-stat strong { color: var(--err); }
.nowrap { white-space: nowrap; }
table.events td, table.events th { padding: 8px 10px; }
.ev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.ev-k-signup { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ev-k-login { background: color-mix(in srgb, #4d8dff 18%, transparent); color: #4d8dff; }
.ev-k-login_failed, .ev-k-account_deleted { background: color-mix(in srgb, var(--err) 16%, transparent); color: var(--err); }
.ev-k-play, .ev-k-listened { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.ev-k-download, .ev-k-favorite { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--warn); }
.bars-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bars-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: .9rem; }
.bl-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bl-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .4s; }
.bl-num { font-weight: 700; min-width: 2.5em; text-align: right; }
.flag { font-size: 1.05em; }
.legend { display: inline-flex; gap: 8px; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-v, .bar-v { background: #7b5cff; fill: #7b5cff; }
.lg-p, .bar-p { background: #ff3d86; fill: #ff3d86; }
.lg-s, .dot-s { background: #2ec4b6; fill: #2ec4b6; }
.signins { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.signins li + li { margin-top: 4px; }
details.warn-list summary { cursor: pointer; }
details.warn-list ul { margin-top: 10px; }

/* ================= phones: admin panel + bigger tap targets ================= */
.admin-shell { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 240px minmax(0, 1fr); } }
.admin-nav, .admin-main { min-width: 0; }
@media (max-width: 959px) {
  .admin-nav { position: sticky; top: 0; z-index: 20; padding: 10px 12px 8px; }
  .admin-nav .brand { margin-bottom: 8px; }
  .admin-links { scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
                 mask-image: linear-gradient(90deg, #000 85%, transparent); padding-bottom: 2px; }
  .admin-links::-webkit-scrollbar { display: none; }
  .admin-links a { scroll-snap-align: start; min-height: 40px; display: inline-flex; align-items: center; background: var(--surface-2); }
  .admin-links a[aria-current="page"] { background: var(--brand); color: #fff; }
  .admin-top h1 { font-size: 1.35rem; }
  .admin-main table { font-size: .88rem; }
}
.crumbs a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
.section-head a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
.pw-show { min-height: 36px; min-width: 52px; }
input[type="file"] { min-height: 44px; padding: 8px; }
details > summary { padding-block: 7px; cursor: pointer; }
.donate-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .donate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card, .form input, .form textarea, .form select { min-width: 0; max-width: 100%; }
label.check { min-height: 40px; align-items: center; }
label.check input[type="checkbox"] { flex: none; width: 20px; height: 20px; }

/* ================= phones: menu that fits the screen, smooth light scrolling ================= */
@media (max-width: 1199px) {
  /* the open menu never goes under the player and scrolls on its own when it is long */
  .menu { max-height: calc(100vh - 68px - var(--player-h) - env(safe-area-inset-bottom));
          max-height: calc(100dvh - 68px - var(--player-h) - env(safe-area-inset-bottom));
          overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .nav-search input[type="search"] { font-size: 16px; }          /* iPhone does not zoom in on tap */
}
@media (max-width: 759px) {
  /* blur effects make phones stutter while scrolling: use solid colours instead */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .player { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .gate { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 5, 14, .82); }
  .orb { filter: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: .35; }
  .hero-art img { filter: none; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: 16px; }
}
html, body { max-width: 100%; overflow-x: clip; }
.cat-tabs, .shot-row, .admin-links, .table-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
a, button, summary, label, .st-play { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { :root:not(.menu-open) { scroll-behavior: smooth; } }
html.menu-open .cookie-note { display: none; }
@media (max-width: 759px) { .cookie-note { padding: 10px 12px; gap: 10px; font-size: .82rem; } }
@media (max-width: 1199px) { .menu > * { flex-shrink: 0; } }

/* admin-only "remove station" button inside station rows */
.st-remove { flex: none; margin: 0 6px 0 -2px; }
.st-remove button { width: 40px; height: 40px; border: 1px dashed var(--border); border-radius: 10px; background: none; cursor: pointer; font-size: 1rem; opacity: .7; }
.st-remove button:hover { opacity: 1; border-color: var(--err); }
.notice { border-left: 4px solid var(--brand); margin-bottom: 16px; }
.player[data-state="removed"] .pl-status { color: var(--err); }

/* 2-step sign-in */
.qr { display: inline-block; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--border); margin: 6px 0 10px; }
.qr svg { display: block; width: 220px; height: 220px; }
.recovery { font: 600 1.05rem/1.9 ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 12px 16px; border-radius: 10px; columns: 2; }
.code-input { font: 600 1.4rem ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .25em; text-align: center; max-width: 260px; }
.ok { color: var(--ok, #16a34a); }
.btn.danger { color: var(--err); }

/* desktop header: keep logo, links and search readable on 1200–1500 px screens */
.site-header .brand { flex: none; margin-right: 12px; }
@media (min-width: 1200px) and (max-width: 1499px) {
  .menu { gap: 0; }
  .menu a:not(.btn), .menu .linklike { padding: 8px 7px; font-size: .86rem; }
  .nav-search input[type="search"] { width: 130px; }
  .menu .btn { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1200px) { .nav-search { flex: none; } .menu { flex-wrap: nowrap; white-space: nowrap; } }
@media (min-width: 1200px) { .nav-search { width: 130px; } .nav-search input[type="search"] { width: 100%; } } @media (min-width: 1500px) { .nav-search { width: 180px; } }
@media (min-width: 1200px) and (max-width: 1299px) { .nav-search { width: 112px; } .menu a:not(.btn), .menu .linklike { padding: 8px 6px; } }

/* station pages and "listen by type" chips */
.genre-chips { margin: 10px 0 18px; }
.genre-chips .h3 { font-size: .95rem; margin: 0 0 8px; color: var(--muted); }
.genre-chips .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-chips .chip { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.genre-chips .chip.active { background: var(--grad); color: #2a0a17; border-color: transparent; }
.station-head { display: flex; gap: 20px; align-items: center; margin: 8px 0 18px; }
.station-head h1 { margin: 4px 0; overflow-wrap: anywhere; }
.station-info { min-width: 0; flex: 1; }
.thumb-xl { width: 96px; height: 96px; border-radius: 18px; font-size: 2.2rem; flex: none; }
.station-solo { list-style: none; padding: 0; margin: 12px 0 0; }
.station-solo .st { background: none; border: 0; gap: 8px; }
.station-solo .st-play { display: inline-flex; width: auto; gap: 10px; align-items: center; padding: 12px 22px; border-radius: 999px; }
.station-solo .st-name { font-weight: 700; white-space: normal; }
@media (max-width: 600px) {
  .station-head { flex-direction: column; text-align: center; }
  .station-solo .st { justify-content: center; }
  .thumb-xl { width: 80px; height: 80px; }
}

/* partner (affiliate) offers */
.offers { margin: 16px 0; }
.offers-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.offers-head .h3 { margin: 0; font-size: 1rem; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); padding: 6px; border-radius: 12px; min-height: 48px; }
.offer a:hover { background: var(--surface-2); }
.offer img, .offer-ph { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; display: grid; place-items: center; font-size: 1.8rem; }
.offer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer-text strong { overflow-wrap: anywhere; }
.offer-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.offer-grid img, .offer-grid .offer-ph { width: 120px; height: 120px; }
.tiny { font-size: .78rem; margin: 8px 0 0; }
.with-side .side .offers { margin-top: 0; }
.with-side > * { min-width: 0; }
.station-solo .st-play { background: var(--grad); color: #2a0a17; font-weight: 700; box-shadow: var(--shadow); flex: none; }
.station-solo .st-play .st-name { color: inherit; }
.station-solo .st-fav { color: var(--muted); }
@media (max-width: 600px) {
  .section-head { flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .section-head h2 { flex: 1 1 100%; }
  .section-head a { white-space: normal; }
}

/* long station names/tags must never push a list wider than its column (they end with "…") */
.stations { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .stations, .with-side .stations { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1180px) { .page-home .stations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.with-side .stations, .stations.compact { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .with-side .stations { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stations > li, .st-play, .st-text { min-width: 0; }
.st-text { flex: 1; overflow: hidden; }
