/* Общая тёмная тема в стилистике MAX: чёрный фон, белый текст,
   сине-фиолетовые градиенты и единая типографика на всех страницах. */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html { background: #0D0D0D; }
body.max-theme.radio-modern {
  --theme-bg: #0D0D0D;
  --theme-surface: #181818;
  --theme-surface-raised: #241C31;
  --theme-text: #FFFFFF;
  --theme-muted: #C3C3C3;
  --theme-subtle: #B5B5B5;
  --theme-line: #3A3445;
  --theme-accent: #572DFF;
  --theme-accent-hover: #354EF3;
  --theme-link: #68C9FF;
  --theme-hover: #A891FF;
  --theme-info: #68C9FF;
  --theme-navy: #111018;
  --theme-navy-raised: #211B30;
  --theme-navy-muted: #C3C3C3;
  --theme-warm: #8F3FFF;
  --theme-gradient-text: linear-gradient(96deg, #43D6FF 0%, #5A8CFF 48%, #8F3FFF 100%);
  --theme-button-bg: linear-gradient(135deg, #161F8A 0%, #2D085F 100%);
  --theme-button-hover: linear-gradient(97deg, #08798B 0%, #075CE1 45%, #572DFF 100%);
  --theme-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  --theme-radius: 24px;
  color-scheme: dark;
  color: var(--theme-text);
  background: var(--theme-bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.max-theme ::selection { background: #572DFF; color: #fff; }
.max-theme [hidden] { display: none !important; }
.max-theme :focus-visible { outline: 3px solid var(--theme-info); outline-offset: 5px; }
.max-theme a { color: var(--theme-link); }
.max-theme button, .max-theme select, .max-theme input { font: inherit; }
body.max-theme.radio-modern .doc-card :is(h1, h2, h3, p, ul, ol, li, a, span, strong, label, button, select, summary) { font-family: inherit; text-shadow: none; }
.max-theme :is(h1, h2, h3) { text-wrap: balance; }
.max-theme :is(section, article, nav, div) { min-width: 0; }
.max-theme #player { scroll-margin-top: 28px; }

.max-theme .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1112px, calc(100% - 48px));
  min-height: 76px;
  margin: 24px auto 0;
  padding: 12px 22px;
  border: 1px solid #33263F;
  border-radius: 28px;
  background: #281D39;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
}

.max-theme .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--theme-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.max-theme .site-brand img { flex: 0 0 auto; border-radius: 13px; }
.max-theme .site-brand small { display: block; color: var(--theme-subtle); font-size: 12px; font-weight: 500; }
.max-theme .site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.max-theme .site-nav a {
  padding: 11px 14px;
  border-radius: 13px;
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.max-theme .site-nav a[aria-current="page"] { color: #fff; background: #3C2857; }
.max-theme .site-nav a:is(:hover, :focus-visible) { color: #fff; background: #4B306C; }

.max-theme .site-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.max-theme .site-header-cta,
.max-theme .theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.max-theme .site-header-actions .site-header-cta { gap: 10px; padding: 11px 15px; white-space: nowrap; }
.max-theme .site-header-cta span, .max-theme .theme-button span { font-size: 20px; font-weight: 400; }

body.max-theme.radio-modern .page.page-doc {
  display: block;
  width: 100%;
  max-width: 1160px;
  min-height: 0;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

body.max-theme.radio-modern .doc-card {
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.max-theme.radio-modern .doc-card:not(.radio-page) {
  width: 100%;
  margin: 32px 0 0;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-radius);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}

body.max-theme.radio-modern .feature-blue-page::before { display: none; }
body.max-theme.radio-modern .doc-card :is(h1, h2, h3) {
  color: var(--theme-text);
  background: none;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -.035em;
  text-shadow: none;
  animation: none;
}
body.max-theme.radio-modern .doc-card h1 { margin: 0 0 28px; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.12; }
body.max-theme.radio-modern .doc-card h2 { margin: 36px 0 16px; font-size: clamp(25px, 3vw, 36px); line-height: 1.22; }
body.max-theme.radio-modern .doc-card h3 { font-size: 21px; line-height: 1.4; }
body.max-theme.radio-modern .doc-card :is(p, li) { color: var(--theme-muted); font-size: 16px; line-height: 1.8; font-family: inherit; }
body.max-theme.radio-modern .doc-card strong { color: var(--theme-text); }
body.max-theme.radio-modern .feature-blue-page a:not(.cta) { color: var(--theme-link); border-bottom-color: #68C9FF55; }
body.max-theme.radio-modern .feature-blue-page a:not(.cta):hover { color: var(--theme-hover); border-bottom-color: currentColor; }

/* Первый экран: короткое вступление, быстрые ссылки и настоящий плеер. */
.max-theme .home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 36px;
  align-items: center;
  margin: 28px 0 16px;
  padding: 32px 44px;
  border: 1px solid #312342;
  border-radius: 28px;
  background-color: #111018;
  background-image:
    radial-gradient(ellipse at 100% 90%, rgba(87, 45, 255, .22), transparent 55%),
    linear-gradient(135deg, #111018, #171021);
  box-shadow: var(--theme-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}
body.max-theme.radio-modern .home-intro h1 { margin: 0; color: #fff; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.045em; text-wrap: initial; }
body.max-theme.radio-modern .home-intro .theme-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--theme-navy-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.max-theme .theme-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #43D6FF; box-shadow: 0 0 12px #43D6FF70; }
.max-theme .theme-gradient-text { color: #68C9FF; }
@supports (background-clip: text) {
  .max-theme .theme-gradient-text { background-image: var(--theme-gradient-text); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
body.max-theme.radio-modern .home-intro-copy p { margin: 0 0 18px; color: var(--theme-navy-muted); font-size: 16px; line-height: 1.55; max-width: 360px; }
.max-theme .home-intro-copy .theme-button { margin: 0 18px 12px 0; }
.max-theme .theme-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--theme-link); font-size: 14px; font-weight: 600; text-decoration: none; }
.max-theme .theme-text-link:is(:hover, :focus-visible) { color: var(--theme-hover); text-decoration: underline; text-underline-offset: 5px; }
.max-theme .home-intro-copy .theme-text-link { display: inline-flex; color: var(--theme-link); }
.max-theme .home-intro-copy .theme-text-link:is(:hover, :focus-visible) { color: #fff; }

body.max-theme.radio-modern .action-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
body.max-theme.radio-modern .action-tile {
  position: relative;
  min-height: 88px;
  padding: 16px 45px 16px 22px;
  border: 1px solid var(--theme-line);
  border-radius: 18px;
  box-shadow: none;
}
body.max-theme.radio-modern .action-tile::after { content: "↗"; position: absolute; right: 20px; top: 20px; color: currentColor; font-size: 20px; }
body.max-theme.radio-modern .action-tile-title { color: currentColor; font-size: 17px; font-weight: 600; line-height: 1.35; }
body.max-theme.radio-modern .action-tile-sub { color: var(--action-muted, var(--theme-muted)); font-size: 13px; line-height: 1.5; margin-top: 6px; }

/* Плеер: сохранены селекторы и состояния существующего JavaScript. */
body.max-theme.radio-modern .radio-hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .85fr);
  align-items: center;
  gap: 40px;
  margin-top: 0;
  padding: 36px;
  border: 1px solid var(--theme-line);
  border-radius: 28px;
  border-color: #3A2852;
  background-color: var(--theme-navy);
  background-image:
    radial-gradient(ellipse at 100% 40%, rgba(66, 49, 194, .25), transparent 55%),
    linear-gradient(145deg, #14111C, #111018 65%, #1B1231);
  box-shadow: var(--theme-shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.max-theme.radio-modern .radio-widget h2 { max-width: 500px; margin: 12px 0 24px; color: #fff; font-size: clamp(27px, 3.6vw, 42px); line-height: 1.14; }
body.max-theme.radio-modern .station-badge { padding: 6px 12px; background: #2B1750; border-color: #6845A0; color: #DFCCFF; font-size: 12px; font-weight: 600; }
body.max-theme.radio-modern .fm-selector-wrap { gap: 10px; }
body.max-theme.radio-modern .fm-selector-label { color: var(--theme-navy-muted); font-size: 13px; }
body.max-theme.radio-modern .fm-city-select { max-width: min(260px, 100%); min-height: 42px; border-radius: 12px; border-color: var(--theme-line); background-color: var(--theme-surface); color: var(--theme-text); font-size: 13px; }
body.max-theme.radio-modern .fm-city-select option { background: var(--theme-surface); color: var(--theme-text); }
body.max-theme.radio-modern .fm-freq-badge { padding: 8px 12px; border-color: #345B8C; background: #10253F; color: #86D9FF; font-size: 12px; }
body.max-theme.radio-modern .radio-widget p { color: var(--theme-navy-muted); font-size: 13px; line-height: 1.7; }
body.max-theme.radio-modern .radio-widget p a { color: var(--theme-link); }
body.max-theme.radio-modern .radio-player-inline { margin: 24px 0 22px; }
body.max-theme.radio-modern #radioVolume { width: 100%; height: 26px; margin: 0; cursor: pointer; }
body.max-theme.radio-modern #radioVolume::-webkit-slider-runnable-track { height: 5px; border: 0; background: linear-gradient(to right, #43D6FF 0%, #7D50FF var(--volume-percent), #42364F var(--volume-percent), #42364F 100%); }
body.max-theme.radio-modern #radioVolume::-webkit-slider-thumb { height: 19px; width: 19px; margin-top: -7px; border: 3px solid #fff; background: var(--theme-accent); box-shadow: 0 0 16px #7542FF80; }
body.max-theme.radio-modern #radioVolume::-moz-range-track { height: 5px; border: 0; background: linear-gradient(to right, #43D6FF 0%, #7D50FF var(--volume-percent), #42364F var(--volume-percent), #42364F 100%); }
body.max-theme.radio-modern #radioVolume::-moz-range-thumb { height: 15px; width: 15px; border: 3px solid #fff; background: var(--theme-accent); box-shadow: 0 0 16px #7542FF80; }
body.max-theme.radio-modern .radio-btn-circle { flex: 0 0 auto; width: 62px; height: 62px; }
body.max-theme.radio-modern .radio-btn-circle::before, body.max-theme.radio-modern .radio-btn-circle::after { border-color: #8458FF80; }
body.max-theme.radio-modern .reaction-bar { gap: 8px; padding: 8px; background: #1A1426; border-color: #3D2D52; border-radius: 17px; }
body.max-theme.radio-modern .reaction-btn { display: grid; place-items: center; width: 34px; height: 34px; font-size: 23px; }
body.max-theme.radio-modern #radioStatus { display: block; margin-top: 15px; color: var(--theme-navy-muted); font-size: 13px; }
body.max-theme.radio-modern .now-card { padding: 26px; border-color: #51416B; border-radius: 22px; background: linear-gradient(150deg, #292039, #131019 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 36px rgba(0, 0, 0, .32); }
body.max-theme.radio-modern .now-card h2 { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: #fff; }
body.max-theme.radio-modern .now-cover-wrap { width: 166px; height: 166px; margin: 0 auto 20px; border-radius: 20px; }
body.max-theme.radio-modern .now-cover { border: 0; border-radius: 20px; box-shadow: 0 10px 24px #0006; }
body.max-theme.radio-modern .now-cover-wrap.is-placeholder { border-color: #65488C; background: var(--theme-button-bg); }
body.max-theme.radio-modern .now-cover-wrap.is-placeholder::before { color: #fff; }
body.max-theme.radio-modern .now-card .live-track { color: #fff; font-size: 18px; line-height: 1.5; text-shadow: none; }
body.max-theme.radio-modern .now-card .live-artist { color: var(--theme-navy-muted); font-size: 14px; line-height: 1.5; }
body.max-theme.radio-modern .now-card :is(.live-meta, .live-updated) { color: var(--theme-navy-muted); text-shadow: none; }

/* История, фильтры и раскрывающийся плейлист. */
body.max-theme.radio-modern .history-card,
body.max-theme.radio-modern .playlist-panel {
  padding: 28px 32px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}
body.max-theme.radio-modern .history-card h2 { margin: 0 0 22px; font-size: clamp(25px, 3vw, 32px); font-family: inherit; }
body.max-theme.radio-modern .history-list { margin: 12px 0 0; padding: 0; }
body.max-theme.radio-modern .history-item { grid-template-columns: 65px 50px minmax(0, 1fr); gap: 14px; margin: 0; padding: 14px 0; border-color: var(--theme-line); }
body.max-theme.radio-modern .history-time { color: var(--theme-muted); font-size: 13px; font-family: inherit; }
body.max-theme.radio-modern .history-cover { width: 50px; height: 50px; border: 0; border-radius: 12px; background: var(--theme-surface-raised); }
body.max-theme.radio-modern .history-cover:not(.is-loaded) { background: var(--theme-surface-raised); }
body.max-theme.radio-modern .history-title { color: var(--theme-text); font-size: 15px; font-family: inherit; font-weight: 600; line-height: 1.5; }
body.max-theme.radio-modern .history-artist { color: var(--theme-subtle); font-size: 13px; font-family: inherit; line-height: 1.5; }
body.max-theme.radio-modern .history-empty { color: var(--theme-muted); list-style: none; }
body.max-theme.radio-modern .playlist-sort-controls { gap: 12px; margin: 0 0 24px; }
body.max-theme.radio-modern .playlist-sort-label { color: var(--theme-muted); font-family: inherit; font-size: 13px; }
body.max-theme.radio-modern .playlist-sort-select { max-width: 100%; min-height: 44px; padding: 10px 12px; border-color: var(--theme-line); border-radius: 12px; background: var(--theme-surface); color: var(--theme-text); font-family: inherit; }
body.max-theme.radio-modern .history-date-filters { gap: 8px; margin-bottom: 20px; }
body.max-theme.radio-modern .history-date-chip { min-width: 54px; min-height: 55px; gap: 5px; padding: 10px 13px; border-radius: 14px; }
body.max-theme.radio-modern .history-date-day, body.max-theme.radio-modern .history-date-weekday { font-family: inherit; }
body.max-theme.radio-modern .history-date-weekday { font-size: 11px; opacity: 1; }

/* Единый вид действий; [hidden] и порядок элементов сохраняют старую логику. */
body.max-theme.radio-modern .cta,
body.max-theme.radio-modern .doc-actions-bar .cta,
body.max-theme.radio-modern .playlist-open-btn,
body.max-theme.radio-modern .playlist-toggle-btn,
body.max-theme.radio-modern .tg-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--theme-accent);
  border-radius: 15px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
body.max-theme.radio-modern .doc-actions-bar { position: static; margin-top: 38px; padding-top: 24px; border-top-color: var(--theme-line); gap: 12px; }
body.max-theme.radio-modern .doc-actions-bar .cta:focus-visible { outline: 3px solid var(--theme-info); outline-offset: 4px; }

/* Информационные секции используют ту же палитру, что плеер и инструкция. */
body.max-theme.radio-modern .tg-promo { margin-top: 36px; padding: 40px; gap: 28px; border-color: #493463; border-radius: var(--theme-radius); background: linear-gradient(115deg, #211332, #15131E); box-shadow: inset 0 1px 0 #FFFFFF0A; }
body.max-theme.radio-modern .tg-promo-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; font-size: 40px; color: #fff; background: var(--theme-button-bg); }
body.max-theme.radio-modern .tg-promo-body h2 { margin: 0 0 14px; font-size: clamp(25px, 3.3vw, 36px); }
body.max-theme.radio-modern .tg-promo-body p { margin: 0 0 24px; font-size: 16px; color: var(--theme-muted); }
body.max-theme.radio-modern .tg-promo-actions { align-items: center; gap: 12px; }
body.max-theme.radio-modern .seo-panel { margin-top: 32px; padding: 32px; border-color: var(--theme-line); border-radius: var(--theme-radius); background: var(--theme-surface); box-shadow: var(--theme-shadow); }
body.max-theme.radio-modern .radio-page .seo-panel h2, body.max-theme.radio-modern .radio-page .seo-panel h3 { color: var(--theme-text); }
body.max-theme.radio-modern .radio-page .seo-panel h2 { margin: 0 0 18px; font-size: clamp(24px, 2.8vw, 32px); }
body.max-theme.radio-modern .radio-page .seo-panel p, body.max-theme.radio-modern .radio-page .seo-panel li { color: var(--theme-muted); font-size: 16px; line-height: 1.8; }
body.max-theme.radio-modern .radio-page .seo-panel a { color: var(--theme-link); border-bottom-color: #68C9FF55; font-weight: 500; }
body.max-theme.radio-modern .radio-page .seo-panel a:hover { color: var(--theme-hover); }
body.max-theme.radio-modern :is(.feature-info-box, .feature-info-box-warn, .feature-faq-item, .feature-links) { padding: 24px; border-color: var(--theme-line); border-radius: 18px; background: #1D1924; box-shadow: none; }
body.max-theme.radio-modern .feature-info-box-warn { background: #291B38; border-color: #684785; }
body.max-theme.radio-modern .feature-faq-item h3 { color: var(--theme-text); font-size: 19px; }
body.max-theme.radio-modern .feature-faq-item p { color: var(--theme-muted); }
body.max-theme.radio-modern .feature-links h2 { margin-top: 0; }
body.max-theme.radio-modern .feature-note-block { padding: 12px 16px 12px 22px; border-left-color: #A272FF; background: #241831; }
body.max-theme.radio-modern .feature-shot-link { border-color: var(--theme-line); background: var(--theme-surface); box-shadow: none; }
body.max-theme.radio-modern .feature-shot figcaption { color: var(--theme-subtle); }
body.max-theme.radio-modern .feature-checklist li::marker { color: var(--theme-info); }
body.max-theme.radio-modern .feature-source { color: var(--theme-muted); }
body.max-theme.radio-modern .doc-nav a { min-height: 44px; border-radius: 13px; }

/* Сине-фиолетовая заливка и плавное появление яркого градиента при наведении.
   Отдельный слой не размывает текст и не меняет геометрию элементов. */
body.max-theme.radio-modern :is(
  .site-header-cta, .theme-button, .action-tile, .cta, .doc-actions-bar .cta,
  .playlist-open-btn, .playlist-toggle-btn, .tg-promo-btn, .radio-btn-circle,
  .reaction-btn, .history-date-chip, .doc-nav a,
  .instruction-page a.instruction-channel, .instruction-page .instruction-related-links a
) {
  position: relative;
  isolation: isolate;
  background: var(--action-bg, var(--theme-button-bg));
  border-color: var(--action-border, #433084);
  color: var(--action-text, #fff);
  box-shadow: var(--action-shadow, inset 0 1px 0 rgba(255, 255, 255, .08));
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

body.max-theme.radio-modern :is(.history-date-chip, .reaction-btn, .doc-nav a, .instruction-related-links a),
body.max-theme.radio-modern .doc-actions-bar .cta[href="/"] {
  --action-bg: #241B34;
  --action-text: var(--theme-text);
  --action-border: #554366;
  --action-hover: #413056;
  --action-hover-text: #fff;
  --action-hover-border: #8C67C2;
}

body.max-theme.radio-modern .action-tile { --action-muted: #DED8EF; }

/* Цвет зависит от назначения ссылки, а не её позиции в ряду. */
body.max-theme.radio-modern a[href^="https://t.me/"],
body.max-theme.radio-modern .instruction-channel-telegram {
  --action-bg: linear-gradient(125deg, #0769BE, #2542A8);
  --action-text: #fff;
  --action-border: #367ECC;
  --action-hover: linear-gradient(100deg, #08798B, #075CE1 70%, #572DFF);
  --action-hover-text: #fff;
  --action-hover-border: #68B6FF;
}

body.max-theme.radio-modern .history-date-chip.is-active {
  --action-bg: linear-gradient(135deg, #254FE1, #572DFF);
  --action-text: #fff;
  --action-border: #AD8CFF;
  --action-shadow: inset 0 0 0 1px #AD8CFF;
  --action-hover: var(--theme-button-hover);
  --action-hover-text: #fff;
  --action-hover-border: #C8B3FF;
}

body.max-theme.radio-modern :is(
  .site-header-cta, .theme-button, .action-tile, .cta, .doc-actions-bar .cta,
  .playlist-open-btn, .playlist-toggle-btn, .tg-promo-btn, .history-date-chip,
  .doc-nav a, .instruction-page a.instruction-channel, .instruction-page .instruction-related-links a
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--action-hover, var(--theme-button-hover));
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

body.max-theme.radio-modern :is(
  .site-header-cta, .theme-button, .action-tile, .cta, .doc-actions-bar .cta,
  .playlist-open-btn, .playlist-toggle-btn, .tg-promo-btn, .history-date-chip,
  .doc-nav a, .instruction-page a.instruction-channel, .instruction-page .instruction-related-links a
):is(:hover, :focus-visible)::before { opacity: 1; }

body.max-theme.radio-modern :is(
  .site-header-cta, .theme-button, .action-tile, .cta, .doc-actions-bar .cta,
  .playlist-open-btn, .playlist-toggle-btn, .tg-promo-btn, .radio-btn-circle,
  .reaction-btn, .history-date-chip, .doc-nav a,
  .instruction-page a.instruction-channel, .instruction-page .instruction-related-links a
):is(:hover, :focus-visible) {
  background: var(--action-bg, var(--theme-button-bg));
  border-color: var(--action-hover-border, #7871F5);
  color: var(--action-hover-text, #fff);
  box-shadow: var(--action-shadow, 0 8px 28px rgba(76, 45, 255, .28));
  transform: translateY(-2px);
}

body.max-theme.radio-modern :is(
  .site-header-cta, .theme-button, .action-tile, .cta, .doc-actions-bar .cta,
  .playlist-open-btn, .playlist-toggle-btn, .tg-promo-btn, .radio-btn-circle,
  .reaction-btn, .history-date-chip, .doc-nav a,
  .instruction-page a.instruction-channel, .instruction-page .instruction-related-links a
):active {
  background: var(--action-bg, var(--theme-button-bg));
  color: var(--action-hover-text, #fff);
  transform: translateY(0) scale(.98);
}

body.max-theme.radio-modern :is(.radio-btn-circle, .reaction-btn):is(:hover, :focus-visible) {
  background: var(--action-hover, var(--theme-button-hover));
}

body.max-theme.radio-modern :is(.fm-city-select, .playlist-sort-select):is(:hover, :focus-visible) {
  border-color: var(--theme-info);
  background-color: var(--theme-surface-raised);
}

.max-theme .site-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: start;
  gap: 28px;
  width: min(1112px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--theme-line);
}
.max-theme .site-footer a { color: var(--theme-text); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.6; }
.max-theme .site-footer a:hover { color: var(--theme-hover); }
.max-theme .site-footer p { margin: 0; color: var(--theme-subtle); font-size: 12px; line-height: 1.8; }

@media (max-width: 960px) {
  .max-theme .site-header { gap: 12px; padding: 14px 18px; }
  .max-theme .site-brand { font-size: 15px; }
  .max-theme .site-nav a { padding: 10px; font-size: 13px; }
  .max-theme .site-header-actions { gap: 7px; }
  .max-theme .site-header-actions .site-header-cta { padding: 10px 12px; font-size: 12px; gap: 7px; }
  .max-theme .home-intro { gap: 28px; }
  body.max-theme.radio-modern .radio-hero-grid { gap: 24px; padding: 26px; grid-template-columns: minmax(0, 1.4fr) minmax(235px, 1fr); }
  body.max-theme.radio-modern .now-card { padding: 24px 18px; }
}

@media (max-width: 760px) {
  .max-theme .site-header { width: calc(100% - 24px); margin-top: 12px; flex-wrap: wrap; border-radius: 22px; gap: 14px; }
  .max-theme .site-nav { order: 3; width: 100%; padding-top: 10px; border-top: 1px solid var(--theme-line); gap: 8px; }
  .max-theme .site-nav a { flex: 1; text-align: center; }
  body.max-theme.radio-modern .page.page-doc { padding: 14px 16px 44px; }
  .max-theme .home-intro { grid-template-columns: 1fr; gap: 20px; margin-top: 14px; padding: 28px 26px; }
  body.max-theme.radio-modern .home-intro h1 { font-size: clamp(34px, 6.8vw, 46px); }
  body.max-theme.radio-modern .home-intro-copy p { max-width: 560px; margin-bottom: 18px; font-size: 16px; }
  .max-theme .home-intro-copy .theme-button { margin: 0 18px 0 0; }
  .max-theme .home-intro-copy .theme-text-link { display: inline-flex; }
  body.max-theme.radio-modern .action-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.max-theme.radio-modern .action-tile { min-height: 100px; padding: 18px 32px 18px 16px; border-radius: 18px; }
  body.max-theme.radio-modern .action-tile::after { right: 13px; top: 15px; font-size: 17px; }
  body.max-theme.radio-modern .action-tile-title { font-size: 15px; }
  body.max-theme.radio-modern .action-tile-sub { font-size: 12px; }
  body.max-theme.radio-modern .radio-hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 26px; border-radius: 25px; }
  body.max-theme.radio-modern .radio-widget h2 { max-width: 460px; font-size: 34px; }
  body.max-theme.radio-modern .radio-player-footer { gap: 15px; flex-wrap: wrap; }
  body.max-theme.radio-modern .now-card { padding: 24px; }
  body.max-theme.radio-modern .now-card .now-cover-wrap { width: 172px; height: 172px; }
  body.max-theme.radio-modern .history-card, body.max-theme.radio-modern .playlist-panel { padding: 24px; }
  body.max-theme.radio-modern .tg-promo { padding: 28px; gap: 20px; align-items: flex-start; }
  body.max-theme.radio-modern .tg-promo-icon { width: 50px; height: 50px; font-size: 30px; border-radius: 17px; }
  body.max-theme.radio-modern .seo-panel { padding: 26px; }
  body.max-theme.radio-modern .doc-card:not(.radio-page) { margin-top: 18px; padding: 28px; }
  body.max-theme.radio-modern .doc-actions-bar { flex-direction: column; }
  body.max-theme.radio-modern .doc-actions-bar .cta { width: 100%; }
  .max-theme .site-footer { grid-template-columns: 1fr; gap: 14px; width: calc(100% - 40px); padding-top: 24px; }
}

@media (max-width: 440px) {
  .max-theme .site-header { padding: 12px; }
  .max-theme .site-brand { gap: 8px; font-size: 13px; }
  .max-theme .site-brand img { width: 34px; height: 34px; border-radius: 11px; }
  .max-theme .site-brand small { font-size: 10px; }
  .max-theme .site-header-actions { order: 2; display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 0; }
  .max-theme .site-header-actions .site-header-cta { min-width: 0; min-height: 42px; padding: 9px 7px; font-size: 11px; gap: 5px; }
  .max-theme .site-header-actions .site-header-cta span { font-size: 15px; }
  body.max-theme.radio-modern .page.page-doc { padding-right: 12px; padding-left: 12px; }
  body.max-theme.radio-modern .home-intro h1 { font-size: clamp(29px, 8.2vw, 36px); }
  body.max-theme.radio-modern .home-intro .theme-eyebrow { font-size: 10px; margin-bottom: 18px; letter-spacing: .075em; }
  .max-theme .home-intro-copy .theme-button { margin-bottom: 8px; }
  body.max-theme.radio-modern .action-tile { padding: 17px 27px 17px 13px; }
  body.max-theme.radio-modern .action-tile-title { font-size: 13px; }
  body.max-theme.radio-modern .radio-hero-grid { padding: 22px 18px; }
  body.max-theme.radio-modern .radio-widget h2 { font-size: 29px; }
  body.max-theme.radio-modern .fm-city-select { max-width: 100%; }
  body.max-theme.radio-modern .fm-selector-label { width: 100%; }
  body.max-theme.radio-modern .reaction-bar { gap: 3px; padding: 6px; }
  body.max-theme.radio-modern .reaction-btn { width: 30px; height: 32px; font-size: 21px; }
  body.max-theme.radio-modern .history-card, body.max-theme.radio-modern .playlist-panel { padding: 22px 16px; }
  body.max-theme.radio-modern .history-item { grid-template-columns: 49px 40px minmax(0, 1fr); gap: 10px; }
  body.max-theme.radio-modern .history-cover { width: 40px; height: 40px; border-radius: 10px; }
  body.max-theme.radio-modern .history-title { font-size: 13px; }
  body.max-theme.radio-modern .history-time, body.max-theme.radio-modern .history-artist { font-size: 11px; }
  body.max-theme.radio-modern .playlist-sort-label { width: 42px; }
  body.max-theme.radio-modern .playlist-sort-select { width: calc(100% - 54px); }
  body.max-theme.radio-modern .tg-promo { flex-direction: column; text-align: left; padding: 26px 22px; }
  body.max-theme.radio-modern .tg-promo-actions { flex-direction: column; align-items: stretch; }
  body.max-theme.radio-modern .seo-panel { padding: 24px 20px; }
  body.max-theme.radio-modern .doc-card:not(.radio-page) { padding: 24px 20px; }
  body.max-theme.radio-modern :is(.feature-info-box, .feature-faq-item, .feature-links) { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.max-theme.radio-modern *, body.max-theme.radio-modern *::before, body.max-theme.radio-modern *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
