/* =========================================================
   Вести Петербург — прототип редизайна
   Без внешних шрифтов/иконочных библиотек — system font stack
   и инлайн-SVG, чтобы страница грузилась мгновенно.
   ========================================================= */

:root {
  --navy: #123b6d;
  --navy-dark: #0a2647;
  --red: #c8102e;
  --gold: #d8a13a;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e3e5ea;
  --ink: #14181f;
  --gray: #5b6472;
  --gray-light: #8b93a1;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 24, 31, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 38, 71, 0.18);
  --maxw: 1240px;
  --font-scale: 1;
  color-scheme: light;
}

html[data-theme='dark'] {
  --navy: #2f6bb0;
  --navy-dark: #0d1b2e;
  --bg: #0f141b;
  --card: #171d27;
  --line: #262e3a;
  --ink: #eef1f5;
  --gray: #a7afbc;
  --gray-light: #7b8494;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.15;
  font-weight: 800;
}

section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.link-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

html[data-theme='dark'] .link-more {
  color: #7fb2e6;
}

/* ---------- demo banner ---------- */
.demo-banner {
  background: var(--gold);
  color: #2a2000;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 44px 8px 16px;
  position: relative;
}
.demo-banner button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #2a2000;
  line-height: 1;
  padding: 4px 6px;
}
.demo-banner.hidden {
  display: none;
}

/* ---------- topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0f5;
  font-size: 0.8rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 38px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar .wrap::-webkit-scrollbar {
  display: none;
}
.topbar .item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.topbar .spacer {
  flex: 1;
}
.a11y-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 14px;
}
.a11y-controls button {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cfe0f5;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.a11y-controls button:hover {
  background: rgba(255, 255, 255, 0.18);
}
.social-row {
  display: flex;
  gap: 6px;
}
.badge-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.badge-social:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- main header ---------- */
.mainheader {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.mainheader .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 72px;
  max-width: 1400px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
}
.logo small {
  display: block;
  font-weight: 500;
  font-size: 0.64rem;
  color: var(--gray);
  letter-spacing: 0.02em;
}
.primary-nav {
  display: flex;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.primary-nav a {
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.primary-nav a:hover {
  background: var(--bg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.icon-btn:hover {
  background: var(--bg);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: #a90d26;
}
.btn-ghost {
  background: var(--navy);
  color: #fff;
}
.btn-ghost:hover {
  background: var(--navy-dark);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 90, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 90, 0);
  }
}
.burger {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  /* не растягиваем плеер по высоте соседней колонки: кадр 16:9,
     растяжка давала бы чёрные поля сверху и снизу */
  align-items: start;
}
.hero-grid > * {
  min-width: 0;
}
.player-card {
  background: var(--navy-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
/* колонка тянется по высоте соседней — кадр забирает всё место,
   иначе под видео остаётся пустая тёмная полоса */
.player-frame {
  flex: 1;
  min-height: 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 30% 20%, #1c4d85, #061529 75%);
}
.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: rgba(6, 21, 41, 0.35);
  z-index: 2;
}
.player-overlay.hidden {
  display: none;
}
.overlay-hint {
  color: #dbe6f3;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}
.overlay-hint a {
  color: var(--gold);
  text-decoration: underline;
}
.player-frame .playbtn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}
.player-frame .playbtn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.player-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
}
.live-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}
.pip-toggle {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pip-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}
.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #dbe6f3;
  font-size: 0.85rem;
}
.channel-pills {
  display: flex;
  gap: 6px;
}
.channel-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
}
.channel-pill:hover {
  background: rgba(255, 255, 255, 0.25);
}
.channel-pill.active {
  background: #fff;
  color: var(--navy-dark);
}

/* floating docked mini-player (Picture-in-Picture) */
.player-card.docked {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 300px;
  z-index: 80;
  animation: slideIn 0.25s ease;
}
.player-card.docked .player-meta {
  display: none;
}
.docked-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 54px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player-card.docked .docked-close {
  display: flex;
}
@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ticker-card,
.shorts-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 0;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 10px;
}
.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticker-list li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.ticker-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.ticker-time {
  color: var(--gray-light);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.shorts-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  min-width: 0;
}
.shorts-row::-webkit-scrollbar {
  height: 6px;
}
.shorts-row::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.short-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 9/16;
  border-radius: 10px;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}
/* затемнение снизу, чтобы заголовок читался поверх кадра */
.short-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.35) 100%);
}
.short-item span {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.short-item .playmini {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- news grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* карточка целиком кликабельна, но заголовок остаётся текстом */
.news-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.news-thumb {
  aspect-ratio: 16/10;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, #2a6db3 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-video {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.feed-status {
  display: block;
  font-size: 0.76rem;
  color: var(--gray-light);
  font-weight: 500;
  margin-top: 2px;
}
.news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #14181f;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.news-tag.human {
  background: var(--gold);
  color: #2a2000;
}
.news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
}
.news-body p {
  margin: 0;
  color: var(--gray);
  font-size: 0.88rem;
}
.news-meta {
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--gray-light);
  display: flex;
  justify-content: space-between;
}

/* ---------- rubrics ---------- */
.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rubric-card {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.rubric-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  right: -50px;
  bottom: -60px;
}
.rubric-num {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
}
.rubric-card h3 {
  font-size: 1.15rem;
  margin: 8px 0 10px;
}
.rubric-card p {
  color: #c7d4e6;
  font-size: 0.88rem;
  margin: 0 0 16px;
}
.rubric-card a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- сейчас в эфире ---------- */
.onair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.onair-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.onair-card.active {
  border-color: var(--red);
}
.onair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onair-name {
  font-weight: 800;
  font-size: 1.02rem;
}
.onair-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--red);
  background: rgba(200, 16, 46, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
}
.onair-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
}
.onair-now {
  font-size: 0.95rem;
  color: var(--gray);
  flex: 1;
}
.onair-btn {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}
.onair-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.weather-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---------- local band ---------- */
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.local-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.weather-card {
  background: linear-gradient(135deg, var(--navy), #2a6db3);
  color: #fff;
  border: none;
}
.weather-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-temp {
  font-size: 2.4rem;
  font-weight: 800;
}
.weather-city {
  font-size: 0.85rem;
  color: #cfe0f5;
  margin-top: 4px;
}
.weather-details {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #dbe6f3;
}
.weather-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.local-card h3 {
  font-size: 0.95rem;
}
.local-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* ---------- send news CTA ---------- */
.sendnews {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sendnews h2 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  margin-bottom: 6px;
}
.sendnews p {
  color: #cfe0f5;
  margin: 0;
  max-width: 480px;
  font-size: 0.92rem;
}
.sendnews .btn-primary {
  padding: 14px 26px;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
footer {
  background: var(--navy-dark);
  color: #b9c6d9;
  padding: 48px 0 20px;
  margin-top: 40px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.dead-social-notice {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  margin-top: 12px;
  line-height: 1.4;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--gray-light);
}

/* ---------- modal (send news) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.modal h3 {
  margin-bottom: 4px;
}
.modal p.hint {
  color: var(--gray);
  font-size: 0.86rem;
  margin: 0 0 18px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.modal .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 10px 0;
}
.form-success.show {
  display: block;
}
.form-success .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

/* ---------- mobile bottom nav ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav .wrap {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}
.bottom-nav a,
.bottom-nav button {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gray);
  flex: 1;
  cursor: pointer;
}
.bottom-nav a.central,
.bottom-nav button.central {
  color: var(--red);
}
.bottom-nav .fab-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -14px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

/* ---------- scroll top ---------- */
.scrolltop {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 70;
}
.scrolltop.show {
  display: flex;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .onair-grid {
    grid-template-columns: 1fr;
  }
  .rubrics-grid {
    grid-template-columns: 1fr;
  }
  .local-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 32px 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 62px;
  }
  .player-card.docked {
    width: 220px;
    bottom: 78px;
    right: 12px;
  }
  .header-actions .btn span.label {
    display: none;
  }
  /* «Эфир» уже есть в нижней панели — в шапке он только теснит остальное */
  #watchLiveBtn {
    display: none;
  }
  .sendnews {
    padding: 26px;
  }
  .scrolltop {
    right: 14px;
    bottom: 78px;
  }
}

/* mobile off-canvas menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--card);
  z-index: 120;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
  transition: right 0.25s ease;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 110;
  display: none;
}
.mobile-menu-backdrop.open {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .close-x {
  float: right;
  background: var(--bg);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}
