.language-picker{display:flex;align-items:center;gap:5px;margin-left:auto}.language-picker select{width:125px;padding:7px;font-size:12px}.language-picker button{padding:5px 9px;min-height:34px;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.legal-document{max-width:950px;margin:auto;font-family:'Titillium Web',system-ui,sans-serif}.legal-document h1{font-size:38px}.legal-document h2,.legal-document h3{margin:28px 0 15px}.legal-document p{max-width:none;line-height:1.85}.legal-document li{color:#c7c3bd;margin:10px 0}.legal-document table{max-width:100%;display:block;overflow:auto}.legal-links{display:flex;flex-wrap:wrap;gap:15px}.ad-reservation{margin:42px auto 52px;padding:18px 0 26px;max-width:970px;text-align:center;border-block:1px solid #303030;clear:both}.ad-reservation>span{display:block;color:#96938d;text-transform:uppercase;font:10px/1.5 system-ui,sans-serif;letter-spacing:1.8px;margin-bottom:12px}.ad-space{height:90px;width:100%;background:#202020;display:grid;place-items:center;color:#77736d;border:1px dashed #383633}.ad-space small{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#77736d}.ad-rectangle{max-width:336px}.ad-rectangle .ad-space{height:250px}.similar-suggestions{padding:18px;background:#2f291f;border:1px solid #5c492f;border-radius:9px}.similar-suggestions p{font-size:13px}.similar-suggestions .station-row{font-size:13px;gap:10px}.duplicate-candidate{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.duplicate-candidate h2{margin:15px 0 0}.stream-review{margin-bottom:15px}.stream-review select{width:auto}.break-url{overflow-wrap:anywhere;word-break:break-word}.social-signin{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.social-provider{font-size:13px;text-align:center}.social-signin button:disabled{color:#96938d;cursor:default;border-color:#444}.public-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-panel{max-width:650px;margin:auto}.form-stack fieldset{display:flex;flex-direction:column;gap:16px;border:1px solid #444;border-radius:8px;padding:18px}.section-nav{gap:8px}.section-nav a{padding:7px 10px}.legal-document div{max-width:100%}.similar-suggestions:empty{display:none}
@media(max-width:760px){.language-picker{margin-left:0}.site-header{gap:14px}.ad-space{height:100px}.ad-reservation{margin-block:34px 45px}.public-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.language-picker{order:4;width:100%;justify-content:end}.language-picker select{width:145px}.social-signin{grid-template-columns:1fr}.duplicate-candidate .actions{width:100%}.ad-reservation{margin-bottom:75px}.ad-space{height:100px}.ad-rectangle .ad-space{height:250px}.legal-links{gap:10px;font-size:11px}.legal-document h1{font-size:30px}.legal-document{padding:17px}.form-stack .check{flex-wrap:wrap}.form-stack .check a{display:inline}}
.directory-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}.directory-body:not(:has(.ad-reservation)){grid-template-columns:1fr}.directory-body .station-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-body .ad-reservation{width:100%;margin:0;padding:10px 0 20px}.order-items{list-style:none;padding:0;margin:0}.order-items li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #383838}.order-items button{min-width:42px;padding:6px 9px}.order-items li span{overflow-wrap:anywhere}.moved-note{color:#bedb9b;font-size:12px}.account-nav .primary{color:#21160b}
@media(max-width:1050px){.directory-body{grid-template-columns:minmax(0,1fr) 260px}}@media(max-width:760px){.directory-body{display:block}.directory-body .ad-reservation{margin:35px auto 45px}}


/* Align controls on the last line of labeled form rows. */
form.actions,
form.station-row,
.station-row:has(> label) {
  align-items: flex-end;
}
form.station-row > .row-info,
.station-row:has(> label) > .row-info {
  align-self: center;
}
:is(form.actions, form.station-row, .directory-filters) > :is(button, .button, label > input:not([type="checkbox"]), label > select, label.check),
.language-picker > :is(button, label > select) {
  min-block-size: 44px;
  box-sizing: border-box;
}
form.actions > label:has(input[type="search"], input[name="q"]) {
  inline-size: min(100%, 22rem);
}
.station-genre-field {
  grid-column: 1 / -1;
}

/* Keep standalone status controls together when a moderation row wraps. */
.station-row form.actions:has(> select),
form.actions:has(> select) {
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: stretch;
}
form.actions > select {
  width: auto;
}
form.actions:has(> select) > :is(select, button),
.actions:has(> form.actions > select) > .button {
  min-block-size: 48px;
  padding-block: 10px;
}

.station-genre-field {
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 26px 0 16px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #383838;
}
.auth-divider span {
  padding: 0 14px;
}

.form-field-feedback,
.form-field-error {
  color: #ff7675;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;
}
.form-field-feedback[hidden],
.form-field-error[hidden] {
  display: none !important;
}
.form-field-feedback.form-field-success,
.form-field-success {
  color: #2ecc71;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;
}
.form-field-success[hidden] {
  display: none !important;
}
.form-field-feedback.form-field-pending,
.form-field-pending {
  color: #f1c40f;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
  display: block;
}
.form-field-pending[hidden] {
  display: none !important;
}
input.input-error,
select.input-error,
textarea.input-error {
  border-color: #ff7675 !important;
  outline-color: #ff7675 !important;
}
input.input-success,
select.input-success,
textarea.input-success {
  border-color: #2ecc71 !important;
  outline-color: #2ecc71 !important;
}
.social-signin,
.btn-social-logins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
@media (max-width: 520px) {
  .social-signin,
  .btn-social-logins {
    grid-template-columns: 1fr;
  }
}

.social-provider,
.social-provider.btn,
.social-provider.button,
button.social-provider,
a.social-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, filter 0.15s ease-in-out;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}
.social-provider .social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.social-connected-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-connected-label .social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Original RadioTrucker Brand Styles */
.btn-facebook,
.social-provider-facebook {
  background-color: #4267b2 !important;
  color: #ffffff !important;
  border-color: #365899 !important;
}
.btn-facebook:hover,
.btn-facebook:active,
.btn-facebook:focus,
.social-provider-facebook:hover,
.social-provider-facebook:active,
.social-provider-facebook:focus {
  background-color: #365899 !important;
  color: #ffffff !important;
  border-color: #365899 !important;
}

.btn-google,
.social-provider-google {
  background-color: #e62117 !important;
  color: #ffffff !important;
  border-color: #b31217 !important;
}
.btn-google:hover,
.btn-google:active,
.btn-google:focus,
.social-provider-google:hover,
.social-provider-google:active,
.social-provider-google:focus {
  background-color: #b31217 !important;
  color: #ffffff !important;
  border-color: #b31217 !important;
}

.btn-discord,
.social-provider-discord {
  background-color: #5865f2 !important;
  color: #ffffff !important;
  border-color: #4752c4 !important;
}
.btn-discord:hover,
.btn-discord:active,
.btn-discord:focus,
.social-provider-discord:hover,
.social-provider-discord:active,
.social-provider-discord:focus {
  background-color: #4752c4 !important;
  color: #ffffff !important;
  border-color: #4752c4 !important;
}

.btn-microsoft,
.social-provider-microsoft {
  background-color: #2f2f2f !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}
.btn-microsoft:hover,
.btn-microsoft:active,
.btn-microsoft:focus,
.social-provider-microsoft:hover,
.social-provider-microsoft:active,
.social-provider-microsoft:focus {
  background-color: #1f1f1f !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

.btn-apple,
.social-provider-apple {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
.btn-apple:hover,
.btn-apple:active,
.btn-apple:focus,
.social-provider-apple:hover,
.social-provider-apple:active,
.social-provider-apple:focus {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #444444 !important;
}

.btn-github,
.social-provider-github {
  background-color: #24292f !important;
  color: #ffffff !important;
  border-color: #3c444d !important;
}
.btn-github:hover,
.btn-github:active,
.btn-github:focus,
.social-provider-github:hover,
.social-provider-github:active,
.social-provider-github:focus {
  background-color: #1b1f23 !important;
  color: #ffffff !important;
  border-color: #57606a !important;
}

.btn-linkedin,
.social-provider-linkedin {
  background-color: #0a66c2 !important;
  color: #ffffff !important;
  border-color: #0a66c2 !important;
}
.btn-linkedin:hover,
.btn-linkedin:active,
.btn-linkedin:focus,
.social-provider-linkedin:hover,
.social-provider-linkedin:active,
.social-provider-linkedin:focus {
  background-color: #084d93 !important;
  color: #ffffff !important;
  border-color: #084d93 !important;
}

.social-provider:disabled,
.social-provider[disabled] {
  opacity: 0.55 !important;
  cursor: default !important;
  pointer-events: none !important;
  filter: grayscale(35%) !important;
  box-shadow: none !important;
}

.social-signin-hint {
  margin-top: 12px;
  color: #96938d;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.social-connections-panel {
  margin-bottom: 20px;
}
.social-connections-panel h3 {
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c7c3bd;
}
.social-connections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-connected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #262626;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  gap: 10px;
}
.social-connected-item form {
  margin: 0;
}
.social-connected-item .badge.success {
  background: #1e4620;
  color: #98e29d;
}
.station-genre-field legend {
  margin-bottom: 6px;
}
.station-genre-row {
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
  max-width: 32rem;
}
.station-genre-field [hidden] {
  display: none;
}

.country-flag {
  display: inline-block;
  block-size: 1em;
  inline-size: 1.33em;
  vertical-align: -0.13em;
  margin-inline-start: 0.18em;
}
.country-flag[hidden] { display: none; }
.country-select {
  position: relative;
  display: block;
}
.country-select > .country-flag {
  position: absolute;
  inset-inline-end: 0.75em;
  inset-block-start: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.country-select:has(.country-flag:not([hidden])) > :is(select, input) {
  padding-inline-end: 2.6em;
}
.country-select:has(.country-flag:not([hidden])) > select {
  padding-inline-end: 3.5em;
}
.country-select:has(> select) > .country-flag {
  inset-inline-end: 1.8em;
}

#player-toggle {
  inline-size: 44px;
  min-block-size: 44px;
  flex-shrink: 0;
  padding: 0;
}
#player-toggle svg {
  inline-size: 22px;
  block-size: 22px;
  fill: currentColor;
}
#player-toggle:not([data-playing]) .player-pause-icon,
#player-toggle[data-playing] .player-play-icon {
  display: none;
}

.directory-body .ranked-stations {
  grid-template-columns: minmax(0, 1fr);
}
.ranked-station .station-rank {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}

/* === 1. In-Cab Dashboard Player Bar & Live Equalizer === */
@keyframes rtEq1 { 0%, 100% { height: 4px; } 50% { height: 15px; } }
@keyframes rtEq2 { 0%, 100% { height: 13px; } 33% { height: 5px; } 66% { height: 17px; } }
@keyframes rtEq3 { 0%, 100% { height: 7px; } 40% { height: 16px; } 80% { height: 4px; } }
@keyframes rtEq4 { 0%, 100% { height: 12px; } 25% { height: 4px; } 75% { height: 14px; } }

#radio-player {
  background: linear-gradient(90deg, #151310 0%, #1f1b16 50%, #151310 100%);
  border-top: 2px solid var(--orange);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45), 0 -2px 18px rgba(247, 147, 30, 0.12);
}
#player-mark {
  position: relative;
  background: #2b231b;
  border-color: #6b4f31;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.06);
}
#radio-player[data-playing] #player-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #77b300;
  box-shadow: 0 0 8px #77b300;
  border: 2px solid #151310;
}
#radio-player[data-playing] #player-toggle {
  box-shadow: 0 0 16px rgba(247, 147, 30, 0.45);
}
.player-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.player-status-row small {
  margin-top: 0;
}
.player-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  width: 18px;
  flex-shrink: 0;
}
.player-eq i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #6e5a44;
  transition: background-color 0.2s ease;
}
#radio-player[data-playing] .player-eq i {
  background: var(--orange);
}
#radio-player[data-playing] .player-eq i:nth-child(1) { animation: rtEq1 0.75s ease-in-out infinite; }
#radio-player[data-playing] .player-eq i:nth-child(2) { animation: rtEq2 0.65s ease-in-out infinite; }
#radio-player[data-playing] .player-eq i:nth-child(3) { animation: rtEq3 0.8s ease-in-out infinite; }
#radio-player[data-playing] .player-eq i:nth-child(4) { animation: rtEq4 0.7s ease-in-out infinite; }
#radio-player .volume {
  background: #141414;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.player-vol-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.player-vol-btn:hover {
  color: var(--orange);
  background: transparent;
  border-color: transparent;
}
.player-vol-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.player-vol-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
.player-vol-btn[data-muted="true"] {
  color: #f87171;
}
.player-vol-btn[data-muted="true"]:hover {
  color: #ef4444;
}
#player-volume {
  cursor: pointer;
}

/* === 2. Tuner Media Pill Cards (Mix 3 + 4) & Blurred Prompt Modals === */
.station-grid,
.directory-body .station-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.directory-body .station-grid[data-cols="1"],
.directory-body .ranked-stations {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1340px) {
  .view-density-switch {
    display: none;
  }
}
.directory-heading-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-density-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: #17181b;
  border: 1px solid #34353a;
}
.density-btn {
  min-height: 28px;
  width: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
}
.density-btn[data-active="1"] {
  background: var(--orange);
  color: #16120b;
  font-weight: 800;
}
.station-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #1b1c20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.station-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #202227;
}
.station-card:has(.listen[data-active]) {
  background: rgba(247, 147, 30, 0.09);
  border-color: rgba(247, 147, 30, 0.55) !important;
  box-shadow: 0 0 22px rgba(247, 147, 30, 0.1);
}
.station-play-badge {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  background: #141518;
  color: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.station-play-badge:hover,
.station-play-badge[data-active] {
  background: var(--orange);
  color: #16120b;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(247, 147, 30, 0.25);
}
.play-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13px;
  line-height: 1;
}
.play-glyph {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.eq-bars i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}
.station-play-badge[data-active] .play-glyph {
  display: none;
}
.station-play-badge[data-active] .eq-bars {
  display: inline-flex;
}
.station-play-badge[data-active] .eq-bars i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
.station-play-badge[data-active] .eq-bars i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
.station-play-badge[data-active] .eq-bars i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }
.play-badge-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  opacity: 0.92;
}
.station-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.station-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.station-card .station-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.station-card .country-name {
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.station-card-song {
  font-size: 12px;
  color: #d4d4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.station-card-song[hidden] {
  display: none;
}
.station-card-song .song-note {
  color: var(--orange);
  font-weight: 700;
}
.station-card .station-card-meta {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.genre-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0;
}
.genre-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 11.5px;
  text-decoration: none;
  line-height: 1.4;
}
.genre-pill:hover {
  border-color: var(--orange);
  color: #fff;
  text-decoration: none;
}
.bitrate-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--orange);
  background: rgba(247, 147, 30, 0.1);
  border: 1px solid rgba(247, 147, 30, 0.25);
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.4;
}
.http-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 1px 6px;
  border-radius: 5px;
  line-height: 1.4;
  text-decoration: none;
}
.http-play-badge:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #fff;
  text-decoration: none;
}
.http-manual-link {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}
.http-manual-link:hover {
  border-color: #fbbf24;
  color: #fff;
}
.player-http-link {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.mini-window, body.mini-body {
  background: #141518 !important;
  color: #f6f3ee !important;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Titillium Web', system-ui, sans-serif;
  box-sizing: border-box;
}
.mini-wrap {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 8px;
  box-sizing: border-box;
  height: 100vh;
  justify-content: space-between;
  background: #141518;
}
.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.mini-brand img {
  height: 34px !important;
  width: auto !important;
  max-height: 34px !important;
  display: block;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.mini-http-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}
.mini-station-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-station-row .station-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  margin: 0;
}
.mini-station-info {
  flex: 1;
  min-width: 0;
}
.mini-station-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.mini-station-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #a1a1aa;
  margin-top: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-genre {
  color: #d4d4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #1c1d22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 12px;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
}
.mini-now-playing .song-note {
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
}
.mini-now-playing .song-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #222329 0%, #191a1e 100%);
  border: 1px solid #42434d;
  padding: 8px 10px;
  border-radius: 9px;
}
.mini-play-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--orange);
  color: #1a140b;
  border: 1px solid var(--orange);
  box-shadow: 0 2px 10px rgba(247, 147, 30, 0.35);
  cursor: pointer;
}
.mini-play-btn:hover {
  background: #ffa73b;
}
.mini-play-btn .play-glyph {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.mini-play-btn .eq-bars {
  display: none;
  gap: 2px;
  height: 12px;
}
.mini-play-btn .eq-bars i {
  display: block;
  width: 2.5px;
  border-radius: 1px;
  background: #1a140b;
}
.mini-play-btn[data-playing="1"] .eq-bars i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
.mini-play-btn[data-playing="1"] .eq-bars i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
.mini-play-btn[data-playing="1"] .eq-bars i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }
.mini-audio-wrap {
  flex: 1;
  min-width: 0;
}
.mini-status {
  font-size: 11.5px;
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.mini-vol-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.mini-vol-btn:hover {
  color: var(--orange);
  background: transparent;
  border-color: transparent;
}
.mini-vol-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.mini-vol-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}
.mini-vol-btn[data-muted="true"] {
  color: #f87171;
}
.mini-vol-btn[data-muted="true"]:hover {
  color: #ef4444;
}
.mini-volume {
  display: flex;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
}
.mini-volume input {
  width: 100%;
  accent-color: var(--orange);
  padding: 0;
}
.mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mini-link {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
}
.mini-link:hover {
  color: #fff;
  text-decoration: underline;
}
.station-card .station-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 0;
}
.station-card .station-quick-add {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.station-card .station-quick-add:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
/* Add to list: Green check sign state */
.station-card .station-quick-add[data-saved="1"],
.station-quick-add[data-saved="1"],
.station-hero-btn.station-hero-add[data-saved="1"],
#player-add-list[data-saved="1"],
.player-add-btn[data-saved="1"],
[data-add-station][data-saved="1"] {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.65) !important;
  color: #4ade80 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35) !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.station-hero-btn.station-hero-add[data-saved="1"] [aria-hidden="true"] {
  color: #4ade80 !important;
}

.station-card .station-quick-add[data-saved="1"]:hover,
.station-quick-add[data-saved="1"]:hover,
.station-hero-btn.station-hero-add[data-saved="1"]:hover,
#player-add-list[data-saved="1"]:hover,
[data-add-station][data-saved="1"]:hover {
  background: rgba(34, 197, 94, 0.28) !important;
  border-color: #4ade80 !important;
  color: #86efac !important;
}
/* Details button: arrow sign ONLY everywhere with tooltip "Details" */
.station-card .station-details-btn,
.station-details-btn {
  height: 34px !important;
  min-height: 34px !important;
  width: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.station-card .station-details-btn:hover,
.station-details-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.station-details-btn .details-label {
  display: none !important;
}
.station-details-btn .details-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

/* On 2 columns: if screen width drops below 1440px, hide country name text keeping flag only */
@media (max-width: 1440px) {
  .station-grid:not([data-cols="1"]):not(.ranked-stations) .country-name-text {
    display: none !important;
  }
}
@media (max-width: 1280px) {
  .directory-body:has(.ad-reservation) .station-grid .country-name-text {
    display: inline !important;
  }
}
.station-grid[data-cols="1"] .country-name-text,
.station-grid.ranked-stations .country-name-text {
  display: inline !important;
}

/* Unskippable Blurred-Background Modal Prompts */
@keyframes rtModalShake {
  0%, 100% { transform: translateX(0) scale(1); }
  20%, 60% { transform: translateX(-5px) scale(1.01); }
  40%, 80% { transform: translateX(5px) scale(1.01); }
}
.rt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rt-modal-backdrop[hidden] {
  display: none !important;
}
.rt-modal-dialog {
  width: min(100%, 430px);
  background: linear-gradient(165deg, #27221d 0%, #1b1c20 100%);
  border: 1px solid #5c462e;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(247, 147, 30, 0.15);
}
.rt-modal-dialog[data-shake="1"] {
  animation: rtModalShake 0.32s ease;
}
.rt-modal-station-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rt-modal-station-head .station-mark {
  margin-bottom: 0;
  width: 46px;
  height: 46px;
}
.rt-modal-station-title {
  min-width: 0;
  flex: 1;
}
.rt-modal-station-title h2 {
  margin: 4px 0 0;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rt-confirm-heading {
  margin: 6px 0 10px !important;
  font-size: 21px;
}
.rt-modal-copy {
  margin: 12px 0 18px;
  color: #dcd8d2;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}
.rt-modal-error {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
}
.rt-modal-error[hidden] {
  display: none;
}
.rt-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rt-modal-actions > button,
.rt-modal-actions > .button {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
  margin-top: 0;
}
.rt-toast {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9998;
  padding: 12px 18px;
  border-radius: 10px;
  background: #232c1d;
  border: 1px solid #577340;
  color: #d4f0b0;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.rt-toast[hidden] {
  display: none !important;
}

/* === 3. Atmospheric Highway Hero & Quick-Tune Discovery Strip === */
.hero-art {
  background: radial-gradient(circle at 82% 18%, rgba(247, 147, 30, 0.24), transparent 58%),
              linear-gradient(145deg, #3c3024, #1e1e1e 72%);
  border-color: #5c4730;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(0, 0, 0, 0.3);
}
.hero-art .featured.panel {
  background: rgba(34, 34, 34, 0.92);
  border-color: #524231;
  backdrop-filter: blur(6px);
}
.quick-tune {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin: 6px 0 22px;
  background: linear-gradient(90deg, #231e19, #1f1f1f);
  border: 1px solid #3d342a;
  border-radius: 10px;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #282828;
  border: 1px solid #424242;
  color: #f6f3ee;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.quick-chip:hover {
  border-color: var(--orange);
  color: #fff;
  text-decoration: none;
}
.quick-chip.genre-chip {
  background: #2b2218;
  border-color: #5c4428;
  color: var(--orange);
}

/* === 4. Refined Concept 1C Top Bar, Snug Logo & Unified Controls === */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  background: linear-gradient(180deg, #252525 0%, #1c1c1c 100%);
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
}

/* Logo: Untouched natural height 48px, zero excess box/padding */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  text-decoration: none;
  border: 0;
}
.brand img {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
  object-fit: contain;
  display: block;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Strict 38px uniform height for all interactive buttons and inputs */
.site-nav,
.header-search,
.header-search input,
.tool-btn,
.guest-sign-in,
.guest-join {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
}

/* Primary Navigation Tabs in segmented container */
.site-nav {
  display: inline-flex;
  align-items: center;
  background: #131313;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 3px;
  gap: 0;
  flex-shrink: 0;
}
.site-nav .nav-tab {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  color: #b5b1aa;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.site-nav .nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.site-nav .nav-tab.active,
.site-nav .nav-tab[aria-current] {
  background: #2b2319;
  color: #ffffff;
  border: 1px solid #6b4d2a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

/* Flexible Auto-Adjusting Search Input */
.header-search {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 360px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: #888;
  pointer-events: none;
}
.header-search input {
  width: 100%;
  background: #141414;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s, background-color 0.15s;
}
.header-search input:focus {
  border-color: var(--orange);
  background: #181818;
  outline: none;
}

/* Right Tool Controls */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 0 12px;
  color: #d6d2cc;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
  font-family: inherit;
  user-select: none;
}
.tool-btn:hover {
  border-color: var(--orange);
  color: #fff;
  text-decoration: none;
}
.tool-btn .caret {
  font-size: 9px;
  color: #777;
  transition: transform 0.2s ease;
  margin-left: 2px;
}
.tool-btn[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

/* Guest Navigation */
.guest-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.guest-sign-in {
  color: #d6d2cc;
}
.guest-join {
  background: var(--orange);
  color: #21160b;
  font-weight: 800;
  border-color: var(--orange);
}
.guest-join:hover {
  background: #ffaa33;
  border-color: #ffaa33;
  color: #21160b;
}

/* User Avatar & Name */
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f7931e 0%, #b85c00 100%);
  color: #21160b;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.user-avatar.big {
  width: 34px;
  height: 34px;
  font-size: 14px;
  border-radius: 8px;
}
.user-pip {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7931e;
  border: 2px solid #1c1c1c;
}
.user-name {
  font-weight: 700;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown Menus */
.lang-dropdown-wrap,
.user-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.rt-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  z-index: 1000;
  overflow: hidden;
}
.rt-dropdown-menu[hidden] {
  display: none !important;
}
.lang-dropdown-menu {
  width: 200px;
}
footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
}
footer > * {
  display: inline-flex !important;
  align-items: center !important;
  line-height: normal !important;
}
footer .legal-links {
  display: inline-flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
}
footer .legal-links a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}
footer .lang-dropdown-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 6px;
}
footer .lang-btn {
  height: 26px;
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 400 !important;
  gap: 6px;
  border-radius: 6px;
  background: #232323;
  border: 1px solid #3c3c3c;
  color: #ddd7ce;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none;
  line-height: 1;
  transition: all 0.15s ease;
}
footer .lang-btn:hover,
footer .lang-btn[aria-expanded="true"] {
  border-color: var(--orange);
  background: #2c251f;
  color: #fff;
}
footer .lang-btn .globe-icon {
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
footer .lang-btn .lang-code-tag {
  font-size: 11px;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
  color: var(--orange);
  line-height: 1;
}
footer .lang-btn .caret {
  font-size: 8px;
  color: #888;
  margin-left: 2px;
  transition: transform 0.2s ease;
  line-height: 1;
}
footer .lang-btn[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}
footer .lang-dropdown-menu {
  top: auto;
  bottom: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: #1b1b1b;
  border: 1px solid #444;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.75);
}
.user-dropdown-menu {
  width: 240px;
}
.dropdown-head {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dropdown-scroll {
  max-height: 240px;
  overflow-y: auto;
}
.dropdown-scroll::-webkit-scrollbar {
  width: 5px;
}
.dropdown-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #e3ded6;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}
.dropdown-item:hover {
  background: #282828;
  color: var(--orange);
  text-decoration: none;
}
.dropdown-item .item-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.dropdown-item .item-label {
  flex: 1;
  font-weight: 600;
}
.lang-item {
  justify-content: space-between;
}
.lang-item.active {
  color: #fff;
  font-weight: 700;
}
.lang-code-pill {
  font-size: 11px;
  font-family: monospace;
  color: #888;
}
.lang-item.active .lang-code-pill {
  color: var(--orange);
  font-weight: 800;
}
.dropdown-divider {
  height: 1px;
  background: #2a2a2a;
  margin: 4px 0;
}
.dropdown-section-title {
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dropdown-user-head {
  padding: 12px;
  background: #181818;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2a2a2a;
}
.dropdown-user-head .user-meta strong {
  display: block;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
}
.online-tag {
  font-size: 11px;
  color: #77b300;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.online-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77b300;
  display: inline-block;
}
.dropdown-logout-form {
  margin: 0;
  padding: 0;
}
.dropdown-item.logout-btn {
  color: #b0aba3;
}
.dropdown-item.logout-btn:hover {
  color: #ff6b6b;
  background: #241c1c;
}

/* Number Bubbles */
.num-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.num-bubble-orange {
  background: #f7931e;
  color: #1f1408;
}
.num-bubble-muted {
  background: #2c2925;
  color: #e0dcd5;
  border: 1px solid #4a443c;
}

/* Responsive Top Bar */
@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    margin-top: 2px;
  }
}

/* === 5. Ranked Best 20 Podium Treatment === */
.ranked-station[data-rank="1"] {
  background: linear-gradient(90deg, #332718 0%, #252525 75%);
  border-color: #70532d;
  border-left: 4px solid #f7931e;
}
.ranked-station[data-rank="1"] .station-rank {
  color: #f7931e;
  text-shadow: 0 0 14px rgba(247, 147, 30, 0.35);
}
.ranked-station[data-rank="2"] {
  background: linear-gradient(90deg, #2c2e33 0%, #252525 75%);
  border-color: #545963;
  border-left: 4px solid #c5ccd6;
}
.ranked-station[data-rank="2"] .station-rank {
  color: #d8dee8;
}
.ranked-station[data-rank="3"] {
  background: linear-gradient(90deg, #30241d 0%, #252525 75%);
  border-color: #634634;
  border-left: 4px solid #cd7f32;
}
.ranked-station[data-rank="3"] .station-rank {
  color: #dfa060;
}

/* === 6. Tactile Playlist Builder & Simulator Export Panel === */
.split {
  align-items: start;
}
.playlist-station-list {
  margin-top: 0;
}
.playlist-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
  align-self: start;
  width: 100%;
}
.playlist-sidebar > .panel {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
}
.playlist-sidebar > .panel + .panel {
  margin-top: 0;
}
.export-panel + .manage-list-panel {
  margin-top: 0;
}
.manage-list-panel .check {
  padding: 10px 12px;
  background: #1c1c1c;
  border: 1px solid #363636;
  border-radius: 8px;
}
.manage-list-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.manage-list-actions > button {
  flex: 1 1 auto;
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  margin-top: 0;
  align-self: stretch;
}
.manage-list-actions > button.danger {
  flex: 0 0 auto;
}
.playlist-station-row {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #242424;
}
.playlist-station-row .order-move {
  min-height: 36px;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 7px;
  background: #1d1d1d;
  border: 1px solid #3d3d3d;
  color: #e6e2dc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.playlist-station-row .order-move:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.playlist-station-row:first-child .order-move[data-move="up"],
.playlist-station-row:last-child .order-move[data-move="down"] {
  opacity: 0.38;
}
.fav-inline-form {
  margin: 0;
}
.fav-toggle {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  color: #8c8881;
  background: #1c1c1c;
  border-color: #3a3a3a;
}
.fav-toggle[data-favorited="1"] {
  color: var(--orange);
  background: #2e251b;
  border-color: #6b4f2e;
}
.export-panel {
  background: linear-gradient(165deg, #2d241b 0%, #232323 85%);
  border-color: #5c4428;
}
.export-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.export-badges span {
  text-align: center;
  padding: 5px 4px;
  border-radius: 6px;
  background: #1b1b1b;
  border: 1px solid #473929;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.check:has(.check-text) { align-items: flex-start; }
.check input { flex-shrink: 0; }
.check:has(.check-text) input { margin-top: 2px; }
.check-text { line-height: 1.45; }
.template-form input:not([type="checkbox"]),
.template-form textarea {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'SFMono-Regular', ui-monospace, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-ligatures: none;
}
.panel:has(.template-form) {
  width: 100%;
}
textarea {
  resize: vertical;
}
.template-form textarea {
  width: 100%;
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  word-wrap: normal;
  overflow-x: auto;
  tab-size: 4;
  background: #141414;
  border-color: #3a3a3a;
}
body[data-navigating="1"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: linear-gradient(90deg, transparent, var(--orange), #ffb357, transparent);
  background-size: 200% 100%;
  animation: rt-nav-bar 0.9s linear infinite;
}
body[data-navigating="1"] main {
  opacity: 0.72;
  transition: opacity 0.12s ease;
}
@keyframes rt-nav-bar {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Multi-column grid rules: hold 2 columns down to 1280px when next to advertising sidebar */
.station-grid:not(.ranked-stations),
.directory-body .station-grid:not(.ranked-stations),
.directory-body:has(.ad-reservation) .station-grid:not(.ranked-stations),
.directory-body:not(:has(.ad-reservation)) .station-grid:not(.ranked-stations) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .directory-body:has(.ad-reservation) .station-grid:not([data-cols="1"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .station-grid,
  .directory-body .station-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Force hidden elements to stay hidden even with form-stack label flex styles */
[hidden],
[hidden="true"],
#rt-modal-new-list-wrap[hidden] {
  display: none !important;
}
/* Single-line genres without breaking into second line */
.station-card-meta,
.genre-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-height: 24px !important;
}
.genre-pills a,
.genre-pills span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Remove stream quality from all cards/boxes */
.bitrate-badge {
  display: none !important;
}

/* Bottom Player Controls: Add to List (+) & My Lists Arrow (→) */
#player-add-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  background: #252525;
  border: 1px solid #444;
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
#player-add-list:hover:not(:disabled) {
  border-color: var(--orange);
  background: #33261a;
  color: #fff;
}
#player-add-list:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #333;
}
.player-lists-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Station Specific Page Information Box & Tables */
.infobox {
  background: var(--panel, #252525);
  border: 1px solid var(--line, #383838);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
}
.infobox .description {
  margin: 0 0 18px 0;
  color: #dfdbd5;
  font-size: 15px;
  line-height: 1.6;
}
.radioinfo-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #333333;
  margin-top: 6px;
}
.radioinfo {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #333333;
  margin: 0;
  clear: both;
}
.radioinfo:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.radioinfo dt {
  width: 32%;
  min-width: 120px;
  color: #96938d;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.radioinfo dd {
  width: 68%;
  color: #f6f3ee;
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.radioinfo dd a {
  color: var(--orange, #f7931e);
  text-decoration: none;
}
.radioinfo dd a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .radioinfo {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }
  .radioinfo dt {
    width: 100%;
    font-size: 12px;
  }
  .radioinfo dd {
    width: 100%;
  }
}

/* Station Hero Title and Actions (Symbols only, right of main titles above the line) */
.station-hero-content {
  flex: 1;
  min-width: 0;
}
.station-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.station-hero-header h1 {
  margin: 0;
  line-height: 1.15;
}
.station-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.station-hero-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.station-hero-btn:hover {
  transform: scale(1.08);
}
.station-hero-listen {
  background: var(--orange, #f7931e);
  color: #21160b;
  border: 1px solid var(--orange, #f7931e);
  box-shadow: 0 4px 14px rgba(247, 147, 30, 0.3);
}
.station-hero-listen:hover {
  background: #ff9d2e;
  border-color: #ff9d2e;
  box-shadow: 0 6px 18px rgba(247, 147, 30, 0.45);
}
.station-hero-listen .play-glyph {
  font-size: 20px;
  line-height: 1;
  margin-left: 2px;
}
.station-hero-listen .eq-bars {
  display: none;
  gap: 2.5px;
  height: 16px;
  align-items: flex-end;
}
.station-hero-listen .eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  background: #21160b;
  border-radius: 1px;
}
.station-hero-listen[data-active] .play-glyph,
.station-hero-listen[data-playing="1"] .play-glyph {
  display: none;
}
.station-hero-listen[data-active] .eq-bars,
.station-hero-listen[data-playing="1"] .eq-bars {
  display: inline-flex;
}
.station-hero-listen[data-active] .eq-bars i:nth-child(1),
.station-hero-listen[data-playing="1"] .eq-bars i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
.station-hero-listen[data-active] .eq-bars i:nth-child(2),
.station-hero-listen[data-playing="1"] .eq-bars i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
.station-hero-listen[data-active] .eq-bars i:nth-child(3),
.station-hero-listen[data-playing="1"] .eq-bars i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }

.station-hero-add {
  background: #282828;
  color: #f6f3ee;
  border: 1px solid #484848;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}
.station-hero-add:hover {
  border-color: var(--orange, #f7931e);
  color: var(--orange, #f7931e);
  background: #323232;
}
@media (max-width: 520px) {
  .station-hero-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 22px;
  }
  .station-hero-listen .play-glyph {
    font-size: 18px;
  }
}

.alert-sm.alert-danger.form-alert,
.alert-danger.form-alert {
  background: #3b201d;
  color: #f7a89e;
  border: 1px solid #7c3b35;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 10px;
  margin-bottom: 12px;
}
.format-badge {
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
}

.auth-layout {
  align-items: start;
}

/* === Best Radios & Stations: 1 column instead of 2 with larger padding inside === */
.station-grid.ranked-stations,
.directory-body .station-grid.ranked-stations,
.directory-body:has(.ad-reservation) .station-grid.ranked-stations,
.directory-body:not(:has(.ad-reservation)) .station-grid.ranked-stations {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
  width: 100%;
}

.station-grid.ranked-stations .station-card {
  padding: 16px 20px;
  border-radius: 12px;
}



.station-grid.ranked-stations .country-name-text {
  display: inline !important;
}

@media (max-width: 480px) {
  .station-grid.ranked-stations .station-card {
    padding: 12px 14px;
  }
  .ranked-station .station-rank {
    min-width: 1.6rem;
    font-size: 1.25rem;
  }
}

/* Add to List Modal Success State */
.rt-modal-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 10px;
  margin: 6px 0 16px;
}
.rt-modal-success-banner.is-warning {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.rt-modal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-weight: 800;
  font-size: 15px;
}
.rt-modal-success-banner.is-warning .rt-modal-success-icon {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 16px;
  font-weight: 900;
}
.rt-modal-success-msg {
  color: #f4f4f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.rt-modal-success-banner.is-warning .rt-modal-success-msg {
  color: #fef08a;
}
.rt-modal-success-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.rt-modal-success-actions button,
.rt-modal-success-actions a.button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.rt-modal-success-actions #rt-modal-another-list-btn,
.rt-modal-success-actions #rt-modal-go-list-btn {
  background: #2c2c2c;
  border: 1px solid #414141;
  color: #f6f3ee;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
}
.rt-modal-success-actions #rt-modal-another-list-btn:hover,
.rt-modal-success-actions #rt-modal-go-list-btn:hover {
  border-color: var(--orange, #f7931e);
  color: #ffffff;
  text-decoration: none;
}
@media (max-width: 520px) {
  .rt-modal-success-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rt-modal-success-actions button,
  .rt-modal-success-actions a.button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Redesigned Submit Station (.auth-layout) */
.submit-station-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: start;
  gap: 48px;
  max-width: 1020px;
  margin: 20px auto 40px;
}
.submit-station-layout .lead-desc {
  color: var(--muted, #b7b4af);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #383838);
}
.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #d1cfcb;
}
.tip-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(247, 147, 30, 0.15);
  color: var(--orange, #f7931e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.tips-list strong { color: #fff; font-weight: 600; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e5e3df;
  margin-bottom: 4px;
}
.form-label .req {
  color: var(--orange, #f7931e);
  margin-left: 3px;
  display: inline;
  font-weight: 700;
}
.stream-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.stream-input-wrap input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.btn-test {
  background: #353535;
  color: #fff;
  border: 1px solid #4d4d4d;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-test:hover {
  background: #424242;
  border-color: var(--orange, #f7931e);
  color: var(--orange, #f7931e);
}
.btn-test.testing {
  opacity: 0.7;
  pointer-events: none;
}
.stream-feedback-box {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stream-feedback-box.success {
  background: rgba(119, 179, 0, 0.12);
  border: 1px solid rgba(119, 179, 0, 0.35);
  color: #c7e5a1;
}
.stream-feedback-box.error {
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.35);
  color: #f2b0a7;
}
.badge-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(119, 179, 0, 0.25);
  color: #bbf070;
}
.locked-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.25s ease-in-out, filter 0.25s ease-in-out;
}
.locked-fieldset[disabled] {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.65);
}
.lock-indicator-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted, #b7b4af);
}
.lock-indicator-banner.unlocked {
  background: rgba(119, 179, 0, 0.12);
  border: 1px solid rgba(119, 179, 0, 0.35);
  color: #c7e5a1;
}
.lock-indicator-banner.refused {
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #f2b0a7;
}
.autofill-notice {
  font-size: 12px;
  color: var(--orange, #f7931e);
  display: none !important;
  align-items: center;
  gap: 6px;
}
.autofill-notice.is-visible {
  display: flex !important;
}
.form-label,
label.form-label {
  margin-bottom: 6px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 14px;
  font-weight: 600;
  color: #e5e3df;
  white-space: nowrap !important;
  line-height: 1.2;
}
.form-label .req,
label.form-label .req {
  color: var(--orange, #f7931e);
  margin-left: 2px;
  display: inline !important;
}
.location-scope-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  margin-top: 12px !important;
  flex-wrap: wrap;
}
.loc-scope-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #c5c3bf !important;
  cursor: pointer;
  white-space: nowrap !important;
  user-select: none;
  background: #252525;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #3c3c3c;
  transition: all 0.15s ease;
  line-height: 1;
  margin: 0 !important;
  box-sizing: border-box;
}
.loc-scope-check:hover:not(.is-disabled) {
  border-color: var(--orange, #f7931e);
  color: #fff;
  background: #2e2e2e;
}
.loc-scope-check input[type="checkbox"] {
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  accent-color: var(--orange, #f7931e);
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}
.loc-scope-check.is-disabled {
  opacity: 0.38 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}
.loc-scope-check.is-disabled input {
  cursor: not-allowed !important;
}
.country-input-wrap {
  position: relative;
  width: 100%;
}
.country-input-wrap .country-select {
  width: 100%;
  display: block;
}
.country-input-wrap select {
  width: 100%;
}
.location-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}
.location-subgrid.single-col {
  grid-template-columns: 1fr;
}
.location-subcol {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.location-subcol select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: normal !important;
}
.country-input-wrap select,
.genre-row select {
  box-sizing: border-box;
  min-height: 46px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  line-height: normal !important;
}
@media (max-width: 640px) {
  .location-subgrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.genre-pulldowns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.genre-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.genre-row select {
  flex: 1;
}
.btn-remove-genre {
  background: transparent;
  border: 1px solid #4a4a4a;
  color: #aaa;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-remove-genre:hover {
  border-color: #e53935;
  color: #e53935;
}
.btn-add-genre {
  align-self: flex-start;
  background: #2c2c2c;
  border: 1px solid #414141;
  color: #f6f3ee;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  margin-top: 6px;
}
.btn-add-genre:hover {
  border-color: var(--orange, #f7931e);
  color: #fff;
  background: #353535;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-overlay.is-active,
.modal-overlay.is-open {
  display: flex !important;
}
.modal-overlay[hidden] {
  display: none !important;
}
.modal-box {
  background: #222327;
  border: 1px solid #484b55;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.modal-header p {
  font-size: 13px;
  color: var(--muted, #b7b4af);
  line-height: 1.5;
}
.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.candidate-card {
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.candidate-card:hover {
  border-color: rgba(247, 147, 30, 0.4);
}
.candidate-info strong {
  display: block;
  font-size: 15px;
  color: #fff;
}
.candidate-info small {
  color: var(--muted, #b7b4af);
  font-size: 12px;
}
.candidate-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-candidate-play {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: var(--orange, #f7931e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}
.btn-candidate-play:hover {
  background: var(--orange, #f7931e);
  color: #111;
}
.btn-add-stream {
  background: #2a2a2a;
  color: #f6f3ee;
  border: 1px solid #4e4e4e;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-add-stream:hover {
  border-color: var(--orange, #f7931e);
  color: var(--orange, #f7931e);
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #383838);
  margin-top: 6px;
}
.btn-new-radio {
  background: var(--orange, #f7931e);
  color: #21160b;
  border: 1px solid var(--orange, #f7931e);
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-new-radio:hover {
  background: #ff9f30;
}
.btn-cancel-modal {
  background: transparent;
  border: 1px solid #444;
  color: var(--muted, #b7b4af);
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
}
.btn-cancel-modal:hover {
  color: #fff;
  border-color: #666;
}
@media (max-width: 760px) {
  .submit-station-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 10px;
  }
  .stream-input-wrap {
    flex-direction: column;
  }
  .btn-test {
    padding: 10px;
    justify-content: center;
  }
}

/* === Admin Games & Export Formats Visual Redesign === */
.admin-games-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line, #383838);
  padding-bottom: 16px;
}
.admin-games-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.admin-games-header p {
  margin: 0;
  max-width: 700px;
  font-size: 14px;
  color: var(--muted, #b7b4af);
}
.admin-games-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.admin-games-nav-col {
  position: sticky;
  top: 20px;
}
.admin-formats-list-panel {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line, #383838);
  background: var(--panel, #252525);
  border-radius: 12px;
}
.admin-formats-list-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #383838);
  background: rgba(0, 0, 0, 0.15);
}
.admin-formats-nav-items {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.admin-format-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f6f3ee;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}
.admin-format-item:last-child {
  border-bottom: none;
}
.admin-format-item:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.admin-format-item.is-active {
  background: rgba(247, 147, 30, 0.08);
  border-left: 3px solid var(--orange, #f7931e);
}
.admin-format-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-format-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.format-badge-short {
  background: rgba(247, 147, 30, 0.18);
  color: var(--orange, #f7931e);
  border: 1px solid rgba(247, 147, 30, 0.35);
  font-weight: 700;
  font-size: 11px;
}
.admin-format-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}
.format-badge-type {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.format-badge-type.is-game {
  background: rgba(119, 179, 0, 0.15);
  color: #bbf070;
  border: 1px solid rgba(119, 179, 0, 0.3);
}
.format-badge-type.is-playlist {
  background: rgba(100, 150, 255, 0.15);
  color: #a5c2ff;
  border: 1px solid rgba(100, 150, 255, 0.3);
}
.format-badge-sii {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #b7b4af);
  font-size: 10px;
}
.format-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.format-status-dot.is-enabled {
  background: #77b300;
  box-shadow: 0 0 6px rgba(119, 179, 0, 0.6);
}
.format-status-dot.is-disabled {
  background: #666;
}
.format-status-text {
  font-size: 11px;
  color: var(--muted, #b7b4af);
}
.admin-format-item-file code {
  font-size: 11px;
  color: #999;
  font-family: monospace;
}
.admin-formats-list-foot {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--line, #383838);
}

/* Editor Panel */
.admin-format-editor-panel {
  padding: 24px;
  border-radius: 12px;
}
.editor-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #383838);
}
.editor-panel-heading h2 {
  font-size: 20px;
  margin: 0 0 4px;
}
.admin-fieldset {
  border: 1px solid #383838;
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 24px 0;
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange, #f7931e);
  padding: 0 8px;
}
.form-label-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e5e3df;
  margin-bottom: 6px;
}
.admin-fieldset .muted {
  font-size: 12px;
  color: #8c8883;
  margin-top: 4px;
  display: block;
}
.form-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.form-grid.four-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
.admin-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #3c3c3c;
  background: #1d1d1d;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.admin-toggle-card:hover {
  border-color: var(--orange, #f7931e);
  background: #242424;
}
.admin-toggle-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange, #f7931e);
  margin-top: 2px;
  cursor: pointer;
}
.toggle-card-content strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}
.toggle-card-content p {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #b7b4af);
  line-height: 1.4;
}

/* Tokens Card */
.admin-tokens-card {
  background: rgba(247, 147, 30, 0.05);
  border: 1px dashed rgba(247, 147, 30, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.tokens-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tokens-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.token-pill {
  background: #202020;
  border: 1px solid #444;
  color: #e2dfda;
  font-family: monospace;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: auto;
}
.token-pill:hover {
  border-color: var(--orange, #f7931e);
  color: var(--orange, #f7931e);
  background: #2b241c;
}
.token-pill.is-copied {
  background: #77b300 !important;
  color: #111 !important;
  border-color: #77b300 !important;
  font-weight: 700;
}

/* Template Blocks */
.template-blocks-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.template-block-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.template-block-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.template-block-label span {
  font-weight: 600;
  font-size: 13px;
  color: #eee;
}
.admin-editor-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--line, #383838) !important;
  flex-wrap: wrap !important;
}
.admin-editor-actions > :is(button, .button, a.button) {
  margin: 0 !important;
  align-self: center !important;
  min-height: 42px !important;
  height: 42px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
.admin-editor-actions button.primary {
  background: var(--orange, #f7931e) !important;
  border: 1px solid var(--orange, #f7931e) !important;
  color: #21160b !important;
}
.admin-editor-actions button.primary:hover {
  background: #ff9f30 !important;
  border-color: #ff9f30 !important;
  color: #000 !important;
}
.admin-editor-actions .admin-btn-cancel,
.admin-editor-actions a.button {
  background: #2c2c2c !important;
  border: 1px solid #484848 !important;
  color: #f6f3ee !important;
}
.admin-editor-actions .admin-btn-cancel:hover,
.admin-editor-actions a.button:hover {
  border-color: #777 !important;
  background: #363636 !important;
  color: #fff !important;
}
button.danger,
.button.danger {
  margin-top: 0;
}

.admin-editor-actions button.danger {
  background: rgba(182, 100, 96, 0.15) !important;
  border: 1px solid #b66460 !important;
  color: #f2b0a7 !important;
}
.admin-editor-actions button.danger:hover {
  background: #b66460 !important;
  border-color: #b66460 !important;
  color: #fff !important;
}
.admin-formats-list-foot a.button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2c2c2c !important;
  border: 1px solid #484848 !important;
  color: #f6f3ee !important;
  border-radius: 7px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}
.admin-formats-list-foot a.button:hover {
  border-color: var(--orange, #f7931e) !important;
  color: #fff !important;
  background: #363636 !important;
}
.editor-panel-heading .actions a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2c2c2c !important;
  border: 1px solid #484848 !important;
  color: #f6f3ee !important;
  border-radius: 7px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.editor-panel-heading .actions a.button:hover {
  border-color: var(--orange, #f7931e) !important;
  color: #fff !important;
  background: #363636 !important;
}

@media (max-width: 960px) {
  .admin-games-container {
    grid-template-columns: 1fr;
  }
  .admin-games-nav-col {
    position: static;
  }
  .form-grid.three-cols,
  .form-grid.four-cols,
  .admin-toggles-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   USER AVATARS (128x128 THUMBNAILS & PLACEHOLDERS)
   ========================================================================== */
.user-avatar-img {
  border-radius: 50%;
  object-fit: cover;
  background: #202020;
  border: 1px solid #484848;
  vertical-align: middle;
  display: inline-block;
}
.user-avatar-placeholder {
  border-radius: 50%;
  background: #34281c;
  color: var(--orange, #f7931e);
  font-weight: 800;
  text-align: center;
  border: 1px solid #58432e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-transform: uppercase;
  user-select: none;
}
.user-avatar-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-avatar-panel {
  margin-bottom: 24px;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.current-avatar-preview .user-avatar-img,
.current-avatar-preview .user-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 2px solid #505050;
}

.social-avatar-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #383838);
}
.social-avatar-hint {
  display: block;
  font-size: 12px;
  color: var(--muted, #999);
  margin-bottom: 8px;
  font-weight: 600;
}
.social-avatar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.social-btn-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-btn-brand-icon .social-icon {
  width: 16px !important;
  height: 16px !important;
}
.social-avatar-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 12px !important;
  min-height: 34px !important;
  height: 34px !important;
  background: #282828 !important;
  border: 1px solid #484848 !important;
  color: #eee !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s ease !important;
}
.social-avatar-btn:hover {
  background: #363636 !important;
  border-color: var(--orange, #f7931e) !important;
  color: #fff !important;
}
.social-avatar-badge-icon {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #181818 !important;
  vertical-align: middle !important;
}
.crop-modal-dialog {
  max-width: 360px;
  width: 95%;
  text-align: center;
}
.crop-viewport-wrap {
  margin: 16px auto;
  width: 280px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid #383838;
  position: relative;
  cursor: grab;
}
.crop-viewport-wrap:active {
  cursor: grabbing;
}
.crop-zoom-controls {
  margin: 12px 0 18px;
}
.zoom-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted, #b7b4af);
}
.zoom-label input[type="range"] {
  max-width: 180px;
  accent-color: var(--orange, #f7931e);
}

/* ==========================================================================
   STATION RATINGS (TRUE BAYESIAN ESTIMATE & 1-5 STARS)
   ========================================================================== */
.station-rating-panel {
  margin: 24px 0;
  padding: 20px 24px;
  background: #22201d;
  border: 1px solid #4a3e2f;
  border-radius: 12px;
}
.rating-widget-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rating-score-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rating-main-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #191612;
  border: 1px solid #634b2f;
  border-radius: 9px;
  padding: 6px 14px;
}
.rating-main-num .score-value {
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  line-height: 1;
}
.rating-main-num .score-star {
  font-size: 24px;
  color: var(--orange, #f7931e);
  line-height: 1;
}
.rating-score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rating-votes-count {
  font-size: 13.5px;
  font-weight: 700;
  color: #e6e2dc;
}
.rating-raw-avg {
  font-size: 12px;
  color: var(--muted, #b7b4af);
}
.rating-interactive-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rating-stars-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating-stars-control .star-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #555;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
  min-height: auto;
}
.rating-stars-control .star-btn:hover,
.rating-stars-control .star-btn.hover-active {
  color: #ffb84d;
  transform: scale(1.15);
}
.rating-stars-control .star-btn.active {
  color: var(--orange, #f7931e);
}
.rating-stars-control .star-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.rating-user-feedback {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange, #f7931e);
}
.rating-signin-prompt {
  color: var(--orange, #f7931e);
  text-decoration: underline;
  font-size: 12.5px;
}

/* ==========================================================================
   DISQUS-STYLE COMMUNITY COMMENTS
   ========================================================================== */
.station-comments-panel {
  margin: 30px 0;
  padding: 24px;
  border-radius: 12px;
  background: #202020;
  border: 1px solid var(--line, #383838);
}
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.comments-title-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #333;
  color: var(--orange, #f7931e);
}
.comments-sort-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-sort-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted, #b7b4af);
  text-decoration: none;
}
.comment-sort-btn:hover {
  color: #fff;
  background: #2a2a2a;
}
.comment-sort-btn.active {
  color: #fff;
  background: #383838;
  font-weight: 700;
}
.comment-compose-form {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.compose-avatar-col {
  flex-shrink: 0;
  padding-top: 4px;
}
.compose-input-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #191919;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  color: #f6f3ee;
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  font-size: 14px;
}
.comment-textarea:focus {
  border-color: var(--orange, #f7931e);
  outline: none;
}
.compose-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.compose-foot .char-count {
  font-size: 12px;
  margin-right: auto;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comment-thread {
  border-bottom: 1px solid #2d2d2d;
  padding-bottom: 16px;
}
.comment-thread:last-child {
  border-bottom: none;
}
.comment-item {
  display: flex;
  gap: 14px;
}
.comment-avatar-col {
  flex-shrink: 0;
}
.comment-content-col {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 13px;
}
.comment-author-name {
  font-weight: 700;
  color: #f6f3ee;
}
.comment-staff-author {
  color: var(--orange, #f7931e);
}
.staff-badge {
  background: #3b2713;
  color: var(--orange, #f7931e);
  border: 1px solid #5a3c1e;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}
.comment-time {
  font-size: 12px;
}
.comment-mod-ip {
  font-size: 11.5px;
  background: #171717;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px dashed #555;
  color: #ffc482;
}
.badge-flagged {
  background: rgba(182, 100, 96, 0.2);
  color: #f2b0a7;
  border: 1px solid #b66460;
  font-size: 10px;
  padding: 1px 6px;
}
.comment-body {
  font-size: 14px;
  line-height: 1.5;
  color: #dedede;
  word-break: break-word;
  margin-bottom: 8px;
}
.comment-body p {
  margin: 0;
  max-width: none;
}
.comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.comment-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 2px 6px;
}
.comment-vote-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted, #b7b4af);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 700;
  min-height: auto;
}
.comment-vote-btn:hover {
  color: #fff;
}
.comment-vote-btn.vote-up.voted {
  color: var(--orange, #f7931e);
}
.comment-vote-btn.vote-down.voted {
  color: #e74c3c;
}
.comment-vote-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.comment-reply-btn,
.comment-report-btn,
.comment-del-btn {
  background: transparent;
  border: none;
  padding: 2px 6px;
  color: var(--muted, #b7b4af);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  min-height: auto;
}
.comment-reply-btn:hover,
.comment-report-btn:hover {
  color: #fff;
  text-decoration: underline;
}
.comment-del-btn:hover {
  color: #f2b0a7;
  text-decoration: underline;
}
.comment-mod-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.comment-reply-box {
  margin-top: 14px;
  padding: 12px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 8px;
}
.comment-nested-compose {
  margin-bottom: 0;
}
.comment-replies-list {
  margin-top: 14px;
  margin-left: 36px;
  padding-left: 14px;
  border-left: 2px solid #333;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reply-item {
  padding-top: 6px;
}
.comments-disabled-alert {
  padding: 14px 18px;
  background: #29241e;
  border: 1px solid #58442e;
  border-radius: 8px;
  color: #dfb987;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.comments-mod-notice {
  padding: 10px 14px;
  background: #2a2020;
  border: 1px solid #703838;
  border-radius: 6px;
  color: #f2b0a7;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.comments-login-prompt {
  padding: 20px;
  background: #1c1c1c;
  border: 1px dashed #444;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}
.comments-login-prompt p {
  margin: 0 0 12px;
}

/* ==========================================================================
   MODERATION PAGES FOR COMMENTS & REPORTS
   ========================================================================== */
.mod-comment-card,
.mod-report-card {
  margin-bottom: 16px;
  padding: 18px;
}
.mod-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mod-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.mod-ip-badge {
  background: #141414;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #444;
  color: #f7931e;
  font-size: 12px;
}
.mod-comment-body {
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.5;
}
.mod-report-quote {
  margin: 8px 0;
  padding: 10px 14px;
  background: #181818;
  border-left: 3px solid #b66460;
  color: #eee;
  border-radius: 0 6px 6px 0;
}
.mod-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #2d2d2d;
}
.badge-approved {
  background: rgba(85, 148, 65, 0.2);
  color: #a3e293;
  border: 1px solid #559441;
}
.badge-deleted {
  background: rgba(100, 100, 100, 0.2);
  color: #aaa;
  border: 1px solid #666;
}

/* ==========================================================================
   MODAL ACTION BUTTON FIXES (NO INVISIBLE CANCEL BUTTONS)
   ========================================================================== */
.rt-modal-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}
.rt-modal-actions button,
.rt-modal-actions .button,
.rt-modal-actions a.button {
  margin: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}
.rt-modal-actions button.quiet,
.rt-modal-actions .btn-cancel-modal,
.rt-modal-actions [data-confirm-cancel],
.rt-modal-actions [data-modal-cancel] {
  background: #2c2c2c !important;
  border: 1px solid #484848 !important;
  color: #f6f3ee !important;
}
.rt-modal-actions button.quiet:hover,
.rt-modal-actions .btn-cancel-modal:hover,
.rt-modal-actions [data-confirm-cancel]:hover,
.rt-modal-actions [data-modal-cancel]:hover {
  background: #363636 !important;
  border-color: #777 !important;
  color: #fff !important;
}


/* Account password form actions & forgot password link */
.password-form-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-top: 18px !important;
  flex-wrap: wrap;
}
.password-form-actions button {
  margin-top: 0 !important;
}
.password-form-actions .forgot-password-link {
  color: var(--blue, #2a9fd6) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin-left: auto !important;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.password-form-actions .forgot-password-link:hover {
  text-decoration: underline !important;
  color: #fff !important;
}

/* ======================================================================
   Listing redesign (2026-11-08): A boxes (default), B list mode,
   D cover tiles (home featured), E ranked chart (#1 on top)
   ====================================================================== */

/* ---- shared: larger, filled play badge ---- */
.station-card .station-play-badge {
  width: 72px;
  height: 72px;
  min-height: 72px;
  border-radius: 12px;
  gap: 4px;
  background: var(--orange);
  color: #21160b;
  border: 1px solid var(--orange);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
.station-card .station-play-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247, 147, 30, 0.25);
  background: var(--orange);
  color: #21160b;
}
.station-card .station-play-badge[data-active],
.station-tile .tile-play[data-active] {
  background: #2c2c2c;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.station-card .play-badge-icon { height: 20px; }
.station-card .play-glyph { font-size: 20px; }
.station-card .eq-bars { height: 18px; gap: 3px; }
.station-card .eq-bars i { width: 3.5px; }
.station-card .play-badge-code { font-size: 12px; letter-spacing: 1px; opacity: 0.78; }

/* ---- A: boxes (default) ---- */
.station-card {
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
}
.station-card-body { gap: 4px; }
.station-card .station-name { font-size: 20px; line-height: 1.2; }
.station-card .country-name { font-size: 13px; gap: 6px; }
.station-card .country-name .country-flag { width: 22px; height: 16px; }
.station-card-song { font-size: 14px; line-height: 1.35; color: #d6d1ca; }
.station-card .station-card-meta { margin-top: 4px; }
.station-card .genre-pill {
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #303030;
  border-color: #444;
  line-height: 1.25;
}
.station-card-meta, .genre-pills { max-height: 28px !important; }
.station-grid:not([data-cols="1"]):not(.ranked-stations) .station-card .station-card-actions {
  flex-direction: column;
  gap: 8px;
}
.station-card .station-quick-add,
.station-card .station-details-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 18px;
  border-radius: 8px;
  background: #2c2c2c;
  border: 1px solid #444;
  color: #f6f3ee;
}
.station-card .station-quick-add:hover,
.station-card .station-details-btn:hover { border-color: var(--orange); color: #fff; }
.station-grid { gap: 14px !important; }

/* ---- view switch (Boxes / List) ---- */
@media (max-width: 1340px) {
  .view-density-switch { display: inline-flex; }
}
.view-density-switch { gap: 0; padding: 0; overflow: hidden; background: #232323; border-color: #444; }
.view-density-switch .density-btn {
  width: auto;
  min-height: 38px;
  padding: 0 13px;
  gap: 7px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  color: #b7b4af;
}
.view-density-switch .density-btn + .density-btn { border-left: 1px solid #444; }
.view-density-switch .density-btn[data-active] {
  background: #3a2c1c;
  color: var(--orange);
  font-weight: 700;
}
.density-icon { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
  .view-density-switch .density-label { display: none; }
  .view-density-switch .density-btn { padding: 0 11px; }
}

/* ---- B: list mode ---- */
.station-grid[data-cols="1"],
.directory-body .station-grid[data-cols="1"],
.directory-body:has(.ad-reservation) .station-grid[data-cols="1"] { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
.station-grid[data-cols="1"] .station-card {
  padding: 12px 16px 12px 12px;
  gap: 18px;
  border-radius: 10px;
  border-left: 4px solid hsl(var(--tint, 30) 55% 50%);
}
.station-grid[data-cols="1"] .station-play-badge { width: 64px; height: 64px; min-height: 64px; }
.station-grid[data-cols="1"] .station-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
}
.station-grid[data-cols="1"] .station-card-header { grid-column: 1 / -1; gap: 10px; }
.station-grid[data-cols="1"] .station-name { font-size: 21px; }
.station-grid[data-cols="1"] .country-name { font-size: 14px; }
.station-grid[data-cols="1"] .station-card .station-card-meta { margin: 0; justify-content: flex-end; }
@media (max-width: 640px) {
  .station-card { gap: 12px; padding: 12px; }
  .station-card .station-play-badge { width: 60px; height: 60px; min-height: 60px; }
  .station-card .station-name { font-size: 18px; }
  .station-grid[data-cols="1"] .station-card { padding: 12px; gap: 12px; }
  .station-grid[data-cols="1"] .station-play-badge { width: 56px; height: 56px; min-height: 56px; }
  .station-grid[data-cols="1"] .station-card-body { grid-template-columns: minmax(0, 1fr); }
  .station-grid[data-cols="1"] .station-card .station-card-meta { justify-content: flex-start; }
  .station-grid[data-cols="1"] .station-name { font-size: 18px; }
  .station-grid[data-cols="1"] .station-card-actions { flex-direction: column; }
}

/* ---- E: ranked chart, #1 on top ---- */
.station-grid.station-chart,
.directory-body .station-grid.station-chart {
  display: block !important;
  border: 1px solid #383838;
  border-radius: 12px;
  overflow: hidden;
  background: #252525;
  min-width: 0;
}
.station-chart .station-stars {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.station-chart .station-stars small { color: #b7b4af; font-size: 12px; letter-spacing: 0; margin: 0; }
.station-chart .station-rank { color: #5b5b5b; }

.rank-podium {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #222;
  border-bottom: 1px solid #383838;
}
.rank-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rank-podium .station-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "badge body" "stars actions";
  align-items: center;
  gap: 14px 16px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(160deg, #3a3026, #252525 75%) !important;
  border: 1px solid #4b4034 !important;
}
.rank-podium .station-card .station-play-badge { grid-area: badge; }
.rank-podium .station-card .station-card-body { grid-area: body; position: relative; z-index: 1; }
.rank-podium .station-card .station-stars { grid-area: stars; flex-direction: row; align-items: center; gap: 8px; }
.rank-podium .station-card .station-card-actions { grid-area: actions; justify-self: end; flex-direction: row; position: relative; z-index: 1; }
.rank-podium .station-rank {
  position: absolute;
  right: 18px;
  top: -2px;
  font-size: 92px !important;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
  pointer-events: none;
}
.rank-podium .station-card .station-name { font-size: 22px; font-weight: 800; }
.rank-podium .station-card[data-rank="1"] {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "badge body stars actions";
  padding: 24px 120px 24px 24px;
  border-color: var(--orange) !important;
  background: linear-gradient(160deg, #4a361f, #262321 75%) !important;
}
.rank-podium .station-card[data-rank="1"] .station-play-badge { width: 88px; height: 88px; min-height: 88px; }
.rank-podium .station-card[data-rank="1"] .station-name { font-size: 30px; }
.rank-podium .station-card[data-rank="1"] .station-card-song { font-size: 16px; }
.rank-podium .station-card[data-rank="1"] .station-stars { flex-direction: column; align-items: flex-end; gap: 2px; }
.rank-podium .station-card[data-rank="1"] .station-rank { font-size: 130px !important; top: -8px; right: 24px; color: rgba(247, 147, 30, 0.22) !important; }

.rank-rows .station-card {
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid #383838 !important;
  background: transparent !important;
  padding: 12px 18px !important;
  gap: 16px;
  min-height: 86px;
}
.rank-rows .station-card:first-child { border-top: 0 !important; }
.rank-rows .station-card:hover { background: #2e2924 !important; }
.rank-rows .station-rank { font-size: 28px !important; font-weight: 900; min-width: 44px; }
.rank-rows .station-play-badge { width: 60px; height: 60px; min-height: 60px; }
.rank-rows .station-card .station-card-actions { flex-direction: row; }
@media (max-width: 1100px) {
  .rank-podium .station-card[data-rank="1"] {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "badge body" "stars actions";
    padding-right: 24px;
  }
  .rank-podium .station-card[data-rank="1"] .station-stars { flex-direction: row; align-items: center; gap: 8px; }
}
@media (max-width: 760px) {
  .rank-pair { grid-template-columns: minmax(0, 1fr); }
  .rank-podium { padding: 12px; }
  .rank-podium .station-card[data-rank="1"] .station-play-badge { width: 72px; height: 72px; min-height: 72px; }
  .rank-podium .station-card[data-rank="1"] .station-name { font-size: 24px; }
  .rank-podium .station-card[data-rank="1"] .station-rank { font-size: 96px !important; }
  .rank-rows .station-card { padding: 12px !important; gap: 12px; }
  .rank-rows .station-rank { font-size: 22px !important; min-width: 30px; }
  .rank-rows .station-play-badge { width: 54px; height: 54px; min-height: 54px; }
  .rank-rows .station-stars { display: none !important; }
  .rank-rows .station-card .station-card-actions { flex-direction: column; }
  .rank-rows .station-card .station-name { font-size: 18px; }
}

/* ---- D: home cover tiles ---- */
.station-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .station-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .station-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .station-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.station-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #252525;
  border: 1px solid #383838;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}
.station-tile:hover { border-color: #6b5133; }
.station-tile:has(.listen[data-active]) { border-color: rgba(247, 147, 30, 0.6); }
.tile-art {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, hsl(var(--tint, 30) 32% 22%), hsl(var(--tint, 30) 12% 13%));
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.tile-code {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
}
.tile-flag { position: absolute; left: 12px; top: 12px; display: inline-flex; }
.tile-flag .country-flag { width: 24px; height: 17px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.station-tile .tile-add {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.station-tile .tile-add:hover { border-color: var(--orange); }
.station-tile .tile-play {
  position: absolute;
  right: 12px;
  bottom: -26px;
  z-index: 2;
  width: 56px;
  height: 56px;
  min-height: 56px;
  border-radius: 50%;
  padding: 0 !important;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #21160b;
  border: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.station-tile .tile-play:hover { transform: translateY(-1px); }
.station-tile .tile-play .play-badge-code { display: none; }
.station-tile .tile-play .play-glyph { font-size: 20px; }
.station-tile .tile-play .eq-bars { height: 18px; gap: 3px; }
.station-tile .tile-play .eq-bars i { width: 3.5px; }
.tile-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 16px; }
.tile-body .station-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 54px;
}
.tile-body .station-card-song { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-body .genre-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #303030; border-color: #444; }
@media (max-width: 600px) {
  .tile-code { font-size: 34px; }
  .tile-body .station-name { font-size: 16px; padding-right: 44px; }
  .station-tile .tile-play { width: 48px; height: 48px; min-height: 48px; bottom: -22px; }
}

@media (max-width: 640px) {
  .directory-body .station-grid[data-cols="1"] .station-card .country-name-text,
  .directory-body .station-grid.station-chart .station-card .country-name-text { display: none !important; }
  .rank-podium .station-card { padding-right: 60px; }
  .rank-podium .station-card[data-rank="1"] { padding-right: 70px; }
  .rank-podium .station-rank { font-size: 64px !important; right: 12px; }
  .rank-podium .station-card[data-rank="1"] .station-rank { font-size: 80px !important; right: 14px; }
}

/* ---- Playing station highlight (all listing layouts) ---- */
.station-grid .station-card:has(.listen[data-active]),
.directory-body .station-grid .station-card:has(.listen[data-active]),
.rank-podium .station-card:has(.listen[data-active]),
.rank-rows .station-card:has(.listen[data-active]) {
  background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%) !important;
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(247, 147, 30, 0.18) !important;
}
.station-grid[data-cols="1"] .station-card:has(.listen[data-active]) { border-left-color: var(--orange) !important; }
.rank-rows .station-card:has(.listen[data-active]) { box-shadow: inset 4px 0 0 var(--orange) !important; }
.station-card:has(.listen[data-active]) .station-name { color: #fff; }
.station-card:has(.listen[data-active]) .station-play-badge[data-active] {
  background: #1b1b1b;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.station-tile:has(.listen[data-active]) {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(247, 147, 30, 0.18);
}
.station-tile:has(.listen[data-active]) .tile-body { background: linear-gradient(180deg, rgba(247, 147, 30, 0.18), rgba(247, 147, 30, 0.04)); }
.station-tile:has(.listen[data-active]) .station-name { color: #fff; }
.station-tile .tile-play[data-active] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange), 0 6px 16px rgba(0, 0, 0, 0.5); }

/* ---- Podium: compact one-row #2/#3, smaller actions left of the rank number ---- */
.rank-podium .station-card:not([data-rank="1"]) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "badge body actions" "badge stars actions";
  row-gap: 4px;
  padding: 16px 92px 16px 16px;
}
.rank-podium .station-card:not([data-rank="1"]) .station-play-badge { width: 64px; height: 64px; min-height: 64px; }
.rank-podium .station-card:not([data-rank="1"]) .station-stars:empty { display: none; }
.rank-podium .station-card .station-card-actions { align-self: center; gap: 6px; }
.rank-podium .station-card .station-quick-add,
.rank-podium .station-card .station-details-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  font-size: 15px;
}
.rank-podium .station-card:not([data-rank="1"]) .station-rank { top: 50%; transform: translateY(-50%); font-size: 80px !important; }
@media (max-width: 640px) {
  .rank-podium .station-card:not([data-rank="1"]) { padding: 12px 56px 12px 12px; gap: 4px 12px; }
  .rank-podium .station-card:not([data-rank="1"]) .station-play-badge { width: 56px; height: 56px; min-height: 56px; }
  .rank-podium .station-card .station-card-actions { flex-direction: column; }
  .rank-podium .station-card:not([data-rank="1"]) .station-rank { font-size: 56px !important; right: 10px; }
}
.directory-body .station-grid .rank-pair .station-card .country-name-text { display: none !important; }
.rank-pair .station-card .station-name { font-size: 19px; }
@media (max-width: 1100px) {
  .rank-podium .station-card[data-rank="1"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "badge body actions" "badge stars actions";
    row-gap: 4px;
    padding-right: 110px;
  }
}
@media (max-width: 640px) {
  .rank-podium .station-card[data-rank="1"] { padding: 14px 60px 14px 14px; gap: 4px 12px; }
  .rank-podium .station-card[data-rank="1"] .station-play-badge { width: 64px; height: 64px; min-height: 64px; }
  .rank-podium .station-card[data-rank="1"] .station-name { font-size: 22px; }
  .rank-podium .station-card[data-rank="1"] .station-rank { font-size: 72px !important; right: 10px; top: 50%; transform: translateY(-50%); }
  .rank-pair .station-card .station-name { font-size: 18px; }
}

/* ---- #2 and #3 as regular rows with a bigger, medal-coloured rank number ---- */
.rank-rows .station-card[data-rank="2"] .station-rank,
.rank-rows .station-card[data-rank="3"] .station-rank { font-size: 46px !important; }
@media (max-width: 760px) {
  .rank-rows .station-card[data-rank="2"] .station-rank,
  .rank-rows .station-card[data-rank="3"] .station-rank { font-size: 32px !important; }
}

/* ======================================================================
   Station page redesign (2026-11-08): now-playing hero with square play,
   compact rating, gauges, about/facts, sidebar CTA + ad + similar stations
   ====================================================================== */
.st-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 30px 34px;
  margin: 0 0 16px;
  border-radius: 18px;
  border: 1px solid #4b4034;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--tint, 30) 45% 24%), #1f1c19 60%);
}
.st-hero::after {
  content: attr(data-code);
  position: absolute;
  right: -10px;
  bottom: -62px;
  font-size: 240px;
  font-weight: 900;
  letter-spacing: -10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.st-hero .st-hero-play {
  width: 140px;
  height: 140px;
  min-height: 140px;
  border-radius: 22px;
  gap: 8px;
  background: var(--orange);
  color: #21160b;
  border: 0;
  box-shadow: 0 12px 32px rgba(247, 147, 30, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.st-hero .st-hero-play:hover { transform: translateY(-2px); background: var(--orange); color: #21160b; }
.st-hero .st-hero-play .play-badge-icon { height: 44px; }
.st-hero .st-hero-play .play-glyph { font-size: 44px; }
.st-hero .st-hero-play .eq-bars { height: 40px; gap: 5px; }
.st-hero .st-hero-play .eq-bars i { width: 6px; }
.st-hero .st-hero-play .play-badge-code { font-size: 16px; letter-spacing: 2px; opacity: 0.75; }
.st-hero .st-hero-play[data-active] {
  background: #1b1b1b;
  color: var(--orange);
  box-shadow: inset 0 0 0 3px var(--orange), 0 12px 32px rgba(247, 147, 30, 0.25);
}
.st-hero-main { min-width: 0; position: relative; z-index: 1; }
.st-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.st-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.st-hero-meta .country-name { display: inline-flex; gap: 6px; align-items: center; }
.st-hero-meta .genre-pills { max-height: none !important; flex-wrap: wrap !important; }
.st-hero-meta .genre-pill { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #303030; border-color: #444; }

.st-np.station-card-song {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  color: #f6f3ee;
}
/* Until the player brings fresh song information the stored song is the last one played (2026-11-12): "Last Played",
   no equalizer. The page script switches data-np-state to "now". Small screens show the player bar's note instead. */
.st-np[data-np-state="last"] .st-np-eq, .st-np[data-np-state="last"] .st-np-now, .st-np:not([data-np-state="last"]) .st-np-last { display: none; }
.st-np-note { display: none; }
@media (max-width: 640px) { .st-np .st-np-label { display: none; } .st-np .st-np-note { display: inline; } }
.st-np-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.st-np .song-text { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-np-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 15px; flex: none; }
.st-np-eq i { display: block; width: 3px; height: 5px; border-radius: 1px; background: var(--orange); }
.st-hero:has(.listen[data-active]) .st-np-eq i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
.st-hero:has(.listen[data-active]) .st-np-eq i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
.st-hero:has(.listen[data-active]) .st-np-eq i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }
.st-hero:has(.listen[data-active]) .st-np-eq i:nth-child(4) { animation: rtEq1 0.8s ease-in-out infinite; }

.st-rating.station-rating-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.st-rating .rating-main-num { display: inline-flex; align-items: baseline; gap: 3px; font-size: 22px; font-weight: 900; color: #fff; margin: 0; }
.st-rating .score-star { color: var(--orange); font-size: 18px; }
.st-rating .rating-votes-count { color: #b7b4af; font-size: 13px; }
.st-rating .rating-stars-control { display: inline-flex; gap: 2px; }
.st-rating .star-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
}
.st-rating .rating-user-feedback { font-size: 13px; margin: 0; }

.st-hero-acts { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.st-hero-acts .button { min-height: 46px; padding: 0 20px; font-size: 15px; white-space: nowrap; }

.st-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.st-gauge { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #202020; border: 1px solid #383838; border-radius: 12px; min-width: 0; }
.st-ring {
  --p: 0;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), #333 0);
}
.st-ring::after { content: ''; width: 44px; height: 44px; border-radius: 50%; background: #202020; }
.st-gauge b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.st-gauge div span { font-size: 13px; color: #b7b4af; }

.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.st-main, .st-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-main > details.panel, .st-main > .panel, .st-main > section { margin-top: 0; }
.st-side .ad-reservation { margin: 0; padding: 0; width: 100%; }

.st-about h2 { margin: 0 0 12px; font-size: 20px; }
.st-about .description { margin: 0 0 16px; color: #d6d1ca; line-height: 1.65; max-width: none; }
.st-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #383838;
  border: 1px solid #383838;
  border-radius: 10px;
  overflow: hidden;
}
.st-facts > div { background: #222; padding: 12px 14px; min-width: 0; }
.st-facts dt { margin: 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #b7b4af; }
.st-facts dd { margin: 4px 0 0; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.st-facts .country-name { display: inline-flex; gap: 6px; align-items: center; }
.st-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px; padding: 3px 8px; border-radius: 5px; border: 1px solid; line-height: 1.3; }
.st-tag.ok { color: #bfe38a; border-color: #4a6035; background: #25301e; }
.st-tag.warn { color: #f2c27a; border-color: #6b4a24; background: #2d2217; }
.st-tag.bad { color: #ff9b9b; border-color: #7a2e2e; background: #301616; }
.st-none-left { margin: 0 0 12px; }
.st-tag.mono { font-family: ui-monospace, Consolas, monospace; color: var(--orange); border-color: #6b4a24; background: #2d2217; }

.st-cta { background: linear-gradient(150deg, #3a2c1c, #252525 70%); border-color: #5a4630; }
.st-cta h2 { margin: 6px 0 10px; }

.st-similar h2 { margin: 0 0 6px; font-size: 18px; }
.st-sim { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #383838; }
.st-similar h2 + .st-sim { border-top: 0; }
.st-sim .st-sim-play {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 10px;
  background: var(--orange);
  color: #21160b;
  border: 0;
}
.st-sim .st-sim-play .play-badge-code { display: none; }
.st-sim .st-sim-play .play-glyph { font-size: 15px; }
.st-sim .st-sim-play[data-active] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.st-sim-body { min-width: 0; }
.st-sim-body .station-name { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sim-body small { display: flex; gap: 6px; align-items: center; min-width: 0; margin: 0; font-size: 12.5px; color: #b7b4af; white-space: nowrap; overflow: hidden; }
.st-sim-body .country-name { display: inline-flex; gap: 5px; align-items: center; color: #b7b4af; min-width: 0; }
.st-sim-genre::before { content: '·'; margin-right: 6px; }
.st-sim .st-sim-add {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  background: #2c2c2c;
  border: 1px solid #444;
  color: #f6f3ee;
  font-weight: 700;
}
.st-sim .st-sim-add:hover { border-color: var(--orange); }
.st-sim:has(.listen[data-active]) .station-name { color: #fff; }
.st-sim:has(.listen[data-active]) { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; border-top-color: transparent; background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%); box-shadow: inset 4px 0 0 var(--orange), 0 0 24px rgba(247, 147, 30, 0.12); }
.st-sim:has(.listen[data-active]) + .st-sim { border-top-color: transparent; }

@media (max-width: 1000px) {
  .st-hero { grid-template-columns: auto minmax(0, 1fr); }
  .st-hero-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .st-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .st-hero { padding: 20px 16px; gap: 16px; border-radius: 14px; }
  .st-hero .st-hero-play { width: 92px; height: 92px; min-height: 92px; border-radius: 16px; }
  .st-hero .st-hero-play .play-glyph { font-size: 30px; }
  .st-hero .st-hero-play .play-badge-icon { height: 30px; }
  .st-hero .st-hero-play .play-badge-code { font-size: 13px; }
  .st-hero::after { font-size: 150px; bottom: -32px; }
  .st-np.station-card-song { border-radius: 12px; }
  .st-hero-acts .button { flex: 1; }
  .st-gauges { grid-template-columns: minmax(0, 1fr); }
  .st-facts { grid-template-columns: minmax(0, 1fr); }
}
.st-main > *, .st-side > * { align-self: stretch; }
.st-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); }
  .st-hero .st-hero-main { order: 1; }
  .st-hero .st-hero-play { order: 2; width: 100%; height: 64px; min-height: 64px; flex-direction: row; gap: 12px; border-radius: 14px; }
  .st-hero .st-hero-play .play-badge-icon { height: 26px; }
  .st-hero .st-hero-play .play-glyph { font-size: 26px; }
  .st-hero .st-hero-play .eq-bars { height: 24px; }
  .st-hero-acts { order: 3; }
}
@media (max-width: 640px) {
  .st-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .st-gauge { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; }
  .st-ring { width: 46px; height: 46px; }
  .st-ring::after { width: 36px; height: 36px; }
  .st-gauge b { font-size: 18px; }
  .st-gauge div span { font-size: 11.5px; line-height: 1.25; display: block; }
}

/* ---- Station page: play/actions aligned with the title, AddToAny share, date pair ---- */
.st-hero { align-items: start; }
.st-hero .st-hero-play, .st-hero-acts { margin-top: 28px; }
.st-share { display: flex; gap: 8px; width: 100%; }
.st-share .button { min-height: 46px; margin: 0; }
.st-share .st-share-icon { width: 46px; min-width: 46px; padding: 0 !important; flex: none; }
.st-share .st-share-more { flex: 1; gap: 8px; padding: 0 14px; }
.st-share svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.st-share .a2a_button_facebook:hover { border-color: #1877f2; color: #fff; }
.st-share .a2a_button_x:hover { border-color: #e7e7e7; color: #fff; }
.st-facts > .st-fact-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: #383838;
}
.st-fact-pair > div { background: #222; padding: 12px 14px; min-width: 0; }
@media (max-width: 1000px) {
  .st-hero-acts { margin-top: 0; }
  .st-share { width: auto; }
}
@media (max-width: 640px) {
  .st-hero .st-hero-play { margin-top: 0; }
  .st-share { width: 100%; }
}

/* Station page: staff tools below the info box, Report button + popup (2026-11-09) */
.st-main > .st-staff { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.st-main > .st-staff form { margin: 0; }
.st-main > .st-staff .button, .st-main > .st-staff button { margin-top: 0; }
.st-hero-acts .st-report { background: transparent; border: 1px solid #5a4a3a; color: #d6d1ca; min-height: 40px; font-size: 14px; }
.st-hero-acts .st-report:hover { border-color: var(--orange); color: #fff; }
.st-report-dialog { max-width: 520px; width: 100%; }
.st-report-dialog h2 { margin: 4px 0 12px; }
.st-report-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #2d2217; border: 1px solid #6b4a24; color: #f2c27a; font-size: 14px; line-height: 1.5; }
.st-report-dialog label > span { display: inline-flex; gap: 8px; align-items: baseline; }
.st-report-req { color: var(--orange); font-size: 12px; text-transform: lowercase; }
.st-report-dialog textarea { min-height: 110px; resize: vertical; }

/* Hero play button scales with the viewport and always stays beside the title (2026-11-09) */
.st-hero { --play: clamp(64px, 10vw, 140px); }
.st-hero .st-hero-play,
.st-hero .st-hero-play[data-active] {
  order: 0;
  width: var(--play);
  height: var(--play);
  min-height: var(--play);
  flex-direction: column;
  gap: calc(var(--play) * 0.06);
  border-radius: calc(var(--play) * 0.16);
}
.st-hero .st-hero-play .play-badge-icon { height: calc(var(--play) * 0.31); }
.st-hero .st-hero-play .play-glyph { font-size: calc(var(--play) * 0.31); }
.st-hero .st-hero-play .eq-bars { height: calc(var(--play) * 0.28); gap: calc(var(--play) * 0.035); }
.st-hero .st-hero-play .eq-bars i { width: calc(var(--play) * 0.043); }
.st-hero .st-hero-play .play-badge-code { font-size: calc(var(--play) * 0.115); letter-spacing: calc(var(--play) * 0.014); }
@media (max-width: 640px) {
  .st-hero { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .st-hero .st-hero-main { order: 1; }
  .st-hero .st-hero-play { margin-top: 22px; }
  .st-hero-acts { order: 2; grid-column: 1 / -1; }
}

/* Bottom player bar on phones: text gets the room, volume shrinks to the mute button (2026-11-09) */
@media (max-width: 640px) {
  #radio-player { gap: 10px; padding: 10px 14px; }
  #radio-player .player-info { flex: 1 1 auto; min-width: 0; }
  #radio-player #playing-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  #radio-player .player-status-row { min-width: 0; }
  #radio-player .player-status-row small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #radio-player .volume { padding: 4px 6px; gap: 0; flex: none; }
  #radio-player #player-volume { display: none; }
  #radio-player .player-add-btn, #radio-player .player-lists-btn { flex: none; }
}

/* Ads site-wide: each ad space has its real ad size and sits centered in its own area (2026-11-09) */
.ad-reservation { box-sizing: border-box; width: 100%; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.ad-reservation > span { align-self: stretch; text-align: center; }
.ad-reservation .ad-space { box-sizing: border-box; width: 728px; max-width: 100%; margin-inline: auto; }
.ad-reservation.ad-rectangle .ad-space { width: 300px; }
@media (max-width: 760px) {
  .ad-reservation.ad-banner .ad-space { width: 320px; }
}
.st-side .ad-reservation { margin-inline: auto; }

/* Header 861-1000px: app.css moves the nav to its own row (order 3, full width) but the header only
   wraps from 860px down, so the nav stuck out sideways. Keep it inline until the header wraps. (2026-11-09) */
@media (min-width: 861px) {
  .site-header nav.site-nav { order: 0; width: auto; }
  .site-header { flex-wrap: wrap; row-gap: 10px; }
}

/* Station page: staff report panel (right column) with threaded messages */
.st-reports h2 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.st-rep-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--orange); color: #1b1b1b; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.st-rep { padding: 12px 0; border-top: 1px solid #383838; scroll-margin-top: 90px; }
.st-reports h2 + .st-rep { border-top: 0; padding-top: 6px; }
.st-rep header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-rep header strong { font-size: 14.5px; color: #f2c27a; }
.st-rep.is-resolved header strong { color: #b7b4af; }
.st-rep.is-resolved > :not(.st-rep-acts) { opacity: .7; }
.st-rep-meta { margin-top: 2px; font-size: 12.5px; color: #b7b4af; }
.st-rep-detail { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #d6d1ca; overflow-wrap: anywhere; }
.st-rep-thread { list-style: none; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 2px solid #4a3a2a; display: flex; flex-direction: column; gap: 8px; }
.st-msg { padding: 8px 10px; border-radius: 8px; background: #1d1d1d; border: 1px solid #333; }
.st-msg.is-reporter { background: #232323; }
.st-msg.is-new { border-color: var(--orange); }
.st-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #b7b4af; }
.st-msg-head b { color: #eee; font-size: 13px; }
.st-msg-head time { margin-left: auto; }
.st-msg-head .st-tag { font-size: 10.5px; padding: 1px 6px; }
.st-msg p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #d6d1ca; overflow-wrap: anywhere; }
.st-rep-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.st-rep-acts form { margin: 0; }
.st-rep-acts .button, .st-rep-acts button { margin-top: 0; min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.st-report-to { margin: -6px 0 12px; color: #b7b4af; }

/* Messages: e-mail style inbox (folders | conversation list | reading pane) */
.mail { display: grid; grid-template-columns: 210px minmax(260px, 360px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; background: #202020; overflow: hidden; min-height: 600px; }
.mail-side { padding: 18px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.mail-new { width: 100%; }
.mail-folders { display: flex; flex-direction: column; gap: 4px; }
.mail-folder { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #d6d1ca; font-size: 14px; }
.mail-folder:hover { background: #262626; color: #fff; text-decoration: none !important; }
.mail-folder.on { background: #2e2821; color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.mail-ico { width: 16px; text-align: center; color: #b7b4af; }
.mail-count { margin-left: auto; font-size: 12px; font-weight: 700; color: #21160b; background: var(--orange); border-radius: 10px; padding: 0 7px; }
.mail-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.mail-list-head { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.mail-list-head input { padding: 8px 11px; font-size: 14px; }
.mail-list-head select { min-height: 40px; width: auto; font-size: 13px; }
.mail-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #2e2e2e; color: inherit; }
.mail-row:hover { background: #252525; text-decoration: none !important; }
@media (min-width: 1101px) { .mail-rows { max-height: 70vh; overflow: auto; } } /* list scrolls on its own, like the triage queues */
.mail-row.sel { background: #2a2520; box-shadow: inset 3px 0 0 var(--orange); }
.mail-av .user-avatar-img, .mail-av-empty { width: 36px; height: 36px; }
.mail-av-empty { border-radius: 50%; display: grid; place-items: center; background: #2b2b2b; color: #8d8a85; }
.mail-row-main { display: flex; flex-direction: column; min-width: 0; }
.mail-who { font-size: 14px; color: #d6d1ca; display: flex; gap: 6px; align-items: center; min-width: 0; }
.mail-who > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-subj { font-size: 14px; color: #c7c3bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row.unread .mail-who, .mail-row.unread .mail-subj { color: #fff; font-weight: 700; }
.mail-snip { font-size: 13px; color: #8d8a85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-when { font-size: 12px; color: #8d8a85; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.mail-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; padding: 1px 6px; border-radius: 4px; border: 1px solid #6b4a24; background: #2d2217; color: #f2c27a; white-space: nowrap; text-transform: none; }
.mail-tag.rep { border-color: #4a5a6b; background: #1f2a33; color: #a9c7e3; }
.mail-tag.ok { border-color: #4a6035; background: #25301e; color: #bfe38a; }
.mail-empty { color: var(--muted); padding: 30px 18px; margin: 0; max-width: none; }
.mail-pick { text-align: center; padding-top: 120px; }
.mail-read { display: flex; flex-direction: column; min-width: 0; }
.mail-back { display: none; padding: 12px 22px 0; font-size: 14px; }
.mail-read-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mail-read-head h2 { font-size: 21px; margin: 0 0 6px; overflow-wrap: anywhere; }
.mail-meta { font-size: 13px; color: #8d8a85; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mail-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mail-acts form { margin: 0; }
.mail-acts button, .mail-acts .button { min-height: 34px; padding: 6px 12px; font-size: 13px; margin: 0; }
.mail-ctx { margin: 16px 22px 0; padding: 10px 14px; border-radius: 9px; background: #1f2a33; border: 1px solid #4a5a6b; font-size: 13.5px; color: #cfe0ef; overflow-wrap: anywhere; }
.mail-thread { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mail-msg { border: 1px solid #333; border-radius: 10px; background: #1b1b1b; padding: 14px 16px; }
.mail-msg.mine { background: #232019; border-color: #4a3a2a; }
.mail-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mail-msg-head b { font-size: 14px; }
.mail-msg-head time { margin-left: auto; font-size: 12px; color: #8d8a85; }
.mail-msg p { margin: 0; color: #d6d1ca; font-size: 14.5px; line-height: 1.6; max-width: none; overflow-wrap: anywhere; }
.mail-older { display: flex; flex-direction: column; gap: 12px; }
.mail-older > summary { list-style: none; font-size: 13px; font-weight: 400; color: #b7b4af; border: 1px dashed #3d3d3d; border-radius: 10px; padding: 9px 14px; text-align: center; }
.mail-older > summary::-webkit-details-marker { display: none; }
.mail-older[open] > summary { margin-bottom: 12px; }
.mail-older[open] { gap: 0; }
.mail-older[open] > .mail-msg + .mail-msg { margin-top: 12px; }
.mail-reply { border-top: 1px solid var(--line); padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.mail-reply textarea { min-height: 84px; resize: vertical; }
.mail-reply-bar { display: flex; align-items: center; gap: 10px; }
.mail-reply-bar small { margin-right: auto; }
.mail-reply-bar button { margin-left: auto; }
.mail-reply-note { border-top: 1px solid var(--line); padding: 14px 22px; margin: 0; max-width: none; }
.mail-compose { max-width: 620px; width: 100%; }
.mail-compose h2 { margin: 4px 0 6px; }
.mail-compose .form-stack label > span { color: #c7c3bd; }
.mail-to { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid #444; border-radius: 7px; background: #1d1d1d; }
.mail-to:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.mail-to input { border: 0; background: transparent; padding: 5px 4px; flex: 1; min-width: 140px; width: auto; outline: none; }
.mail-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 14px; background: #33302c; font-size: 13px; color: #f6f3ee; }
.mail-chip .user-avatar-img { width: 22px; height: 22px; }
.mail-chip-x { min-height: 0; padding: 0 6px; border: 0; background: transparent; color: #b7b4af; font-size: 15px; line-height: 1; }
.mail-suggest { border: 1px solid #444; border-radius: 8px; background: #1d1d1d; margin-top: 4px; overflow: hidden; }
.mail-suggest button { display: flex; width: 100%; justify-content: flex-start; gap: 10px; align-items: center; border: 0; border-radius: 0; background: transparent; min-height: 0; padding: 8px 10px; font-size: 13.5px; color: #f6f3ee; }
.mail-suggest button:hover, .mail-suggest button.on { background: #2a2520; }
.mail-suggest small { margin-left: auto; }
.mail-compose .rt-modal-actions { align-items: center; }
.mail-compose-note { margin-right: auto; }
@media (max-width: 1100px) {
  .mail { grid-template-columns: 180px minmax(0, 1fr); }
  .mail-read { display: none; }
  .mail.has-open .mail-list { display: none; }
  .mail.has-open .mail-read { display: flex; }
  .mail-back { display: block; }
}
@media (max-width: 700px) {
  .mail { grid-template-columns: minmax(0, 1fr); }
  .mail-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .mail-folders { flex-direction: row; flex-wrap: wrap; }
  .mail.has-open .mail-side { display: none; }
  .mail-read-head, .mail-thread, .mail-reply { padding-left: 14px; padding-right: 14px; }
  .mail-ctx { margin-inline: 14px; }
  .mail-compose .rt-modal-actions { flex-wrap: wrap; }
  .mail-compose-note { flex-basis: 100%; }
}
.mail-meta .mail-tag { text-transform: capitalize; }

/* Station page: Streams panel (staff and the member who added the station) */
.st-streams h2 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.st-streams-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #2e2a25; color: #cfc8bd; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.st-streams-msg { margin: 6px 0 4px; padding: 9px 12px; border-radius: 8px; background: #25301e; border: 1px solid #4a6035; color: #bfe38a; font-size: 13.5px; line-height: 1.45; }
.st-streams-msg.is-error { background: #3a1f1f; border-color: #6b3434; color: #f0a0a0; }
.st-stream { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #383838; scroll-margin-top: 90px; }
.st-streams h2 + .st-streams-msg + .st-stream, .st-streams h2 + .st-stream { border-top: 0; }
.st-stream.is-flash { animation: st-stream-flash 1.6s ease-out; }
@keyframes st-stream-flash { from { background: rgba(245, 146, 30, .14); } to { background: transparent; } }
.st-stream-play { width: 52px; height: 52px; margin: 0; padding: 0; border-radius: 12px; border: 0; background: var(--orange); color: #1b1b1b; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.st-stream-play:hover { filter: brightness(1.08); }
.st-stream-play.is-http { background: transparent; border: 2px solid var(--orange); color: var(--orange); font-size: 22px; }
.st-stream-play:disabled { background: #2e2a25; color: #6d675e; cursor: default; filter: none; }
.st-stream-info { min-width: 0; }
.st-stream-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-stream-l1 a { color: #ffb35c; font-weight: 700; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.st-stream-l1 a:hover { text-decoration: underline; }
.st-stream-l2 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.st-stream-l3, .st-stream-l4 { color: #9c968c; font-size: 12.5px; margin-top: 4px; }
.st-stream-l3 a { color: #ffb35c; text-decoration: none; }
.st-stream-l3 a:hover { text-decoration: underline; }
.st-stream.is-off .st-stream-l1 a { color: #7d776e; text-decoration: line-through; }
.st-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 5px; border: 1px solid #45403a; background: #2a2622; color: #d6d1ca; line-height: 1.4; white-space: nowrap; }
.st-badge.is-ok { color: #bfe38a; border-color: #4a6035; background: #25301e; }
.st-badge.is-warn { color: #f2c27a; border-color: #6b4a24; background: #2d2217; }
.st-badge.is-bad, .st-badge.is-aac { color: #f0a0a0; border-color: #6b3434; background: #3a1f1f; }
.st-badge.is-primary { color: #1b1b1b; border-color: var(--orange); background: var(--orange); }
.st-stream-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.st-stream-btns { display: flex; gap: 8px; }
.st-stream-btns form { margin: 0; }
.st-icon-btn { width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 10px; background: #2a2722; border: 1px solid #4a453d; font-size: 21px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.st-icon-btn.is-check { color: #e9c58f; }
.st-icon-btn.is-check:hover { border-color: var(--orange); color: var(--orange); }
.st-icon-btn.is-never-check { color: #e9c58f; }
.st-icon-btn.is-never-check:hover { border-color: var(--orange); color: var(--orange); }
.st-icon-btn.is-never-check.is-active { background: #382c1e; border-color: #c88e3d; color: #f6c270; }
.st-icon-btn.is-approve { color: #bfe38a; border-color: #4a6035; background: #25301e; }
.st-icon-btn.is-approve:hover { background: #2f3d25; border-color: #6d8c4c; }
.st-icon-btn.is-delete { color: #f0a0a0; border-color: #6b3434; }
.st-icon-btn.is-delete:hover { background: #3a1f1f; }
.st-icon-btn .ico-busy { display: none; }
.st-icon-btn.is-busy { cursor: progress; color: var(--orange); }
.st-icon-btn.is-busy .ico-idle { display: none; }
.st-icon-btn.is-busy .ico-busy { display: inline-flex; animation: st-spin .9s linear infinite; }
.st-icon-btn svg, .st-stream-play svg { display: block; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .st-stream { grid-template-columns: 48px minmax(0, 1fr); }
  .st-stream-play { width: 46px; height: 46px; }
  .st-stream-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
/* Station page: "Suggest a new stream" button and popup */
.st-suggest-row { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.st-suggest-btn { font-weight: 600; }
.st-suggest-help { margin: 0 0 14px; color: #a9a39a; font-size: 14px; line-height: 1.5; }
.st-suggest-dialog .stream-input-wrap input { min-width: 0; }
.st-suggest-dialog .btn-test:disabled { opacity: .7; cursor: progress; }
.st-suggest-dialog .stream-feedback-box { justify-content: flex-start; line-height: 1.45; }
.st-suggest-dialog .stream-feedback-box a { color: inherit; text-decoration: underline; }
.stream-feedback-box[hidden] { display: none; }
.st-suggest-dialog [data-suggest-send]:disabled { opacity: .45; cursor: not-allowed; }
/* Stream play buttons switch to the playing look (EQ bars) once the player is really playing that stream */
.st-stream-play .eq-bars { display: none; height: 20px; gap: 3px; align-items: flex-end; }
.st-stream-play .eq-bars i { width: 4px; border-radius: 2px; }
/* The playing stream's row gets the same highlight as playing station cards */
.st-stream:has(.listen[data-active]) { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; border-top-color: transparent; background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%); box-shadow: inset 4px 0 0 var(--orange), 0 0 24px rgba(247, 147, 30, 0.12); }
.st-stream:has(.listen[data-active]) + .st-stream { border-top-color: transparent; }
.st-stream:has(.listen[data-active]) .st-stream-l1 a { color: #fff; }
.st-stream-play[data-active] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.st-stream-play[data-active] .st-play-glyph { display: none; }
.st-stream-play[data-active] .eq-bars { display: inline-flex; }
.st-stream-play[data-active] .eq-bars i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
.st-stream-play[data-active] .eq-bars i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
.st-stream-play[data-active] .eq-bars i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }
/* Test stream buttons: rotating arrows replace the icon while a test runs; dimmed while the URL is not valid */
.btn-test .btn-test-spin { display: none; }
.btn-test.testing { opacity: 1; color: var(--orange, #f7931e); border-color: var(--orange, #f7931e); cursor: progress; }
.btn-test.testing .btn-test-icon { display: none; }
.btn-test.testing .btn-test-spin { display: inline-flex; animation: st-spin .9s linear infinite; }
.btn-test.is-invalid:not(.testing) { opacity: .5; }
/* Loading (clicked, not playing yet): same highlight as playing, rotating arrows instead of the play glyph.
   The twins below are copies of the playing rules above with [data-active] -> [data-loading]. */
.rt-spin { display: none; }
.listen[data-loading] .rt-spin, #player-toggle[data-loading] .rt-spin { display: inline-flex; align-items: center; justify-content: center; animation: st-spin .9s linear infinite; }
.listen[data-loading] .rt-spin svg, #player-toggle[data-loading] .rt-spin svg { display: block; }
.listen[data-loading] .play-glyph, .listen[data-loading] .st-play-glyph, .listen[data-loading] .eq-bars { display: none !important; }
#player-toggle .rt-spin { font-size: 22px; }
#player-toggle[data-loading] > svg { display: none !important; }
.station-card:has(.listen[data-loading]) {
  background: rgba(247, 147, 30, 0.09);
  border-color: rgba(247, 147, 30, 0.55) !important;
  box-shadow: 0 0 22px rgba(247, 147, 30, 0.1);
}
.station-play-badge[data-loading] {
  background: var(--orange);
  color: #16120b;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(247, 147, 30, 0.25);
}
.station-card .station-play-badge[data-loading],
.station-tile .tile-play[data-loading] {
  background: #2c2c2c;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.station-tile:has(.listen[data-loading]) { border-color: rgba(247, 147, 30, 0.6); }
.station-grid .station-card:has(.listen[data-loading]),
.directory-body .station-grid .station-card:has(.listen[data-loading]),
.rank-podium .station-card:has(.listen[data-loading]),
.rank-rows .station-card:has(.listen[data-loading]) {
  background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%) !important;
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(247, 147, 30, 0.18) !important;
}
.station-grid[data-cols="1"] .station-card:has(.listen[data-loading]) { border-left-color: var(--orange) !important; }
.rank-rows .station-card:has(.listen[data-loading]) { box-shadow: inset 4px 0 0 var(--orange) !important; }
.station-card:has(.listen[data-loading]) .station-name { color: #fff; }
.station-card:has(.listen[data-loading]) .station-play-badge[data-loading] {
  background: #1b1b1b;
  color: var(--orange);
  box-shadow: inset 0 0 0 2px var(--orange);
}
.station-tile:has(.listen[data-loading]) {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(247, 147, 30, 0.18);
}
.station-tile:has(.listen[data-loading]) .tile-body { background: linear-gradient(180deg, rgba(247, 147, 30, 0.18), rgba(247, 147, 30, 0.04)); }
.station-tile:has(.listen[data-loading]) .station-name { color: #fff; }
.station-tile .tile-play[data-loading] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange), 0 6px 16px rgba(0, 0, 0, 0.5); }
.st-hero .st-hero-play[data-loading] {
  background: #1b1b1b;
  color: var(--orange);
  box-shadow: inset 0 0 0 3px var(--orange), 0 12px 32px rgba(247, 147, 30, 0.25);
}
.st-sim .st-sim-play[data-loading] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.st-sim:has(.listen[data-loading]) .station-name { color: #fff; }
.st-sim:has(.listen[data-loading]) { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; border-top-color: transparent; background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%); box-shadow: inset 4px 0 0 var(--orange), 0 0 24px rgba(247, 147, 30, 0.12); }
.st-sim:has(.listen[data-loading]) + .st-sim { border-top-color: transparent; }
.st-hero .st-hero-play[data-loading] {
  order: 0;
  width: var(--play);
  height: var(--play);
  min-height: var(--play);
  flex-direction: column;
  gap: calc(var(--play) * 0.06);
  border-radius: calc(var(--play) * 0.16);
}
.st-stream:has(.listen[data-loading]) { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; border-top-color: transparent; background: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%); box-shadow: inset 4px 0 0 var(--orange), 0 0 24px rgba(247, 147, 30, 0.12); }
.st-stream:has(.listen[data-loading]) + .st-stream { border-top-color: transparent; }
.st-stream:has(.listen[data-loading]) .st-stream-l1 a { color: #fff; }
.st-stream-play[data-loading] { background: #1b1b1b; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
/* ==== Default play-button behaviour (any .listen button and its card) ====
   Loading (rotating arrows, set on click) and playing (EQ bars) are handled for every .listen button by app.js.
   Buttons without a design of their own get this inverted look; the badge/stream buttons keep theirs.
   Any card or row holding a play button gets highlighted by adding data-play-item to it. */
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active],
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-loading] { background: #1b1b1b; color: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.listen:not(.station-play-badge):not(.st-stream-play) .play-glyph { font-size: inherit; }
/* one fixed icon slot in text buttons, so ▶ / arrows / EQ bars never change the button width */
.listen:not(.station-play-badge):not(.st-stream-play) :is(.play-glyph, .rt-spin, .eq-bars) { inline-size: .85em; justify-content: center; }
:where(.listen:not(.station-play-badge):not(.st-stream-play)) .play-glyph { display: inline-flex; }
.listen:not(.station-play-badge):not(.st-stream-play) .rt-spin svg { inline-size: .85em; block-size: .85em; }
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active] .play-glyph { display: none; }
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active] .eq-bars { display: inline-flex; }
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active] .eq-bars i:nth-child(1) { animation: rtEq1 0.65s ease-in-out infinite; }
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active] .eq-bars i:nth-child(2) { animation: rtEq2 0.55s ease-in-out infinite; }
:where(.listen:not(.station-play-badge):not(.st-stream-play))[data-active] .eq-bars i:nth-child(3) { animation: rtEq3 0.7s ease-in-out infinite; }
[data-play-item]:has(.listen[data-active]),
[data-play-item]:has(.listen[data-loading]) { background-image: linear-gradient(100deg, rgba(247, 147, 30, 0.22), rgba(247, 147, 30, 0.07) 70%); border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(247, 147, 30, 0.18); }
/* ==== Admin Activity page (/admin/audit) ==== */
.act-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 12px; }
.act-filter input, .act-filter select, .act-filter button { margin: 0; width: 100%; }
.act-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.act-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange); font-size: 13px; text-decoration: none; }
.act-chip:hover { background: rgba(247, 147, 30, 0.12); }
.act-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.act-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 150px 170px; gap: 12px; padding: 9px 14px; align-items: baseline; border-top: 1px solid var(--line); font-size: 14px; }
.act-row:first-child { border-top: 0; }
.act-row > span { min-width: 0; overflow-wrap: anywhere; }
.act-head { font-size: 12px; text-transform: none; color: var(--muted); }
.act-row code { font-size: 13px; }
.act-empty { padding: 14px; margin: 0; }
.act-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.act-pages { flex: 1 1 320px; min-width: 0; }
.act-pages .pagination { margin: 0; }
.user-ip-line { display: block; margin-top: 2px; }
@media (max-width: 720px) {
  .act-filter { grid-template-columns: 1fr; }
  .act-row { grid-template-columns: 1fr 1fr; }
  .act-head { display: none; }
}
/* ==== Station workspace (/moderation/stations?edit=ID) ==== */
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.ws-title { margin: 2px 0 0; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.ws-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ws-main > .panel, .ws-main > section { margin: 0; }
.ws-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; min-width: 0; }
.ws-card { margin: 0; padding: 16px; }
.ws-side > section, .ws-main > section, .ws-main > form, .ws-main > .st-suggest-row { align-self: stretch; width: auto; max-width: none; }
.ws-h { margin: 0 0 10px; font-size: 1rem; }
.ws-sub { margin: 14px 0 6px; font-size: .9rem; color: var(--muted); }
.ws-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.ws-scope { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 8px; }
.ws-status { width: 100%; margin: 0 0 10px; }
.ws-fact { margin: 8px 0 0; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.ws-fact.is-ok { background: rgba(93, 202, 122, .12); color: #7fe0a0; }
.ws-fact.is-warn { background: rgba(232, 197, 90, .12); color: #e8c55a; }
.ws-preview .station-card { margin: 0; }
.ws-facts, .ws-activity { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.55; }
.ws-facts li { padding: 4px 0; border-top: 1px solid var(--line); }
.ws-facts li:first-child { border-top: 0; }
.ws-activity li { padding: 3px 0; overflow-wrap: anywhere; }
.ws-open { color: var(--orange); }
.ws-more { display: inline-block; margin-top: 8px; font-size: 13px; }
.ws-savebar { position: sticky; bottom: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(22, 22, 22, .94); backdrop-filter: blur(6px); }
.ws-savebar form { margin: 0 auto 0 0; }
.ws-savebar .ws-delete { margin: 0; }
.ws-dirty { font-size: 13px; }
.st-visibility-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(232, 197, 90, .5); background: rgba(232, 197, 90, .08); border-radius: 10px; color: #e8c55a; font-size: 14px; }
.st-staff-row { display: flex; justify-content: flex-end; margin: 0 0 8px; }
@media (max-width: 900px) {
  .ws-grid { grid-template-columns: 1fr; }
  .ws-side { position: static; }
  .ws-two { grid-template-columns: 1fr; }
}
/* ==== Station merge: workspace card, picker popup, preview page ==== */
.ws-merge p { margin: 0 0 10px; font-size: 13px; }
.ws-merge-btn, .merge-inline { border-color: rgba(247, 147, 30, .7); color: var(--orange); }
.merge-inline { margin-left: 8px; padding: 4px 10px; font-size: 12px; min-height: 0; }
.merge-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; }
.merge-head { display: flex; align-items: center; gap: 10px; }
.merge-head h2 { margin: 0; font-size: 1.2rem; }
.merge-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; min-height: 0; padding: 0 4px; }
.merge-search { width: 100%; margin: 12px 0; }
.merge-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.merge-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.merge-list > p { margin: 0; padding: 12px; }
.merge-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-top: 1px solid var(--line); }
.merge-row:first-child { border-top: 0; }
.merge-row.is-chosen { background: rgba(247, 147, 30, .07); box-shadow: inset 3px 0 0 var(--orange); }
.merge-row .button { margin: 0; flex: none; }
.merge-info { min-width: 0; flex: 1; }
.merge-info small { display: block; }
.merge-why { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(247, 147, 30, .15); color: var(--orange); margin-left: 6px; white-space: nowrap; }
.merge-play { flex: none; }
.merge-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.merge-toggle label { display: flex; gap: 8px; align-items: center; padding: 9px 12px; cursor: pointer; font-size: 13px; margin: 0; }
.merge-toggle label + label { border-left: 1px solid var(--line); }
.merge-toggle label:has(input:checked) { background: rgba(247, 147, 30, .14); color: var(--orange); }
.merge-hint { font-size: 12px; margin: 6px 0 0; }
[data-merge-preview][aria-disabled="true"] { opacity: .45; pointer-events: none; }
.mg-pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mg-st { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .02); }
.mg-st small { display: block; margin-top: 2px; }
.mg-st.is-keep { border-color: rgba(247, 147, 30, .6); }
.mg-arrow { color: var(--orange); font-size: 22px; }
.mg-tag { font-size: 11px; padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.mg-del { background: rgba(240, 128, 128, .15); color: #f08080; }
.mg-keep { background: rgba(93, 202, 122, .15); color: #7fe0a0; }
.mg-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mg-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) minmax(110px, auto); gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); align-items: baseline; font-size: 14px; }
.mg-row:first-child { border-top: 0; }
.mg-row > span { min-width: 0; overflow-wrap: anywhere; }
.mg-row s { color: var(--muted); }
.mg-head { font-size: 12px; color: var(--muted); }
.mg-res { font-size: 12px; padding: 2px 9px; border-radius: 99px; display: inline-block; }
.mg-k { background: rgba(255, 255, 255, .07); color: #bbb; }
.mg-f { background: rgba(232, 197, 90, .14); color: #e8c55a; }
.mg-m { background: rgba(247, 147, 30, .15); color: var(--orange); }
.mg-u { background: rgba(93, 202, 122, .15); color: #7fe0a0; }
.mg-d { background: rgba(240, 128, 128, .15); color: #f08080; }
.mg-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 0; }
.mg-c { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mg-c b { display: block; font-size: 20px; }
.mg-c span { font-size: 12px; color: var(--muted); }
.mg-bar .mg-warn { margin-right: auto; font-size: 13px; }
@media (max-width: 720px) {
  .mg-row { grid-template-columns: 1fr 1fr; }
  .mg-head { display: none; }
  .merge-toggle { grid-template-columns: 1fr; }
  .merge-toggle label + label { border-left: 0; border-top: 1px solid var(--line); }
}
/* ==== Duplicate check stored at submission (queue line + workspace card) ==== */
.sub-flag { display: block; margin-top: 4px; color: #e8c55a; }
.sub-flag a { color: #e8c55a; text-decoration: underline; }
.sub-flag-icon { margin-right: 2px; }
.sub-flag-seen { color: #f0a070; }
.ws-flags { border-color: rgba(232, 197, 90, .5); }
.ws-flags .ws-h { color: #e8c55a; }
.ws-flags p { font-size: 13px; margin: 0 0 8px; }
.ws-flag-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-flag-row .merge-why { margin-left: 0; }
/* ==== Featured stations page ==== */
.fs-rule { margin: -6px 0 12px; font-size: 13px; }
.fs-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.fs-tools .act-chip.is-on { background: rgba(247, 147, 30, .16); }
.fs-filter { flex: 1 1 220px; min-width: 0; margin: 0; }
.fs-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fs-row .button, .fs-remove { margin: 0; flex: none; }
.fs-x { color: #f08080; border-color: rgba(240, 128, 128, .45); }
.fs-flag { font-size: 11px; padding: 1px 8px; border-radius: 99px; margin-left: 6px; white-space: nowrap; }
.fs-bad { background: rgba(240, 128, 128, .15); color: #f08080; }
.fs-warn { background: rgba(232, 197, 90, .14); color: #e8c55a; }
.merge-row .fs-why { font-size: 12px; color: var(--muted); flex: none; }
@media (max-width: 720px) { .fs-row { flex-wrap: wrap; } }

/* ==== Station approval queue (/moderation/approvals) ==== */
.appr-sort label { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; } /* "Sort" next to its menu, not above it */
.appr-sort select { margin: 0; width: auto; }
.ws-head.appr-head { align-items: center; margin: 0 0 10px; } /* Sort on the title's line, just above the list (user, 2026-11-11) */
.appr-note { margin: -6px 0 14px; font-size: 13px; }
.appr-list { display: flex; flex-direction: column; gap: 24px; }
.appr-card { border: 1px solid #4a4a4a; border-radius: 16px; padding: 12px; background: #262626; position: relative; overflow: hidden; } /* design A: raised card (user, 2026-11-11) */
/* Design D (user, 2026-11-11): a thick left rail in the station's own colour, like a ticket */
.appr-card { border-left: 5px solid hsl(var(--tint, 30) 55% 48%); border-radius: 6px 16px 16px 6px; }
.appr-card .appr-top { margin: 0; }
.appr-id { font-size: 12px; margin-left: 6px; }
.appr-actions { display: flex; flex-direction: row; gap: 7px; margin-left: auto; align-self: center; } /* side by side: a lower station strip (user, 2026-11-11) */
.appr-act { margin: 0; }
.appr-ib { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: #eee; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.appr-ib:hover { border-color: var(--orange); }
.appr-ib.is-ok { background: rgba(93, 202, 122, .14); border-color: rgba(93, 202, 122, .5); color: #7fe0a0; }
.appr-ib.is-no { color: #f08080; border-color: rgba(240, 128, 128, .45); }
.appr-ib.is-merge { color: var(--orange); border-color: rgba(247, 147, 30, .6); background: none; }
.appr-ib.is-warn.is-active { background: rgba(247, 147, 30, .18); color: #f6c270; border-color: rgba(247, 147, 30, .55); }
.appr-ib.is-sm { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
.appr-ib.is-busy svg { animation: st-spin .9s linear infinite; }
.appr-row-acts { display: flex; gap: 5px; justify-content: flex-end; }
.appr-row-acts form { margin: 0; }
.appr-msg { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: rgba(93, 202, 122, .1); color: #7fe0a0; font-size: 13px; }
.appr-msg.is-error { background: rgba(240, 128, 128, .1); color: #f08080; }
.appr-tag { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #bbb; white-space: nowrap; margin-left: 4px; }
.appr-tag.is-ok { background: rgba(93, 202, 122, .14); color: #7fe0a0; }
.appr-tag.is-warn { background: rgba(232, 197, 90, .14); color: #e8c55a; }
.appr-tag.is-no { background: rgba(240, 128, 128, .15); color: #f08080; }
.appr-tag.is-primary { background: rgba(247, 147, 30, .15); color: var(--orange); }
.appr-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--orange); border-radius: 4px 8px 8px 4px; background: #1b1c20; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #e8e2d9; } /* section title bar (user, 2026-11-11) */
.appr-count { min-width: 22px; padding: 1px 8px; border-radius: 99px; background: rgba(247, 147, 30, .16); color: var(--orange); font-size: 11px; letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums; }
.appr-tablewrap { overflow-x: auto; }
.appr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.appr-table th { font-weight: 400; font-size: 12px; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.appr-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.appr-table tr.is-off td { opacity: .55; }
.appr-table code { color: #f7c27a; font-size: 12px; }
.appr-sq, .appr-sq-badge.station-play-badge { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.appr-sq { background: var(--orange); color: #161616; border: 0; }
.appr-sq.is-http { background: none; color: var(--orange); border: 1px solid var(--orange); }
.appr-sq.is-off { background: rgba(255, 255, 255, .08); color: #777; }
.appr-sq-badge .play-badge-code { display: none; }
.appr-web { display: inline-flex; align-items: center; gap: 6px; }
.appr-web svg { font-size: 16px; }
.appr-seen { font-size: 12px; margin: 6px 0 0; }
.appr-done { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.nav-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: #161616; font-size: 11px; font-weight: 700; text-align: center; margin-left: 4px; }
.remember-me { margin: 2px 0 6px; font-size: 14px; }
.confirm-layout { max-width: 460px; margin: 30px auto; display: block; }
.appr-bar { display: none; }
/* Phones: facts as a label/value list, streams and clones as two-line rows with their buttons on the right,
   and Approve / Edit / Reject as a wide bar at the bottom of the card (not beside the name). */
@media (max-width: 720px) {
  .appr-card { padding: 10px; }
  .appr-top .appr-actions { display: none; }
  .appr-bar { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .appr-bar > .appr-act, .appr-bar > a.appr-ib { flex: 1; }
  .appr-bar .appr-ib { width: 100%; height: 44px; }
  .appr-table thead { display: none; }
  .appr-table, .appr-table tbody, .appr-table tr, .appr-table td { display: block; width: auto; }
  .appr-table td { border: 0; padding: 0; }
  .appr-tablewrap { overflow: visible; }
  .appr-facts tr { padding: 4px 0 0; }
  .appr-facts td { position: relative; padding: 2px 0 2px 92px; overflow-wrap: anywhere; }
  .appr-facts td::before { content: attr(data-label); position: absolute; left: 0; top: 2px; width: 86px; color: var(--muted); font-size: 12px; line-height: 1.6; }
  .appr-streams tr, .appr-clones tr { position: relative; min-height: 50px; padding: 8px calc(var(--acts, 0) * 37px) 8px 44px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .appr-streams tr:last-child, .appr-clones tr:last-child { border-bottom: 0; }
  .appr-streams td:first-child, .appr-clones td:first-child { position: absolute; left: 0; top: 8px; }
  .appr-streams td:last-child, .appr-clones td:last-child { position: absolute; right: 0; top: 8px; }
  .appr-main { font-size: 14px; overflow-wrap: anywhere; padding-right: 6px; }
  .appr-meta { display: inline !important; font-size: 12px; color: var(--muted); }
  .appr-meta:has(+ .appr-meta)::after { content: "·"; margin: 0 6px; color: #9a958e; font-weight: 700; }
  .appr-table td.appr-row-acts { display: flex; gap: 5px; }
  .appr-lbl::before { content: attr(data-label) " "; }
  .appr-meta .appr-tag { margin-left: 0; }
  .appr-meta code { font-size: 11px; }
}
/* Staff menu: one strip that scrolls sideways on phones instead of a screen of buttons. */
@media (max-width: 640px) {
  .section-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 12px; margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav a { flex: none; white-space: nowrap; }
}
.section-nav a[aria-current="page"] { border-color: var(--orange); color: #fff; background: rgba(247, 147, 30, .12); }

/* ==== "Feeling lucky?" random station panel (stations listing + station page right column) ==== */
.directory-body:has(.directory-rail) { grid-template-columns: minmax(0, 1fr) 300px; }
.directory-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rnd-panel { align-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.rnd-panel h2 { margin: 6px 0 0; font-size: 19px; }
.rnd-panel p { margin: 0 0 10px; font-size: 13px; }
.rnd-filter { color: #f6f3ee; }
.rnd-dice { width: 52px; height: 52px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #7fe0a0; background: #1f3324; border: 1px solid #3f7a4f; }
.rnd-dice svg { width: 28px; height: 28px; }
.button.rnd-go { width: 82%; max-width: 280px; white-space: nowrap; min-height: 44px; background: #3fa45b; border-color: #3fa45b; color: #0f2414; font-weight: 700; }
.button.rnd-go:hover, .button.rnd-go:focus-visible { background: #4bb867; border-color: #4bb867; color: #0f2414; text-decoration: none; }
.rnd-panel.is-rolling .rnd-dice svg { animation: rnd-roll .5s ease-in-out infinite; }
@keyframes rnd-roll { 0% { transform: rotate(0); } 50% { transform: rotate(180deg) scale(.85); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rnd-panel.is-rolling .rnd-dice svg { animation: none; } }
@media (max-width: 1050px) { .directory-body:has(.directory-rail) { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 760px) { .directory-rail { margin: 30px 0 0; } .directory-rail .ad-reservation { margin: 10px auto 35px; } }

/* ==== Member profile /user/{slug} (design A): station-page hero + gauges, tabs, right column with contributions and ads ==== */
.pf-hero { grid-template-columns: auto minmax(0, 1fr) auto; --tint: 30; }
.pf-avatar .user-avatar-img, .pf-avatar img { width: 132px; height: 132px; border-radius: 50%; border: 3px solid #4b4034; object-fit: cover; font-size: 52px; }
.pf-hero h1 { font-size: clamp(30px, 4.4vw, 50px); }
.pf-since { color: #d6d1ca; }
.pf-gauges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-gauges.has-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pf-gauges .st-gauge { padding: 12px 14px; gap: 12px; }
.pf-gauges .st-gauge div span { display: block; line-height: 1.3; }
.pf-staff { border: 1px dashed #8a6a35; background: #221d15; }
.pf-staff-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pf-staff-head .eyebrow { color: #f0b35a; margin: 0; }
.pf-staff .st-facts > div { background: #262118; }
.pf-staff code { font-size: 13px; }
.pf-panel { padding-top: 6px; }
.pf-tabs { display: flex; gap: 2px; border-bottom: 1px solid #383838; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px 11px; color: #b7b4af; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.pf-tabs a:hover { color: #fff; }
.pf-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
.pf-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #303030; color: #d6d1ca; font-size: 12px; font-weight: 700; text-align: center; }
.pf-tabs a[aria-current="page"] .pf-count { background: rgba(247, 147, 30, .18); color: #f7b25e; }
.pf-lock { display: inline-flex; color: #8f8b85; }
.pf-note { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 13px; }
.pf-empty { margin: 8px 0 14px; }
.pf-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-list { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; background: #222; border: 1px solid #383838; border-radius: 10px; text-decoration: none; min-width: 0; }
.pf-list strong { color: #f6f3ee; overflow-wrap: anywhere; }
.pf-list:hover { border-color: var(--orange); }
.pf-rows { list-style: none; margin: 0; padding: 0; }
.pf-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #2e2e2e; }
.pf-rows li:last-child { border-bottom: 0; }
.pf-row-main { flex: 1; min-width: 0; }
.pf-row-main small { display: block; margin-top: 3px; }
.pf-quote { margin: 0; color: #e9e4dc; overflow-wrap: anywhere; line-height: 1.5; max-width: none; }
.pf-kind { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #8f8b85; margin-left: 6px; }
.pf-pill { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pf-pill.is-open, .pf-pill.is-warn { background: #3a2a14; color: #f0b35a; }
.pf-pill.is-closed { background: #1f3324; color: #7fe0a0; }
.pf-pill.is-off { background: #3a1d1d; color: #f19a9a; }
.pf-go { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid #444; border-radius: 8px; color: #f6f3ee; text-decoration: none; }
.pf-go:hover { border-color: var(--orange); color: var(--orange); }
.pf-sims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.pf-rail h2 { display: flex; align-items: center; gap: 8px; }
.pf-rail .st-tag { margin-right: 6px; }
.pf-more { display: block; margin-top: 10px; font-weight: 600; }
.pf-panel .pagination, .pf-panel nav.pagination { margin-top: 14px; }
.ad-halfpage { max-width: 300px; }
.ad-halfpage .ad-space { height: 600px; }
.pf-side .ad-reservation { margin: 0 auto; max-width: 336px; }
@media (max-width: 1100px) { .pf-gauges, .pf-gauges.has-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .pf-hero { grid-template-columns: auto minmax(0, 1fr); } .pf-side .ad-halfpage { display: none; } }
@media (max-width: 640px) {
  .pf-hero { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .pf-hero .st-hero-meta { justify-content: center; }
  .pf-hero .st-hero-acts { width: 100%; }
  .pf-avatar .user-avatar-img, .pf-avatar img { width: 96px; height: 96px; font-size: 38px; }
  .pf-gauges, .pf-gauges.has-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-gauges .st-gauge { padding: 10px; gap: 10px; }
  .pf-gauges .st-ring { width: 44px; height: 44px; }
  .pf-gauges .st-ring::after { width: 34px; height: 34px; }
  .pf-gauges .st-gauge b { font-size: 19px; }
  .pf-lists, .pf-sims { grid-template-columns: minmax(0, 1fr); }
  .pf-tabs a { padding: 11px 10px 10px; }
}

/* ==== Breadcrumbs (every page but home; app/breadcrumbs.php) ==== */
.crumbs { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 8px; border: solid #6f6b65; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); flex: none; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--orange); text-decoration: underline; }
.crumbs .crumbs-home { display: inline-flex; align-items: center; padding: 3px 2px; }
.crumbs .crumbs-home svg { display: block; }
.crumbs li[aria-current="page"] { color: #f6f3ee; font-weight: 600; min-width: 0; }
.crumbs li[aria-current="page"] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(520px, 70vw); display: inline-block; vertical-align: bottom; }
@media (max-width: 640px) { .crumbs { margin-bottom: 14px; font-size: 12.5px; } .crumbs li + li::before { margin: 0 8px 0 6px; } }
/* Own profile = "My Profile & Lists": create-list form + private/public badges on the Lists tab */
.pf-newlist { display: flex; gap: 8px; margin: 0 0 14px; }
.pf-newlist input { flex: 1; min-width: 0; margin: 0; }
.pf-newlist button { margin: 0; white-space: nowrap; }
.pf-list-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pf-list-top .pf-pill { font-size: 11px; padding: 2px 8px; }
/* Profile list cards: no link underline on hover (user, 2026-11-11) */
.pf-list, .pf-list:hover, .pf-list:focus-visible, .pf-list *, .pf-list:hover * { text-decoration: none; }
/* Member report popup + /moderation/member-reports */
.mr-count { display: block; margin-top: 4px; font-size: 12px; }
.mr-count.is-ok { color: #7fe0a0; }
.mr-filter { display: flex; gap: 6px; }
.mr-filter a { padding: 6px 12px; border: 1px solid #444; border-radius: 8px; color: #b7b4af; text-decoration: none; }
.mr-filter a[aria-current="page"] { border-color: var(--orange); color: #fff; background: rgba(247, 147, 30, .12); }
.mr-list { display: flex; flex-direction: column; gap: 14px; }
.mr-card.is-closed { opacity: .75; }
.mr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mr-target { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mr-target span { display: flex; flex-direction: column; min-width: 0; }
.mr-target strong { color: #f6f3ee; overflow-wrap: anywhere; }
.mr-reason { margin: 10px 0 6px; }
.mr-meta { margin: 8px 0 0; font-size: 13px; }
.mr-acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.mr-acts form { margin: 0; }
.mr-acts button { margin: 0; }
/* ==== Profile lists, design B: manager rows (tile · name/count/codes · Public switch · Export · ›) ==== */
.pf-lrows { display: flex; flex-direction: column; border: 1px solid #383838; border-radius: 12px; }
.pf-lrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 36px; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #2e2e2e; }
.pf-lrow:last-child { border-bottom: 0; }
.pf-lrow:hover { background: rgba(255, 255, 255, .025); }
.pf-lrows:not(:has(.pf-lacts)) .pf-lrow { grid-template-columns: 46px minmax(0, 1fr) 36px; }
.pf-ltile { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: .5px; color: #fff; text-decoration: none; background: hsl(var(--h, 30) 38% 28%); border: 1px solid hsl(var(--h, 30) 38% 38%); }
.pf-lmain, .pf-lmain:hover { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.pf-lmain strong { color: #f6f3ee; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-lmain:hover strong { color: var(--orange); }
.pf-lmain small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-lacts { display: flex; align-items: center; gap: 10px; }
.pf-lvis { margin: 0; }
.pf-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font-size: 13px; color: #d6d1ca; min-width: 104px; }
.pf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-switch-track { width: 38px; height: 22px; border-radius: 999px; background: #444; position: relative; flex: none; transition: background .15s; }
.pf-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #aaa; transition: transform .15s, background .15s; }
.pf-switch input:checked + .pf-switch-track { background: #3fa45b; }
.pf-switch input:checked + .pf-switch-track::after { transform: translateX(16px); background: #0f2414; }
.pf-switch input:focus-visible + .pf-switch-track { outline: 2px solid var(--orange); outline-offset: 2px; }
.pf-exp { position: relative; }
.pf-exp summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; margin: 0; font-size: 13px; cursor: pointer; }
.pf-exp summary::-webkit-details-marker { display: none; }
.pf-exp[open] summary { border-color: var(--orange); }
.pf-exp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; padding: 6px; background: #262626; border: 1px solid #444; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.pf-exp-menu a { padding: 8px 10px; border-radius: 7px; color: #f6f3ee; text-decoration: none; font-size: 13px; white-space: nowrap; }
.pf-exp-menu a:hover, .pf-exp-menu a:focus-visible { background: rgba(247, 147, 30, .14); color: #fff; }
.pf-lgo { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #444; border-radius: 8px; color: #f6f3ee; text-decoration: none; }
.pf-lgo:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 640px) {
  .pf-lrow { grid-template-columns: 42px minmax(0, 1fr) 36px; grid-template-areas: "tile main go" "acts acts acts"; gap: 8px 12px; padding: 12px; }
  .pf-lrows:not(:has(.pf-lacts)) .pf-lrow { grid-template-areas: "tile main go"; }
  .pf-ltile { grid-area: tile; width: 42px; height: 42px; }
  .pf-lmain { grid-area: main; }
  .pf-lgo { grid-area: go; }
  .pf-lacts { grid-area: acts; justify-content: space-between; padding-left: 54px; }
  .pf-exp-menu { right: 0; }
}
label.pf-switch { flex-direction: row; flex-wrap: nowrap; flex: none; width: auto; min-width: 104px; font-weight: 600; }

/* ==== Login as (admins, testing): banner on every page while switched ==== */
.login-as-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #3a1d1d; border: 1px solid #8a3a3a; color: #f8d4d4; font-size: 14px; }
.login-as-bar strong { color: #fff; }
.login-as-bar form { margin: 0; }
.login-as-bar .button { margin: 0; min-height: 34px; }

/* ==== Playlist player in the bottom bar (design B1, 2026-11-11; app.js "Playlist player") ==== */
#radio-player .player-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
#radio-player .player-title #playing-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
#radio-player .pl-pos { flex: none; font-size: 13px; color: #f2c27a; text-decoration: none; white-space: nowrap; }
#radio-player .pl-pos:hover { text-decoration: underline; }
#radio-player .pl-pos[hidden], #radio-player .pl-ctrl[hidden] { display: none; }
#radio-player .pl-ctrl { display: flex; align-items: center; gap: 6px; flex: none; padding: 0 12px; border-left: 1px solid #383838; border-right: 1px solid #383838; }
#radio-player .pl-btn { width: 34px; height: 34px; min-height: 34px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid #444; background: transparent; color: #f6f3ee; cursor: pointer; }
#radio-player .pl-btn:hover { border-color: var(--orange); color: var(--orange); }
#radio-player .pl-btn.is-on { border-color: var(--orange); color: var(--orange); background: rgba(247, 147, 30, .14); }
#radio-player .pl-name { display: flex; flex-direction: column; align-items: center; max-width: 160px; padding: 0 4px; text-decoration: none; line-height: 1.2; }
#radio-player .pl-name b { font-size: 12px; color: #f2c27a; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#radio-player .pl-name small { font-size: 11px; color: #9a958e; }
#radio-player .pl-name:hover b { text-decoration: underline; }
#radio-player .pl-close { width: 28px; height: 28px; min-height: 28px; padding: 0; margin: 0; border: 0; background: transparent; color: #9a958e; cursor: pointer; font-size: 14px; }
#radio-player .pl-close:hover { color: #fff; }
/* wide screens: list name + count on the right; the "– 3/32" after the station name only on smaller screens */
@media (min-width: 1001px) { #radio-player .pl-pos { display: none !important; } }
@media (max-width: 1000px) { #radio-player .pl-name { display: none; } }
/* phones: no volume button at all (hardware keys); tighter playlist controls */
@media (max-width: 640px) {
  #radio-player .volume, #radio-player #player-volume-wrap { display: none !important; }
  #radio-player .pl-ctrl { padding: 0 6px; gap: 4px; border: 0; }
  #radio-player .pl-btn { width: 30px; height: 30px; min-height: 30px; }
  #radio-player .pl-close { width: 20px; }
  #radio-player .pl-pos { font-size: 12px; }
}
/* Play list buttons: profile rows (round) and list pages (labelled) */
.pf-lplay { width: 36px; height: 36px; min-height: 36px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--orange); color: #21160b; cursor: pointer; }
.pf-lplay:hover { filter: brightness(1.1); }
.pf-lplay[data-active] { box-shadow: 0 0 0 3px rgba(247, 147, 30, .35); }
.pf-lplay[data-loading] svg, .list-play-btn[data-loading] svg { animation: rnd-roll .6s linear infinite; }
.pf-lplay-none { width: 36px; }
.pf-lrow { grid-template-columns: 46px minmax(0, 1fr) auto 36px 36px; }
.pf-lrows:not(:has(.pf-lacts)) .pf-lrow { grid-template-columns: 46px minmax(0, 1fr) 36px 36px; }
.list-play-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.list-play-btn[data-active] { box-shadow: 0 0 0 3px rgba(247, 147, 30, .35); }
@media (max-width: 640px) {
  .pf-lrow { grid-template-columns: 42px minmax(0, 1fr) 36px 36px; grid-template-areas: "tile main play go" "acts acts acts acts"; }
  .pf-lrows:not(:has(.pf-lacts)) .pf-lrow { grid-template-areas: "tile main play go"; }
  .pf-lplay, .pf-lplay-none { grid-area: play; }
}
/* phones in playlist mode: tighter bar so the station name keeps room next to ⇄ ⏮ ⏭ ✕ + → */
@media (max-width: 640px) {
  #radio-player[data-playlist] { gap: 6px; padding: 10px 10px; }
  #radio-player[data-playlist] .pl-ctrl { padding: 0; gap: 3px; }
  #radio-player[data-playlist] .pl-btn { width: 28px; height: 28px; min-height: 28px; }
  #radio-player[data-playlist] .pl-close { width: 16px; font-size: 12px; }
  #radio-player[data-playlist] .player-add-btn, #radio-player[data-playlist] .player-lists-btn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; }
  #radio-player[data-playlist] #player-toggle { width: 40px; height: 40px; min-height: 40px; }
  #radio-player[data-playlist] .pl-pos { font-size: 11px; }
}
/* Small screens and phones: list rows are tile · name · ▶ · › only; Public/Private and Export stay on the list page (user, 2026-11-11) */
@media (max-width: 760px) {
  .pf-lacts { display: none !important; }
  .pf-lrow, .pf-lrows:not(:has(.pf-lacts)) .pf-lrow { grid-template-columns: 42px minmax(0, 1fr) 36px 36px; grid-template-areas: "tile main play go"; }
}
/* Profile Lists tab: the row of the list that is playing (playlist player) is highlighted like a playing station */
.pf-lrow:has(.pf-lplay[data-active]) { background-image: linear-gradient(100deg, rgba(247, 147, 30, 0.18), rgba(247, 147, 30, 0.05) 70%); box-shadow: inset 3px 0 0 var(--orange); }

/* ==== Green dice in the player bar (right after volume): random station, plays at once ==== */
#radio-player .player-dice { width: 38px; height: 38px; min-height: 38px; padding: 0; margin: 0; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid #3f7a4f; background: #1f3324; color: #7fe0a0; cursor: pointer; }
#radio-player .player-dice svg { width: 22px; height: 22px; }
#radio-player .player-dice:hover, #radio-player .player-dice:focus-visible { background: #27422e; border-color: #5aa66d; color: #a2f0bb; }
#radio-player .player-dice.is-rolling svg { animation: rnd-roll .45s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #radio-player .player-dice.is-rolling svg { animation: none; } }
@media (max-width: 640px) {
  #radio-player .player-dice { width: 32px; height: 32px; min-height: 32px; }
  #radio-player .player-dice svg { width: 19px; height: 19px; }
  #radio-player[data-playlist] .player-dice { display: none; } /* phones in playlist mode: no room next to ⇄ ⏮ ⏭ ✕ */
}
/* List page: ad space after the sidebar widgets (public lists only) */
.playlist-sidebar .ad-reservation { margin: 18px auto 0; padding: 0; width: 100%; }

/* ==== List page header, design A (station-page hero for lists) ==== */
.list-hero .list-cover { width: 140px; height: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; position: relative; z-index: 1; }
.list-hero .list-cover span { display: grid; place-items: center; border-radius: 10px; font-weight: 800; font-size: 17px; letter-spacing: .5px; color: #fff; background: hsl(var(--h, 30) 38% 28%); border: 1px solid hsl(var(--h, 30) 38% 38%); }
.list-hero .list-cover .is-more { background: #2b2b2b; border-color: #444; color: #f2c27a; }
.list-hero .list-cover .is-empty { background: rgba(255, 255, 255, .03); border: 1px dashed #4b4034; }
.list-hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.list-hero-vis { font-size: 11px; padding: 2px 8px; letter-spacing: 0; text-transform: none; }
.list-hero-owner a { display: inline-flex; align-items: center; gap: 8px; color: #f6f3ee; text-decoration: none; font-weight: 600; }
.list-hero-owner a:hover span { color: var(--orange); }
.list-hero-owner .user-avatar-img { width: 28px; height: 28px; border-radius: 50%; }
.list-hero .st-hero-acts .list-play-btn { margin: 0; justify-content: center; }
.list-hero-exp summary.button { width: 100%; justify-content: center; min-height: 46px; }
.list-hero-exp .pf-exp-menu { right: 0; left: auto; }
.list-hero-note { margin: 0; font-size: 12px; max-width: 220px; }
.list-gauges .st-gauge div span { display: block; line-height: 1.3; }
@media (max-width: 640px) {
  .list-hero { grid-template-columns: auto minmax(0, 1fr); }
  .list-hero .list-cover { width: 92px; height: 92px; gap: 3px; }
  .list-hero .list-cover span { font-size: 12px; border-radius: 7px; }
  .list-hero .st-hero-acts { grid-column: 1 / -1; }
}
/* List page: four gauges (stations, plays, countries, downloads) */
.st-gauges.list-gauges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-gauges.list-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== Staff Users page, design A (app/users-page.php) ==== */
.us-search { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.us-search input[name="q"] { flex: 1; min-width: 220px; margin: 0; }
.us-search .us-sort { flex: none; margin: 0; min-width: 0; }
.us-search select, .us-search button { margin: 0; width: auto; }
.us-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.us-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #444; border-radius: 999px; color: #b7b4af; text-decoration: none; font-size: 13px; }
.us-chips a span { font-size: 11px; color: #8f8b85; }
.us-chips a[aria-current] { border-color: var(--orange); color: #fff; background: rgba(247, 147, 30, .14); }
.us-chips a[aria-current] span { color: #f7b25e; }
.us-table { border: 1px solid #383838; border-radius: 12px; }
.us-row { display: grid; grid-template-columns: 34px minmax(0, 1.7fr) 150px 110px 110px 40px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #2e2e2e; }
.us-row:last-of-type { border-bottom: 0; }
.us-head { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #8f8b85; padding-top: 8px; padding-bottom: 8px; }
.us-row.is-off .us-who strong { color: #8f8b85; text-decoration: line-through; }
.us-who { display: flex; flex-direction: column; min-width: 0; }
.us-who a { text-decoration: none; }
.us-who strong { color: #f6f3ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-who small { overflow-wrap: anywhere; }
.us-who .user-ip-line { font-size: 11px; color: #8f8b85; }
.us-rep { color: #f0b35a; }
.us-av .user-avatar-img { width: 32px; height: 32px; border-radius: 50%; }
.us-date { font-size: 13px; }
.us-role-form { margin: 0; }
.us-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; }
select.us-badge { width: auto; min-height: 30px; padding: 3px 26px 3px 10px; margin: 0; cursor: pointer; }
.us-badge.is-admin { background: #3a1d1d; color: #f19a9a; border-color: #5a2a2a; }
.us-badge.is-supermod { background: #2b2240; color: #c4b5fd; border-color: #44376a; }
.us-badge.is-mod { background: #1f2f3a; color: #93c5fd; border-color: #2f4a5c; }
.us-badge.is-member { background: #2a2a2a; color: #d6d1ca; border-color: #3a3a3a; }
.us-badge.is-locked { background: #222; color: #8f8b85; border-color: #333; }
.us-more summary.button { width: 36px; min-height: 34px; padding: 0; justify-content: center; font-size: 18px; line-height: 1; }
.us-more .pf-exp-menu { min-width: 200px; }
.us-more .pf-exp-menu button { all: unset; display: block; padding: 8px 10px; border-radius: 7px; color: #f6f3ee; font-size: 13px; cursor: pointer; }
.us-more .pf-exp-menu button:hover, .us-more .pf-exp-menu button:focus-visible { background: rgba(247, 147, 30, .14); }
.us-more .pf-exp-menu .us-danger { color: #f19a9a; }
@media (max-width: 760px) {
  .us-head { display: none; }
  .us-row { grid-template-columns: 34px minmax(0, 1fr) 40px; grid-template-areas: "av who more" "av role role" "av dates dates"; row-gap: 6px; }
  .us-av { grid-area: av; align-self: start; } .us-who { grid-area: who; } .us-more { grid-area: more; }
  .us-role { grid-area: role; }
  .us-row > .us-date { display: inline; }
  .us-row > .us-date:nth-of-type(5) { grid-area: dates; }  /* phones: last seen only */
  .us-row > .us-date:nth-of-type(4) { display: none; }
}

/* ==== Member reports triage (design B) + moderation actions ==== */
.mr-chips .mr-chip-sep { width: 1px; background: #383838; margin: 0 4px; }
.mr-triage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mr-queue { padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; }
.mr-q { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; text-decoration: none; border: 1px solid transparent; }
.mr-q:hover { background: rgba(255, 255, 255, .04); }
.mr-q:is(:hover, :focus) { text-decoration: none; } /* no site-wide link underline on queue rows */
.mr-q.is-on { background: rgba(247, 147, 30, .12); border-color: #6b4a24; }
.mr-q .user-avatar-img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.mr-q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-q-main strong { color: #f6f3ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-q-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-q-n { flex: none; min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #3a1d1d; color: #f19a9a; }
.mr-q-n.is-closed { background: #2a2a2a; color: #8f8b85; }
.mr-case-head { display: flex; gap: 14px; align-items: center; }
.mr-case-head .user-avatar-img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.mr-case-who { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mr-case-who a { text-decoration: none; }
.mr-case-who strong { color: #fff; font-size: 18px; }
.mr-case-who small { flex-basis: 100%; }
.mr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 12px 0; border-block: 1px solid #2e2e2e; }
.mr-actions .button, .mr-actions button { margin: 0; min-height: 36px; font-size: 13px; }
.madmin-form { display: inline-flex; margin: 0; }
.madmin-danger { border-color: #8a3a3a !important; color: #f19a9a !important; }
.madmin-ok { background: #3fa45b !important; border-color: #3fa45b !important; color: #0f2414 !important; font-weight: 700; }
.mr-report { padding: 12px 0; border-bottom: 1px solid #2e2e2e; }
.mr-report:last-of-type { border-bottom: 0; }
.mr-report.is-closed { opacity: .7; }
.mr-report-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mr-report-acts { margin-left: auto; display: flex; gap: 6px; }
.mr-report-acts form { margin: 0; }
.mr-report-acts button { margin: 0; min-height: 32px; font-size: 12px; }
.mr-comments { margin-top: 4px; }
/* profile header "Moderate" menu */
.madmin-menu summary.button { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-height: 46px; width: 100%; }
.madmin-menu .pf-exp-menu { right: 0; left: auto; min-width: 230px; }
.madmin-menu .madmin-form { display: block; }
.madmin-menu .madmin-item { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; border-radius: 7px; color: #f6f3ee; font-size: 13px; cursor: pointer; text-decoration: none; }
.madmin-menu .madmin-item:hover, .madmin-menu .madmin-item:focus-visible { background: rgba(247, 147, 30, .14); }
.madmin-menu .madmin-item.madmin-danger { color: #f19a9a !important; border: 0 !important; }
.madmin-menu .madmin-item.madmin-ok { background: transparent !important; color: #7fe0a0 !important; border: 0 !important; }
.avatar-controls.is-blocked .actions, .avatar-controls.is-blocked .social-avatar-wrap, .avatar-controls.is-blocked > p.muted { display: none; }
@media (max-width: 900px) { .mr-triage { grid-template-columns: minmax(0, 1fr); } .mr-queue { max-height: 260px; } }
/* Profile right column: small Moderation box above the first ad (staff, members below their level) */
.madmin-box { border: 1px dashed #8a6a35; background: #221d15; padding: 14px 16px; }
.madmin-box-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: #f0b35a; }
.madmin-box-head h2 { margin: 0; font-size: 15px; color: #f0b35a; }
.madmin-box-head .muted { font-size: 11px; margin-left: auto; }
.madmin-switches { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.madmin-switch-form { margin: 0; }
label.madmin-switch { width: 100%; min-width: 0; justify-content: space-between; flex-direction: row-reverse; }
.madmin-switch input:checked + .pf-switch-track { background: #c0392b; }
.madmin-switch input:checked + .pf-switch-track::after { background: #fff; }
.madmin-links { display: flex; flex-wrap: wrap; gap: 6px; }
.madmin-links .button, .madmin-links button { margin: 0; min-height: 32px; padding: 0 10px; font-size: 12px; }
.madmin-links .pf-count, .madmin-links .nav-count { margin-left: 4px; }
.madmin-reports { margin-top: 8px; padding-top: 8px; border-top: 1px solid #3a3022; }

/* ==== Admin Staff log (app/staff-log.php) ==== */
.slog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.slog-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid #383838; border-radius: 10px; background: #202020; text-decoration: none; color: #f6f3ee; }
.slog-card.is-on { border-color: var(--orange); background: rgba(247, 147, 30, .1); }
.slog-card-name { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.slog-card-name .user-avatar-img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.slog-card b { font-size: 20px; }
.slog-filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slog-list { border: 1px solid #383838; border-radius: 12px; padding: 4px 14px 10px; }
.slog-day { margin: 14px 0 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.slog-ev { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #2a2a2a; }
.slog-ev:last-child { border-bottom: 0; }
.slog-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.slog-ic.is-accounts { background: #3a1d1d; color: #f19a9a; }
.slog-ic.is-stations { background: #1f3324; color: #7fe0a0; }
.slog-ic.is-streams { background: #1f2f3a; color: #93c5fd; }
.slog-ic.is-comments { background: #2b2240; color: #c4b5fd; }
.slog-ic.is-reports { background: #3a2a14; color: #f0b35a; }
.slog-ic.is-settings { background: #2a2a2a; color: #d6d1ca; }
.slog-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.slog-text a { color: #f7b25e; text-decoration: none; }
.slog-text a:hover { text-decoration: underline; }
.slog-ev time { flex: none; font-size: 12px; white-space: nowrap; }

/* ==== Community reports triage (station reports) ==== */
.cr-tile { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: hsl(var(--h, 30) 38% 28%); border: 1px solid hsl(var(--h, 30) 38% 38%); }
.cr-tile-lg { width: 56px; height: 56px; font-size: 15px; border-radius: 12px; }
.mr-actions .listen { margin: 0; min-height: 36px; }
.cr-last { margin: 6px 0 0; font-size: 13px; color: #d6d1ca; }
.cr-reply { margin-top: 8px; }
.cr-reply summary { cursor: pointer; color: #f7b25e; font-size: 13px; }
.cr-reply form { margin-top: 8px; max-width: 560px; }
.mr-report-acts .button { margin: 0; min-height: 32px; font-size: 12px; }

/* ==== Comments triage (comments + comment reports) ==== */
.section-heading .cm-search input { height: 36px; min-width: 220px; }
.mr-queue .mr-q small br + * { white-space: nowrap; }
.cm-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 2px; }
.cm-pager .button { margin: 0; min-height: 32px; padding: 0 12px; }
.cm-ctx { margin: 10px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); color: #b9b2a8; font-size: 13px; }
.cm-quote { margin: 10px 0 6px; }
.mr-actions-gap { flex: 1; }
.cm-rep { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); }
.cm-rep.is-closed { opacity: .7; }
.cm-rep-who { flex: 1; min-width: 160px; font-size: 13px; }
.cm-rep .madmin-form .button { margin: 0; min-height: 30px; font-size: 12px; }
@media (max-width: 760px) { .section-heading .cm-search, .section-heading .cm-search input { width: 100%; min-width: 0; } .mr-actions-gap { display: none; } }

/* ==== Comments: All comments feed (design A) ==== */
.cm-feed { display: grid; gap: 10px; margin-top: 12px; }
.cm-card { padding: 12px 14px; }
.cm-card.is-deleted { opacity: .65; }
.cm-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cm-card-meta { font-size: 13px; flex: 1; min-width: 200px; }
.cm-card-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-card-pills a.pf-pill { text-decoration: none; }
.cm-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.cm-card .mr-actions { margin-top: 4px; }
/* Settings: Social sign-in panel, one small heading per provider */
#social .oauth-provider-head { margin: 14px 0 0; padding-bottom: 8px; }
#social .oauth-provider-head { justify-content: flex-start; }
#social .oauth-switch { gap: 12px; }
#social .oauth-name { font-size: 17px; font-weight: 700; color: #f6f3ee; }

/* ==== Streams (stream approval, design B: one compact table) ==== */
.str-wrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.str-table td.str-url { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.str-table td.str-station { white-space: nowrap; }
.str-table tr.is-off td.str-url a { color: #b7b4af; }
.str-checkall .button { margin: 0; min-height: 36px; }
@media (max-width: 720px) { .str-wrap { border: 0; background: none; } .str-table td.str-url { max-width: none; white-space: normal; } }

/* ==== Stations (catalogue table, design A like Streams) ==== */
.stn-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.stn-filter input[type=search] { flex: 1; min-width: 220px; height: 40px; }
.stn-filter select { width: auto; min-height: 40px; }
.stn-filter .primary { min-height: 40px; }
.stn-table td.stn-name { max-width: 380px; }
.stn-table td.stn-name .appr-tag { margin-left: 4px; }
.stn-table tr.is-off .stn-name > a { color: #b7b4af; }
.stn-table .appr-sq-badge { width: 32px; height: 32px; }
@media (max-width: 720px) { .stn-filter input[type=search] { min-width: 0; flex-basis: 100%; } .stn-table td.stn-name { max-width: none; } }
/* ==== Staff tables: zebra rows + warm hover tint (user, 2026-11-11, design A; no orange edge) ====
   Stations, Streams, Approvals (stream + clone tables), Users, Activity, Staff log (per day), Featured, Merge.
   The playing highlight is a background-image, so it stays visible over the stripes. */
:root { --row-stripe: rgba(255, 255, 255, .04); --row-hover: rgba(247, 147, 30, .09); }
.appr-table:not(.appr-facts) tbody tr:nth-child(even),
.us-row:not(.us-head):nth-child(even), .act-row:not(.act-head):nth-child(even), .mg-row:not(.mg-head):nth-child(even),
.slog-group > .slog-ev:nth-child(even), .fs-list > .fs-row:nth-child(even of :not([hidden])) { background-color: var(--row-stripe); }
.appr-table:not(.appr-facts) tbody tr, .us-row, .act-row, .mg-row, .slog-ev, .fs-row { transition: background-color .12s; }
.appr-table:not(.appr-facts) tbody tr:hover,
.us-row:not(.us-head):hover, .act-row:not(.act-head):hover, .mg-row:not(.mg-head):hover, .slog-group > .slog-ev:hover, .fs-list > .fs-row:hover { background-color: var(--row-hover); }
.slog-group > .slog-ev { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.slog-group > .slog-ev:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .appr-streams tr, .appr-clones tr { padding-left: 50px; }
  .appr-streams td:first-child, .appr-clones td:first-child { left: 6px; }
}
/* Desktop: one line per row in the staff tables (user, 2026-11-11: "things on the right squeezed needlessly").
   Every cell keeps its content on one line; only the main column (stream address / station name) gives up room,
   with an ellipsis, so the slug, status and buttons on the right are never wrapped. */
@media (min-width: 721px) {
  .appr-table:not(.appr-facts) td { white-space: nowrap; }
  .appr-table:not(.appr-facts) td.appr-main { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .appr-table:not(.appr-facts) td.appr-main .appr-tag { margin-left: 4px; }
  /* Streams has two main columns: the address gets most of the spare room, the station name the rest */
  .str-table td.appr-main.str-station { width: 34%; }
  .str-table td.appr-main.str-url { width: 66%; }
}
/* Playing button: pause on hover (user, 2026-11-11). A playing station's buttons keep the moving EQ bars; on hover or
   keyboard focus the bars stop and become a pause icon (outer two full height, middle one hidden), because a press
   now pauses it. Phones (no hover) keep the bars; a tap still pauses. */
.listen:is([data-active], [data-playing="1"]):is(:hover, :focus-visible) .eq-bars i { animation: none !important; height: 100% !important; transform: scaleX(1.6); }
.listen:is([data-active], [data-playing="1"]):is(:hover, :focus-visible) .eq-bars i:nth-child(2) { visibility: hidden; }

/* ==== Overview dashboard (design A: to-do tiles, user 2026-11-11) ==== */
.ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ov-tiles { grid-template-columns: minmax(0, 1fr); } }
.ov-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid #4a4a4a; border-radius: 14px; background: #262626; color: #d6d1ca; text-decoration: none; transition: border-color .15s, background-color .15s; }
.ov-tile:is(:hover, :focus-visible) { text-decoration: none; border-color: var(--orange); color: #d6d1ca; }
.ov-tile.is-hot { background: #2c2620; border-color: #7e5a30; }
.ov-tile-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ov-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #33302b; color: var(--orange); flex: none; }
.ov-label { flex: 1; min-width: 0; }
.ov-go { color: #8f8b85; }
.ov-tile:hover .ov-go { color: var(--orange); }
.ov-n { font-size: 34px; line-height: 1.1; font-weight: 800; color: #6f6b66; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ov-tile.is-hot .ov-n { color: var(--orange); }
.ov-detail { font-size: 12px; color: #8f8b85; }
.ov-recent-head { margin-top: 30px; }
.ov-recent { margin-top: 4px; }
.ov-totals { margin: 18px 0 0; font-size: 12px; }

/* ==== Genres & countries (design B: list + editor with translations, user 2026-11-11) ==== */
.cat-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.cat-bar .mr-chips { margin: 0; }
.cat-search input { height: 38px; min-width: 240px; }
.cat-flag { width: 26px; flex: none; display: grid; place-items: center; font-size: 18px; }
.cat-flag-lg { width: 40px; font-size: 30px; }
.mr-q small code { color: #f7c27a; font-size: 11px; }
.cat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: #1b1c20; }
.cat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-who strong { font-size: 18px; color: #f6f3ee; }
.cat-head .primary { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cat-grid label { margin: 0; }
.cat-tr label > span { font-size: 12px; }
.cat-tr label b { color: var(--orange); font-weight: 700; }
.cat-iso { text-transform: uppercase; max-width: 90px; }
.cat-note { font-size: 12px; margin: 8px 0 0; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } .cat-search, .cat-search input { width: 100%; min-width: 0; } }

/* Genres & countries: Fill missing / Fill all missing (translations) */
.cat-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-head-acts form { margin: 0; }
.cat-tr-head .cat-fill { margin: 0 0 0 auto; min-height: 30px; padding: 4px 12px; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.cat-fill.is-busy { opacity: .6; cursor: progress; }
.cat-msg { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(93, 202, 122, .1); color: #7fe0a0; font-size: 13px; }
.cat-msg.is-error { background: rgba(240, 128, 128, .1); color: #f08080; }
.cat-tr input.is-filled { border-color: var(--orange); background: rgba(247, 147, 30, .08); }

/* ==== Settings (design A: side menu + section cards + one save bar, user 2026-11-11) ==== */
.set-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #202020; }
.set-nav a { padding: 8px 12px; border-radius: 8px; color: #b7b4af; font-size: 14px; }
.set-nav a:is(:hover, :focus-visible) { text-decoration: none; background: rgba(255, 255, 255, .04); color: #fff; }
.set-nav a.on { background: #2c2620; color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
.set-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.set-form { display: flex; flex-direction: column; gap: 16px; }
.set-sec { align-self: stretch; scroll-margin-top: 16px; border-color: #4a4a4a; background: #262626; display: flex; flex-direction: column; gap: 12px; }
.set-title { margin: 0; padding-left: 10px; border-left: 3px solid var(--orange); font-size: 17px; color: #f6f3ee; }
.set-switches { display: flex; flex-direction: column; gap: 10px; }
.set-switch { font-size: 14px; color: #e8e2d9; font-weight: 400; }
.set-full { margin: 0; }
.set-note { margin: 0; font-size: 12.5px; max-width: none; }
.set-savebar { margin-top: 0; justify-content: flex-end; }
.set-savebar .button, .set-savebar .primary { margin: 0; }
.set-dirty { margin-right: auto; color: var(--orange); font-size: 13px; }
.set-social-note { margin-top: 4px; }
.set-main #social { margin-top: 0 !important; scroll-margin-top: 16px; align-self: stretch; }
.set-main #social { background: #262626; border-color: #4a4a4a; }
.set-main #social > .section-heading { margin: 0 0 4px; padding-bottom: 0; border-bottom: 0; }
.set-main #social > .section-heading h2 { font-size: 17px; padding-left: 10px; }
.set-main #social > p { font-size: 12.5px; max-width: none; margin: 0 0 4px; }
@media (max-width: 860px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .set-nav a { padding: 6px 10px; font-size: 13px; }
}

/* ==== Formats (design A: list + editor in the house style, user 2026-11-11) ==== */
.fmt-layout .mr-q.is-disabled .mr-q-main strong { color: #8f8b85; }
.mr-q .appr-tag { margin-left: 0; flex: none; }
.fmt-case { display: flex; flex-direction: column; gap: 10px; }
.fmt-form { display: flex; flex-direction: column; gap: 10px; }
.fmt-form .cat-head .madmin-danger { margin: 0; }
.fmt-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fmt-locked { opacity: .75; background: #181818; }
.fmt-tokens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.fmt-token { min-height: 0; padding: 3px 8px; border-radius: 6px; border: 1px solid #4a4a4a; background: #1d1d1d; color: #f7c27a; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.fmt-token:hover { border-color: var(--orange); }
.fmt-token.is-done { border-color: #3fa45b; color: #7fe0a0; }
.fmt-templates { display: grid; gap: 12px; }
.fmt-templates label { margin: 0; }
.fmt-templates label > span { font-size: 13px; color: #e8e2d9; }
.fmt-templates textarea { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; background: #141414; }
@media (max-width: 900px) { .fmt-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==== Staff menu, design A: Overview + grouped tabs with small menus (user, 2026-11-11) ==== */
.staff-nav { align-items: center; flex-wrap: wrap; gap: 8px; position: relative; z-index: 20; }
.staff-nav .snav-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #424242; border-radius: 8px; font-size: 14px; color: #fe8200; background: none; cursor: pointer; list-style: none; user-select: none; }
.staff-nav .snav-tab::-webkit-details-marker { display: none; }
.staff-nav .snav-tab:is(:hover, :focus-visible) { border-color: var(--orange); text-decoration: none; color: #fff; }
.staff-nav a.snav-tab[aria-current="page"], .staff-nav .snav-dd.is-here > .snav-tab { border-color: var(--orange); color: #fff; background: rgba(247, 147, 30, .12); }
.staff-nav .snav-dd { position: relative; }
.staff-nav .snav-dd[open] > .snav-tab { border-color: var(--orange); color: #fff; }
.staff-nav .snav-caret { transition: transform .15s; opacity: .8; }
.staff-nav .snav-dd[open] .snav-caret { transform: rotate(180deg); }
.staff-nav .nav-count { margin-left: 0; }
.snav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border: 1px solid #4a4a4a; border-radius: 12px; background: #262626; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.staff-nav .snav-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; color: #d6d1ca; font-size: 14px; white-space: nowrap; }
.staff-nav .snav-menu a:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.staff-nav .snav-menu a[aria-current="page"] { background: #2c2620; color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
@media (max-width: 720px) {
  .section-nav.staff-nav { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0 0 12px; }
  .staff-nav .snav-tab { padding: 7px 11px; font-size: 13px; }
}
/* Header photos admin (/admin/hero-photos, 2026-11-12) */
.hp-upload { margin: 0; }
.hp-pick { cursor: pointer; }
.hp-rotation { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.hp-rot-opts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hp-list { display: flex; flex-direction: column; gap: 10px; }
.hp-row { padding: 0; }
.hp-row > summary { display: grid; grid-template-columns: 220px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 12px 14px; list-style: none; }
.hp-row > summary::-webkit-details-marker { display: none; }
.hp-thumb { height: 52px; border-radius: 7px; background: #333 center/cover no-repeat; border-bottom: 3px solid var(--orange); }
.hp-info { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.hp-pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin: 5px 5px 0 0; background: #2f2f2f; color: var(--muted); font-weight: 400; }
.hp-pill.is-on { background: #25301e; color: #c7e5a1; }
.hp-pill.is-off { background: #3b2522; color: #f0b6ac; }
.hp-pill.is-sch { background: #22303d; color: #a9cdf0; }
.hp-pill.is-now { background: var(--orange); color: #21160b; font-weight: 700; }
.hp-pill.is-warn { background: #3a3020; color: #e5b779; }
.hp-form { padding: 4px 14px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.hp-switches { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.hp-schs { display: flex; flex-direction: column; gap: 10px; }
.hp-sch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.hp-sch select { width: auto; min-height: 38px; padding: 6px 10px; }
.hp-dates, .hp-nth { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp-dates input { width: 170px; }
.hp-sch[data-kind="2"] .hp-dates, .hp-sch:not([data-kind="2"]) .hp-nth { display: none; }
.hp-days { flex-direction: row; align-items: center; gap: 6px; }
.hp-days input { width: 70px; padding: 7px 8px; }
.hp-x { margin-left: auto; }
.hp-sch input[type=date] { padding: 7px 10px; }
.hp-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; }
.hp-lang { flex-direction: row; align-items: center; gap: 4px; font-size: 12px; }
.hp-lang input { width: 15px; height: 15px; accent-color: var(--orange); }
.hp-langs-note { font-size: 11px; }
.hp-del { padding: 0 14px 14px; }
@media (max-width: 640px) { .hp-row > summary { grid-template-columns: 1fr; } .hp-thumb { height: 60px; } .hp-dates input { width: 100%; } }
.hp-row, .hp-rotation { width: 100%; align-self: stretch; }
.hp-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hp-btns form { margin: 0; }
@media (max-width: 640px) { .hp-btns { justify-content: flex-start; } }
.hp-dialog { width: min(1400px, 96vw); height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #1b1b1b; color: #f6f3ee; overflow: hidden; }
.hp-dialog[open] { display: flex; flex-direction: column; }
.hp-dialog::backdrop { background: rgba(0,0,0,.7); }
.hp-dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hp-dialog iframe { flex: 1; width: 100%; border: 0; background: #151515; }
/* Station workspace: possible clones under the name field (design A, 2026-11-13) */
.ws-clones:empty{display:none}
.ws-clones{border:1px solid #6b5134;background:#2a221a;border-radius:8px;padding:10px 12px;margin:6px 0 4px;display:flex;flex-direction:column;gap:2px}
.ws-clones-head{color:var(--orange);font-size:13px;font-weight:650;margin-bottom:4px}
.ws-clone{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid #3a3027;flex-wrap:wrap}
.ws-clone:first-of-type{border-top:0}
.ws-clone-text{flex:1;min-width:180px;font-size:13px}
.ws-clones-foot{font-size:12px;margin-top:4px}
.ws-clones .link-button{background:none;border:0;padding:0;min-height:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:12px}
/* Live AdSense units in the reserved places (2026-11-13): a plain block (the centred flex column gave the <ins> no
   width, so Google sized the ad from the page and it spilled out of narrow columns); never wider than the column. */
.ad-reservation.ad-live{display:block !important;width:100%;max-width:100%;overflow:hidden;text-align:center}
.ad-live ins.adsbygoogle{display:block !important;width:100% !important;max-width:100%;min-height:90px;margin:0 auto}
.ad-live.ad-rectangle ins.adsbygoogle{min-height:250px}
.ad-live ins.adsbygoogle iframe{max-width:100% !important}

/* Station workspace switches (2026-11-17) */
label.switch { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 10px; width: auto; cursor: pointer; margin: 8px 0; font-weight: 500; }
.switch > span:last-child { flex: 1 1 auto; min-width: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: #4a4a4a; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-ui { background: #f7931e; }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid #f7931e; outline-offset: 2px; }
