* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.page-home {
  place-items: start center;
  padding-top: 8px;
}

.card {
  width: min(960px, 100%);
  background: #111827;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

h1 {
  margin: 20px 0 10px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2;
}

p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 16px;
}

.cta {
  display: inline-block;
  background: #22c55e;
  color: #08120d;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
}

.cta:hover {
  background: #16a34a;
}

.doc-nav {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.doc-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.doc-nav a:hover {
  background: #334155;
  border-color: #475569;
}

.page-doc {
  place-items: start center;
}

.doc-card {
  text-align: left;
  margin: 24px 0;
}

.doc-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.doc-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(20px, 3vw, 28px);
}

.doc-card p,
.doc-card li {
  font-size: 17px;
  line-height: 1.6;
  color: #dbe7ff;
}

.doc-card ul,
.doc-card ol {
  margin: 10px 0 18px;
  padding-left: 24px;
  list-style-position: outside;
}

.doc-card li {
  margin-bottom: 6px;
}

.doc-actions {
  margin-top: 24px;
  margin-bottom: 10px;
}

.doc-actions-bar {
  position: static;
  width: 100%;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(132, 177, 238, 0.24);
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  z-index: auto;
}

.doc-actions-bar .cta {
  min-width: 168px;
  width: auto;
  text-align: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
}

.radio-page {
  border: 1px solid #1e3a8a;
  border-radius: 14px;
  background: #06133a;
}

.radio-page h1 {
  margin-bottom: 18px;
}

.radio-hero-grid {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}

.radio-widget {
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
}

.radio-hero-grid .radio-widget h2,
.radio-hero-grid .live-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  color: #f8fafc;
}

.radio-widget p {
  font-size: clamp(20px, 2.2vw, 40px);
  margin-bottom: 16px;
}

.radio-widget p a {
  color: #93c5fd;
  text-decoration: none;
}

.radio-player {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.radio-btn {
  border: none;
  cursor: pointer;
  min-width: 175px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 38px;
  line-height: 1;
}

#radioVolume {
  --volume-percent: 80%;
  -webkit-appearance: none;
  appearance: none;
  width: min(360px, 100%);
  accent-color: #1f9bff;
  background: transparent;
}

#radioStatus {
  color: #dbe7ff;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
}

.live-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.live-card {
  border: 1px solid #2a4481;
  border-radius: 12px;
  background: rgba(5, 16, 50, 0.55);
  padding: 14px;
}

.live-card h2 {
  margin-top: 0;
}

.live-track {
  margin: 0;
  color: #f8fafc;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
}

.live-meta,
.live-updated {
  margin: 8px 0 0;
  color: #dbe7ff;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
}

.history-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #1f2a40;
}

.history-item:last-child {
  border-bottom: none;
}

.history-time {
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

.history-track {
  color: #e2e8f0;
  font-size: 18px;
}

.history-empty {
  color: #cbd5e1;
}

#radioVolume::-webkit-slider-runnable-track {
  height: 13px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  background: linear-gradient(
    to right,
    #1f9bff 0%,
    #1f9bff var(--volume-percent),
    #f8fafc var(--volume-percent),
    #f8fafc 100%
  );
}

#radioVolume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -8px;
  border-radius: 50%;
  border: 1px solid #0369a1;
  background: #1f9bff;
}

#radioVolume::-moz-range-track {
  height: 13px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  background: linear-gradient(
    to right,
    #1f9bff 0%,
    #1f9bff var(--volume-percent),
    #f8fafc var(--volume-percent),
    #f8fafc 100%
  );
}

#radioVolume::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #0369a1;
  background: #1f9bff;
}

@media (max-width: 768px) {
  .radio-hero-grid {
    grid-template-columns: 1fr;
  }

  .live-grid {
    grid-template-columns: 1fr;
  }

  .radio-hero-grid .radio-widget h2,
  .radio-hero-grid .live-card h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .radio-widget p,
  .live-track,
  .live-meta,
  .live-updated,
  #radioStatus {
    font-size: clamp(18px, 5vw, 28px);
  }

  .radio-btn {
    width: 100%;
    min-width: 0;
    font-size: 28px;
  }

  #radioVolume {
    width: 100%;
  }

  .doc-nav a {
    width: 100%;
    text-align: center;
  }

  .doc-actions-bar {
    width: 100%;
    max-width: none;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .doc-actions-bar .cta {
    min-width: 0;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 12px;
  }

  .radio-modern .page.page-doc {
    padding: 16px;
  }
}

/* Radio page visual style aligned with the reference layout */
body.radio-modern {
  background: #f3f4f6;
  color: #0f172a;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.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;
}

.radio-modern .page.page-doc {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.radio-modern .radio-page {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.radio-modern .doc-nav {
  margin: 0 0 14px;
  justify-content: flex-start;
}

.radio-modern .doc-nav a {
  border: 1px solid rgba(132, 177, 238, 0.35);
  background: linear-gradient(165deg, #315f99, #223f69);
  color: #eaf2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.radio-modern .doc-nav a:hover {
  background: linear-gradient(165deg, #3a6dad, #2a4f80);
  border-color: rgba(172, 206, 252, 0.5);
}

.radio-modern .doc-card h1 {
  color: #111827;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.radio-modern .doc-card:not(.radio-page) {
  width: min(980px, 100%);
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid rgba(132, 177, 238, 0.33);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  box-shadow: 0 20px 42px rgba(49, 95, 153, 0.12);
  text-align: left;
}

.radio-modern .doc-card h2 {
  color: #111827;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.radio-modern .doc-card p,
.radio-modern .doc-card li {
  color: #374151;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.radio-modern .doc-card ol {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.radio-modern .feature-blue-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(99, 158, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(77, 130, 224, 0.16), transparent 30%),
    linear-gradient(180deg, #fafdff, #edf4ff);
}

.radio-modern .feature-blue-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(112, 170, 255, 0.08) 32%, transparent 58%);
  transform: translateX(-100%);
  animation: blue-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.radio-modern .feature-blue-page > * {
  position: relative;
  z-index: 1;
}

.radio-modern .feature-blue-page > .doc-actions-bar {
  position: relative;
  z-index: 1;
}

.radio-modern .feature-blue-page h1,
.radio-modern .feature-blue-page h2 {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #10203c 0%, #1e4f91 35%, #5aa3ff 60%, #17345d 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: blue-text-flow 10s ease-in-out infinite;
}

.radio-modern .feature-blue-page h1 {
  font-size: clamp(31px, 3.3vw, 46px);
}

.radio-modern .feature-blue-page h2 {
  margin-top: 24px;
  font-size: clamp(24px, 2.3vw, 33px);
}

.radio-modern .feature-blue-page p,
.radio-modern .feature-blue-page li {
  color: #27405f;
  font-size: 15px;
  line-height: 1.72;
}

.radio-modern .feature-source {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: #17345d;
}

.radio-modern .feature-source strong {
  font-size: 19px;
}

.radio-modern .feature-source a {
  font-size: 18px;
}

.radio-modern .feature-blue-page strong {
  color: #17345d;
}

.radio-modern .feature-blue-page a:not(.cta) {
  color: #1d5db5;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 93, 181, 0.24);
}

.radio-modern .feature-blue-page a:not(.cta):hover {
  color: #133d79;
  border-bottom-color: rgba(19, 61, 121, 0.42);
}

.radio-modern .feature-info-box {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(95, 146, 224, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(230, 241, 255, 0.92));
  box-shadow: 0 10px 24px rgba(65, 110, 180, 0.08);
}

.radio-modern .feature-info-box p:last-child {
  margin-bottom: 0;
}

.radio-modern .feature-info-box-warn {
  border-color: rgba(81, 133, 214, 0.38);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.95), rgba(219, 234, 254, 0.98));
}

.radio-modern .feature-plain-block {
  margin: 14px 0 20px;
}

.radio-modern .feature-plain-block ol,
.radio-modern .feature-plain-block ul,
.radio-modern .feature-note-block ol,
.radio-modern .feature-note-block ul {
  margin-top: 10px;
  margin-bottom: 18px;
}

.radio-modern .feature-note-block {
  margin: 14px 0 22px;
  padding: 6px 0 6px 16px;
  border-left: 3px solid rgba(76, 126, 205, 0.34);
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.34), transparent 78%);
}

.radio-modern .feature-note-block p,
.radio-modern .feature-note-block li {
  color: #27405f;
}

.radio-modern .feature-checklist-spaced {
  margin-top: 10px;
  margin-bottom: 22px;
}

.radio-modern .feature-shot {
  margin: 16px 0 26px;
  width: 100%;
  max-width: none;
}

.radio-modern .feature-shot-link {
  display: block;
  width: 320px;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(112, 157, 226, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(43, 77, 126, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.radio-modern .feature-shot-link:hover {
  transform: translateY(-2px);
  border-color: rgba(87, 137, 217, 0.42);
  box-shadow: 0 22px 48px rgba(43, 77, 126, 0.2);
}

.radio-modern .feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.radio-modern .feature-shot figcaption {
  margin-top: 14px;
  max-width: 760px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #4d6488;
  white-space: normal;
}

.radio-modern .feature-faq {
  margin: 18px 0 24px;
}

.radio-modern .feature-faq-item {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(112, 157, 226, 0.2);
}

.radio-modern .feature-faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #17345d;
}

.radio-modern .feature-faq-item p {
  margin: 0;
}

.radio-modern .feature-links {
  margin: 20px 0 24px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(237, 244, 255, 0.82));
  border: 1px solid rgba(112, 157, 226, 0.2);
}

.radio-modern .feature-links h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.radio-modern .feature-links p {
  margin: 0 0 8px;
}

.radio-modern .feature-links p:last-child {
  margin-bottom: 0;
}

.radio-modern .seo-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 245, 255, 0.96));
  border: 1px solid rgba(132, 177, 238, 0.28);
  box-shadow: 0 16px 36px rgba(43, 77, 126, 0.08);
}

.radio-modern .radio-page .seo-panel h2,
.radio-modern .radio-page .seo-panel h3 {
  margin-top: 0;
  color: #17345d;
}

.radio-modern .radio-page .seo-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 28px);
}

.radio-modern .radio-page .seo-panel p,
.radio-modern .radio-page .seo-panel li {
  color: #304a6b;
  font-size: 15px;
  line-height: 1.7;
}

.radio-modern .radio-page .seo-panel a {
  color: #1d5db5;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 93, 181, 0.24);
}

.radio-modern .radio-page .seo-panel a:hover {
  color: #133d79;
  border-bottom-color: rgba(19, 61, 121, 0.42);
}

.radio-modern .seo-links-panel p {
  margin: 0 0 10px;
}

.radio-modern .seo-links-panel p:last-child {
  margin-bottom: 0;
}

.radio-modern .fm-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.radio-modern .fm-selector-label {
  font-size: 13px;
  color: #a8c8f0;
  white-space: nowrap;
}

.radio-modern .fm-city-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 28px 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(139, 185, 247, 0.38);
  background: rgba(20, 40, 68, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238ec5ff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: #e2f0ff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  max-width: 220px;
  outline: none;
  transition: border-color 160ms ease;
}

.radio-modern .fm-city-select:focus {
  border-color: rgba(139, 185, 247, 0.7);
}

.radio-modern .fm-city-select option {
  background: #1a3050;
  color: #e2f0ff;
}

.radio-modern .fm-city-select-legacy {
  display: none !important;
}

.radio-modern .fm-station-picker {
  position: relative;
  z-index: 30;
  flex: 1 1 270px;
  max-width: 430px;
}

.radio-modern .fm-station-combobox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px 9px 14px;
  border: 1px solid rgba(139, 185, 247, 0.38);
  border-radius: 12px;
  background: rgba(20, 40, 68, 0.85);
  color: #e2f0ff;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.radio-modern .fm-station-combobox:disabled {
  cursor: wait;
  opacity: .72;
}

.radio-modern .fm-station-combobox:not(:disabled):is(:hover, :focus-visible),
.radio-modern .fm-station-picker.is-open .fm-station-combobox {
  border-color: rgba(139, 185, 247, 0.76);
  outline: none;
  box-shadow: 0 0 0 3px rgba(97, 164, 255, .14);
}

.radio-modern .fm-station-combobox svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.radio-modern .fm-station-picker.is-open .fm-station-combobox svg {
  transform: rotate(180deg);
}

.radio-modern .fm-station-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  width: min(560px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(139, 185, 247, .32);
  border-radius: 16px;
  background: #132945;
  box-shadow: 0 24px 64px rgba(2, 8, 23, .52);
}

.radio-modern .fm-station-panel[hidden] {
  display: none;
}

.radio-modern .fm-station-search-label {
  display: block;
  margin: 0 2px 7px;
  color: #bad5f4;
  font-size: 12px;
  font-weight: 700;
}

.radio-modern .fm-station-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 185, 247, .38);
  border-radius: 11px;
  outline: none;
  background: #0d2038;
  color: #f7fbff;
  font: inherit;
  font-size: 14px;
}

.radio-modern .fm-station-search::placeholder {
  color: #83a2c7;
}

.radio-modern .fm-station-search:focus {
  border-color: #63c9ff;
  box-shadow: 0 0 0 3px rgba(67, 202, 255, .15);
}

.radio-modern .fm-station-countries {
  display: flex;
  gap: 6px;
  margin: 20px 0 10px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.radio-modern .fm-station-countries[hidden],
.radio-modern .fm-station-browse-header[hidden] {
  display: none;
}

.radio-modern .fm-station-country-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(139, 185, 247, .28);
  border-radius: 999px;
  background: rgba(20, 40, 68, .72);
  color: #b8d0ec;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.radio-modern .fm-station-country-tab:is(:hover, :focus-visible) {
  border-color: #68c9ff;
  color: #fff;
  outline: none;
}

.radio-modern .fm-station-country-tab[aria-selected="true"] {
  border-color: #5abcf2;
  background: #1c5882;
  color: #fff;
}

.radio-modern .fm-station-browse-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 10px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 185, 247, .2);
}

.radio-modern .fm-station-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(139, 185, 247, .3);
  border-radius: 9px;
  background: rgba(20, 40, 68, .72);
  color: #dcecff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.radio-modern .fm-station-back:is(:hover, :focus-visible) {
  border-color: #68c9ff;
  outline: none;
}

.radio-modern .fm-station-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.radio-modern .fm-station-browse-header strong {
  min-width: 0;
  color: #fff;
  font-size: 13px;
}

.radio-modern .fm-station-list {
  max-height: min(55vh, 470px);
  margin-top: 10px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #6651d5 #14233a;
  scrollbar-width: thin;
}

.radio-modern .fm-station-country-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 8px 0 3px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #1e3b60;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.radio-modern .fm-station-country-heading:first-child {
  margin-top: 0;
}

.radio-modern .fm-station-subgroup-heading {
  padding: 10px 10px 4px;
  color: #78d6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
}

.radio-modern .fm-station-region-heading {
  padding: 8px 10px 3px;
  color: #a9c2df;
  font-size: 11px;
  font-weight: 700;
}

.radio-modern .fm-station-results-heading {
  margin: 8px 0 4px;
  padding: 5px 8px;
  color: #78d6ff;
  font-size: 12px;
  font-weight: 800;
}

.radio-modern .fm-station-region-card {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: calc(50% - 4px);
  min-height: 54px;
  margin: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(139, 185, 247, .2);
  border-radius: 10px;
  background: rgba(17, 39, 65, .62);
  color: #edf7ff;
  font: inherit;
  text-align: left;
  vertical-align: top;
  cursor: pointer;
}

.radio-modern .fm-station-region-card:is(:hover, :focus-visible) {
  border-color: rgba(99, 201, 255, .55);
  background: rgba(73, 115, 193, .25);
  outline: none;
}

.radio-modern .fm-station-region-name {
  font-size: 12px;
  font-weight: 750;
}

.radio-modern .fm-station-region-meta {
  margin-top: 3px;
  color: #9ebddd;
  font-size: 10px;
}

.radio-modern .fm-station-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #edf7ff;
  cursor: pointer;
}

.radio-modern .fm-station-option.is-compact {
  grid-template-columns: minmax(0, 1fr);
}

.radio-modern .fm-station-option:is(.is-active, :hover) {
  border-color: rgba(99, 201, 255, .32);
  background: rgba(73, 115, 193, .25);
}

.radio-modern .fm-station-option[aria-selected="true"] {
  border-color: rgba(126, 91, 255, .62);
  background: linear-gradient(100deg, rgba(57, 47, 174, .5), rgba(78, 39, 142, .42));
}

.radio-modern .fm-station-option-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 750;
}

.radio-modern .fm-station-option-region {
  color: #a8c8f0;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.radio-modern .fm-station-empty {
  margin: 0;
  padding: 22px 12px;
  color: #a8c8f0;
  text-align: center;
}

.radio-modern .fm-station-search-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(23, 74, 126, .18);
  color: #a8c8f0;
  font-size: 11px;
  text-align: center;
}

.radio-modern .station-stream-notice {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(104, 184, 255, .3);
  border-radius: 11px;
  background: rgba(23, 74, 126, .22);
  color: #bde5ff !important;
}

.radio-modern .station-stream-notice.is-warning {
  border-color: rgba(178, 129, 255, .42);
  background: rgba(80, 43, 137, .25);
  color: #e4d3ff !important;
}

.radio-modern .fm-freq-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.18);
  border: 1px solid rgba(42, 171, 238, 0.38);
  color: #7fcfff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.radio-modern .tg-promo {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, #0d1f33 0%, #112a44 55%, #0d1f33 100%);
  border: 1px solid rgba(41, 161, 224, 0.38);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  display: flex;
  gap: 22px;
  align-items: center;
}

.radio-modern .tg-promo-icon {
  font-size: 44px;
  flex-shrink: 0;
  line-height: 1;
}

.radio-modern .tg-promo-body {
  flex: 1;
  min-width: 0;
}

.radio-modern .tg-promo-body h2 {
  margin: 0 0 8px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  color: #e2f0ff;
}

.radio-modern .tg-promo-body p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #7fb5e8;
  line-height: 1.65;
}

.radio-modern .tg-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-modern .tg-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2aabee 0%, #1a87c0 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(42, 171, 238, 0.5);
  transition: background 180ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 16px rgba(26, 135, 192, 0.35);
}

.radio-modern .tg-promo-btn:hover {
  background: linear-gradient(135deg, #32beff 0%, #2097d4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 135, 192, 0.5);
}

.radio-modern .tg-promo-btn-max {
  background: linear-gradient(135deg, #6657f5 0%, #4b3bd1 100%);
  border-color: rgba(139, 126, 255, 0.58);
  box-shadow: 0 4px 16px rgba(75, 59, 209, 0.38);
}

.radio-modern .tg-promo-btn-max:hover {
  background: linear-gradient(135deg, #786bff 0%, #5b49e4 100%);
  box-shadow: 0 6px 22px rgba(75, 59, 209, 0.5);
}

.radio-modern .feature-checklist li::marker {
  color: #2d65b4;
}

.radio-modern .feature-blue-page .doc-actions .cta {
  min-width: 258px;
}

.radio-modern .doc-actions-bar .cta {
  min-width: 0;
  border: 1px solid rgba(132, 177, 238, 0.35);
  background: linear-gradient(165deg, #315f99, #223f69);
  color: #eaf2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 20px rgba(49, 95, 153, 0.18);
}

.radio-modern .doc-actions-bar .cta:hover {
  background: linear-gradient(165deg, #3a6dad, #2a4f80);
  border-color: rgba(172, 206, 252, 0.5);
}

@keyframes blue-text-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes blue-sheen {
  0%,
  100% {
    transform: translateX(-115%);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  40% {
    transform: translateX(115%);
    opacity: 0;
  }
}

.radio-modern .doc-card ol,
.radio-modern .doc-card ul {
  margin: 10px 0 18px;
  padding-left: 24px;
}

.radio-modern .doc-card li {
  margin-bottom: 6px;
}

.radio-modern .radio-hero-grid {
  margin-top: 18px;
  padding: 26px;
  border-radius: 24px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  background:
    radial-gradient(circle at 12% 22%, rgba(56, 117, 193, 0.25), transparent 46%),
    linear-gradient(120deg, #16263d 0%, #0e1827 58%, #6c7e95 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.radio-modern .action-tiles {
  margin-top: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radio-modern .action-tile {
  min-height: 118px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(139, 185, 247, 0.34);
  background:
    radial-gradient(circle at 18% 15%, rgba(137, 189, 255, 0.2), transparent 42%),
    linear-gradient(170deg, #2f578f, #243f68);
  color: #f8fbff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 18px rgba(12, 24, 40, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.radio-modern .action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(175, 213, 255, 0.58);
  background:
    radial-gradient(circle at 20% 12%, rgba(147, 199, 255, 0.26), transparent 45%),
    linear-gradient(170deg, #3a6aa9, #2a4d7e);
}

.radio-modern .action-tile-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.radio-modern .action-tile-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #cbe1ff;
  line-height: 1.25;
}

.radio-modern .action-tile-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #dcecff;
}

.radio-modern .radio-widget,
.radio-modern .now-card {
  color: #e5e7eb;
}

.radio-modern .station-badge {
  display: inline-block;
  position: relative;
  z-index: 2;
  padding: 6px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(103, 167, 255, 0.24);
  border: 1px solid rgba(162, 202, 255, 0.42);
  color: #e8f2ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.radio-modern .radio-hero-grid .radio-widget h2,
.radio-modern .radio-hero-grid .live-card h2 {
  margin-top: 2px;
  margin-bottom: 8px;
  color: #f9fafb;
  font-size: clamp(18px, 2.6vw, 34px);
  line-height: 1.05;
}

.radio-modern .radio-widget p {
  margin-bottom: 12px;
  color: #dbe3f0;
  font-size: clamp(14px, 1.3vw, 22px);
}

.radio-modern .radio-widget p a {
  color: #8ec5ff;
  text-decoration: none;
}

.radio-modern .radio-player {
  gap: 12px;
}

.radio-modern .radio-player-inline {
  margin-top: 10px;
  margin-bottom: 14px;
}

.radio-modern .radio-player-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 10px;
}

.radio-modern .radio-btn {
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: clamp(20px, 2vw, 28px);
}

.radio-modern #radioVolume {
  width: min(640px, 100%);
}

.radio-modern #radioStatus {
  font-size: clamp(14px, 1.2vw, 20px);
  color: #e5e7eb;
}

.radio-modern .radio-btn-circle {
  position: relative;
  overflow: visible;
  min-width: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: radial-gradient(circle at 30% 28%, #4f93e6, #1f4f8f 75%);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(10, 22, 42, 0.4);
}

.radio-modern .radio-btn-circle::before,
.radio-modern .radio-btn-circle::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(137, 196, 255, 0.58);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.radio-modern .radio-btn-circle.is-playing::before {
  animation: radio-wave 1.7s ease-out infinite;
}

.radio-modern .radio-btn-circle.is-playing::after {
  animation: radio-wave 1.7s ease-out infinite 0.55s;
}

@keyframes radio-wave {
  0% {
    opacity: 0.7;
    transform: scale(0.92);
  }

  70% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

.radio-modern .reaction-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.32);
  font-size: 24px;
}

.radio-modern .reaction-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

.radio-modern .reaction-btn:hover {
  transform: translateY(-1px) scale(1.08);
  background: rgba(147, 197, 253, 0.16);
}

.radio-modern .reaction-btn:active {
  transform: scale(0.94);
}

.radio-modern .reaction-btn:focus-visible {
  outline: 2px solid rgba(219, 234, 254, 0.95);
  outline-offset: 2px;
}

.radio-modern .now-card {
  padding: 20px;
  border: 1px solid rgba(186, 210, 245, 0.58);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(89, 107, 133, 0.68), rgba(26, 39, 60, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(5, 10, 20, 0.22);
  text-align: center;
}

.radio-modern .now-cover-wrap {
  margin: 6px 0 14px;
  width: 180px;
  height: 180px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.radio-modern .now-cover-wrap.is-placeholder {
  background: linear-gradient(180deg, rgba(197, 207, 220, 0.45), rgba(115, 128, 145, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.radio-modern .now-cover-wrap.is-placeholder::before {
  content: "\266B";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 86px;
  color: rgba(239, 244, 250, 0.55);
}

.radio-modern .now-cover {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(5, 10, 20, 0.3);
  opacity: 0;
  transition: opacity 180ms ease;
}

.radio-modern .now-cover.is-loaded {
  opacity: 1;
}

.radio-modern .now-cover-wrap.is-placeholder .now-cover {
  opacity: 0;
}

.radio-modern .live-track {
  color: #ffffff;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.18;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.radio-modern .live-artist {
  margin: 8px 0 0;
  color: #eef6ff;
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 600;
}

.radio-modern .live-meta,
.radio-modern .live-updated {
  color: #ffffff;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.radio-modern .now-card .live-track,
.radio-modern .now-card .live-artist,
.radio-modern .now-card .live-updated {
  color: #ffffff;
  opacity: 1;
}

.radio-modern .now-card .live-track,
.radio-modern .now-card .live-artist {
  text-align: center;
}

.radio-modern .live-meta {
  display: none;
}

.radio-modern .live-grid {
  margin-top: 20px;
}

.radio-modern .history-card {
  border: 1px solid rgba(132, 177, 238, 0.33);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  padding: 14px 18px;
}

.radio-modern .history-card h2 {
  margin-bottom: 10px;
  color: #111827;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.radio-modern .history-actions {
  margin-top: 16px;
}

.radio-modern .playlist-open-btn,
.radio-modern .playlist-toggle-btn,
.radio-modern .doc-actions-bar .cta {
  border: 1px solid rgba(132, 177, 238, 0.35);
  background: linear-gradient(165deg, #315f99, #223f69);
  color: #f5f9ff;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 18px rgba(34, 63, 105, 0.16);
}

.radio-modern .playlist-open-btn:hover,
.radio-modern .playlist-toggle-btn:hover,
.radio-modern .doc-actions-bar .cta:hover {
  background: linear-gradient(165deg, #3a6dad, #2a4f80);
  color: #f5f9ff;
  border-color: rgba(172, 206, 252, 0.5);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 18px rgba(34, 63, 105, 0.16);
}

.radio-modern .playlist-panel {
  margin-top: 14px;
}

.playlist-panel {
  margin-top: 14px;
}

.playlist-sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
}

.playlist-sort-label {
  font-size: 16px;
  font-weight: 700;
  color: #dbe7ff;
}

.playlist-sort-select {
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
}

.history-date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.history-date-chip {
  border: 1px solid #334155;
  background: #1e293b;
  border-radius: 10px;
  min-width: 48px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #dbe7ff;
}

.history-date-chip.is-active {
  border-color: #60a5fa;
  background: #1d4f91;
  color: #f8fafc;
}

.history-date-day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.history-date-weekday {
  font-size: 12px;
  text-transform: lowercase;
}

.history-date-chip-all {
  min-width: 56px;
  justify-content: center;
  font-weight: 700;
}

.playlist-panel .history-item {
  display: grid;
  grid-template-columns: 72px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #1f2a40;
}

.playlist-panel .history-item:last-child {
  border-bottom: none;
}

.playlist-panel .history-time {
  color: #93c5fd;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.playlist-panel .history-cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #94a3b8;
  border: 1px solid #334155;
}

.playlist-panel .history-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.playlist-panel .history-title {
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-panel .history-artist {
  color: #94a3b8;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-modern .playlist-sort-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
}

.radio-modern .playlist-sort-label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
}

.radio-modern .playlist-sort-select {
  border: 1px solid rgba(132, 177, 238, 0.5);
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
}

.radio-modern .history-date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.radio-modern .history-date-chip {
  border: 1px solid rgba(132, 177, 238, 0.35);
  background: #f3f8ff;
  border-radius: 9px;
  min-width: 42px;
  padding: 5px 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #334155;
}

.radio-modern .history-date-chip-all {
  min-width: 48px;
  justify-content: center;
  font-weight: 700;
}

.radio-modern .history-date-chip.is-active {
  border-color: #315f99;
  background: #ffffff;
  color: #1e3a5f;
}

.radio-modern .history-date-day {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.radio-modern .history-date-weekday {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10px;
  text-transform: lowercase;
}

.radio-modern .history-item {
  display: grid;
  grid-template-columns: 64px 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.radio-modern .history-time {
  color: #0f172a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.radio-modern .history-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
}

.radio-modern .history-cover:not(.is-loaded) {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.radio-modern .history-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.radio-modern .history-title {
  color: #0f172a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-modern .history-artist {
  color: #6b7280;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-modern .doc-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  margin-right: 12px;
  margin-bottom: 0;
  vertical-align: top;
}

.radio-modern .doc-card:not(.radio-page) .doc-actions:last-of-type {
  margin-right: 0;
}

.radio-modern .doc-actions .cta:hover {
  background: linear-gradient(165deg, #3a6dad, #2a4f80);
}

.radio-modern .playlist-panel {
  margin-top: 20px;
  padding: 18px 22px;
}

.radio-modern .playlist-panel .history-list {
  margin-top: 10px;
}

.radio-modern .playlist-toggle-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.radio-modern .playlist-toggle-btn {
  min-width: 168px;
}

/* Document action hierarchy: MAX is primary, Telegram is secondary. */
.radio-modern .doc-actions-bar .cta:first-child {
  border-color: rgba(49, 95, 153, 0.28);
  background: rgba(255, 255, 255, 0.7);
  color: #234a79;
  box-shadow: none;
}

.radio-modern .doc-actions-bar .cta:first-child:hover {
  border-color: rgba(49, 95, 153, 0.46);
  background: #ffffff;
  color: #17345d;
}

.radio-modern .doc-actions-bar .cta:nth-child(2) {
  border-color: rgba(139, 126, 255, 0.64);
  background: linear-gradient(135deg, #5a49df, #4030b2);
  color: #ffffff;
  box-shadow: 0 9px 24px rgba(75, 59, 209, 0.28);
}

.radio-modern .doc-actions-bar .cta:nth-child(2):hover {
  border-color: rgba(170, 160, 255, 0.8);
  background: linear-gradient(135deg, #6250e5, #4938c2);
  color: #ffffff;
  box-shadow: 0 11px 28px rgba(75, 59, 209, 0.36);
}

.radio-modern .doc-actions-bar .cta:nth-child(3) {
  border-color: rgba(57, 177, 238, 0.58);
  background: linear-gradient(135deg, #167aa8, #0e608f);
  color: #ffffff;
  box-shadow: 0 9px 24px rgba(34, 158, 217, 0.24);
}

.radio-modern .doc-actions-bar .cta:nth-child(3):hover {
  border-color: rgba(113, 205, 249, 0.78);
  background: linear-gradient(135deg, #116f9b, #08476f);
  color: #ffffff;
  box-shadow: 0 11px 28px rgba(34, 158, 217, 0.32);
}

/* Redesigned instruction page. */
.radio-modern .doc-card:not(.radio-page).instruction-page {
  width: 100%;
  min-width: 0;
  margin: 18px 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(87, 137, 217, 0.28);
  border-radius: 28px;
  background: #f7faff;
  box-shadow: 0 24px 60px rgba(31, 66, 112, 0.16);
}

.radio-modern .instruction-page::before {
  display: none;
}

.radio-modern .instruction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(87, 137, 217, 0.18);
}

.radio-modern .instruction-page a.instruction-brand,
.radio-modern .instruction-page a.instruction-home-link {
  border-bottom: 0;
  text-decoration: none;
}

.radio-modern .instruction-page a.instruction-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #163967;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.radio-modern .instruction-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(38, 89, 153, 0.2);
}

.radio-modern .instruction-page a.instruction-home-link {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(49, 95, 153, 0.24);
  border-radius: 999px;
  color: #315f99;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.radio-modern .instruction-page a.instruction-home-link:hover {
  border-color: rgba(49, 95, 153, 0.42);
  background: #edf5ff;
  color: #17345d;
}

.radio-modern .instruction-hero {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0 22px;
  padding: 44px 46px 42px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(99, 177, 255, 0.38), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(112, 93, 255, 0.24), transparent 36%),
    linear-gradient(145deg, #102b4f 0%, #174f88 58%, #176ea2 100%);
  box-shadow: 0 20px 44px rgba(21, 69, 117, 0.22);
}

.radio-modern .instruction-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.035), 0 0 0 94px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.radio-modern .instruction-page .instruction-eyebrow {
  margin: 0 0 12px;
  color: #99d7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.radio-modern .instruction-page .instruction-hero h1 {
  max-width: none;
  margin: 0 0 16px;
  background: none;
  color: #ffffff;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  animation: none;
}

.radio-modern .instruction-page .instruction-lead {
  max-width: 730px;
  margin: 0;
  color: #dbeeff;
  font-size: 17px;
  line-height: 1.65;
}

.radio-modern .instruction-channel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.radio-modern .instruction-page a.instruction-channel {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 19px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(8, 29, 57, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.radio-modern .instruction-page a.instruction-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 34px rgba(8, 29, 57, 0.26);
}

.radio-modern .instruction-channel-max {
  background: linear-gradient(145deg, #5a49df, #4030b2);
}

.radio-modern .instruction-channel-telegram {
  background: linear-gradient(145deg, #1479a8, #0b527c);
}

.radio-modern .instruction-channel-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(7, 28, 60, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radio-modern .instruction-page .instruction-channel strong {
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.1;
}

.radio-modern .instruction-channel-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.radio-modern .instruction-channel-action span {
  font-size: 23px;
  line-height: 1;
}

.radio-modern .instruction-content {
  width: min(800px, calc(100% - 56px));
  margin: 0 auto;
  padding: 44px 0 20px;
}

.radio-modern .instruction-section {
  margin: 0 0 38px;
}

.radio-modern .instruction-page .instruction-section-label {
  margin: 0 0 6px;
  color: #3575bc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.radio-modern .instruction-page .instruction-content h2 {
  margin: 0 0 18px;
  background: none;
  color: #17345d;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  animation: none;
}

.radio-modern .instruction-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  counter-reset: instruction-step;
}

.radio-modern .instruction-steps li {
  position: relative;
  min-height: 205px;
  margin: 0;
  padding: 66px 18px 20px;
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(87, 137, 217, 0.2);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(44, 82, 128, 0.08);
  counter-increment: instruction-step;
}

.radio-modern .instruction-steps li::before {
  content: counter(instruction-step);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #3d7fcc, #285b99);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 7px 15px rgba(45, 101, 180, 0.23);
}

.radio-modern .instruction-steps li::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: rgba(79, 137, 216, 0.07);
}

.radio-modern .instruction-page .instruction-steps strong {
  display: block;
  margin-bottom: 9px;
  color: #17345d;
  font-size: 16px;
  line-height: 1.35;
}

.radio-modern .instruction-steps span {
  display: block;
  color: #536a87;
  font-size: 14px;
  line-height: 1.58;
}

.radio-modern .instruction-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 42px;
  padding: 25px 26px;
  border: 1px solid rgba(73, 118, 191, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, #e6f1ff, #f6f9ff 62%);
}

.radio-modern .instruction-benefit-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #387bc7, #214f86);
  color: #ffffff;
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(45, 101, 180, 0.24);
}

.radio-modern .instruction-page .instruction-benefit h2 {
  margin-bottom: 8px;
  font-size: clamp(23px, 2.6vw, 30px);
}

.radio-modern .instruction-page .instruction-benefit p {
  max-width: 680px;
  margin: 0;
  color: #405a78;
  font-size: 15px;
  line-height: 1.68;
}

.radio-modern .instruction-faq {
  display: grid;
  gap: 11px;
}

.radio-modern .instruction-faq details {
  overflow: hidden;
  border: 1px solid rgba(74, 124, 195, 0.23);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(44, 82, 128, 0.06);
}

.radio-modern .instruction-faq details[open] {
  border-color: rgba(57, 113, 187, 0.36);
  box-shadow: 0 12px 28px rgba(44, 82, 128, 0.1);
}

.radio-modern .instruction-faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: #17345d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.radio-modern .instruction-faq summary::-webkit-details-marker {
  display: none;
}

.radio-modern .instruction-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: #e8f2ff;
  color: #2d65b4;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-50%);
}

.radio-modern .instruction-faq details[open] summary::after {
  content: "−";
}

.radio-modern .instruction-page .instruction-faq p {
  margin: 0;
  padding: 0 52px 19px 20px;
  color: #4a627f;
  font-size: 14px;
  line-height: 1.65;
}

.radio-modern .instruction-related {
  margin-top: 4px;
  padding-top: 34px;
  border-top: 1px solid rgba(87, 137, 217, 0.22);
}

.radio-modern .instruction-page .instruction-related h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.radio-modern .instruction-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.radio-modern .instruction-page .instruction-related-links a {
  display: flex;
  min-height: 92px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid rgba(87, 137, 217, 0.2);
  border-bottom: 1px solid rgba(87, 137, 217, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: #214e83;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(44, 82, 128, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.radio-modern .instruction-page .instruction-related-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 113, 187, 0.4);
  color: #17345d;
  box-shadow: 0 12px 24px rgba(44, 82, 128, 0.1);
}

.radio-modern .instruction-related-links span {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.radio-modern .instruction-footer-actions {
  width: min(800px, calc(100% - 56px));
  margin: 8px auto 28px;
  padding-top: 22px;
}

.radio-modern .instruction-footer-actions .cta {
  flex: 1 1 180px;
  min-height: 43px;
}

.radio-modern .instruction-page :focus-visible {
  outline: 3px solid #0b4f91;
  outline-offset: 3px;
}

.radio-modern .instruction-page .instruction-hero :focus-visible,
.radio-modern .doc-actions-bar .cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #0b4f91 !important;
}

.radio-modern .instruction-faq details:focus-within {
  outline: 3px solid #0b4f91;
  outline-offset: 3px;
}

.radio-modern .instruction-faq summary:focus-visible {
  outline: none;
}

@media (max-width: 768px) {
  .radio-modern .page.page-doc {
    padding: 12px;
  }

  .radio-modern .doc-card:not(.radio-page) {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .radio-modern .doc-card:not(.radio-page).instruction-page {
    margin: 0;
    padding: 0;
    border-radius: 20px;
  }

  .radio-modern .instruction-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .radio-modern .instruction-page a.instruction-brand {
    gap: 9px;
    font-size: 13px;
  }

  .radio-modern .instruction-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .radio-modern .instruction-page a.instruction-home-link {
    padding: 8px 11px;
    font-size: 12px;
  }

  .radio-modern .instruction-hero {
    margin: 0 10px;
    padding: 30px 22px 26px;
    border-radius: 0 0 20px 20px;
  }

  .radio-modern .instruction-page .instruction-hero h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .radio-modern .instruction-page .instruction-lead {
    font-size: 15px;
  }

  .radio-modern .instruction-channel-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .radio-modern .instruction-page a.instruction-channel {
    min-height: 142px;
    padding: 18px;
  }

  .radio-modern .instruction-channel-badge {
    margin-bottom: 14px;
  }

  .radio-modern .instruction-content {
    width: calc(100% - 36px);
    padding-top: 34px;
  }

  .radio-modern .instruction-steps {
    grid-template-columns: 1fr;
  }

  .radio-modern .instruction-steps li {
    min-height: 0;
    padding: 20px 18px 20px 66px;
  }

  .radio-modern .instruction-steps li::before {
    top: 20px;
  }

  .radio-modern .instruction-benefit {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 21px;
  }

  .radio-modern .instruction-related-links {
    grid-template-columns: 1fr;
  }

  .radio-modern .instruction-page .instruction-related-links a {
    min-height: 0;
  }

  .radio-modern .instruction-footer-actions {
    width: calc(100% - 36px);
    flex-direction: column;
    margin-bottom: 20px;
  }

  .radio-modern .instruction-footer-actions .cta {
    flex: 0 0 auto;
    width: 100%;
  }

  .radio-modern .feature-blue-page h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .radio-modern .feature-blue-page h2 {
    font-size: clamp(20px, 6vw, 28px);
  }

  .radio-modern .doc-actions {
    display: flex;
    margin-right: 0;
  }

  .radio-modern .doc-actions .cta {
    min-width: 0;
    width: 100%;
  }

  .radio-modern .action-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-modern .radio-hero-grid {
    padding: 16px;
    border-radius: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .radio-modern .radio-player-footer {
    flex-wrap: wrap;
  }

  .radio-modern .radio-hero-grid .radio-widget h2,
  .radio-modern .radio-hero-grid .live-card h2 {
    font-size: clamp(20px, 7vw, 32px);
  }

  .radio-modern .radio-widget p {
    font-size: clamp(15px, 4.8vw, 22px);
  }

  .radio-modern .live-track,
  .radio-modern #radioStatus {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  .radio-modern .live-meta,
  .radio-modern .live-updated,
  .radio-modern .history-artist,
  .radio-modern .history-time {
    font-size: 13px;
  }

  .radio-modern .history-title {
    font-size: 15px;
  }

  .radio-modern .radio-btn {
    width: auto;
  }

  .radio-modern .reaction-bar {
    font-size: 20px;
    gap: 10px;
    padding: 7px 12px;
  }

  .radio-modern .now-cover {
    width: 100%;
    height: 100%;
  }

  .radio-modern .now-cover-wrap {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 520px) {
  .radio-modern .page.page-doc {
    padding: 8px;
  }

  .radio-modern .instruction-header {
    align-items: flex-start;
  }

  .radio-modern .instruction-page .instruction-brand span {
    max-width: 150px;
    line-height: 1.2;
  }

  .radio-modern .instruction-hero {
    margin: 0 6px;
    padding: 26px 17px 22px;
  }

  .radio-modern .fm-selector-wrap {
    align-items: stretch;
  }

  .radio-modern .fm-selector-label,
  .radio-modern .fm-station-picker {
    width: 100%;
    max-width: none;
  }

  .radio-modern .fm-station-panel {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .radio-modern .fm-station-list {
    max-height: min(58vh, 430px);
  }

  .radio-modern .fm-station-option {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: 54px;
  }

  .radio-modern .fm-station-region-card {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .radio-modern .fm-station-option-region {
    text-align: left;
  }

  .radio-modern .instruction-content,
  .radio-modern .instruction-footer-actions {
    width: calc(100% - 28px);
  }

  .radio-modern .instruction-faq summary {
    padding-left: 16px;
  }

  .radio-modern .instruction-page .instruction-faq p {
    padding-left: 16px;
    padding-right: 20px;
  }

  .radio-modern .action-tiles {
    grid-template-columns: 1fr;
  }

  .radio-modern .tg-promo {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio-modern .feature-blue-page::before,
  .radio-modern .feature-blue-page h1,
  .radio-modern .feature-blue-page h2,
  .radio-modern .instruction-channel,
  .radio-modern .instruction-related-links a {
    animation: none;
    transition: none;
  }

  .radio-modern .radio-btn-circle.is-playing::before,
  .radio-modern .radio-btn-circle.is-playing::after {
    animation: none;
    opacity: 0;
  }
}
