:root {
  color-scheme: light dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --bg-base: #0f172a;
  --bg-surface: rgba(15, 23, 42, 0.7);
  --bg-card: rgba(30, 41, 59, 0.64);
  --border-soft: rgba(148, 163, 184, 0.2);
  --text-main: #f8fafc;
  --text-muted: #b6c3d8;
  --brand-a: #3b82f6;
  --brand-b: #6366f1;
  --accent-a: #22c55e;
  --accent-b: #0ea5a4;
}

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

html,
body {
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(900px 520px at 18% -5%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(780px 480px at 90% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  --stack-gap: 1.75rem;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 2rem auto 2.25rem;
  padding: 1.5rem;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.container::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: linear-gradient(115deg, #2563eb, #6366f1, #14b8a6, #2563eb);
  background-size: 240% 240%;
  filter: blur(22px);
  opacity: 0.36;
  z-index: -2;
  animation: rgbGlow 10s ease-in-out infinite;
}

.container::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(71, 85, 105, 0.38);
  z-index: -1;
}

.hero {
  text-align: center;
  display: grid;
  gap: 0;
  justify-items: center;
  padding-top: 0.4rem;
}

.hero-title {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.08;
  background: linear-gradient(110deg, #93c5fd, #60a5fa 42%, #818cf8 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
}

.hero-subtitle {
  margin-top: 14px;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.55;
}

.trust-line {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  opacity: 0.95;
}

.hero + .controls-card {
  margin-top: calc(28px - var(--stack-gap));
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 1.55rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(248, 250, 252, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.controls-card {
  display: grid;
  gap: 0.78rem;
}

.url-microcopy {
  margin: -0.1rem 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: #94a3b8;
}

.cta-proof {
  margin: 0.15rem 0 0.05rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #8fa1ba;
  letter-spacing: 0.01em;
}

.seo-faq {
  margin-top: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.35);
}

.seo-faq-title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #dbeafe;
}

.seo-faq-item {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.52rem 0;
}

.seo-faq-item:first-of-type {
  border-top: 0;
  padding-top: 0.2rem;
}

.seo-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item p {
  margin: 0.36rem 0 0;
  font-size: 0.8rem;
  color: #9fb1ca;
  line-height: 1.5;
}

.seo-content {
  margin-top: 0.35rem;
  padding: 0.9rem 0.1rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.seo-content-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.seo-subheading {
  margin: 0.72rem 0 0.38rem;
  font-size: 0.85rem;
  color: #b8c8de;
}

.seo-content p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.62;
  color: #8fa1ba;
  max-width: 92ch;
}

.seo-list {
  margin: 0 0 0.5rem 1.1rem;
  padding: 0;
  color: #95a7bf;
  font-size: 0.8rem;
  line-height: 1.6;
}

.seo-list li {
  margin: 0 0 0.2rem;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.guides {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.guides h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #b9cbe2;
  font-weight: 600;
}

.guides ul {
  margin: 0;
  padding-left: 1rem;
}

.guides li {
  margin: 0;
}

.guides a {
  font-size: 0.8rem;
  color: #8fa1ba;
  text-decoration: none;
}

.guides a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.blog-main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 1.4rem 1rem 2rem;
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.blog-header {
  margin-bottom: 1rem;
}

.blog-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
}

.blog-article h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: #e2e8f0;
}

.blog-article h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.12rem;
  color: #dbeafe;
}

.blog-article h3 {
  margin: 0.95rem 0 0.3rem;
  font-size: 0.96rem;
  color: #cbd5e1;
}

.blog-article p,
.blog-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a8b7cc;
}

.blog-article ul {
  margin: 0.2rem 0 0.4rem 1.05rem;
  padding: 0;
}

.blog-article a {
  color: #93c5fd;
}

.results-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.results-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(100%, 960px);
  margin: 0 auto;
}

label {
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  color: #dce6f7;
}

input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  padding: 0.78rem 0.9rem;
  min-height: 46px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-with-action {
  position: relative;
}

.input-with-action input {
  padding-right: 5.6rem;
}

.paste-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.9);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 rgba(96, 165, 250, 0);
}

.paste-btn:not(:disabled):hover {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.22);
  filter: none;
}

.paste-btn:not(:disabled):active {
  transform: translateY(-50%) scale(1.01);
}

.clipboard-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
  border-radius: 10px;
  padding: 0.52rem 0.75rem;
  font-size: 0.82rem;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.45);
  animation: feedbackFade 0.18s ease;
}

.clipboard-toast.is-hiding {
  animation: feedbackFadeOut 0.18s ease forwards;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
  background: rgba(15, 23, 42, 0.95);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.72rem 1.08rem;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease, background-position 0.24s ease, opacity 0.2s ease;
}

#fetchBtn {
  background: linear-gradient(118deg, var(--brand-a), var(--brand-b), #0ea5e9);
  background-size: 180% 180%;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.34);
  color: #fff;
}

#downloadBtn {
  background: linear-gradient(120deg, #16a34a, #0f766e);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
  color: #fff;
}

#downloadExcelBtn {
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 0 6px 14px rgba(20, 184, 166, 0.2);
  color: #fff;
}

#downloadPdfBtn {
  background: linear-gradient(120deg, #334155, #1e293b);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  color: #e2e8f0;
}

button:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

button:not(:disabled):active {
  transform: translateY(0) scale(1);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.6);
}

.actions .export-btn:disabled {
  opacity: 0.34;
  filter: saturate(0.45) brightness(0.82);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.status-panel {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.35rem;
  min-height: 46px;
}

.message {
  margin: 0;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.93rem;
  min-height: 1.2rem;
}

.message:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.6);
}

.message.is-success {
  color: #86efac;
}

.message.is-success:not(:empty) {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 101, 52, 0.2);
}

.message.is-success:not(:empty)::before {
  content: "✓";
  font-weight: 700;
}

.message.is-error {
  color: #fca5a5;
}

.message.is-error:not(:empty) {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.2);
}

.message.is-error:not(:empty)::before {
  content: "!";
  font-weight: 700;
}

.count {
  margin: 0;
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 1.2rem;
}

.support-hint {
  margin: 0;
  color: #9fb3ce;
  font-size: 0.83rem;
  line-height: 1.3;
}

.spinner {
  margin-top: 0.45rem;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(148, 163, 184, 0.28);
  border-top: 3px solid #c7d2fe;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #374151;
  text-align: left;
  padding: 0.55rem;
  vertical-align: top;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.result-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.section-title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #dbeafe;
}

.preview-section {
  padding-top: 1.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.preview-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tab-btn {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: none;
}

.tab-btn.is-active {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.36), rgba(99, 102, 241, 0.34));
  color: #e2e8f0;
}

.tab-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.tab-btn:not(:disabled):active {
  transform: translateY(0);
}

.tab-panel {
  animation: panelFade 0.2s ease;
}

.tab-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.68));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
}

.overview-card {
  padding: 1rem;
}

.comments-card {
  padding: 1rem;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  min-height: 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #8fa1c7;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.filter-btn.active {
  background: #4ea1ff;
  color: white;
}

.filter-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(78, 161, 255, 0.6);
}

.filter-btn:not(:disabled):active {
  transform: translateY(0);
}

.analytics-empty-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.insights-card {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.insight-block {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: rgba(15, 23, 42, 0.45);
}

.insight-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #dbeafe;
}

.insight-meta {
  margin: 0 0 0.45rem;
  color: #9fb3ce;
  font-size: 0.85rem;
}

.insight-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.insight-list li {
  color: #d6e1f0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.insight-empty {
  list-style: none;
  margin-left: -1.1rem;
  color: #9fb3ce;
}

.analytics-empty-text {
  margin: 0;
  color: #9fb3ce;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.overview-placeholder,
.video-placeholder {
  margin: 0;
  color: #9fb3ce;
  font-size: 0.95rem;
  line-height: 1.45;
}

.analytics-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sentiment-stat {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: rgba(15, 23, 42, 0.78);
}

.sentiment-label {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sentiment-value {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.sentiment-positive-card .sentiment-value {
  color: #86efac;
}

.sentiment-negative-card .sentiment-value {
  color: #fca5a5;
}

.sentiment-neutral-card .sentiment-value {
  color: #d1d5db;
}

.comments-columns {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(240px, 3fr) minmax(110px, 0.9fr) minmax(130px, 1fr);
  gap: 0.5rem;
  color: #9fb3ce;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  padding: 0 0.7rem 0.45rem;
}

.chart-container {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
  max-height: 300px;
}

.chart-container canvas {
  height: min(280px, 34vh) !important;
  max-height: 300px;
}

.comment-card {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.36);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35);
}

.avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #475569;
  background: #111827;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  background: linear-gradient(135deg, #334155, #1f2937 45%, #0f172a);
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.author {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time {
  color: #94a3b8;
  font-size: 0.82rem;
}

.sentiment-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.sentiment-positive {
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.28);
  border-color: rgba(134, 239, 172, 0.35);
}

.sentiment-negative {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.25);
  border-color: rgba(252, 165, 165, 0.35);
}

.sentiment-neutral {
  color: #e5e7eb;
  background: rgba(71, 85, 105, 0.36);
  border-color: rgba(148, 163, 184, 0.4);
}

.comment-text {
  margin: 0 0 0.65rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.42;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.replies-toggle-btn {
  margin-top: 0.35rem;
  padding: 0.3rem 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  text-align: left;
}

.replies-toggle-btn:not(:disabled):hover {
  transform: none;
  filter: none;
  color: #bfdbfe;
  text-decoration: underline;
}

.replies-toggle-btn:not(:disabled):active {
  transform: none;
}

.replies-container {
  margin-top: 0.2rem;
}

.reply {
  margin-left: 50px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.reply-header {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.reply-author {
  color: #e2e8f0;
  font-weight: 700;
}

.reply-time {
  color: #9fb3ce;
  font-size: 0.78rem;
}

.reply-text {
  margin: 0.42rem 0 0.5rem;
  color: #d6e1f0;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-likes {
  color: #9fb3ce;
  font-size: 0.78rem;
}

.likes::before {
  content: "Like • ";
}

.youtube-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.youtube-link:hover {
  text-decoration: underline;
}

.video-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.38);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 18, 32, 0.9) 100%);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 152px;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: #4b5563;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.video-thumb {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #374151;
  background: #0f172a;
  flex: 0 0 200px;
}

.video-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.video-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.35;
  color: #f9fafb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.channel-name,
.comment-count {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.channel-name {
  margin-bottom: 0.25rem;
}

.video-card:not(.is-populated) .video-thumb,
.video-card:not(.is-populated) .video-title,
.video-card:not(.is-populated) .channel-name,
.video-card:not(.is-populated) .comment-count {
  display: none;
}

.coffee-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(145deg, #1d4ed8, #2563eb, #0891b2);
  background-size: 220% 220%;
  color: #f8fafc;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.35), 0 0 0 1px rgba(147, 197, 253, 0.2) inset;
  z-index: 1200;
  animation: coffeeGradient 6s ease infinite, coffeePulse 3s ease-in-out infinite;
}

.coffee-icon {
  line-height: 1;
}

.coffee-btn:hover {
  transform: translateY(-2px) scale(1.07);
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.48), 0 0 20px rgba(56, 189, 248, 0.28);
}

.coffee-btn:hover .coffee-icon {
  animation: iconPulse 0.8s ease;
}

.feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #f8fafc;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.42);
  z-index: 1210;
}

.feedback-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(125, 211, 252, 0.75);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.5), 0 0 18px rgba(56, 189, 248, 0.2);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.34);
  z-index: 1350;
  animation: feedbackFade 0.18s ease;
}

.feedback-modal.hidden {
  display: none;
}

.feedback-modal.is-hiding {
  animation: feedbackFadeOut 0.18s ease forwards;
}

.feedback-modal-card {
  width: min(100%, 450px);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.45);
  padding: 1rem 1rem 1.05rem;
  position: relative;
}

.feedback-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 26px;
  height: 26px;
  min-height: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1rem;
  box-shadow: none;
}

.feedback-title {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 1.03rem;
  color: #f8fafc;
}

.feedback-text {
  margin: 0 0 0.7rem;
  color: #9fb3ce;
  font-size: 0.88rem;
}

.feedback-form {
  display: grid;
  gap: 0.45rem;
}

.feedback-form label {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #cfe0fb;
}

.feedback-form textarea,
.feedback-form input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  padding: 0.62rem 0.75rem;
  font: inherit;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 90px;
}

#feedbackSubmitBtn {
  margin-top: 0.35rem;
  border-radius: 10px;
  background: linear-gradient(120deg, #0ea5e9, #2563eb);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #fff;
  font-weight: 700;
}

.feedback-note {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

.feedback-status {
  margin: 0.55rem 0 0;
  min-height: 1.15rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.feedback-status.is-success {
  color: #86efac;
}

.feedback-status.is-error {
  color: #fca5a5;
}

.support-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(340px, calc(100vw - 40px));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.66));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42), 0 1px 0 rgba(226, 232, 240, 0.08) inset;
  padding: 0.9rem 1rem 1rem;
  z-index: 1300;
  animation: toastEnter 0.26s ease;
  transition: max-height 0.26s ease;
  overflow: hidden;
  max-height: 240px;
}

.support-toast.qr-expanded {
  max-height: 520px;
}

.support-toast.is-hiding {
  animation: toastExit 0.22s ease forwards;
}

.support-toast-close {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  min-height: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
}

.support-toast-title {
  margin: 0 1.4rem 0.4rem 0;
  font-size: 1.05rem;
  color: #f8fafc;
}

.support-toast-text {
  margin: 0 0 0.85rem;
  color: #cbd5e1;
  line-height: 1.46;
  font-size: 0.9rem;
  white-space: pre-line;
}

.support-toast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.6);
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.support-toast-btn:hover {
  filter: brightness(1.05);
}

.support-qr-wrap {
  margin-top: 0.8rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-qr-wrap.hidden {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
}

.support-qr-image {
  width: min(220px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.45rem;
}

.support-qr-note {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
}

@keyframes rgbGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes coffeeGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes coffeePulse {
  0% {
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28), 0 0 0 0 rgba(59, 130, 246, 0.26);
  }
  50% {
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.42), 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28), 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes feedbackFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes feedbackFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    --stack-gap: 1.35rem;
    margin: 1rem auto;
    padding: 0.9rem;
    gap: var(--stack-gap);
  }

  .card {
    padding: 1.15rem;
  }

  .analytics-row {
    gap: 18px;
  }

  .overview-card,
  .comments-card,
  .insights-card {
    padding: 0.85rem;
  }

  .filter-bar {
    margin-bottom: 14px;
  }

  .preview-tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1 1 calc(33.333% - 0.6rem);
    justify-content: center;
  }

  .comments-columns {
    display: none;
  }

  .video-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 0;
  }

  .video-thumb {
    width: 100%;
    height: auto;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    flex-basis: auto;
  }

  .coffee-btn {
    bottom: 14px;
    left: 14px;
    width: 56px;
    height: 56px;
  }

  .feedback-btn {
    right: 14px;
    bottom: 14px;
  }

  .support-toast {
    top: 14px;
    right: 14px;
    width: min(340px, calc(100vw - 28px));
  }

  .actions button {
    flex: 1 1 100%;
  }

  .paste-btn {
    right: 0.45rem;
    padding: 0.34rem 0.66rem;
  }

  .comment-card {
    padding: 0.8rem;
  }

  .reply {
    margin-left: 22px;
  }

  .author {
    max-width: 100%;
  }

  .sentiment-badge {
    margin-left: 0;
  }
}
