
    

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Arial, sans-serif;
  margin: 0;
  transition: 0.3s;
}

.theme-toggle {
  background: var(--bg-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
  background: var(--blur-bg);
  border-radius: var(--border-radius);
  margin: 20px auto;
  max-width: 900px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.random-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

.random-channel-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.random-channel-card:hover {
  transform: translateY(-5px);
}

.random-channel-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
}

.name {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.text-content {
  display: inline-flex;
  gap: 20px; /* отступ между копиями текста */
}

/* Бесконечное дублирование текста для бесшовной анимации */
.name.marquee .text-content::before,
.name.marquee .text-content::after {
  content: attr(data-text);
}

.name.marquee .text-content {
  animation: marquee 60s linear infinite; /* очень медленная анимация: 60 секунд на цикл */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* сдвиг на половину ширины контейнера — бесшовный переход */
  }
}

/* Плавное затухание по краям */
.name::before,
.name::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 1;
}

.name::before {
  left: 0;
  background: linear-gradient(to right, var(--card-bg) 0%, transparent 100%);
}

.name::after {
  right: 0;
  background: linear-gradient(to left, var(--card-bg) 0%, transparent 100%);
}
.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.channel-side,
.channel-main {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.channel-side {
  flex: 1 1 250px;
  text-align: center;
}

.channel-main {
  flex: 2 1 600px;
  position: relative;
}

.channel-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid var(--text-secondary);
}

.side-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 10px;
  margin-top: 15px;
}

.side-card-title {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.side-card-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.channel-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.btn-visit,
.btn-sf {
  border-radius: var(--border-radius);
  padding: 8px 16px;
  margin-right: 5px;
}

.sf-block {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-blur-wrapper {
  position: relative;
  margin-top: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.chart-blur {
  filter: blur(15px);
  border-radius: var(--border-radius);
}

.overlay-text {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  background: var(--overlay-blur-bg);
  padding: 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 5;
}

.share-section {
  margin-top: 15px;
}

.share-section-title {
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button {
  padding: 6px 12px;
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 12px;
  border: none;
  cursor: pointer;
}

footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.random-channel-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
}




/* Базовые стили для страницы */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Arial, sans-serif;
  margin: 0;
  transition: 0.3s;
}


/* Стили для карточек поиска (сетка) */
.universal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 12px;
  text-align: center;
  width: 180px;
  height: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 15px;
}

.universal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.universal-card__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.universal-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.universal-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.universal-card__meta {
  font-size: 12px;
  color: var(--text-secondary);
  word-wrap: break-word;
  text-align: center;
}
