/* === BASE === */
body.rantenna {
  --bg: #2E2631;
  --accent: #9E496D;
  --accent-2: #E2B9C8;
  --glass-border: rgba(255,255,255,0.08);
  --max-width: 1600px;
  font-family: "Kay Pho Du", serif;
  background: var(--bg);
  color: var(--accent-2);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.rantenna * { box-sizing: border-box; }
.hidden { display:none !important; }

/* === HEADER === */
.site-header {
  max-width: var(--max-width);
  margin: 18px auto 0;
  padding: 12px 48px;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.header-left { display:flex; flex-direction:column; gap:6px; }
.brand-title {
  font-size: 82px; letter-spacing:10px; color: #9FB8DA; font-weight:800; margin:0;
  line-height:0.9; text-shadow: 0 8px 0 rgba(0,0,0,0.6);
}
.brand-sub { font-size:14px; color: rgba(255,255,255,0.75); }
.header-right { display:flex; align-items:center; gap:12px; }
.btn, .header-btn, .auth-btn, .bibki-badge {
  display:inline-block; padding:8px 12px; border-radius:8px;
  border:1px solid rgba(255,255,255,0.06); background:transparent;
  color:var(--accent-2); cursor:pointer;
}
.bibki-badge { background: rgba(158,73,109,0.12); border:1px solid rgba(158,73,109,0.18); font-weight:700; min-width:72px; text-align:center; }
.header-btn:hover, .auth-btn:hover, .bibki-badge:hover {
  transform: translateY(-2px); background: linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
}
.auth-wrap { position: relative; display:inline-flex; align-items:center; gap:8px; }
.username { display:inline-block; padding:6px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); cursor:pointer; }
.username.animating-name { animation: namePulse 0.6s steps(1,end) infinite; }
@keyframes namePulse { 0% { transform: scale(1) skewX(0deg); } 50% { transform: scale(1.02) skewX(-0.6deg); } 100% { transform: scale(1) skewX(0deg); } }
.dropdown { position:absolute; top:38px; right:0; background: rgba(0,0,0,0.9); border:1px solid var(--accent); border-radius:8px; padding:6px; display:flex; flex-direction:column; z-index:40; }
.dropdown-item { background:transparent; color:var(--accent-2); border:1px solid rgba(255,255,255,0.06); border-radius:6px; padding:6px 10px; cursor:pointer; }

/* === HERO GRID === */
.hero{ max-width:var(--max-width); margin:22px auto 60px; display:grid; grid-template-columns:1fr 820px; gap:36px; padding:0 48px; align-items:start; }
.left-column { padding:6px 12px; margin-left:-60px; }
.hero-sub { font-size:28px; color:var(--accent-2); margin-bottom:8px; }
.accent-rule { height:1px; width:80%; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.06),transparent); border:0; margin:8px 0 18px 0; }
.accent-rule.margin-top { margin-top: 28px; }
.action-block { margin-bottom:22px; }
.icon { width:44px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45)); margin-bottom:10px; }
.big-btn { display:inline-flex; align-items:center; gap:12px; padding:14px 34px; border-radius:36px; background: linear-gradient(180deg,rgba(158,73,109,0.16),rgba(158,73,109,0.06)); color:#fff; border:1px solid rgba(255,255,255,0.06); font-weight:700; text-decoration:none; }
.big-btn.outline { background: transparent; border:2px solid rgba(255,255,255,0.06); color:var(--accent-2);}
.small-desc { margin-top:12px; color:rgba(255,255,255,0.78); max-width:420px; }

.divider.thin { height:1px; background:rgba(255,255,255,0.06); margin:22px 0; }

.marquee-wrap { margin-top:36px; overflow:hidden; width:100%; }
.marquee-inner { display:inline-block; white-space:nowrap; animation: marqueeScroll 18s linear infinite; }
.marquee-inner span { margin-right:28px; font-weight:800; letter-spacing:4px; color:var(--accent-2); font-size:18px; text-shadow:0 6px 0 rgba(0,0,0,0.6);}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.right-column { position: relative; min-height: 560px; display:flex; align-items:center; justify-content:center; }
.newspaper-matrix { position:absolute; right:20px; top:10px; width: 760px; height: 520px; z-index:1; pointer-events:none; overflow:visible; }
.news-block { position:absolute; width:420px; line-height:1.05; font-family:"Kay Pho Du",serif; mix-blend-mode:screen; white-space:nowrap; will-change: transform, opacity;}
.news-block.move-up { animation-name: newsUp; animation-timing-function:ease-in-out; animation-iteration-count: infinite;}
.news-block.move-down { animation-name: newsDown; animation-timing-function:ease-in-out; animation-iteration-count: infinite;}
@keyframes newsUp { 0% { transform: translateX(0) translateY(0) rotate(-4deg); opacity: 0.7;} 50% { transform: translateX(-36px) translateY(-22px) rotate(-2deg); opacity:0.45;} 100% { transform: translateX(0px) translateY(-44px) rotate(-4deg); opacity:0.7;}}
@keyframes newsDown { 0% { transform: translateX(0) translateY(0) rotate(3deg); opacity:0.7;} 50% { transform: translateX(40px) translateY(20px) rotate(5deg); opacity:0.45;} 100% { transform: translateX(0) translateY(44px) rotate(3deg); opacity:0.7;} }

/* === RADIO FLOAT === */
.radio-wrap { position: relative; z-index:3; width:720px; transform-origin:center; animation: radioFloat 6s ease-in-out infinite;}
.radio-img { width:100%; height:auto; display:block; border-radius:8px; box-shadow:0 28px 60px rgba(0,0,0,0.65); filter:saturate(0.95) hue-rotate(-8deg) brightness(0.98);}
@keyframes radioFloat { 0% { transform: translateY(0px) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } 100% { transform: translateY(0px) rotate(-1deg); } }

/* === INFO CARD === */
.text-card { position:absolute; left:28px; top:48px; width:260px; z-index:2; border-left:2px solid rgba(255,255,255,0.06); padding-left:18px;}
.text-card-inner { font-size:13px; color:rgba(255,255,255,0.92); }

/* === QR BUTTON === */
.qr-btn { position:fixed; right:36px; bottom:28px; width:64px; height:64px; padding:6px; border-radius:6px; background:rgba(0,0,0,0.45); border:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:120;}
.qr-btn img { width:100%; height:100%; object-fit:cover; border-radius:4px;}

/* === AIRWAVE FORECAST TAB === */
.forecast-tab {
  margin-top: 16px;
}

.forecast-editor {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 3px 26px #18151c4c;
  border-radius: 15px;
  border: 1.5px solid #2d263570;
  max-width: 100%;
  margin: 28px 0;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.forecast-controls {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 20px;
}

.forecast-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 20px;
}

.forecast-tab-btn {
  padding: 8px 16px; border-radius: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.06);
  color: var(--accent-2); cursor: pointer; transition: all 0.2s ease;
}

.forecast-tab-btn.active {
  background: var(--accent); color: #fff;
}

.forecast-tab-content {
  display: none;
}

.forecast-tab-content.active {
  display: block;
}

.forecast-tab-content h4 {
  color: var(--accent-2); margin-bottom: 15px; text-align: center;
}

.forecast-data {
  margin-top: 15px; padding: 15px; background: rgba(255,255,255,0.05);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
}

.forecast-msg {
  margin-top: 15px; text-align: center; min-height: 20px;
}

/* Forecast content styles */
.predictions-list, .intervals-list, .trends-list {
  display: flex; flex-direction: column; gap: 12px;
}

/* Enhanced prediction items */
.prediction-item {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; background: rgba(255,255,255,0.08); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.prediction-header {
  display: flex; justify-content: space-between; align-items: center;
}

.prediction-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.prediction-stats span {
  font-size: 12px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 6px;
}

.time-analysis {
  display: flex; flex-direction: column; gap: 6px;
}

.time-info {
  font-size: 12px; color: rgba(255,255,255,0.6);
}

.interval-item, .trend-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; background: rgba(255,255,255,0.08); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.interval-header {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  margin-bottom: 8px;
}

.interval-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}

.interval-stats span {
  font-size: 11px; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px;
}

.interval-times {
  font-size: 11px; color: rgba(255,255,255,0.5);
}

.prediction-item h5, .interval-item .freq, .trend-item .freq {
  font-weight: 700; color: var(--accent-2); margin: 0;
}

.trend-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #F9D85E;
}


.predictions-chart {
  display: flex; align-items: end; gap: 1px; height: 40px; margin-top: 8px; 
  overflow: hidden; width: 100%; max-width: 200px;
}

.prediction-bar {
  flex: 1; min-width: 3px; max-width: 8px; 
  background: linear-gradient(to top, var(--accent), #F9D85E);
  border-radius: 1px 1px 0 0; min-height: 2px;
}

.popularity, .direction {
  color: rgba(255,255,255,0.8); font-size: 14px;
}

.recommendation, .strength {
  padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600;
}

.recommendation.hot, .strength.strong {
  background: #ff6b6b; color: #fff;
}

.recommendation.good, .strength.moderate {
  background: #F9D85E; color: #2E2631;
}

.recommendation.quiet, .strength.weak {
  background: #625068; color: #fff;
}

.recommendation.available {
  background: #4bf1a6; color: #2E2631;
}

.recommendation.moderate {
  background: #F9D85E; color: #2E2631;
}

.recommendation.limited {
  background: #ff9f40; color: #2E2631;
}

.recommendation.occupied {
  background: #ff6b6b; color: #fff;
}

/* Time range controls */
.time-range-controls {
  display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
  padding: 12px; background: rgba(255,255,255,0.05); border-radius: 8px;
  flex-wrap: wrap;
}

.time-range-controls label {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 600;
}

.time-range-controls input, .time-range-controls select {
  padding: 6px 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: #fff; border-radius: 4px;
  font-size: 12px;
}

.time-range-controls input:focus, .time-range-controls select:focus {
  outline: none; border-color: var(--accent);
}

/* Chart controls */
.chart-controls {
  display: flex; justify-content: center; margin-bottom: 15px;
}

/* Loading indicator */
.loading-indicator {
  display: none; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px; background: rgba(255,255,255,0.05); border-radius: 8px;
  margin: 15px 0;
}

.loading-indicator.show {
  display: flex;
}

.loading-spinner {
  width: 32px; height: 32px; animation: spin 1s linear infinite;
}

.loading-indicator span {
  color: #F9D85E; font-size: 14px; font-weight: 600;
}

/* Chart header */
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 15px;
}

.chart-toggle {
  display: flex; gap: 8px;
}

.btn.small {
  padding: 6px 12px; font-size: 12px; border-radius: 15px;
}

/* Popular wave highlight */
.popular-wave-highlight {
  background: rgba(75, 241, 166, 0.1);
  border: 1px solid rgba(75, 241, 166, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  text-align: center;
}

.popular-wave-text {
  margin-right: 10px;
}

/* Footer gradient design - basement effect */
.forecast-content {
  background: linear-gradient(to bottom, rgba(46, 38, 49, 0.1), rgba(20, 15, 25, 0.95));
  border-top: 2px solid rgba(139, 67, 97, 0.3);
  margin-top: 30px;
  padding-top: 30px;
  position: relative;
}

.forecast-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(20, 15, 25, 0.3));
  pointer-events: none;
}

.forecast-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(15, 10, 20, 0.8), rgba(10, 5, 15, 1));
  pointer-events: none;
}

/* Trend icons animation - Noita style swaying */
.trend-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin: 0 5px;
  animation: noitaSway 1.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes noitaSway {
  0% { transform: translateX(0px) rotate(0deg); }
  15% { transform: translateX(-2px) rotate(-1deg); }
  30% { transform: translateX(1px) rotate(0.5deg); }
  45% { transform: translateX(-1px) rotate(-0.5deg); }
  60% { transform: translateX(2px) rotate(1deg); }
  75% { transform: translateX(-1px) rotate(-0.3deg); }
  90% { transform: translateX(1px) rotate(0.3deg); }
  100% { transform: translateX(0px) rotate(0deg); }
}

.trend-icon.down {
  animation: noitaSwayDown 1.8s ease-in-out infinite;
}

@keyframes noitaSwayDown {
  0% { transform: translateX(0px) rotate(0deg); }
  15% { transform: translateX(2px) rotate(1deg); }
  30% { transform: translateX(-1px) rotate(-0.5deg); }
  45% { transform: translateX(1px) rotate(0.5deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  75% { transform: translateX(1px) rotate(0.3deg); }
  90% { transform: translateX(-1px) rotate(-0.3deg); }
  100% { transform: translateX(0px) rotate(0deg); }
}

.trend-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-left: 5px;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Basement gradient effect for forecast section */
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(20, 15, 25, 0.8), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Show basement effect when forecast is open */
body.forecast-open::after {
  opacity: 1;
}

/* Loading animation for forecast */
.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin: 15px 0;
}

.loading-indicator.show {
  display: flex;
}

.loading-spinner {
  width: 32px; height: 32px; animation: spin 1s linear infinite;
}

.loading-indicator span {
  color: #F9D85E; font-size: 14px; font-weight: 600;
}
.qr-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.65); z-index:220; opacity:0; pointer-events:none; transition: opacity .28s ease; }
.qr-overlay.visible { opacity:1; pointer-events:all; }
.qr-overlay-content { background:rgba(255,255,255,0.03); padding:18px; border-radius:12px; transform:translateY(6px); animation: qrPop .28s cubic-bezier(.2,.9,.1,1) forwards; max-width:55vw;}
.qr-overlay .qr-large { width:100%; height:auto; display:block; border-radius:8px;}
.qr-close { position:absolute; top:8px; right:10px; background:transparent; border:none; color:rgba(255,255,255,0.8); font-size:24px; cursor:pointer;}
@keyframes qrPop { from { transform: scale(.96) translateY(10px); opacity:0 } to { transform: scale(1) translateY(0); opacity:1 } }

/* === POPUPS (auth/rent) === */
.popup { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:200; background:rgba(0,0,0,0.42); opacity:0; pointer-events:none; transition: opacity .28s ease;}
.popup.visible { opacity:1; pointer-events:all; }
.popup-box { width:420px; background:rgba(46,38,49,0.96); border-radius:12px; padding:22px; border:1px solid rgba(255,255,255,0.06); position:relative; transform:translateY(8px) scale(.99); transition: transform .28s cubic-bezier(.2,.9,.1,1);}
.popup.visible .popup-box { transform:translateY(0) scale(1);}
.popup-close { position:absolute; right:12px; top:10px; background:transparent; border:none; color:rgba(255,255,255,0.72); font-size:20px; cursor:pointer;}
.auth-tabs { display:flex; gap:12px; justify-content:center; margin-bottom:14px;}
.tab { padding:8px 18px; border-radius:20px; background:rgba(255,255,255,0.08); border:none; color:var(--accent-2); cursor:pointer;}
.tab.active { background:var(--accent); color:#fff;}
.auth-form input, .popup-box input { width:80%; margin:8px auto; padding:10px; border-radius:8px; border:1px solid rgba(158,73,109,0.12); background:rgba(255,255,255,0.03); color:var(--accent-2); text-align:center; display:block;}
.popup-actions { display:flex; justify-content:space-around; margin-top:12px;}
.confirm-btn { background:rgba(158,73,109,0.6); border:1px solid var(--accent); padding:8px 14px; border-radius:8px; color:#fff; cursor:pointer;}
.cancel-btn { background:transparent; border:1px solid rgba(255,255,255,0.06); padding:8px 14px; border-radius:8px; color:var(--accent-2); cursor:pointer;}
.hint { font-size:12px; opacity:0.85; color:rgba(255,255,255,0.75); margin-top:8px; }

/* === RESPONSIVE === */
@media (max-width:1400px) {
  .hero { grid-template-columns: 1fr 560px; padding:0 24px; }
  .radio-wrap{width:560px;}
  .brand-title{font-size:64px;}
}
@media (max-width:920px) {
  .hero{grid-template-columns:1fr;gap:18px;padding:0 18px;}
  .right-column {order:-1;}
  .brand-title{font-size:44px;text-align:center;}
}

/* === Accessibility === */
button:focus, input:focus { outline:2px dashed rgba(255,255,255,0.08); outline-offset:4px;}

/*             потом исправить перекрытия              */


/* === RADIO INDEPENDENT POSITION FIX === */

/* Контейнер hero снова нормальный */
.hero {
  grid-template-columns: 1fr 820px;
  justify-content: initial;
  position: relative;
}

/* Радио выводим из сетки в свободное позиционирование */
.right-column {
  position: absolute;
  top: 40px;               /* немного ниже заголовка */
  left: 50%;               /* начинаем от центра экрана */
  transform: translateX(0); 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 800px;
  height: auto;
  pointer-events: none;    /* чтобы не мешало кликам по левым кнопкам */
}

/* Само радио центрируем относительно этой зоны */
.radio-wrap {
  transform: translateX(-40%); /* регулирует, насколько радио выступает */
  pointer-events: auto;
}

/* Газетная подложка идёт за радио, центрированная */
.newspaper-matrix {
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
}

/* Левая колонка возвращаем в норму */
.left-column {
  margin-left: 0;
  padding-left: 0;
}

/* Бегущая строка теперь не ломает сетку */
.marquee-wrap {
  margin-left: 0;
  width: 100%;
}

.pulsing-title {
  animation: lampy-swing 3.5s infinite cubic-bezier(.61,0,.39,1);
  display: inline-block;
  will-change: transform, text-shadow;
}

@keyframes lampy-swing {
  0% {
    transform: scale(1) rotate(0deg);
    text-shadow: 0 0 0.5px #fff7, 0 0 0px #e284;
  }
  20% {
    transform: scale(1.017) rotate(-6deg);
    text-shadow: 0 0 1.5px #fff8;
  }
  35% {
    transform: scale(1.035) rotate(-3deg);
    text-shadow: 0 0 4.5px #fff8, 0 0 4px #e284aa90;
  }
  50% {
    transform: scale(1.04) rotate(0deg);
    text-shadow: 0 0 7px #fff8, 0 0 6px #e284aa99;
  }
  65% {
    transform: scale(1.035) rotate(3deg);
    text-shadow: 0 0 4.5px #fff8, 0 0 4px #e284aa90;
  }
  80% {
    transform: scale(1.017) rotate(6deg);
    text-shadow: 0 0 1.5px #fff8;
  }
  100% {
    transform: scale(1) rotate(0deg);
    text-shadow: 0 0 0.5px #fff7, 0 0 0px #e284;
  }
}



.big-btn#listenerBtn {
  transition:
    transform 0.19s cubic-bezier(.61,.2,.44,1.11),
    box-shadow 0.32s cubic-bezier(.59,.09,.33,1.18);
  box-shadow: 0 4px 14px 0 rgba(90,40,70,0.10), 0 1px 10px 0 #9fb8da33;
}

.big-btn#listenerBtn:hover {
  z-index: 2;
  transform: translateY(-8px) scale(1.028);
  box-shadow: 0 10px 28px 0 rgba(90,40,70,0.22), 0 6px 24px 0 #9fb8da44;
  animation: btn-wave-calm 3.6s infinite cubic-bezier(.53,.05,.44,.99);
}

@keyframes btn-wave-calm {
  0%   { transform: translateY(-8px) scale(1.028) rotate(-1.3deg);}
  20%  { transform: translateY(-9px) scale(1.032) rotate(-2.7deg);}
  36%  { transform: translateY(-7px) scale(1.026) rotate(-1.3deg);}
  52%  { transform: translateY(-8px) scale(1.028) rotate(0deg);}
  68%  { transform: translateY(-9px) scale(1.032) rotate(1.3deg);}
  84%  { transform: translateY(-7px) scale(1.026) rotate(2.7deg);}
  100% { transform: translateY(-8px) scale(1.028) rotate(1.3deg);}
}

.big-btn#broadcasterBtn {
  transition:
    transform 0.19s cubic-bezier(.72,.18,.44,1.07),
    box-shadow 0.26s cubic-bezier(.64,.08,.33,1.10);
  box-shadow: 0 4px 14px 0 rgba(90,40,70,0.10), 0 1px 10px 0 #e2b9c830;
}

.big-btn#broadcasterBtn:hover {
  z-index:2;
  transform: translateY(-7px) scale(1.024);
  box-shadow: 0 12px 26px 0 rgba(90,40,70,.16), 0 6px 20px 0 #e2b9c84a;
  animation: btn-shake-soft 0.38s steps(2, end) infinite;
}

@keyframes btn-shake-soft {
  0%   { transform: translateY(-7px) scale(1.024) rotate(0deg);}
  20%  { transform: translateY(-8px) scale(1.025) rotate(-1.5deg);}
  37%  { transform: translateY(-6px) scale(1.022) rotate(1.8deg);}
  52%  { transform: translateY(-7px) scale(1.024) rotate(-1.2deg);}
  69%  { transform: translateY(-8px) scale(1.025) rotate(1.1deg);}
  84%  { transform: translateY(-6px) scale(1.022) rotate(-0.8deg);}
  100% { transform: translateY(-7px) scale(1.024) rotate(0deg);}
}
body {
  background: linear-gradient(115deg, #222029 0%, #494069 100%) fixed, var(--bg);
}


.card:before {
  content: "";
  position: absolute;
  left: 15px; right: 15px; top: 0; height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e2b9c8 0%, #8b4361 26%, #F9D85E 79%, #e2b9c8 100%);
  opacity: 0.13;
  pointer-events: none;
}

.card:after {
  content: "";
  position: absolute;
  bottom: -23px; left: 7px; right: 7px; height: 20px;
  box-shadow: 0 19px 33px -17px #3e3144d1;
  opacity: 0.19;
  pointer-events: none;
}

#nowPlaying {
  color: #F9D85E;
  font-size: 17px;
  font-family: 'Kay Pho Du', serif;
  letter-spacing: 1.15px;
  margin-bottom: 10px;
  text-shadow: 0 1px 12px #e2b9c133;
}

#currentFrequency {
  font-size: 22px;
  color: #F9D85E;
  text-shadow: 0 0 6px #f9d85e32, 0 1px 0 #3e3144;
  letter-spacing: 2px;
  font-weight: 800;
}

.radio-controls button.btn {
  transition: transform 0.17s cubic-bezier(.55,-0.11,.31,1.08), box-shadow 0.17s;
}

.radio-controls button.btn:hover {
  transform: scale(1.09) translateY(-3px);
  background: #a55a7b;
  box-shadow: 0 10px 20px #8b436150;
}

#scanBtn {
  animation: scanPulse 2s infinite cubic-bezier(.46,.14,.26,.98);
}
@keyframes scanPulse {
  0% { box-shadow: 0 0 2px #fff2, 0 0 12px #8b436150;}
  50% { box-shadow: 0 11px 22px #a55a7b65;}
  100%{ box-shadow: 0 0 2px #fff2;}
}

#vizStyleBtn {
  padding: 14px 28px;
  font-size: 18px;
  transition:
    transform 0.22s cubic-bezier(.58,.18,.34,1),
    box-shadow 0.19s;
}
#vizStyleBtn:hover {
  transform: scale(1.16) translateY(-7px) rotate(-3deg);
  box-shadow: 0 12px 32px 0 #8b43613c;
  background: #a55a7b;
}

/* Подсветка при выборе тем спектра */
.vizStyleSelect.btn {
  transition: transform 0.16s cubic-bezier(.41,.13,.38,1.18), box-shadow 0.10s;
}
.vizStyleSelect.btn:hover, .vizStyleSelect.btn:focus {
  background: #ece982;
  color: #9E496D;
  transform: scale(1.10);
  box-shadow: 0 5px 18px #fffb44b1;
}

/* Подсказка-содержимое футера */
#shortcutsTip {
  text-align: center;
  margin-top: 18px;
  color: #FFF8;
  font-size: 15px;
  letter-spacing: 1px;
  opacity: 0.82;
  font-family: 'Kay Pho Du', Arial, sans-serif;
}

/* Визуализация */
#miniViz {
  background: #221a25;
  border-radius: 7px;
  animation: vizWave 4.9s infinite cubic-bezier(.52,.23,.41,.91);
  width: 90%; height: 52px;
}
@keyframes vizWave {
  0%   { box-shadow: 0 2px 24px 0 #8b43611a;}
  30%  { box-shadow: 0 12px 32px 0 #e2b9c84a;}
  60%  { box-shadow: 0 14px 18px 0 #8b43614a;}
  90%  { box-shadow: 0 3px 40px 0 #e2b9c82a;}
  100% { box-shadow: 0 2px 24px 0 #8b43611a;}
}

.volume-row span { color:rgba(242,236,231,0.88);}
#volumeSlider {
  accent-color: var(--accent);
  background: #18151c; border-radius: 6px;
}
#volumeValue { min-width:40px; font-size:14px; color: #F9D85E;}

/* Фавориты — плавающая панель */
#favList {
  background: #201c24;
  border: 1px solid #2d263570;
  border-radius: 8px;
  box-shadow: 0 1px 13px #140f1482;
  position: fixed; right:14px; top:120px; width: 185px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 11px;
  font-size:15px;
}
#frequencySlider.radio-slider {
  width: 90%;
  height: 14px;
  background: transparent !important;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}

#frequencySlider.radio-slider::-webkit-slider-thumb {
  appearance: none;
  width: 4px;
  height: 14px;
  background: #EA2727;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
}
#frequencySlider.radio-slider:active::-webkit-slider-thumb { background: #C81C1D; }
/* Firefox */
#frequencySlider.radio-slider::-moz-range-thumb {
  width: 4px;
  height: 14px;
  background: #EA2727;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  cursor: pointer;
}
#frequencySlider.radio-slider:active::-moz-range-thumb { background: #C81C1D; }
#frequencySlider.radio-slider::-moz-range-track { height: 14px; background: transparent; }
/* Edge/IE */
#frequencySlider.radio-slider::-ms-thumb {
  width: 4px;
  height: 14px;
  background: #EA2727;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  cursor: pointer;
}
#frequencySlider.radio-slider:active::-ms-thumb { background: #C81C1D; }
#frequencySlider.radio-slider::-webkit-slider-thumb { box-sizing: border-box; }
#frequencySlider.radio-slider {
  width: 90%;
  height: 14px;
  background: transparent !important;
  margin-left: 30px;  /* ← сдвинет правее! */
  margin-right: 0;
  margin-bottom: 0;
  padding: 0;
  display: block;
  position: relative;
}
