:root {
  --bg: #121212;
  --card-bg: #181818;
  --card-hover: #262626;
  --accent: #f3f5f3;
  --text: #ffffff;
  --subtext: #a0a0a0;
  --border: #242424;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. ШАПКА ДЕСКТОПА */
.app-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background-color: #121212;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
}

.btn-mobile-menu {
  display: none;
}

.logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.logo-brand {
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
}

.logo-mode {
  font-weight: 700;
  font-size: 16px;
  color: #d0d0d0;
}

.logo.clickable {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.logo.clickable:hover {
  background-color: #1e1e1e;
}

.badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtext);
}

.badge.active {
  color: #1db954;
}

.search-section {
  position: relative;
  flex: 1;
  max-width: 650px;
  margin: 0 24px;
}

.search-bar-row {
  height: 40px;
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 0 6px 0 14px;
  transition: border-color 0.2s;
}

.search-bar-row:focus-within {
  border-color: #555555;
  background-color: #242424;
}

.search-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: #707070;
}

.source-selector {
  position: relative;
  flex-shrink: 0;
}

.source-btn {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #333333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-btn:hover {
  background-color: #333333;
}

.chevron {
  font-size: 10px;
  color: var(--subtext);
}

.source-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  padding: 4px;
  z-index: 200;
}

.mode-dropdown {
  left: 0;
  right: auto;
  width: 170px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.source-item:hover {
  background-color: #262626;
}

.source-item-check {
  width: 12px;
  font-size: 12px;
  font-weight: bold;
}

.source-item-text {
  display: flex;
  flex-direction: column;
}

.source-item-title {
  font-size: 12px;
  font-weight: 600;
}

.source-item-sub {
  font-size: 10px;
  color: var(--subtext);
}

/* Выпадающие результаты поиска */
.search-results-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #181818;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.85);
  max-height: 440px;
  overflow-y: auto;
  z-index: 500;
}

.search-popup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px 14px;
  border-bottom: 1px solid #282828;
}

.search-popup-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--subtext);
  text-transform: uppercase;
}

.btn-close-search {
  background: transparent;
  border: none;
  color: var(--subtext);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-close-search:hover {
  color: #fff;
  background: #282828;
}

.search-popup-list {
  list-style: none;
  padding: 6px;
  margin: 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-item:hover {
  background-color: var(--card-hover);
}

.search-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  overflow: hidden;
}

.search-item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.search-item-artist {
  font-size: 12px;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add-track {
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  color: #fff;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

.btn-add-track:hover {
  background: #383838;
}

/* 2. РАБОЧАЯ ОБЛАСТЬ */
.app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 240px;
  background-color: #141414;
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-create-playlist {
  width: 100%;
  padding: 12px 14px;
  background-color: #222222;
  border: 1px solid #383838;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-create-playlist:hover {
  background-color: #2a2a2a;
  border-color: #555555;
}

.plus-icon {
  font-size: 18px;
  font-weight: 800;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border);
  margin: 6px 0;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 4px;
}

.playlists-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: #1a1a1a;
  border: 1px solid #292929;
  border-radius: 8px;
  cursor: grab;
  transition: background-color 0.15s, border-color 0.15s;
}

.playlist-card:hover {
  background-color: #242424;
  border-color: #444444;
}

.playlist-card:active {
  cursor: grabbing;
}

.playlist-card.dragging {
  opacity: 0.35;
  background-color: #333333;
  border: 1px dashed #777777;
}

.playlist-card-content {
  flex: 1;
  overflow: hidden;
  padding-right: 8px;
}

.playlist-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.playlist-card-sub {
  font-size: 11px;
  color: var(--subtext);
}

.btn-pl-menu {
  background: transparent;
  border: none;
  color: var(--subtext);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.btn-pl-menu:hover {
  color: #fff;
  background-color: #333333;
}

.main-content {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grid-search-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
  overflow-y: auto;
  background-color: var(--bg);
}

.grid-search-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.grid-search-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.btn-close-grid {
  background: #242424;
  border: 1px solid #3a3a3a;
  color: #a0a0a0;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 85px;
  width: 100px; 
}

.btn-close-grid:hover {
  color: #fff;
  background: #333;
}

.grid-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 30px;
}

.grid-empty {
  color: var(--subtext);
  font-size: 14px;
  padding: 40px 0;
}

.video-card {
  background: #181818;
  border: 1px solid #282828;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: #444;
  background: #202020;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

.video-dur-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-info-wrap {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-author {
  font-size: 11px;
  color: var(--subtext);
}

.btn-video-add {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(24, 24, 24, 0.85);
  border: 1px solid #444;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background-color 0.15s;
  z-index: 5;
}

.video-card:hover .btn-video-add {
  opacity: 1;
}

.btn-video-add:hover {
  background: #1db954;
  border-color: #1db954;
}

/* Центральный плеер */
.player-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  padding-bottom: 20px;
}

.cover-wrapper {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.cover-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #252525 0%, #181818 100%);
  z-index: 1;
}

.placeholder-icon {
  font-size: 54px;
  opacity: 0.25;
  filter: grayscale(1);
}

.track-meta {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.title {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.artist {
  font-size: 14px;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. НИЖНЯЯ ПАНЕЛЬ ДЛЯ ДЕСКТОПА (ПК) */
.bottom-bar {
  background-color: #161616;
  border-top: 1px solid var(--border);
  padding: 10px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  z-index: 100;
  width: 100%;
}

.progress-bar-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-label {
  font-size: 12px;
  color: var(--subtext);
  font-family: monospace;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.progress-bar-wrapper {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background-color: #2e2e2e;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: height 0.15s;
}

.progress-bar-wrapper:hover .progress-bar-bg {
  height: 7px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: width 0.15s linear;
}

.progress-bar-wrapper:hover .progress-bar-fill {
  background-color: #1db954;
}

.bottom-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bottom-desktop-spacer {
  width: 220px;
  flex-shrink: 0;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

.btn-round {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.btn-round:active {
  transform: scale(0.9);
}

.control-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.btn-play-main {
  background: transparent;
}

.play-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.podcast-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.podcast-controls.hidden {
  display: none !important;
}

.btn-seek-step {
  background-color: #1e1e1e;
  border: 1px solid #383838;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-seek-step:hover {
  background-color: #2c2c2c;
  border-color: #555555;
  transform: scale(1.05);
}

.bottom-right-group {
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.btn-bottom-shuffle {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s;
}

.btn-bottom-shuffle[style*="display: none"] {
  display: flex !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.shuffle-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.btn-bottom-shuffle:hover .shuffle-icon {
  opacity: 1;
}

.btn-bottom-shuffle:active {
  transform: scale(0.9);
}

.btn-bottom-add {
  background: transparent;
  border: 1px solid #383838;
  color: var(--subtext);
  font-size: 20px;
  font-weight: 600;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-bottom-add:hover {
  color: #ffffff;
  border-color: #666666;
  background-color: #242424;
}

.btn-bottom-add:active {
  transform: scale(0.9);
}

.volume-container {
  width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vol-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  object-fit: contain;
  opacity: 0.8;
}

input[type="range"] {
  flex: 1;
  height: 4px;
  accent-color: #ffffff;
  cursor: pointer;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15000;
}

.modal-window {
  background-color: #1c1c1c;
  border: 1px solid #333;
  border-radius: 14px;
  width: 480px;
  max-width: 90%;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #282828;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--subtext);
  font-size: 16px;
  cursor: pointer;
}

.modal-tracks-list {
  list-style: none;
  padding: 8px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.modal-empty {
  padding: 30px;
  text-align: center;
  color: var(--subtext);
  font-size: 13px;
}

.modal-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-track-item:hover {
  background-color: #282828;
}

.modal-track-item img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-track-info {
  flex: 1;
  overflow: hidden;
}

.modal-track-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-track-artist {
  font-size: 11px;
  color: var(--subtext);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.track-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.track-badge.youtube { background-color: #ff0000; color: #fff; }
.track-badge.yandex { background-color: #ffcc00; color: #000; }
.track-badge.gdrive { background-color: #4285f4; color: #fff; }
.track-badge.vk { background-color: #0077ff; color: #fff; }

.modal-track-dur {
  font-size: 12px;
  color: var(--subtext);
  font-family: monospace;
}

.btn-remove-track {
  background: transparent;
  border: none;
  color: var(--subtext);
  font-size: 14px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0.6;
}

.btn-remove-track:hover {
  opacity: 1;
  color: #ff5555;
  background-color: #2b1818;
}

.add-to-menu {
  position: fixed;
  background-color: #222222;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 6px;
  width: 170px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  z-index: 16000;
}

.add-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--subtext);
  padding: 4px 8px 6px 8px;
  border-bottom: 1px solid #2f2f2f;
  margin-bottom: 4px;
}

.add-menu-item {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-menu-item:hover {
  background-color: #333;
}

.add-menu-empty {
  padding: 8px;
  font-size: 11px;
  color: var(--subtext);
  text-align: center;
}

.playlist-context-menu {
  position: fixed;
  background-color: #222222;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 4px;
  width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  z-index: 16000;
}

.context-item {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.context-item:hover {
  background-color: #2e2e2e;
}

.context-item.danger { color: #ff5555; }
.context-item.danger:hover { background-color: #3d1c1c; }

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-shuffle {
  background-color: #262626;
  border: 1px solid #3d3d3d;
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Активное состояние кнопки шаффла */
.btn-bottom-shuffle.active .shuffle-icon {
  filter: brightness(0) saturate(100%) invert(56%) sepia(87%) saturate(497%) hue-rotate(94deg) brightness(97%) contrast(92%);
  opacity: 1;
}

.device-pill-btn {
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  color: #c0c0c0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.device-pill-btn:hover {
  background: #282828;
  border-color: #404040;
  color: #ffffff;
  transform: scale(1.02);
}

.device-pill-btn:active {
  transform: scale(0.96);
  background: #181818;
}

/* Кнопки Моя Волна и VK Микс */
.radio-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-radio-stream {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-btn-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.radio-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.radio-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* Оформление Яндекс Волны */
.yandex-wave-btn {
  background: linear-gradient(135deg, #3d2b00 0%, #1e1e1e 100%);
  border-color: #573e02;
}

.yandex-wave-btn:hover {
  background: linear-gradient(135deg, #5a3e00 0%, #282828 100%);
  border-color: #ffcc00;
}

.yandex-wave-btn.active {
  border-color: #ffcc00;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.35);
}

/* Оформление RabMIX (стильный глубокий черный) */
.vk-mix-btn {
  background: linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
  border-color: #2e2e2e;
}

.vk-mix-btn:hover {
  background: linear-gradient(135deg, #262626 0%, #121212 100%);
  border-color: #444444;
}

.vk-mix-btn.active {
  border-color: #ffffff;
  background: linear-gradient(135deg, #2a2a2a 0%, #141414 100%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

/* Обертка для кнопки и 3 точек */
.radio-item-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.radio-item-wrap .btn-radio-stream {
  padding-right: 36px;
}

.btn-wave-settings {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 2;
}

.btn-wave-settings:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Единое всплывающее окно настроек для Волны и VK Микса */
.vk-settings-popup {
  position: fixed;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 16px;
  padding: 18px 20px;
  width: 340px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.vk-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
}

.vk-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.vk-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vk-pill-btn {
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
  color: #dddddd;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.vk-pill-btn:hover {
  background: #383838;
  color: #ffffff;
}

.vk-pill-btn.active {
  background: #444444;
  border-color: #555555;
  color: #ffffff;
}

.vk-popup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 4px;
}

.btn-vk-reset {
  background: transparent;
  border: none;
  color: #999999;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-vk-reset:hover {
  color: #ffffff;
}

.btn-vk-apply {
  background: #9a9a9a;
  border: none;
  color: #121212;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-vk-apply:hover {
  background: #ffffff;
}