:root {
  --accent: #7177f8;

  --card-radius: 12px;
  --container-width: 100%;
  --avatar-size: 40px;
  --avatar-small-size: 36px;
}

[data-theme="dark"] {
  --bg: #17212b;
  --text: #e0e2e6;
  --card-bg: #242f3d;
  --border-color: #7177f8;
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #000000;
  --card-bg: #f9f9f9;
  --border-color: #ccc;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter Variable', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card-bg);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.ur {
  color: var(--accent);
}

.flood {
  color: var(--text);
}

.reset-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
}

.main {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.analyze-card {
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--card-radius);
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  font-size: 1.1rem;
  transition: background 0.2s;
  border: none;
}

.analyze-card:hover {
  background: #5a5ef0;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.channel-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.channel-card:hover {
  background: rgba(113, 119, 248, 0.05);
}

.channel-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.channel-username {
  font-size: 0.85rem;
  opacity: 0.7;
}

.channel-detail {
  padding: 2rem;
}

.back-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.channel-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0.5rem;
}

.channel-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.channel-title {
  margin: 0;
  font-size: 1.3rem;
}

.channel-subtitle {
  font-size: 0.9rem;
  opacity: 0.75;
}

.channel-meta {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.channel-description {
  margin-bottom: 1rem;
}

.description-text {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
}

.report-section {
  margin-top: 1rem;
}

.report-content {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.analyze-run-btn {
  margin-top: 0.8rem;
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.bar {
  display: flex;
  justify-content: space-between;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.bar-fill {
  background: var(--accent);
  padding: 0.3rem 0.5rem;
  color: white;
  text-align: right;
  white-space: nowrap;
}

.tagged-comment {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  border-radius: 6px;
  background: rgba(113, 119, 248, 0.05);
  font-size: 0.9rem;
}

.tagged-comment .tag {
  font-weight: 500;
  margin-left: 0.4rem;
  color: var(--accent);
}

.input-block[data-v-b6448a67] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.channel-textarea[data-v-b6448a67] {
  width: 100%;
  height: 120px;
  resize: none;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--card-bg);
  color: var(--text);
  box-sizing: border-box;
}
.analyze-button[data-v-b6448a67] {
  width: 100%;
  height: 56px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
.analyze-button[data-v-b6448a67]:hover {
  background-color: #5a5ef0;
}

.channel-preview[data-v-3a0d9f0e] {
  display: flex;
  gap: 1rem;
  border-radius: var(--card-radius);
  background-color: var(--card-bg);
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
  flex-wrap: wrap;
}
.channel-preview__avatar[data-v-3a0d9f0e] {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.channel-preview__info[data-v-3a0d9f0e] {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  min-width: 200px;
}
.channel-preview__header[data-v-3a0d9f0e] {
  display: flex;
  flex-direction: column;
}
.channel-preview__title[data-v-3a0d9f0e] {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: var(--text);
}
.channel-preview__username[data-v-3a0d9f0e] {
  font-size: 0.95rem;
  opacity: 0.7;
  margin: 0.2rem 0;
}
.channel-preview__description[data-v-3a0d9f0e] {
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
  color: var(--text);
  word-break: break-word;
}
.channel-preview__meta[data-v-3a0d9f0e] {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.8;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.channel-preview__meta a[data-v-3a0d9f0e] {
  color: var(--accent);
  text-decoration: none;
}
.channel-preview__meta a[data-v-3a0d9f0e]:hover {
  text-decoration: underline;
}

.analyze-button[data-v-084ccf84] {
  width: 100%;
  height: 56px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.8rem;
}
.slider-block[data-v-084ccf84] {
  width: 100%;
}
.slider[data-v-084ccf84] {
  width: 100%;
  appearance: none;
  height: 8px;
  background: #e0e2e6;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

/* Chrome, Safari */
.slider[data-v-084ccf84]::-webkit-slider-thumb {
  appearance: none;
  width: 45px;
  height: 45px;
  background: #e0e2e6;
  border: 3px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -2px;
}

/* Firefox */
.slider[data-v-084ccf84]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #e0e2e6;
  border: 3px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
}
.slider-text[data-v-084ccf84] {
  margin-top: 1.5rem;
  font-size: 0.65rem;
  color: var(--text);
  text-align: center;
  width: 100%;
}

.overlay-loader[data-v-eecfcf65] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
}
.loader[data-v-eecfcf65] {
  width: 48px;
  height: 48px;
  border: 6px solid var(--accent);
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin-eecfcf65 1s linear infinite;
}
.main-status[data-v-eecfcf65] {
  font-weight: bold;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text);
}
.log[data-v-eecfcf65] {
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
  max-width: 500px;
  text-align: left;
  font-size: 0.85rem;
  color: #444;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}
.log li[data-v-eecfcf65] {
  margin-bottom: 0.4rem;
  word-break: break-word;
}
@keyframes spin-eecfcf65 {
to {
    transform: rotate(360deg);
}
}
.toast[data-v-eecfcf65] {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background-color: #444;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  z-index: 1000;
}
.toast.show[data-v-eecfcf65] {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.metrics-grid[data-v-328ffe16] {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.metric-item[data-v-328ffe16] {
  flex: 1 1 200px;
  text-align: center;
}
.donut-wrapper[data-v-328ffe16] {
  position: relative;
  width: 100%;
  max-width: 160px;
  margin: 0 auto 0.5rem;
}
.metric-chart[data-v-328ffe16] {
  width: 100%;
  height: auto;
}
.metric-label[data-v-328ffe16] {
  font-size: 0.9rem;
  color: var(--text);
}

.comment-item[data-v-745432da] {
  padding: 0.9rem;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.comment-text[data-v-745432da] {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.comment-meta[data-v-745432da] {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.no-comments[data-v-745432da] {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.placeholder[data-v-1567b035] {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.filters-section[data-v-3e53cadb] {
  margin-bottom: 1.2rem;
}
h4[data-v-3e53cadb] {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.filter-group[data-v-3e53cadb] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill[data-v-3e53cadb] {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(113, 119, 248, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
input[type='radio'][data-v-3e53cadb],
input[type='checkbox'][data-v-3e53cadb] {
  accent-color: var(--accent);
}

.comment-graph[data-v-6d83808e] {
  position: relative;
}
.graph-container[data-v-6d83808e] {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
}
.expand-btn[data-v-6d83808e] {
  float: right;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--accent);
  cursor: pointer;
}

.placeholder[data-v-d238c35c] {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.4;
  margin-top: 0.5rem;
}

.empty-message[data-v-c8ac9482] {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.6;
  text-align: center;
  margin: 1rem 0;
}

.report-card[data-v-b4d930a0] {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--card-radius);
  background-color: var(--card-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-items: flex-start;
  flex-wrap: wrap;
}
.report-card[data-v-b4d930a0]:hover {
  background-color: rgba(113, 119, 248, 0.05);
}
.avatar[data-v-b4d930a0] {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.text[data-v-b4d930a0] {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text);
  word-break: break-word;
  min-width: 200px;
}
.title[data-v-b4d930a0] {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: var(--text);
}
.subtitle[data-v-b4d930a0] {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
}
.description[data-v-b4d930a0] {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.4;
  margin: 0.3rem 0;
}
.subs[data-v-b4d930a0] {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
}
