/* ASY RADIO · Midnight blue language shared with Home */
:root {
  --radio-bg: #070a0f;
  --radio-panel: #0b1017;
  --radio-panel-soft: #101925;
  --radio-line: #26364b;
  --radio-line-strong: #3b5578;
  --radio-text: #f1f4f9;
  --radio-muted: #9eacbf;
  --radio-accent: #91a9d0;
  --radio-accent-soft: #c2cee1;
  --radio-accent-deep: #1b2d49;
  --radio-green: #62c997;
  --radio-red: #dd7e83;
  --radio-shadow: 0 22px 60px rgba(0, 0, 0, .25);
}

#app:has(.radio-shell) {
  width: 100%;
}

.radio-shell {
  display: grid;
  gap: 18px;
  width: 100%;
  color: var(--radio-text);
  min-width: 0;
}

.radio-shell button,
.radio-shell input,
.radio-shell select,
.radio-floating-player button,
.radio-home-widget button,
.radio-system-insight button {
  font: inherit;
}

.radio-masthead,
.radio-hero,
.radio-country-grid,
.radio-main-grid,
.radio-directory-card,
.radio-library-card,
.radio-integration-note {
  min-width: 0;
}

.radio-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 6px 2px 4px;
}

.radio-masthead h2 {
  margin: 5px 0 4px;
  color: #f5f8fe;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -.04em;
  line-height: 1;
}

.radio-masthead p,
.radio-hero p,
.radio-section-head p,
.radio-integration-note p {
  color: var(--radio-muted);
  line-height: 1.6;
  margin: 0;
}

.radio-eyebrow {
  color: var(--radio-accent-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.radio-masthead-actions,
.radio-hero-actions,
.radio-player-actions,
.radio-integration-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.radio-system-pill,
.radio-directory-source {
  align-items: center;
  background: rgba(16, 25, 37, .82);
  border: 1px solid var(--radio-line);
  border-radius: 999px;
  color: var(--radio-muted);
  display: inline-flex;
  font-size: 11px;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.radio-system-pill i,
.radio-home-dot,
.radio-live-status i,
.radio-floating-art i {
  background: var(--radio-accent);
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.radio-system-pill i {
  box-shadow: 0 0 0 4px rgba(145, 169, 208, .1);
}

.radio-hero {
  align-items: center;
  background: radial-gradient(circle at 90% 12%, rgba(71, 107, 160, .18), transparent 40%), linear-gradient(135deg, #101c2d 0%, #0b111a 56%, #080b10 100%);
  border: 1px solid #30435e;
  border-radius: 20px;
  box-shadow: var(--radio-shadow);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(20px, 3.4vw, 38px);
  position: relative;
}

.radio-hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.radio-hero h3 {
  color: #f2f6fd;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 9px 0 11px;
}

.radio-hero-actions {
  margin-top: 20px;
}

.radio-hero-actions span {
  color: #aab8cc;
  font-size: 11px;
}

.radio-hero-orbit {
  align-items: center;
  border: 1px solid rgba(145, 169, 208, .28);
  border-radius: 50%;
  display: flex;
  height: 190px;
  justify-content: center;
  margin: 0 7%;
  min-width: 190px;
  position: relative;
  width: 190px;
}

.radio-hero-orbit::before,
.radio-hero-orbit::after {
  border: 1px solid rgba(145, 169, 208, .18);
  border-radius: 50%;
  content: '';
  inset: 17px;
  position: absolute;
}

.radio-hero-orbit::after {
  inset: 42px;
}

.radio-hero-orbit i {
  background: var(--radio-accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(145, 169, 208, .45);
  height: 6px;
  position: absolute;
  width: 6px;
}

.radio-hero-orbit i:nth-child(1) { left: 24px; top: 85px; }
.radio-hero-orbit i:nth-child(2) { right: 23px; top: 49px; }
.radio-hero-orbit i:nth-child(3) { bottom: 27px; right: 50px; }

.radio-hero-orbit b {
  color: #eff5ff;
  font-size: 14px;
  letter-spacing: .18em;
  margin-left: .18em;
  position: relative;
  z-index: 1;
}

.radio-country-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.radio-country-card {
  align-items: center;
  background: linear-gradient(145deg, #0e151f, #0a0e14);
  border: 1px solid var(--radio-line);
  border-radius: 15px;
  color: var(--radio-text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  min-height: 100px;
  padding: 13px;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.radio-country-card:hover,
.radio-country-card.is-active {
  background: linear-gradient(145deg, #16243b, #0e1727);
  border-color: var(--radio-accent);
  transform: translateY(-1px);
}

.radio-country-card.is-active {
  box-shadow: inset 0 2px 0 var(--radio-accent);
}

.radio-country-flag {
  align-items: center;
  background: #162337;
  border: 1px solid #314661;
  border-radius: 11px;
  display: flex;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.radio-country-card b,
.radio-country-card small,
.radio-country-card em {
  display: block;
}

.radio-country-card b {
  font-size: 12px;
  line-height: 1.25;
}

.radio-country-card small {
  color: var(--radio-muted);
  font-size: 10px;
  margin-top: 3px;
}

.radio-country-card em {
  color: #8194ae;
  font-size: 10px;
  font-style: normal;
  grid-column: 1 / -1;
  margin-top: -1px;
}

.radio-main-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.radio-player-card,
.radio-intelligence-card,
.radio-directory-card,
.radio-library-card,
.radio-integration-note,
.radio-add-panel-inner {
  background: linear-gradient(155deg, rgba(12, 18, 27, .98), rgba(8, 11, 16, .98));
  border: 1px solid var(--radio-line);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .15);
  min-width: 0;
}

.radio-player-card,
.radio-intelligence-card {
  padding: clamp(17px, 2.2vw, 25px);
}

.radio-player-top,
.radio-section-head,
.radio-chart-head,
.radio-home-widget-head,
.radio-integration-note,
.radio-system-insight {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.radio-player-top h3,
.radio-section-head h3,
.radio-integration-note h3 {
  color: #f1f5fc;
  font-size: 20px;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 5px 0 6px;
}

.radio-player-top p {
  color: var(--radio-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.radio-live-status {
  align-items: center;
  border: 1px solid var(--radio-line);
  border-radius: 999px;
  color: var(--radio-muted);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: .08em;
  padding: 7px 9px;
  white-space: nowrap;
}

.radio-live-status.is-live {
  border-color: rgba(98, 201, 151, .42);
  color: var(--radio-green);
}

.radio-live-status.is-live i {
  background: var(--radio-green);
  box-shadow: 0 0 0 4px rgba(98, 201, 151, .1);
}

.radio-live-status.is-error {
  border-color: rgba(221, 126, 131, .48);
  color: var(--radio-red);
}

.radio-live-status.is-error i {
  background: var(--radio-red);
}

.radio-player-visual {
  align-items: center;
  background: #080d14;
  border: 1px solid #1b2a3d;
  border-radius: 14px;
  display: flex;
  gap: 18px;
  margin: 19px 0 15px;
  min-height: 84px;
  padding: 15px;
}

.radio-wave {
  align-items: center;
  display: flex;
  gap: 3px;
  height: 45px;
  justify-content: center;
  min-width: 94px;
}

.radio-wave i {
  background: #3a506f;
  border-radius: 4px;
  height: 11px;
  transition: height .18s ease, background .18s ease;
  width: 7px;
}

.radio-wave.is-active i {
  animation: radio-wave 1.1s ease-in-out infinite alternate;
  background: var(--radio-accent);
}

.radio-wave.is-active i:nth-child(2) { animation-delay: -.7s; }
.radio-wave.is-active i:nth-child(3) { animation-delay: -.45s; }
.radio-wave.is-active i:nth-child(4) { animation-delay: -.1s; }
.radio-wave.is-active i:nth-child(5) { animation-delay: -.6s; }
.radio-wave.is-active i:nth-child(6) { animation-delay: -.25s; }
.radio-wave.is-active i:nth-child(7) { animation-delay: -.8s; }

@keyframes radio-wave {
  from { height: 10px; }
  to { height: 39px; }
}

.radio-player-copy span,
.radio-player-copy small {
  display: block;
}

.radio-player-copy span {
  color: #dce6f5;
  font-size: 12px;
  line-height: 1.45;
}

.radio-player-copy small {
  color: #8092aa;
  font-size: 10px;
  margin-top: 5px;
}

.radio-player-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-main-control,
.radio-control,
.radio-floating-actions button {
  align-items: center;
  background: #111e31;
  border: 1px solid #3e587d;
  border-radius: 11px;
  color: #eff5ff;
  cursor: pointer;
  display: inline-flex;
  height: 39px;
  justify-content: center;
  width: 39px;
}

.radio-main-control {
  background: linear-gradient(145deg, #2b456b, #192e4e);
  border-color: #6583af;
  font-size: 16px;
}

.radio-control {
  color: #c5d5ec;
  font-size: 14px;
}

.radio-main-control:hover,
.radio-control:hover,
.radio-floating-actions button:hover {
  background: #233b5e;
  border-color: #84a2d0;
}

.radio-volume {
  align-items: center;
  display: flex;
  flex: 1 1 165px;
  gap: 8px;
  margin-left: 3px;
  min-width: 150px;
}

.radio-volume span,
.radio-volume b {
  color: #94a5bd;
  font-size: 10px;
  white-space: nowrap;
}

.radio-volume input {
  accent-color: var(--radio-accent);
  min-width: 60px;
  width: 100%;
}

.radio-player-footer {
  align-items: center;
  border-top: 1px solid #1d2b3e;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
}

.radio-select,
.radio-sleep-select,
.radio-filter-bar select,
.radio-filter-bar input,
.radio-add-form input {
  background: #090f17;
  border: 1px solid #2c3f58;
  border-radius: 9px;
  color: #dfe8f7;
  min-height: 38px;
  outline: 0;
  padding: 8px 10px;
}

.radio-select {
  flex: 1 1 175px;
  min-width: 150px;
}

.radio-sleep-select {
  min-width: 135px;
}

.radio-link-btn,
.radio-secondary-btn,
.radio-system-open,
.radio-load-more,
.radio-close-btn {
  background: transparent;
  border: 1px solid #30445e;
  border-radius: 9px;
  color: var(--radio-accent-soft);
  cursor: pointer;
  font-size: 11px;
  min-height: 35px;
  padding: 7px 10px;
}

.radio-link-btn:hover,
.radio-secondary-btn:hover,
.radio-system-open:hover,
.radio-load-more:hover,
.radio-close-btn:hover {
  background: #14243a;
  border-color: var(--radio-accent);
}

.radio-error-note,
.radio-directory-error {
  background: rgba(122, 41, 48, .18);
  border: 1px solid rgba(221, 126, 131, .35);
  border-radius: 10px;
  color: #f0b2b7;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 13px;
  padding: 10px;
}

.radio-directory-error {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.radio-directory-error b {
  color: #ffd8da;
}

.radio-directory-error span {
  flex: 1 1 180px;
}

.radio-section-head {
  margin-bottom: 17px;
}

.radio-section-head h3 {
  font-size: 19px;
}

.radio-section-head p {
  font-size: 11px;
  max-width: 620px;
}

.radio-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.radio-periods button {
  background: #0c141f;
  border: 1px solid #263952;
  border-radius: 999px;
  color: #9bacc4;
  cursor: pointer;
  font-size: 10px;
  padding: 7px 9px;
  white-space: nowrap;
}

.radio-periods button.is-active,
.radio-periods button:hover {
  background: #1c3150;
  border-color: #6481ac;
  color: #f0f5fd;
}

.radio-stat-grid,
.radio-system-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.radio-stat-grid > div,
.radio-system-metrics > div {
  background: #0a111b;
  border: 1px solid #1f3047;
  border-radius: 11px;
  min-width: 0;
  padding: 11px;
}

.radio-stat-grid strong,
.radio-stat-grid span,
.radio-system-metrics b,
.radio-system-metrics span {
  display: block;
}

.radio-stat-grid strong,
.radio-system-metrics b {
  color: #e8f0fd;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-stat-grid span,
.radio-system-metrics span {
  color: #8597b0;
  font-size: 10px;
  margin-top: 4px;
}

.radio-stat-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.radio-stat-panel {
  min-width: 0;
}

.radio-stat-panel h4,
.radio-chart-head h4 {
  color: #dce7f8;
  font-size: 12px;
  margin: 0 0 10px;
}

.radio-rank-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(80px, 1fr) 70px;
  margin: 9px 0;
  min-width: 0;
}

.radio-rank {
  color: #7286a3;
  font-size: 10px;
}

.radio-rank-row b,
.radio-rank-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-rank-row b {
  color: #cbd8eb;
  font-size: 11px;
}

.radio-rank-row small {
  color: #788ba5;
  font-size: 10px;
  margin-top: 2px;
}

.radio-rank-row i {
  background: #18263a;
  border-radius: 999px;
  display: block;
  height: 5px;
  overflow: hidden;
}

.radio-rank-row i em {
  background: linear-gradient(90deg, #506f9f, #a1b8dd);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.radio-empty-inline {
  color: #71839e;
  font-size: 11px;
  line-height: 1.5;
  padding: 9px 0;
}

.radio-chart-wrap {
  border-top: 1px solid #1d2b3d;
  margin-top: 17px;
  padding-top: 14px;
}

.radio-chart-head {
  align-items: center;
}

.radio-chart-head span {
  color: #7e90a8;
  font-size: 10px;
}

.radio-day-chart {
  align-items: end;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  height: 105px;
  overflow: hidden;
}

.radio-day-bar {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: end;
  min-width: 0;
}

.radio-day-bar-fill {
  background: linear-gradient(180deg, #9cb6df, #3e5f90);
  border-radius: 5px 5px 2px 2px;
  min-height: 2px;
  width: min(17px, 100%);
}

.radio-day-bar small,
.radio-day-bar span {
  color: #71849f;
  font-size: 9px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-day-bar span {
  color: #a9b9cf;
  font-size: 8px;
  margin-top: 2px;
}

.radio-directory-card,
.radio-library-card,
.radio-integration-note {
  padding: clamp(17px, 2.2vw, 25px);
}

.radio-directory-source {
  align-self: flex-start;
  font-size: 10px;
}

.radio-filter-bar {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1.6fr) repeat(3, minmax(100px, .8fr)) auto;
  margin-bottom: 16px;
}

.radio-filter-bar input:focus,
.radio-filter-bar select:focus,
.radio-add-form input:focus,
.radio-select:focus,
.radio-sleep-select:focus {
  border-color: #8aa5d0;
  box-shadow: 0 0 0 3px rgba(145, 169, 208, .11);
}

.radio-filter-submit {
  align-items: center;
  background: linear-gradient(135deg, #2a446b, #172b48);
  border: 1px solid #55759f;
  border-radius: 9px;
  color: #f1f6ff;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.radio-filter-submit:hover {
  background: linear-gradient(135deg, #355581, #203b61);
}

.radio-station-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-station-card {
  background: #0a1018;
  border: 1px solid #1e2e44;
  border-radius: 14px;
  min-width: 0;
  padding: 14px;
  transition: border-color .16s ease, transform .16s ease;
}

.radio-station-card:hover {
  border-color: #4c678f;
  transform: translateY(-1px);
}

.radio-station-card-head {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.radio-station-card-head img,
.radio-station-logo-fallback {
  align-items: center;
  background: #17263b;
  border: 1px solid #304a6a;
  border-radius: 9px;
  color: #aec3e3;
  display: flex;
  height: 36px;
  justify-content: center;
  object-fit: contain;
  width: 36px;
}

.radio-station-card h4 {
  color: #e5edf9;
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-station-card-head span {
  color: #7f92ad;
  display: block;
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-favorite {
  background: transparent;
  border: 0;
  color: #7c90ac;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 3px;
}

.radio-favorite.is-active {
  color: #b8cae8;
}

.radio-station-tags {
  color: #a8bad2;
  font-size: 10px;
  margin-top: 13px;
  min-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.radio-station-meta span {
  background: #101c2b;
  border: 1px solid #223750;
  border-radius: 999px;
  color: #8194ae;
  font-size: 9px;
  padding: 4px 6px;
}

.radio-station-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.radio-play-station {
  flex: 1;
  min-height: 35px;
}

.radio-station-actions .radio-secondary-btn {
  min-height: 35px;
}

.radio-load-more {
  display: block;
  margin: 18px auto 0;
  min-width: 160px;
}

.radio-end-note {
  color: #71839d;
  font-size: 10px;
  padding-top: 17px;
  text-align: center;
}

.radio-loading,
.radio-empty-directory {
  align-items: center;
  border: 1px dashed #2b405c;
  border-radius: 13px;
  color: #8497b1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 145px;
  padding: 20px;
  text-align: center;
}

.radio-loading span {
  animation: radio-spin 1s linear infinite;
  border: 2px solid #2a4261;
  border-radius: 50%;
  border-top-color: var(--radio-accent);
  height: 24px;
  width: 24px;
}

@keyframes radio-spin { to { transform: rotate(360deg); } }

.radio-loading b,
.radio-empty-directory b {
  color: #c4d4e9;
  font-size: 12px;
}

.radio-loading small,
.radio-empty-directory span {
  font-size: 11px;
  line-height: 1.5;
}

.radio-loading-inline {
  border: 0;
  min-height: 60px;
}

.radio-saved-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-saved-station {
  align-items: center;
  background: #0a111b;
  border: 1px solid #223650;
  border-radius: 12px;
  color: #dce7f7;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px;
  text-align: left;
}

.radio-saved-station:hover {
  border-color: #55729e;
  background: #111e31;
}

.radio-saved-station > span {
  color: #9eb7dd;
  font-size: 16px;
}

.radio-saved-station b,
.radio-saved-station small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-saved-station b {
  font-size: 11px;
}

.radio-saved-station small {
  color: #7f92ac;
  font-size: 9px;
  margin-top: 3px;
}

.radio-saved-station em {
  color: #a7bde0;
  font-size: 12px;
  font-style: normal;
}

.radio-add-panel[hidden] { display: none; }

.radio-add-panel {
  background: rgba(3, 7, 12, .72);
  border-radius: 18px;
  inset: 0;
  padding: 10px;
  position: fixed;
  z-index: 80;
}

.radio-add-panel-inner {
  margin: 10vh auto 0;
  max-width: 580px;
  padding: 23px;
  position: relative;
}

.radio-add-panel-inner h3 {
  color: #eef4fd;
  margin: 5px 0;
}

.radio-add-panel-inner p {
  color: #90a1b8;
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.radio-close-btn {
  font-size: 20px;
  line-height: 1;
  min-height: 32px;
  padding: 3px 9px;
  position: absolute;
  right: 17px;
  top: 17px;
}

.radio-add-form {
  display: grid;
  gap: 12px;
}

.radio-add-form label {
  color: #afbed2;
  display: grid;
  font-size: 11px;
  gap: 6px;
}

.radio-add-form label span {
  color: #7589a4;
  font-size: 10px;
}

.radio-add-form input {
  width: 100%;
}

.radio-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.radio-integration-note {
  align-items: center;
}

.radio-integration-note > div:first-child {
  max-width: 720px;
}

.radio-integration-note h3 {
  font-size: 17px;
}

.radio-integration-links {
  justify-content: flex-end;
}

.radio-home-widget {
  background: linear-gradient(135deg, #0c1726, #090e15);
  border: 1px solid #2d4564;
  border-radius: 16px;
  color: var(--radio-text);
  margin-top: 18px;
  padding: 18px;
}

.radio-home-widget h3 {
  color: #eef4fd;
  font-size: 17px;
  margin: 5px 0;
}

.radio-home-widget p {
  color: #92a4bc;
  font-size: 11px;
  margin: 0;
}

.radio-home-dot {
  background: #526984;
}

.radio-home-dot.is-live {
  background: var(--radio-green);
  box-shadow: 0 0 0 5px rgba(98, 201, 151, .1);
}

.radio-home-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.radio-home-play,
.radio-home-open {
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  min-height: 36px;
  padding: 8px 12px;
}

.radio-home-play {
  background: linear-gradient(135deg, #2a446b, #172b48);
  border: 1px solid #55759f;
  color: #f2f6fd;
}

.radio-home-open {
  background: transparent;
  border: 1px solid #30445e;
  color: #b6c9e7;
}

.radio-floating-player {
  align-items: center;
  background: rgba(8, 13, 21, .96);
  border: 1px solid #395574;
  border-radius: 15px;
  bottom: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  display: flex;
  gap: 9px;
  max-width: min(360px, calc(100vw - 26px));
  padding: 9px;
  position: fixed;
  right: 20px;
  z-index: 70;
}

.radio-floating-art {
  align-items: center;
  background: #182945;
  border-radius: 10px;
  display: flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  position: relative;
  width: 40px;
}

.radio-floating-art span {
  font-size: 18px;
}

.radio-floating-art i {
  background: #526984;
  bottom: 3px;
  box-shadow: none;
  height: 5px;
  position: absolute;
  right: 3px;
  width: 5px;
}

.radio-floating-art i.is-live {
  background: var(--radio-green);
  box-shadow: 0 0 0 3px rgba(98, 201, 151, .1);
}

.radio-floating-copy {
  min-width: 0;
}

.radio-floating-copy b,
.radio-floating-copy small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-floating-copy b {
  color: #e4edf9;
  font-size: 11px;
}

.radio-floating-copy small {
  color: #8fa2bc;
  font-size: 9px;
  margin-top: 3px;
}

.radio-floating-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.radio-floating-actions button {
  border-radius: 8px;
  height: 32px;
  width: 32px;
}

.radio-system-insight {
  align-items: center;
  background: linear-gradient(135deg, #0d1828, #090f17);
  border: 1px solid #2a415f;
  border-radius: 16px;
  box-shadow: none;
  margin-top: 16px;
  padding: 18px;
}

.radio-system-insight-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.radio-system-insight h3 {
  color: #edf4ff;
  font-size: 16px;
  margin: 5px 0;
}

.radio-system-insight p {
  color: #91a4bd;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.radio-system-metrics {
  flex: 1 1 360px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-system-open {
  white-space: nowrap;
}

body[data-asy-page="radio"] .topbar {
  margin-bottom: 20px;
}

body[data-asy-page="radio"] .nav-page.asy-radio-nav,
body[data-asy-page="radio"] .mobile-side-row.asy-radio-nav {
  background: linear-gradient(90deg, #16243b, #0d1522) !important;
  box-shadow: inset 3px 0 #819ac3 !important;
  color: #edf3fc !important;
}

@media (max-width: 1180px) {
  .radio-country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .radio-station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-filter-bar { grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(120px, 1fr)); }
  .radio-filter-bar select[name="sort"], .radio-filter-submit { grid-column: span 1; }
  .radio-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .radio-masthead,
  .radio-section-head,
  .radio-integration-note,
  .radio-system-insight {
    align-items: flex-start;
    flex-direction: column;
  }

  .radio-masthead-actions,
  .radio-integration-links { justify-content: flex-start; }
  .radio-hero { min-height: 0; padding: 22px 18px; }
  .radio-hero-orbit { display: none; }
  .radio-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-country-card { min-height: 92px; padding: 11px; }
  .radio-player-card, .radio-intelligence-card, .radio-directory-card, .radio-library-card, .radio-integration-note { padding: 16px; }
  .radio-section-head h3 { font-size: 18px; }
  .radio-periods { justify-content: flex-start; }
  .radio-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-stat-columns { grid-template-columns: 1fr; gap: 7px; }
  .radio-stat-panel { border-top: 1px solid #1d2b3d; padding-top: 12px; }
  .radio-stat-panel:first-child { border-top: 0; padding-top: 0; }
  .radio-day-chart { height: 94px; }
  .radio-filter-bar { grid-template-columns: 1fr 1fr; }
  .radio-filter-bar input { grid-column: 1 / -1; }
  .radio-filter-submit { grid-column: 1 / -1; }
  .radio-station-grid, .radio-saved-grid { grid-template-columns: 1fr; }
  .radio-directory-source { align-self: flex-start; }
  .radio-player-footer { align-items: stretch; flex-direction: column; }
  .radio-player-actions { justify-content: flex-start; }
  .radio-select, .radio-sleep-select { width: 100%; }
  .radio-system-metrics { flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .radio-system-open { align-self: flex-start; }
  .radio-floating-player { bottom: 76px; right: 12px; }
}

@media (max-width: 430px) {
  .radio-country-grid { grid-template-columns: 1fr; }
  .radio-country-card { grid-template-columns: auto 1fr auto; }
  .radio-country-card em { grid-column: auto; margin: 0; }
  .radio-filter-bar { grid-template-columns: 1fr; }
  .radio-filter-bar input, .radio-filter-submit { grid-column: auto; }
  .radio-system-metrics { grid-template-columns: 1fr; }
  .radio-home-widget { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .radio-shell *, .radio-floating-player *, .radio-home-widget * { animation: none !important; transition: none !important; }
}


/* ASY RADIO V188 · compact Home player */
.radio-home-widget {
  background: radial-gradient(ellipse at 13% 50%, rgba(72,113,173,.17), transparent 34%), linear-gradient(132deg,#0d1726 0%,#09101a 60%,#0b1320 100%);
  border: 1px solid rgba(104,139,187,.34); border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.035);
  margin-top: 20px; overflow: hidden; padding: clamp(16px,2vw,25px);
}
.radio-home-layout { align-items: center; display: grid; gap: clamp(20px,4vw,48px); grid-template-columns: minmax(150px,.72fr) minmax(0,1.6fr); }
.radio-home-illustration { align-items: center; display: flex; justify-content: center; min-height: 182px; position: relative; }
.radio-home-device {
  background: linear-gradient(145deg,#263b58,#101a29 72%); border: 1px solid #496487; border-radius: 19px;
  box-shadow: 0 17px 25px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.16);
  padding: 12px 13px 10px; position: relative; transform: perspective(500px) rotateY(-7deg) rotateX(2deg); width: min(100%,210px);
}
.radio-home-antenna { background: linear-gradient(90deg,#536b8d,#a7b8d1,#465b78); border-radius: 3px; height: 4px; left: 22%; position: absolute; top: 11px; transform: rotate(-28deg); transform-origin: left; width: 76px; }
.radio-home-device-brand { color: #d5e2f4; font-size: 8px; font-weight: 900; letter-spacing: .19em; margin: 3px 0 9px; }
.radio-home-device-brand span { color: #7f9dc6; }
.radio-home-device-face { align-items: center; background: linear-gradient(135deg,#09111c,#0d1724); border: 1px solid #314966; border-radius: 10px; display: flex; gap: 10px; padding: 9px; }
.radio-home-device-art { align-items: center; background: radial-gradient(circle at 42% 36%,#35517b,#16263c 70%); border: 1px solid #47668d; border-radius: 7px; display: flex; height: 56px; justify-content: center; overflow: hidden; position: relative; width: 56px; }
.radio-home-device-art img { height: 100%; object-fit: cover; width: 100%; }
.radio-home-flag { filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); font-size: 27px; }
.radio-home-device-art i { border: 1px solid rgba(170,199,234,.5); border-radius: 50%; height: 74%; left: 13%; position: absolute; top: 13%; width: 74%; }
.radio-home-device-speaker { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.radio-home-device-speaker i { background: linear-gradient(90deg,#243b5b,#516c91,#263e60); border-radius: 3px; height: 3px; }
.radio-home-device-dials { display: flex; gap: 8px; justify-content: flex-end; padding: 9px 2px 0; }
.radio-home-device-dials i { background: radial-gradient(circle at 35% 32%,#a8bad2,#314a6b 56%,#162337 72%); border: 1px solid #6680a1; border-radius: 50%; height: 13px; width: 13px; }
.radio-home-signal { display: flex; gap: 3px; height: 24px; left: 14px; position: absolute; top: 18px; transform: rotate(10deg); }
.radio-home-signal i { animation: radio-home-bounce 850ms ease-in-out infinite alternate; background: #83a7db; border-radius: 4px; height: 35%; opacity: .55; width: 3px; }
.radio-home-signal i:nth-child(2) { animation-delay: 140ms; height: 80%; }
.radio-home-signal i:nth-child(3) { animation-delay: 280ms; height: 55%; }
@keyframes radio-home-bounce { to { opacity: .95; transform: scaleY(.62); } }
.radio-home-content { min-width: 0; }
.radio-home-widget-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.radio-home-widget h3 { color: #f0f5fd; font-size: clamp(17px,2vw,21px); line-height: 1.25; margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; }
.radio-home-widget p { color: #9aacc5; font-size: 11px; line-height: 1.5; margin: 0; }
.radio-home-dot { background: #7b8da5; border-radius: 50%; flex: 0 0 auto; height: 9px; margin-top: 5px; width: 9px; }
.radio-home-dot.is-live { background: #5bd79e; box-shadow: 0 0 0 5px rgba(91,215,158,.12),0 0 17px rgba(91,215,158,.5); }
.radio-home-dot.is-error { background: #e77e88; box-shadow: 0 0 0 5px rgba(231,126,136,.1); }
.radio-home-status { align-items: center; color: #9eafc7; display: flex; font-size: 9px; font-weight: 850; gap: 7px; letter-spacing: .14em; margin-top: 13px; }
.radio-home-status i { background: #62758f; border-radius: 50%; height: 6px; width: 6px; }
.radio-home-status i.is-live { animation: radio-live-pulse 1.6s ease-out infinite; background: #58d397; }
.radio-home-controls { align-items: center; display: flex; gap: 8px; margin-top: 10px; }
.radio-home-controls button { align-items: center; background: #111e30; border: 1px solid #304764; border-radius: 11px; color: #d4e1f3; cursor: pointer; display: inline-flex; font-size: 14px; height: 37px; justify-content: center; min-width: 38px; }
.radio-home-controls button:hover:not(:disabled) { background: #1a2c44; border-color: #6485b1; }
.radio-home-controls button:disabled { cursor: not-allowed; opacity: .42; }
.radio-home-controls .radio-home-play { background: linear-gradient(145deg,#557db5,#365985); border-color: #7898c2; color: white; font-size: 15px; min-width: 43px; }
.radio-home-volume { align-items: center; color: #95a9c3; display: grid; font-size: 8px; font-weight: 800; gap: 10px; grid-template-columns: 42px minmax(70px,1fr) 34px; letter-spacing: .1em; margin-top: 10px; }
.radio-home-volume input { accent-color: #86a8d8; height: 4px; width: 100%; }
.radio-home-volume b { color: #c1d1e8; font-size: 10px; letter-spacing: 0; text-align: right; }
.radio-home-bottom { align-items: center; display: flex; gap: 8px; margin-top: 12px; }
.radio-home-select { background: #0a121e; border: 1px solid #293d58; border-radius: 9px; color: #c3d2e6; flex: 1; font-size: 10px; min-height: 34px; min-width: 0; padding: 7px 9px; }
.radio-home-open { background: transparent; border: 1px solid #344c6d; border-radius: 9px; color: #bfd1eb; cursor: pointer; font-size: 10px; min-height: 34px; padding: 7px 11px; white-space: nowrap; }
.radio-home-open:hover { background: #14243a; border-color: #6485b1; }
@media (max-width: 650px) {
  .radio-home-layout { gap: 15px; grid-template-columns: 90px minmax(0,1fr); }
  .radio-home-illustration { min-height: 140px; }
  .radio-home-device { border-radius: 13px; padding: 9px; }
  .radio-home-device-art { height: 41px; width: 41px; }
  .radio-home-device-face { gap: 6px; padding: 6px; }
  .radio-home-device-dials { gap: 5px; padding-top: 6px; }
  .radio-home-device-dials i { height: 10px; width: 10px; }
  .radio-home-bottom { align-items: stretch; flex-direction: column; }
  .radio-home-open { width: 100%; }
}
@media (max-width: 390px) {
  .radio-home-layout { grid-template-columns: 1fr; }
  .radio-home-illustration { min-height: 115px; }
  .radio-home-device { max-width: 185px; }
  .radio-home-signal { left: calc(50% - 100px); top: 6px; }
  .radio-home-widget { padding: 14px; }
}