:root {
  --canvas: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #ffffff;
  --border: #e6e8ec;
  --ink: #14151a;
  --ink-muted: #6b7280;
  --ink-faint: #9aa0ab;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-tint: #eeedfd;
  --accent-ink: #ffffff;
  --danger: #dc2626;
  --danger-tint: #fef2f2;
  --danger-border: #fecaca;
  --success: #16a34a;
  --success-tint: #f0fdf4;
  --warning: #d97706;
  --warning-tint: #fffbeb;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 21, 26, 0.05);
  --shadow-md: 0 14px 30px -12px rgba(20, 21, 26, 0.12);
  --shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.15);

  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #0d0f14;
  --surface: #12141b;
  --surface-2: #181b23;
  --border: #272b35;
  --ink: #edeef3;
  --ink-muted: #9aa1af;
  --ink-faint: #6b7280;
  --accent: #8583f5;
  --accent-strong: #9997f7;
  --accent-tint: #1d1c33;
  --accent-ink: #0d0f14;
  --danger: #f87171;
  --danger-tint: #2a1416;
  --danger-border: #5c2225;
  --success: #4ade80;
  --success-tint: #13281c;
  --warning: #fbbf24;
  --warning-tint: #2b2210;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .25s var(--ease), color .25s var(--ease);
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  color: var(--ink-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img, svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: var(--ink);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.brand__mark svg {
  width: 16px;
  height: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links button {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}

.nav__links button:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav__links button.active {
  color: var(--accent);
  background: var(--accent-tint);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s var(--ease), transform .15s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

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

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-panel button {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-panel button:hover {
  color: var(--ink);
  background: var(--surface);
}

.mobile-panel button.active {
  color: var(--accent);
  background: var(--accent-tint);
}

.mobile-panel.open {
  display: flex;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  max-width: 740px;
  margin: 0 auto;
}

.hero p.sub {
  max-width: 540px;
  margin: 16px auto 0;
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- Input Form ---------- */
.hero-form-container {
  max-width: 680px;
  margin: 36px auto 0;
}

.hero-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.hero-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-sm);
}

.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.hero-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  min-width: 0;
}

.hero-form input::placeholder {
  color: var(--ink-faint);
}

.hero-form input:focus {
  outline: none;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-input-action {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s var(--ease), color .15s var(--ease);
}

.btn-input-action:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-input-action svg {
  width: 15px;
  height: 15px;
}

.btn-paste {
  color: var(--accent);
  background: var(--accent-tint);
}

.btn-paste:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.btn-clear {
  color: var(--ink-faint);
  padding: 6px;
}

.btn-clear:hover {
  color: var(--danger);
}

.btn-clear[hidden] {
  display: none;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.btn--action {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--action:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn--action-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.btn--action-outline:hover {
  background: var(--accent-tint);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}

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

/* ---------- Error & Notice Alerts ---------- */
.alert-wrap {
  max-width: 680px;
  margin: 16px auto 0;
  text-align: left;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideDown .2s var(--ease);
}

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

.alert--error {
  background: var(--danger-tint);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.alert--warning {
  background: var(--warning-tint);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.alert__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  color: inherit;
}

.alert__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.alert__close {
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
}

.alert__close:hover {
  color: var(--ink);
}

/* Chips */
.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip svg {
  width: 13px;
  height: 13px;
}

.disclaimer-line {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: center;
}

.disclaimer-line svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ink-faint);
}

/* ---------- Dynamic Results Area ---------- */
.results-container {
  max-width: 680px;
  margin: 30px auto 0;
  text-align: left;
}

/* Single Media Card */
.media-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  animation: cardIn .25s var(--ease);
}

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

.media-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.author-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.author-info {
  min-width: 0;
}

.author-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}

.author-badge-icon {
  width: 14px;
  height: 14px;
  color: #3b82f6;
}

.author-handle {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.post-type-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.media-content {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.media-thumb-box {
  width: 130px;
  height: 160px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.media-thumb-overlay svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.media-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.media-caption {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.media-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.media-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Audio Card Layout */
.audio-card-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.audio-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.audio-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.audio-info {
  flex: 1;
  min-width: 0;
}

.audio-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.audio-player {
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius-sm);
}

/* Carousel / Multi-Item Layout */
.carousel-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--accent-tint);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.carousel-overview h4 {
  font-size: 15px;
  color: var(--ink);
}

.carousel-overview p {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.carousel-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s var(--ease), border-color .15s var(--ease);
}

.carousel-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.carousel-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #000;
}

.carousel-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item-index {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.carousel-item-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.carousel-item-type svg {
  width: 11px;
  height: 11px;
}

.carousel-item-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}

.carousel-item-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.carousel-item-body .btn {
  width: 100%;
  font-size: 12.5px;
  padding: 9px 12px;
}

/* Status badge */
.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.status-dot.offline {
  background: #f59e0b;
}

/* ---------- Sections ---------- */
.section {
  padding: 68px 0;
}

.section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(23px, 3vw, 28px);
}

.section-head p {
  margin-top: 10px;
  font-size: 15px;
}

/* Features strip */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 44px;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 18px;
  position: relative;
}

.step__num {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.5px;
  line-height: 1.55;
}

.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 16.6%;
  right: 16.6%;
  height: 1px;
  background: var(--border);
  z-index: 1;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .steps::before {
    display: none;
  }
}

/* FAQ accordion */
.faq {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
}

.faq-item__q svg {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}

.faq-item.open .faq-item__q svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s var(--ease);
}

.faq-item__a p {
  padding: 0 20px 18px;
  font-size: 13.5px;
  line-height: 1.6;
}

.faq-item.open .faq-item__a {
  max-height: 200px;
}

/* ---------- Page switching ---------- */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color .2s var(--ease);
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__notice {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer__bottom {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom p {
  font-size: 12.5px;
  color: var(--ink-faint);
}

@media (max-width: 600px) {
  .hero {
    padding: 50px 0 0;
  }
  .hero-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 10px;
  }
  .input-wrap {
    width: 100%;
  }
  .hero-form .btn--primary {
    width: 100%;
    margin-top: 6px;
  }
  .media-content {
    flex-direction: column;
  }
  .media-thumb-box {
    width: 100%;
    height: 200px;
  }
  .carousel-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
  .footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Fetch Loader & Skeleton Animation (Premium Micro-Interactions)
   ========================================================================== */

.fetch-loader-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.16);
  animation: cardFadeIn 0.35s var(--ease) forwards;
  margin-top: 10px;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fetch-loader-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.28), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.15); }
}

.fetch-loader-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.fetch-loader-spinner-box {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fetch-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, transparent 0%, #6366f1 40%, #ec4899 80%, #f43f5e 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinRing 1.1s linear infinite;
}

.fetch-loader-ring-inner {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  animation: spinRing 3s linear infinite reverse;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fetch-loader-icon {
  width: 26px;
  height: 26px;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 1.8s ease-in-out infinite;
}

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

.fetch-loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.fetch-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.4s infinite ease-in-out;
}

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

.fetch-loader-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.fetch-loader-status {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  transition: opacity 0.2s var(--ease);
}

.fetch-progress-track {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.fetch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
  border-radius: 999px;
  animation: progressPulse 2.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progressPulse {
  0% { width: 8%; }
  30% { width: 45%; }
  70% { width: 82%; }
  95% { width: 95%; }
  100% { width: 8%; }
}

/* Skeleton Wireframe Preview */
.skeleton-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  opacity: 0.85;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.skeleton-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border);
}

.skeleton-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-body {
  display: flex;
  gap: 16px;
}

.skeleton-thumb {
  width: 130px;
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}

.skeleton-thumb-icon svg {
  width: 30px;
  height: 30px;
  opacity: 0.35;
}

.skeleton-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.skeleton-line {
  height: 11px;
  border-radius: 6px;
  background: var(--border);
}

.skeleton-w-20 { width: 20%; }
.skeleton-w-25 { width: 25%; }
.skeleton-w-40 { width: 40%; }
.skeleton-w-60 { width: 60%; }
.skeleton-w-75 { width: 75%; }
.skeleton-w-80 { width: 80%; }
.skeleton-w-90 { width: 90%; }

.skeleton-chips {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.skeleton-chip {
  width: 54px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.skeleton-btn {
  width: 160px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--border);
  margin-top: 4px;
}

/* Shimmer animation sweep */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
  animation: shimmerSweep 1.5s infinite;
}

html[data-theme="light"] .skeleton-shimmer::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 100%
  );
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 600px) {
  .fetch-loader-card {
    padding: 20px 16px;
  }
  .skeleton-body {
    flex-direction: column;
  }
  .skeleton-thumb {
    width: 100%;
    height: 140px;
  }
}

