*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-hover: #1a1a26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --premium-gold: #fbbf24;
  --premium-gold-soft: rgba(251, 191, 36, 0.22);
  --player-glass: rgba(14, 14, 22, 0.88);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
}

body {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  font-size: 16px;
  height: 100%;
  height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(236, 72, 153, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.hidden {
  display: none !important;
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(20px);
  height: 100%;
  overflow: hidden;
}

.sidebar__header {
  padding: 24px 20px 12px;
}

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  width: 100%;
  min-width: 0;
}

.lang-switcher-wrap .lang-switcher {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 4px;
  margin-top: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 15, 0.45);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.lang-switcher-wrap .lang-switcher::-webkit-scrollbar {
  display: none;
}

.lang-scroll-btn {
  flex-shrink: 0;
}

.lang-switcher-wrap:not(.has-overflow) .lang-scroll-btn {
  display: none;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 15, 0.45);
}

.lang-switcher__btn {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 6px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher__btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.lang-switcher__btn.is-active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

/* Sidebar tabs */
.sidebar-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px 12px;
}

.sidebar-tabs__btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.sidebar-tabs__btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-tabs__btn.is-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text);
}

.sidebar__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#panel-live {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.live-radio-ui {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.live-radio-ui .categories-bar,
.live-radio-ui .search,
.live-radio-ui .stations-status {
  flex-shrink: 0;
}

.support-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px));
}

#panel-support {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.98);
}

#panel-support::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(circle at 85% 85%, rgba(234, 179, 8, 0.12), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
}

#panel-support::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(92%, 340px);
  height: min(34dvh, 220px);
  transform: translateX(-50%);
  border-radius: 24px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 68%);
  filter: blur(18px);
  animation: tv-idle-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.support-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.support-card__glow {
  display: none;
}

.support-card__icon {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.support-card__title {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.support-card__text {
  position: relative;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.support-card__links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.monobank-jar-widget {
  position: relative;
  margin-bottom: 16px;
}

.monobank-jar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.monobank-jar--loading {
  place-items: center;
  min-height: 88px;
}

.monobank-jar__loading {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.monobank-jar__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monobank-jar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.monobank-jar__avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.monobank-jar__meta {
  min-width: 0;
}

.monobank-jar__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.monobank-jar__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.monobank-jar__owner {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.monobank-jar__description {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.monobank-jar__progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.monobank-jar__progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.monobank-jar__stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.monobank-jar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.monobank-jar__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.monobank-jar__button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.support-link:hover {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.support-link__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
}

.support-link__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.support-link__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.support-link__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.support-card__thanks {
  position: relative;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.support-card__admin {
  position: relative;
  margin-top: 16px;
  text-align: center;
}

.support-card__admin-link {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  opacity: 0.65;
}

.support-card__admin-link:hover {
  color: var(--accent);
  opacity: 1;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px));
  gap: 12px;
}

#panel-chat {
  position: relative;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.98);
}

#panel-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(circle at 85% 85%, rgba(234, 179, 8, 0.12), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
}

#panel-chat::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(92%, 340px);
  height: min(34dvh, 220px);
  transform: translateX(-50%);
  border-radius: 24px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 68%);
  filter: blur(18px);
  animation: tv-idle-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.chat-panel__intro {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 8px 4px;
}

.chat-panel__icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.chat-panel__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.chat-panel__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.chat-message--mine {
  align-self: flex-end;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.chat-message__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-message__nick {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c7d2fe;
}

.chat-message__time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chat-message__text {
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-compose {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.chat-compose__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-compose__label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-compose__input,
.chat-compose__textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}

.chat-compose__textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 140px;
}

.chat-compose__send {
  width: 100%;
}

.chat-status {
  flex-shrink: 0;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
}

.chat-status--error {
  color: #fca5a5;
}

.chat-status--loading {
  color: #c7d2fe;
}

/* Gallery */
#panel-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.98);
}

#panel-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(circle at 85% 85%, rgba(234, 179, 8, 0.12), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
}

.gallery-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 24px;
}

.gallery-upload {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(2, 6, 23, 0.52);
  backdrop-filter: blur(10px);
}

.gallery-upload__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-upload__label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gallery-upload__select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.gallery-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 96px;
  padding: 14px;
  border: 1px dashed rgba(147, 197, 253, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.gallery-drop.is-dragover,
.gallery-drop:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(30, 58, 138, 0.22);
}

.gallery-drop__title,
.gallery-drop__hint {
  pointer-events: none;
}

.gallery-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.gallery-drop__title {
  font-size: 0.82rem;
  font-weight: 500;
}

.gallery-drop__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gallery-upload__submit {
  width: 100%;
}

.gallery-upload__status {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
}

.gallery-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gallery-card__preview {
  position: relative;
}

.gallery-card__download {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-card__download:hover {
  background: rgba(99, 102, 241, 0.88);
  transform: scale(1.05);
}

.gallery-card__delete {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fca5a5;
  font-size: 0.68rem;
  cursor: pointer;
}

.gallery-card__delete:hover {
  color: #fecaca;
}

.gallery-panel__head {
  margin-bottom: 12px;
}

.gallery-panel__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-panel__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gallery-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gallery-filter--album.is-sub {
  font-size: 0.74rem;
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.85);
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.gallery-filter span {
  opacity: 0.75;
  font-size: 0.72rem;
}

.gallery-filter:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.gallery-filter.is-active {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.16);
  color: var(--text);
}

.gallery-filter--type:first-of-type {
  margin-left: auto;
}

.gallery-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-scroll-sentinel {
  height: 1px;
  width: 100%;
}

.gallery-load-more {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 12px 0 4px;
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 26, 0.9);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gallery-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  pointer-events: none;
}

.gallery-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  min-width: 0;
}

.gallery-card__name {
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card__album {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-lightbox__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-lightbox__nav--prev {
  left: 0;
}

.gallery-lightbox__nav--next {
  right: 0;
}

.gallery-lightbox__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  max-height: calc(100dvh - 120px);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__image,
.gallery-lightbox__video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  margin: 0 auto;
  object-fit: contain;
}

.gallery-lightbox__caption {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-lightbox__download {
  align-self: center;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gallery-lightbox__download:hover {
  background: rgba(99, 102, 241, 0.75);
}

.gallery-lightbox__counter {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Site footer */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 16px max(8px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.site-footer__copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.site-footer__year {
  color: rgba(244, 244, 245, 0.82);
  font-weight: 500;
}

.site-footer__dot {
  opacity: 0.45;
}

.site-footer__admin {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.7;
  transition: color var(--transition), opacity var(--transition);
}

.site-footer__admin:hover {
  color: var(--accent);
  opacity: 1;
}

.admin-announcement {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 44px 10px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.admin-announcement__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-announcement__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.admin-announcement__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(12px);
}

.maintenance-overlay__card {
  max-width: 420px;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.maintenance-overlay__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.maintenance-overlay__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.maintenance-overlay__message {
  color: var(--text-muted);
  line-height: 1.6;
}

.admin-announcement--info {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
}

.admin-announcement--success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.admin-announcement--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.btn--primary svg {
  width: 18px;
  height: 18px;
}

.btn--primary:hover {
  filter: brightness(1.1);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn--secondary:hover {
  background: var(--bg-hover);
}

.btn--secondary svg {
  width: 16px;
  height: 16px;
}

.btn--danger {
  padding: 10px 16px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn--upload {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo__mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  line-height: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(165, 180, 252, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.logo__mark-svg {
  width: 40px;
  height: 40px;
  display: block;
}

.logo__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo__brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.15;
}

.logo__brand-line {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f4f4f5 0%, #c7d2fe 45%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo__premium {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a26;
  background: linear-gradient(135deg, #fde68a, #fbbf24, #f59e0b);
  box-shadow: 0 1px 8px rgba(251, 191, 36, 0.35);
}

.logo__tagline {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Sidebar tabs */
.sidebar__listeners {
  display: flex;
  padding: 0 16px 4px;
}

.online-listeners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.15);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.online-listeners.hidden {
  display: none;
}

.online-listeners__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: online-listeners-pulse 1.8s ease-in-out infinite;
}

.online-listeners__value {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.online-listeners__label {
  color: var(--text);
}

@keyframes online-listeners-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}


.categories-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 16px 8px;
  flex-shrink: 0;
}

.categories-bar__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-view-switch {
  display: none;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 15, 0.45);
}

.category-view-switch__btn {
  flex: 1;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.category-view-switch__btn.is-active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.categories-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-height: 132px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-section__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 2px;
}

.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-chips--row {
  flex: none;
}

.category-chips-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.category-chips-wrap .category-chips--row {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

.category-chips-wrap .category-chips--row::-webkit-scrollbar {
  display: none;
}

.category-scroll-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 18, 26, 0.92);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.category-scroll-btn svg {
  width: 16px;
  height: 16px;
}

.category-scroll-btn:hover:not(.is-disabled) {
  background: var(--bg-hover);
  color: var(--text);
}

.category-scroll-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.category-chips-wrap:not(.has-overflow) .category-scroll-btn {
  display: none;
}

.category-chip {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.category-chip:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.category-chip.is-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text);
}

.category-chip__flag {
  margin-right: 4px;
}

.station__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.station__icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.station__icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 18%, rgba(165, 180, 252, 0.42), transparent 58%),
    radial-gradient(circle at 82% 88%, rgba(251, 191, 36, 0.16), transparent 52%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--station-color, var(--accent)) 62%, #312e81),
      color-mix(in srgb, var(--station-color, var(--accent)) 28%, #0a0a0f)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.station__icon-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68%;
  pointer-events: none;
}

.station__icon-badge--radio::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef2ff' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M8 15c1.2-1.8 2.6-2.8 4-2.8s2.8 1 4 2.8'/%3E%3C/svg%3E");
}

.station__icon-badge--tv::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef2ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.station__icon-badge-text {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #eef2ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.player__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.06);
}

.category-chip.is-loading {
  opacity: 0.7;
}

.btn--refresh {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.btn--refresh svg {
  width: 18px;
  height: 18px;
}

.btn--refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stations-status {
  flex-shrink: 0;
  margin: 0 16px 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.4;
}

.stations-status--loading {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text);
}

.stations-status--success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.stations-status--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.stations-status--error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.station-list__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.station-list__error {
  color: #fca5a5;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search {
  padding: 0 16px 16px;
  flex-shrink: 0;
}

.search__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search__input::placeholder {
  color: var(--text-muted);
}

.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.station-list-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px;
  padding: 0 8px 0 12px;
}

.station-list-wrap .sidebar__nav {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0 0 max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  scroll-padding-bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.station-list-wrap .sidebar__nav .station-group:last-child {
  margin-bottom: 4px;
}

.station-scroll-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: stretch;
  padding: 4px 0;
}

.station-scroll-btn {
  flex-shrink: 0;
}

.station-list-wrap:not(.has-overflow) .station-scroll-controls {
  display: none;
}

.station-group {
  margin-bottom: 20px;
}

.station-item {
  width: 100%;
}

.station-channel {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: visible;
  transition: background var(--transition), box-shadow var(--transition);
}

.station-item.is-active .station-channel {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.07), rgba(99, 102, 241, 0.05));
  outline: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.station-item.is-active {
  border-radius: 0;
  overflow: visible;
  outline: none;
  background: none;
  box-shadow: none;
}

.station-item.is-active .station {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(99, 102, 241, 0.1));
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.8);
  padding-left: 12px;
}

.station-channel__body {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease;
}

.station-item.is-expanded .station-channel__body {
  max-height: 320px;
  opacity: 1;
}

.station-item.is-expanded:has(.player--tv) .station-channel__body {
  max-height: min(72vh, 520px);
}

.station-item .player--in-channel.player--tv .player-mini__video-wrap {
  display: block;
}

.station-item .player--in-channel.player--tv .player-mini__video {
  max-height: min(52vh, 360px);
}

.station-item .player--in-channel.player--tv .player-mini__avatar,
.station-item .player--in-channel.player--tv #player-art {
  display: none;
}

.station-item .player--in-channel.player--tv .player-mini__tools--meta,
.station-item .player--in-channel.player--tv .player-mini__volume {
  display: flex;
}

.station-channel__body:empty {
  display: none;
  max-height: 0;
  opacity: 0;
}

.station-item .player--in-channel {
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.06), rgba(8, 8, 14, 0.95));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.28);
  padding: 10px 12px 12px;
  margin: 0;
}

.station-item .player--in-channel .player-mini__heading {
  display: none;
}

.station-item .player--in-channel .player-mini__title {
  margin-bottom: 6px;
}

.station-item .player--in-channel .player-mini__tools {
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.station-item .player--in-channel .player-mini__volume {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.station-item .player--in-channel .player-mini__tool--favorite,
.station-item .player--in-channel .player-mini__tool--play,
.station-item .player--in-channel #btn-play,
.station-item .player--in-channel .player-mini__avatar,
.station-item .player--in-channel #player-art {
  display: none;
}

.station-item .player--in-channel .player-mini__classic {
  padding-left: 0;
  min-height: 0;
}

.station-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: visible;
  gap: 8px;
  padding: 4px 8px 4px 0;
}

.station-row .station {
  flex: 1;
  min-width: 0;
}

.station__icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0 0 0 8px;
  padding: 0;
  border: none;
  overflow: visible;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--transition);
}

.station__icon-wrap:hover {
  transform: scale(1.04);
}

.station__icon-wrap:active {
  transform: scale(0.96);
}

.station__icon-wrap .station__icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.station__icon-play {
  position: relative;
  inset: auto;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a 0%, #fbbf24 42%, #6366f1 100%);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.5),
    0 0 16px rgba(251, 191, 36, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.station__icon-play-symbol {
  width: 13px;
  height: 13px;
  margin-left: 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.station__icon-play:hover {
  filter: brightness(1.08);
  transform: scale(1.08);
  box-shadow:
    0 4px 14px rgba(99, 102, 241, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.5);
}

.station-item.is-playing .station__icon-play {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 55%, #312e81 100%);
  box-shadow:
    0 2px 12px rgba(99, 102, 241, 0.55),
    0 0 0 1px rgba(165, 180, 252, 0.45);
}

.station-item.is-playing .station__icon-play:hover {
  filter: brightness(1.1);
}

.station__icon-play:active {
  transform: scale(0.94);
}

.station-item.is-playing .station__icon-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: 12px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  animation: station-icon-ring 1.6s ease-out infinite;
  pointer-events: none;
}

.station-item.is-playing .station__icon-wrap .station__icon {
  animation: station-icon-glow 1.6s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.45),
    0 0 16px rgba(99, 102, 241, 0.35);
}

@keyframes station-icon-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes station-icon-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(251, 191, 36, 0.35),
      0 0 12px rgba(99, 102, 241, 0.22);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 3px rgba(251, 191, 36, 0.55),
      0 0 22px rgba(99, 102, 241, 0.42);
  }
}

.station__actions {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  border-left: 1px solid var(--border);
}

.station__like {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 48px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
  touch-action: manipulation;
}

.station__like svg {
  width: 18px;
  height: 18px;
}

.station__like-count {
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.station__like:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.station__like:active {
  transform: scale(0.96);
}

.station__favorite {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
  touch-action: manipulation;
}

.station__favorite svg {
  width: 18px;
  height: 18px;
}

.station__favorite:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.station__favorite:active {
  transform: scale(0.96);
}

.station__favorite.is-favorited {
  color: #ec4899;
}

.station__favorite.is-favorited:hover {
  color: #f472b6;
  background: rgba(236, 72, 153, 0.1);
}

.station__share {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
  touch-action: manipulation;
}

.station__share svg {
  width: 18px;
  height: 18px;
}

.station__share:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
}

.station__share:active {
  transform: scale(0.96);
}

.station__like.is-liked {
  color: #fbbf24;
}

.station__like.is-liked:hover {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}

.station-item.is-active .station__actions {
  background: rgba(0, 0, 0, 0.12);
}

.station-item.is-active .station__actions,
.station-item.is-active .station__favorite,
.station-item.is-active .station__share {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.station__player-host {
  display: block;
}

.station__player-host:empty {
  display: none;
}

.player-host-placeholder {
  display: none;
}

.player-host-placeholder:not(.hidden) {
  display: block;
  margin-top: 8px;
}

.station-group__title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 8px 10px;
}

.station {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.station:hover {
  background: var(--bg-hover);
}

.station-item.is-active .station:hover {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(99, 102, 241, 0.16));
}

.station.is-active {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.station__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--station-color, var(--accent)) 20%, transparent);
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.station__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.station__name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station__playing {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

.empty-state {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Player — VIP Premium */
.player {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  padding:
    12px 14px
    max(12px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(251, 191, 36, 0.28);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, transparent 32%),
    var(--player-glass);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  color: var(--text);
  box-shadow:
    0 -12px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.player-mini__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--premium-gold);
}

.player--premium .player-mini__heading::after {
  content: "VIP";
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1a1200;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.45),
    0 4px 12px rgba(251, 191, 36, 0.25);
}

.player-mini__classic {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding-left: 62px;
  padding-bottom: 2px;
}

.player-mini__avatar,
#player-art {
  --station-color: var(--accent);
  position: absolute;
  left: 0;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--station-color) 34%, var(--bg-elevated)),
    var(--bg-elevated)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.2),
    0 0 0 4px rgba(99, 102, 241, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.42);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.player-mini__avatar.is-playing,
#player-art.is-playing {
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.45),
    0 0 0 4px rgba(99, 102, 241, 0.22),
    0 0 28px rgba(99, 102, 241, 0.35);
}

.player-mini__video-wrap {
  width: 100%;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.player-mini__video {
  display: block;
  width: 100%;
  max-height: 220px;
  background: #000;
  object-fit: contain;
}

.player--tv {
  margin-top: 8px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(99, 102, 241, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.06), rgba(8, 8, 14, 0.95));
  padding: 12px;
}

.player--tv .player-mini__classic {
  padding-left: 0;
  min-height: 0;
}

.player--tv .player-mini__tools,
.station-item .player--in-channel .player-mini__tools {
  width: 100%;
  margin-left: 0;
}

.player--tv .player-mini__volume,
.station-item .player--in-channel .player-mini__volume {
  width: 100%;
  margin-left: 0;
}

.player--tv .player-mini__video-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.player--tv .player-mini__video {
  max-height: min(42vh, 280px);
  border-radius: 8px;
}

.player--tv .player-mini__avatar,
.player--tv #player-art {
  display: none;
}

.player--tv .player-mini__hint {
  display: block;
  margin-top: 6px;
}

.player__visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#player-art.is-visualizing .player__visualizer,
.player-mini__avatar.is-visualizing .player__visualizer {
  opacity: 1;
}

.player-mini__icon,
.player__art-icon {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  line-height: 1;
}

.player-mini__title {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-mini__name,
#player-title {
  display: inline;
  color: transparent;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(120deg, #ffffff 0%, #fde68a 42%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.player-mini__stamp,
#player-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.player-mini__stamp .status-dot,
#player-status .status-dot {
  width: 7px;
  height: 7px;
  margin-right: 0;
  border-radius: 50%;
  background: var(--text-muted);
}

#player-status[data-state="playing"] .status-dot {
  background: #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
}

#player-status[data-state="loading"] .status-dot {
  background: #f59e0b;
  animation: pulse 0.8s ease-in-out infinite;
}

#player-status[data-state="error"] .status-dot {
  background: #ef4444;
}

.player-mini__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% + 62px);
  margin-top: 8px;
  margin-left: -62px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-mini__tools--meta {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
}

.player-mini__tool--styles,
#player-genre {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-mini__hint,
#player-description {
  display: none;
}

.player-mini__volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  width: calc(100% + 62px);
  margin-left: -62px;
  max-width: none;
  touch-action: none;
}

.player-mini .btn {
  flex-shrink: 0;
}

.player-mini .btn--icon,
.player-mini .btn--volume {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  box-shadow: none;
}

.player-mini .btn--icon svg,
.player-mini .btn--volume svg {
  width: 16px;
  height: 16px;
}

.player-mini .btn--icon:hover,
.player-mini .btn--volume:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

.player-mini .btn--icon.is-active {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.35);
}

.player-mini .btn--play {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a 0%, #fbbf24 38%, #6366f1 100%);
  color: #fff;
  box-shadow:
    0 8px 22px rgba(99, 102, 241, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.player-mini .btn--play::before {
  display: none;
}

.player-mini .btn--play .icon-play {
  display: block;
}

.player-mini .btn--play svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.player-mini .btn--play:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
  color: #fff;
}

.player-mini .volume__slider {
  flex: 1;
  min-width: 0;
  height: 5px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.player-mini .volume__slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.player-mini .volume__slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  background: linear-gradient(145deg, #fde68a, #6366f1);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.45);
}

.player-mini .volume__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: linear-gradient(145deg, #fde68a, #6366f1);
  border: 2px solid var(--bg);
}

.player-mini .volume__value {
  flex-shrink: 0;
  min-width: 32px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

@keyframes art-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes beat-punch {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#player-art.is-playing.has-visualizer {
  animation: art-breathe 2.4s ease-in-out infinite;
}

#player-art.is-playing.has-visualizer.beat {
  animation: beat-punch 0.12s ease-out;
}

#player-art.is-playing:not(.has-visualizer) {
  animation: spin-slow 20s linear infinite;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.btn:active {
  transform: scale(0.95);
}

.btn--icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  touch-action: manipulation;
}

.btn--icon svg {
  width: 20px;
  height: 20px;
}

.btn--icon:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn--icon.is-active {
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.1);
}

.btn--play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a5b4fc 0%, #6366f1 48%, #4f46e5 100%);
  color: white;
  box-shadow:
    0 10px 28px rgba(99, 102, 241, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  touch-action: manipulation;
}

.btn--play svg {
  width: 32px;
  height: 32px;
}

.btn--play:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.volume {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  touch-action: none;
}

.volume__slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  touch-action: none;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  margin: 0;
}

.volume__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

.volume__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.volume__value {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Phones landscape: compact sidebar, player embedded in stations */
@media (max-width: 1024px) and (orientation: landscape) {
  html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
    height: 100dvh;
  }

  html,
  body {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .sidebar {
    border-right: none;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    padding-left: max(0px, env(safe-area-inset-left, 0px));
  }

  .sidebar__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 4px;
    flex-shrink: 0;
  }

  .logo {
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .logo__tagline,
  .logo__premium {
    display: none;
  }

  .logo__brand {
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo__brand-line {
    font-size: 0.76rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .logo__mark-svg {
    width: 26px;
    height: 26px;
  }

  .lang-switcher-wrap {
    margin-top: 0;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 140px;
  }

  .lang-switcher-wrap .lang-switcher {
    min-width: 0;
  }

  .lang-switcher__btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 0.66rem;
    min-width: 36px;
  }

  .sidebar-tabs {
    padding: 4px 10px 0;
    flex-shrink: 0;
  }

  .sidebar__listeners {
    padding: 4px 10px 0;
  }

  .online-listeners {
    min-height: 36px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .sidebar-tabs__btn {
    min-height: 36px;
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .sidebar__panel:not(.hidden) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  #panel-live {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
  }

  .categories-bar {
    order: -1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px 8px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    flex-shrink: 0;
  }

  .categories-bar__main {
    flex: 1;
    min-width: 0;
    width: auto;
    gap: 5px;
  }

  .category-view-switch {
    display: flex;
    width: 100%;
    max-width: 220px;
    padding: 2px;
  }

  .categories-scroll[data-view="countries"] .category-section--genres,
  .categories-scroll[data-view="genres"] .category-section--countries,
  .categories-scroll[data-view="tv"] .category-section--genres {
    display: none;
  }

  .category-section {
    width: 100%;
    min-width: 0;
  }

  .category-section__label {
    display: none;
  }

  .category-view-switch__btn {
    padding: 4px 10px;
    font-size: 0.68rem;
    min-height: 32px;
  }

  .categories-scroll {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .category-chips--row {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-bottom: 2px;
  }

  .category-chip {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .category-scroll-btn {
    width: 28px;
    height: 28px;
  }

  .category-scroll-btn svg {
    width: 14px;
    height: 14px;
  }

  .btn--refresh {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
  }

  .search {
    padding: 6px 10px 4px;
    flex-shrink: 0;
  }

  .search__input {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 16px;
  }

  .stations-status {
    margin: 0 10px 4px;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  .station-list-wrap {
    flex: 1 1 auto;
    min-height: 96px;
    overflow: hidden;
    padding: 0 4px 0 8px;
    gap: 4px;
  }

  .station-scroll-controls {
    gap: 4px;
    padding: 0;
  }

  .station-scroll-btn {
    width: 28px;
    height: 28px;
  }

  .station-scroll-btn svg {
    width: 14px;
    height: 14px;
  }

  .station-list-wrap .sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 28px));
    scroll-padding-bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  }

  .station {
    min-height: 44px;
    padding: 8px 0;
  }

  .station-row {
    gap: 6px;
    padding: 3px 6px 3px 0;
  }

  .station__icon-wrap {
    width: 40px;
    height: 40px;
    margin: 0 0 0 6px;
    align-self: center;
  }

  .station__icon-wrap .station__icon {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .station__logo {
    object-position: center center;
  }

  .station__icon-play {
    width: 34px;
    height: 34px;
  }

  .station__icon-play-symbol {
    width: 14px;
    height: 14px;
  }

  .station__name {
    font-size: 0.82rem;
  }

  .station__meta {
    font-size: 0.68rem;
  }

  .station-item .player--in-channel {
    padding: 8px 10px 10px;
  }

  .player-mini__classic {
    padding-left: 56px;
  }

  .player-mini__avatar,
  #player-art {
    width: 46px;
    height: 46px;
    margin-top: -23px;
  }

  .player-mini__name,
  #player-title {
    font-size: 12px;
  }

  .support-panel {
    padding: 0 10px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .support-card {
    padding: 20px 14px 16px;
  }

  .site-footer {
    padding: 6px 10px max(6px, env(safe-area-inset-bottom, 0px));
  }

  .btn--primary,
  .btn--secondary {
    min-height: 44px;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
    height: 100dvh;
  }

  body {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    position: relative;
    top: auto;
    border-right: none;
    border-bottom: none;
    padding-top: env(safe-area-inset-top, 0px);
    overflow: hidden;
  }

  .sidebar__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px 4px;
    flex-shrink: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .logo__tagline {
    display: none;
  }

  .logo__premium {
    display: inline-flex;
    flex-shrink: 0;
  }

  .logo__brand {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .logo__brand-line {
    font-size: 0.88rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .logo__mark-svg {
    width: 30px;
    height: 30px;
  }

  .lang-switcher-wrap {
    margin-top: 0;
    max-width: none;
    width: 100%;
  }

  .lang-switcher__btn {
    min-height: 36px;
    min-width: 42px;
    font-size: 0.72rem;
  }

  .sidebar-tabs {
    padding: 0 12px 6px;
    flex-shrink: 0;
  }

  .sidebar__listeners {
    padding: 0 12px 4px;
  }

  .online-listeners {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .sidebar-tabs__btn {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .sidebar__panel:not(.hidden) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  #panel-live {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .categories-bar {
    padding: 0 12px 4px;
    flex-shrink: 0;
    order: 0;
    border-bottom: none;
    background: transparent;
  }

  .category-view-switch {
    display: flex;
    max-width: none;
  }

  .categories-scroll {
    max-height: none;
    overflow: visible;
  }

  .categories-scroll[data-view="countries"] .category-section--genres,
  .categories-scroll[data-view="genres"] .category-section--countries,
  .categories-scroll[data-view="tv"] .category-section--genres {
    display: none;
  }

  .category-section__label {
    display: none;
  }

  .category-chip {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .btn--refresh {
    width: 36px;
    height: 36px;
  }

  .search {
    padding: 0 12px 6px;
    flex-shrink: 0;
  }

  .search__input {
    font-size: 16px;
    min-height: 42px;
    padding: 10px 12px;
  }

  .stations-status {
    flex-shrink: 0;
    margin: 0 12px 4px;
  }

  .station-list-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    padding: 0 6px 0 8px;
    gap: 4px;
  }

  .station-list-wrap .sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 28px));
    scroll-padding-bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  }

  .site-footer {
    padding: 6px 12px max(6px, env(safe-area-inset-bottom, 0px));
  }

  .site-footer__copyright,
  .site-footer__admin {
    font-size: 0.68rem;
  }

  .panel-live--tv .tv-player__screen {
    max-height: min(40dvh, 320px);
  }

  .panel-live--tv .tv-player__volume-value {
    display: none;
  }

  .station {
    min-height: 46px;
    padding: 8px 10px;
  }

  .station__icon {
    width: 38px;
    height: 38px;
  }

  .station-item .player--in-channel {
    padding: 6px 8px 8px;
  }

  .support-panel {
    padding: 0 12px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .support-card {
    padding: 20px 14px 16px;
  }

  .btn--primary,
  .btn--secondary {
    min-height: 44px;
  }
}

@media (max-width: 1024px) and (max-height: 360px) and (orientation: landscape) {
  .sidebar__header {
    padding: 2px 6px 0;
  }

  .logo__text {
    display: none;
  }

  .logo__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .logo__mark-svg {
    width: 22px;
    height: 22px;
  }

  .lang-switcher-wrap {
    margin-top: 0;
    max-width: 120px;
  }

  .lang-switcher__btn {
    min-height: 26px;
    font-size: 0.62rem;
  }

  .sidebar-tabs__btn {
    min-height: 28px;
    font-size: 0.7rem;
  }

  .search {
    display: none;
  }

  .category-view-switch__btn {
    padding: 3px 6px;
    font-size: 0.64rem;
  }

  .category-chip {
    min-height: 26px;
    padding: 3px 7px;
    font-size: 0.64rem;
  }

  .station {
    min-height: 36px;
    padding: 5px 8px;
  }

  .player-mini__heading {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .player-mini__classic {
    padding-left: 52px;
  }

  .player-mini__avatar,
  #player-art {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .player-mini .volume__value {
    display: none;
  }
}

/* ——— Online TV player ——— */
.tv-player {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(18, 18, 28, 0.98), rgba(8, 8, 14, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.tv-player:not(.hidden) {
  display: flex;
}

.tv-player__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.tv-player__toolbar,
.tv-player__info,
.tv-player__status {
  display: none !important;
}

.tv-player__screen-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 8px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 55%, transparent 100%);
  pointer-events: none;
}

.tv-player__screen-controls .tv-player__controls {
  pointer-events: auto;
}

.tv-player__screen:has(.tv-player__idle:not(.hidden):not([hidden])) .tv-player__screen-controls {
  display: none;
}

.tv-player__video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tv-player__loader,
.tv-player__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  z-index: 2;
}

.tv-player__error.hidden,
.tv-player__loader.hidden {
  display: none;
}

.tv-player__retry {
  margin-top: 4px;
}

.tv-player__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
  min-height: 0;
  flex: 0 0 auto;
}

.tv-player__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.tv-player__channels-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
}

.tv-player__channels-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.tv-player__channels-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tv-player__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 140px;
}

.tv-player__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tv-player__logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tv-player__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.tv-player__logo-fallback {
  font-size: 1.15rem;
  line-height: 1;
}

.tv-player__info-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tv-player__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-player__meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.tv-player__status {
  font-size: 0.68rem;
  color: var(--accent-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-player__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.tv-player__controls-main,
.tv-player__controls-volume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.tv-player__controls-main {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.tv-player__controls-volume {
  gap: 8px;
}

.tv-player__btn.btn--play {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
}

.tv-player__btn.btn--icon,
.tv-player__btn.btn--volume {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
}

.tv-player__btn.btn--icon svg,
.tv-player__btn.btn--play svg {
  width: 16px;
  height: 16px;
}

.tv-player__btn {
  flex-shrink: 0;
}

.tv-player__volume {
  flex: 0 1 100px;
  min-width: 72px;
  max-width: 120px;
  accent-color: var(--accent);
}

.tv-player__volume-value {
  font-size: 0.68rem;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}

.tv-player.is-loading .tv-player__video {
  opacity: 0.55;
}

.tv-player__screen:fullscreen,
.tv-player__screen:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  background: #000;
}

.tv-player__screen:fullscreen .tv-player__screen-controls,
.tv-player__screen:-webkit-full-screen .tv-player__screen-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
}

.tv-player__screen:fullscreen .tv-player__video,
.tv-player__screen:-webkit-full-screen .tv-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-player__btn--fullscreen .icon-fullscreen,
.tv-player__btn--fullscreen .icon-fullscreen-exit {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .tv-player__controls-main,
  .tv-player__controls-volume {
    gap: 6px;
  }

  .tv-player__volume {
    width: min(200px, 58vw);
    max-width: 200px;
  }

  .panel-live--tv .tv-player__volume {
    width: min(200px, 58vw);
    max-width: 200px;
  }

  .tv-channels-rail {
    --tv-rail-icon: 40px;
    --tv-rail-icon-offset: 7px;
    gap: 4px;
  }

  .tv-channels-arrow {
    width: var(--tv-rail-icon);
    height: var(--tv-rail-icon);
  }

  .tv-channels-arrow svg {
    width: 18px;
    height: 18px;
  }

  .tv-channels-card {
    width: min(280px, 84vw);
    min-width: 240px;
  }

  .tv-channels-rail::before {
    left: calc(var(--tv-rail-icon) + 4px);
  }

  .tv-channels-rail::after {
    right: calc(var(--tv-rail-icon) + 4px);
  }
}

.panel-live--tv .live-radio-ui {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 0;
}

.panel-live--tv .live-radio-ui .search,
.panel-live--tv .live-radio-ui .station-list-wrap,
.panel-live--tv .live-radio-ui .stations-status {
  display: none !important;
}

.panel-live--tv .live-radio-ui .category-view-switch {
  display: none !important;
}

.panel-live--tv .live-radio-ui .categories-bar {
  padding: 0 12px 8px;
  margin: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-live--tv .live-radio-ui .categories-scroll {
  max-height: none;
}

.panel-live--tv .category-section--genres {
  display: none !important;
}

#panel-live.panel-live--tv {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0;
}

.panel-live--tv .tv-player {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 14, 0.98);
}

.panel-live--tv .tv-player__screen {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(44dvh, 380px);
  min-height: 0;
  height: auto;
}

.panel-live--tv .tv-player__idle-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.panel-live--tv .tv-player__idle-meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.panel-live--tv .tv-player__panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
  padding: 6px 10px 10px;
}

.panel-live--tv .tv-player__channels-wrap {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-live--tv .tv-player__channels-status {
  flex: 0 0 auto;
  margin: 0 0 6px;
  padding: 0 4px;
}

.tv-channels-rail {
  --tv-rail-icon: 44px;
  --tv-rail-icon-offset: 8px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
}

.tv-channels-rail::before,
.tv-channels-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tv-channels-rail::before {
  left: calc(var(--tv-rail-icon) + 6px);
  background: linear-gradient(90deg, rgba(8, 8, 14, 0.95) 0%, transparent 100%);
}

.tv-channels-rail::after {
  right: calc(var(--tv-rail-icon) + 6px);
  background: linear-gradient(270deg, rgba(8, 8, 14, 0.95) 0%, transparent 100%);
}

.tv-channels-rail.has-overflow:not(.is-at-start)::before {
  opacity: 1;
}

.tv-channels-rail.has-overflow:not(.is-at-end)::after {
  opacity: 1;
}

.tv-channels-track {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 6px 10px;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.tv-channels-track::-webkit-scrollbar {
  display: none;
}

.tv-channels-arrow {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tv-rail-icon);
  height: var(--tv-rail-icon);
  margin: var(--tv-rail-icon-offset) 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(30, 30, 42, 0.96), rgba(12, 12, 20, 0.98));
  color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.tv-channels-arrow svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.tv-channels-arrow:hover:not(.is-disabled) {
  transform: scale(1.06);
  border-color: rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(circle at 30% 25%, rgba(129, 140, 248, 0.28), transparent 58%),
    linear-gradient(145deg, rgba(49, 46, 129, 0.92), rgba(17, 24, 39, 0.98));
  box-shadow:
    0 10px 28px rgba(67, 56, 202, 0.28),
    0 0 0 1px rgba(129, 140, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tv-channels-arrow:active:not(.is-disabled) {
  transform: scale(0.96);
}

.tv-channels-arrow.is-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.tv-channels-rail:not(.has-overflow) .tv-channels-arrow {
  display: none;
}

.tv-channels-card {
  flex: 0 0 auto;
  width: min(300px, 78vw);
  min-width: 260px;
  max-width: 320px;
}

.tv-channels-card .station-channel {
  width: 100%;
  height: 100%;
}

.tv-channels-card .station-row {
  padding: 4px 6px 4px 0;
}

.tv-channels-card .station {
  padding: 8px 4px 8px 0;
  min-width: 0;
}

.tv-channels-card .station__name,
.tv-channels-card .station__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-live--tv .station-item.is-premium .station__meta {
  color: var(--premium-gold);
}

.panel-live--tv .station-item.is-favorited .station-channel,
.panel-live--tv .station-item:has(.station__favorite.is-favorited) .station-channel {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}

.panel-live--tv .station-item.is-premium .station-channel {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.panel-live--tv .tv-channels-track .station-list__loading,
.panel-live--tv .tv-channels-track .empty-state {
  flex: 1 1 auto;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.tv-player__btn--favorite.is-active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.panel-live--tv .tv-player__idle {
  gap: 14px;
  padding: 18px 16px 14px;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(circle at 85% 85%, rgba(234, 179, 8, 0.12), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
}

.panel-live--tv .tv-player__idle-cover {
  position: relative;
  width: min(100%, 340px);
  max-width: 92%;
  height: auto;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  padding: 0;
  display: grid;
  place-items: center;
}

.panel-live--tv .tv-player__idle-art {
  display: block;
  width: 100%;
  height: auto;
}

.panel-live--tv .tv-player__idle-glow {
  display: block;
}

.panel-live--tv .tv-player__idle-card-body {
  position: absolute;
  inset: 16% 14% 24%;
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 0;
  justify-content: center;
  pointer-events: none;
}

.panel-live--tv .tv-player__idle-play {
  width: 64px;
  height: 64px;
}

.panel-live--tv .tv-player__idle-play-core svg {
  width: 28px;
  height: 28px;
}

.panel-live--tv .tv-player__idle-title {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
}

.panel-live--tv .tv-player__idle-text {
  font-size: 0.78rem;
}

.tv-player__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px 28px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    radial-gradient(circle at 85% 85%, rgba(234, 179, 8, 0.12), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #111827 42%, #020617 100%);
  color: var(--text-muted);
  z-index: 3;
  pointer-events: none;
}

.tv-player__idle-cover {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  pointer-events: auto;
}

.tv-player__idle-card-body {
  position: absolute;
  inset: 16% 14% 24%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  pointer-events: none;
}

.tv-player__idle-card-body .tv-player__idle-play {
  pointer-events: auto;
}

.tv-player__idle-play {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: none;
  background: transparent;
  color: #fff;
  transition: transform 0.22s ease, filter 0.22s ease;
  flex-shrink: 0;
}

.tv-player__idle-play-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 52%, #1d4ed8 100%);
  box-shadow:
    0 10px 28px rgba(37, 99, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tv-player__idle-play-core svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.25));
}

.tv-player__idle-play-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(147, 197, 253, 0.55);
  animation: tv-idle-play-ring 2.4s ease-out infinite;
}

.tv-player__idle-play:hover .tv-player__idle-play-core {
  background: linear-gradient(145deg, #93c5fd 0%, #3b82f6 52%, #2563eb 100%);
}

.tv-player__idle-play:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.tv-player__idle-play:active {
  transform: scale(0.96);
}

.tv-player__idle-play:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 4px;
}

@keyframes tv-idle-play-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  70%,
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.tv-player__idle-glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 68%);
  filter: blur(18px);
  animation: tv-idle-pulse 4s ease-in-out infinite;
}

.tv-player__idle-art {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.tv-player__idle-card-label {
  margin: 0;
  padding: 8px 14px;
  max-width: 100%;
  border-radius: 12px;
  font-size: clamp(0.88rem, 3.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  color: #ffffff;
  text-wrap: balance;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tv-player__idle-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 34ch;
}

.tv-player__idle-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
}

.tv-player__idle-meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.tv-player__idle-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  text-wrap: balance;
}

.tv-player__idle-text {
  margin: 0;
  max-width: 30ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
}

@keyframes tv-idle-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.tv-player__idle.hidden,
.tv-player__idle[hidden] {
  display: none;
}

.tv-player__video.is-idle {
  visibility: hidden;
}

.tv-player__catalog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-player__catalog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

.tv-player__catalog-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tv-player__countries {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tv-player__country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tv-player__country-chip:hover {
  border-color: rgba(251, 191, 36, 0.35);
}

.tv-player__country-chip.is-active {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
}

.tv-player__country-flag {
  font-size: 1rem;
  line-height: 1;
}

.tv-player__channels-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tv-player__channels-status--error {
  color: #fca5a5;
}

.tv-player__channels-status--warning,
.tv-player__channels-status--info {
  color: var(--accent-soft);
}

/* Auth UI removed */
.auth-bar,
.auth-modal,
#auth-bar,
#auth-modal {
  display: none !important;
}

/* Auth */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 10px;
}

.auth-bar__btn,
.auth-bar__logout {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.auth-bar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.auth-bar__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  font-size: 0.85rem;
}

.auth-bar__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.auth-modal__card {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(14, 14, 22, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.auth-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-modal__tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.auth-modal__tab.is-active {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.14);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-form__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.auth-form__input:focus {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 1px;
}

.auth-form__error {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.82rem;
}

.auth-form__submit {
  width: 100%;
  margin-top: 4px;
}

.btn--primary {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
