/* header_widget.css — статичная шапка в стиле радиоплеера */
#hw_header * { box-sizing: border-box; }

#hw_header {
  background: #252525;
  color: #fff;
  font-family: tahoma, Arial, sans-serif;
  font-size: 13px;
  width: 100%;
  border-bottom: 1px solid #3b3b3b;
  z-index: 0;
}
#hw_header.hw_sticky {
  position: sticky;
  top: 0;
}

#hw_header .hw_inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* логотип + название */
#hw_header .hw_brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
#hw_header .hw_logo {
  height: 28px;
  width: auto;
  border: none;
  display: block;
}
#hw_header .hw_title {
  color: #ff5252;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

/* меню */
#hw_header .hw_menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#hw_header .hw_menu::-webkit-scrollbar { display: none; }

#hw_header .hw_menu a {
  color: #ddd;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
#hw_header .hw_menu a:hover,
#hw_header .hw_menu a.active {
  background: #2c2c2c;
  color: #ff5252;
}

/* статус / часы / соцсети */
#hw_header .hw_right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #aaa;
  font-size: 12px;
}
#hw_header .hw_status { white-space: nowrap; }
#hw_header .hw_clock { color: #3498db; font-variant-numeric: tabular-nums; }

#hw_header .hw_social a {
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #3b3b3b;
  border-radius: 4px;
  margin-left: 4px;
  font-size: 11px;
}
#hw_header .hw_social a:hover { color: #ff5252; border-color: #ff5252; }

/* бегущая строка */
#hw_header .hw_marquee {
  background: #1c1c1c;
  border-top: 1px solid #3b3b3b;
  overflow: hidden;
  white-space: nowrap;
}
#hw_header .hw_marquee span {
  display: inline-block;
  padding: 6px 0;
  padding-left: 100%;
  color: #fff;
  animation: hw_marquee 18s linear infinite;
}
@keyframes hw_marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* бургер для узких экранов */
#hw_header .hw_burger {
  display: none;
  background: none;
  border: 1px solid #3b3b3b;
  color: #ff5252;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 720px) {
  #hw_header .hw_inner { flex-wrap: wrap; }
  #hw_header .hw_burger { display: inline-block; margin-left: auto; }
  #hw_header .hw_right { order: 3; width: 100%; justify-content: space-between; }
  #hw_header .hw_menu {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }
  #hw_header .hw_menu.hw_open { display: flex; }
  #hw_header .hw_menu a { padding: 10px; }
}