:root {
  --bg: #e4e7ef;
  --text: #333a4d;
  --muted: #5c6377;      /* verified ≥4.5:1 on --bg */
  --faint: #616778;      /* secondary text, ≥4.5:1 on --bg */
  --accent: #5866e6;     /* large text / icons / fills */
  --accent-ink: #3a41b5; /* accent for SMALL text, ≥4.5:1 on --bg */
  --accent-2: #6f79ea;
  --danger: #b12742;     /* error text, ≥4.5:1 on --bg */
  --ok: #2f9e6b;
  --ok-ink: #15693f;     /* green for SMALL text, ≥4.5:1 on --bg */
  --screen: #14161f;     /* device screen (video letterbox) */
  --sh-dark: #b9bdcc;
  --sh-light: #ffffff;
  --radius: 22px;
  --space: 20px;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win over display rules. */
[hidden] { display: none !important; }

/* Visible keyboard focus (a11y priority 1). */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}
a, button, input { -webkit-tap-highlight-color: transparent; }

/* Respect reduced-motion preferences (a11y priority 7). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---- Neumorphism primitives -------------------------------------------- */
.neu-raised {
  background: var(--bg);
  box-shadow: 7px 7px 16px var(--sh-dark), -7px -7px 16px var(--sh-light);
}
.neu-inset {
  background: var(--bg);
  box-shadow: inset 5px 5px 10px var(--sh-dark), inset -5px -5px 10px var(--sh-light);
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 36px 20px;
}

/* ---- Hero -------------------------------------------------------------- */
.hero { text-align: center; margin-bottom: 30px; }
.brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 20px; margin-bottom: 22px;
  transition: transform .15s ease, box-shadow .18s ease;
}
.brand:hover { transform: translateY(-2px); }
.brand img { display: block; border-radius: 15px; }
.hero h1 {
  font-size: clamp(27px, 5.2vw, 42px);
  line-height: 1.08; margin: 0 0 14px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text);
}
.hero h1 span { color: var(--accent); }
.sub { color: var(--muted); margin: 0 auto; max-width: 520px; font-size: 15px; line-height: 1.55; }

/* ---- Search ------------------------------------------------------------ */
.search { display: flex; flex-direction: column; gap: 16px; }
.input-row {
  display: flex; align-items: center; gap: 8px;
  border-radius: var(--radius);
  padding: 8px 8px 8px 18px;
}
.link-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
#url {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 16px; padding: 14px 4px; outline: none; min-width: 0;
}
#url::placeholder { color: var(--faint); }

/* Small raised button (Paste, Play) */
.neu-btn-sm, .neu-btn {
  border: none; cursor: pointer; color: var(--text);
  background: var(--bg); font-weight: 600;
  box-shadow: 4px 4px 9px var(--sh-dark), -4px -4px 9px var(--sh-light);
  transition: box-shadow .18s ease, transform .1s ease, color .18s;
}
.neu-btn-sm {
  border-radius: 12px; padding: 0 18px; min-height: 44px; font-size: 14px; flex: none;
}
.neu-btn-sm:hover, .neu-btn:hover { color: var(--accent); }
.neu-btn-sm:active, .neu-btn:active {
  box-shadow: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
  transform: translateY(1px);
}

/* Primary raised CTA */
.neu-btn-primary {
  position: relative; border: none; cursor: pointer;
  background: var(--bg); color: var(--accent);
  font-size: 16px; font-weight: 800; letter-spacing: 0.2px;
  border-radius: var(--radius); padding: 17px 20px; min-height: 56px;
  box-shadow: 6px 6px 14px var(--sh-dark), -6px -6px 14px var(--sh-light);
  transition: box-shadow .18s ease, transform .1s ease, filter .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.neu-btn-primary:hover { filter: brightness(1.01); }
.neu-btn-primary:active {
  box-shadow: inset 5px 5px 11px var(--sh-dark), inset -5px -5px 11px var(--sh-light);
  transform: translateY(1px);
}
.neu-btn-primary:disabled { cursor: default; color: var(--muted); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(88, 102, 230, 0.3); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Error ------------------------------------------------------------- */
.error-block { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.error {
  flex: 1 1 260px; margin: 0; color: var(--danger); font-size: 14px; font-weight: 600;
  border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
}
.report-error-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  color: var(--danger); white-space: nowrap;
}
.report-error-btn svg { color: var(--danger); }
.report-inline-status { font-size: 13px; font-weight: 700; color: var(--ok-ink); }

/* ---- Result card ------------------------------------------------------- */
.card {
  margin-top: 24px; border-radius: 26px; padding: 22px;
  animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.media { display: flex; gap: 18px; align-items: flex-start; }
.thumb-wrap { position: relative; flex: none; width: 176px; border-radius: 16px; padding: 8px; }
.thumb-wrap img {
  width: 100%; height: 96px; object-fit: cover; border-radius: 10px;
  background: var(--screen); display: block;
}
.duration {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(20,22,31,0.82); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 7px;
}
.meta { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.badge {
  align-self: flex-start;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--accent-ink); padding: 5px 12px; border-radius: 999px;
}
.meta h2 {
  font-size: 16.5px; margin: 0; line-height: 1.35; font-weight: 700; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.uploader { color: var(--muted); font-size: 13px; margin: 0; }
.play-btn {
  align-self: flex-start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px; min-height: 44px; font-size: 14px;
}
.play-btn svg { color: var(--accent); }

/* ---- Adaptive player --------------------------------------------------- */
.player-stage { margin-top: 22px; display: flex; justify-content: center; }

.device { max-width: 100%; }
.device-loading, .device-error {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #cdd2e4; font-size: 13px; font-weight: 600; text-align: center; padding: 16px;
  z-index: 3;
}
.device video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--screen); }

/* Laptop frame (landscape) */
.device.laptop { width: min(580px, 100%); }
.laptop-screen {
  border-radius: 18px; padding: 12px; background: var(--bg);
  box-shadow: 7px 7px 16px var(--sh-dark), -7px -7px 16px var(--sh-light);
}
.laptop-viewport {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: var(--screen);
  box-shadow: inset 3px 3px 7px rgba(0,0,0,0.5);
}
.laptop-base {
  height: 16px; width: 116%; margin: 10px -8% 0;
  border-radius: 3px 3px 14px 14px; background: var(--bg);
  box-shadow: 6px 8px 14px var(--sh-dark), -6px -6px 14px var(--sh-light);
  position: relative;
}
.laptop-base::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 84px; height: 7px; border-radius: 0 0 8px 8px;
  box-shadow: inset 2px 2px 4px var(--sh-dark), inset -2px -2px 4px var(--sh-light);
}

/* Phone frame (portrait) */
.device.phone { width: min(272px, 78vw); }
.phone-frame {
  border-radius: 40px; padding: 14px; background: var(--bg); position: relative;
  box-shadow: 8px 8px 18px var(--sh-dark), -8px -8px 18px var(--sh-light);
}
.phone-viewport {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 28px; overflow: hidden; background: var(--screen);
  box-shadow: inset 3px 3px 7px rgba(0,0,0,0.5);
}
.phone-notch {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 20px; border-radius: 0 0 14px 14px; background: var(--bg); z-index: 4;
  box-shadow: 2px 3px 6px var(--sh-dark);
}

/* ---- Trim panel -------------------------------------------------------- */
.trim-panel { margin-top: 22px; }
.trim-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.trim-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.trim-title svg { color: var(--accent); }
.linklike {
  border: none; background: none; cursor: pointer;
  color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 6px 4px;
}
.linklike:hover { text-decoration: underline; }

/* Dual-handle range slider (two overlaid range inputs) */
.trim-slider { position: relative; height: 34px; }
.trim-track {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  height: 14px; border-radius: 999px;
}
.trim-range {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 1px 1px 4px rgba(70, 80, 200, 0.4);
}
.trim-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.trim-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--bg);
  box-shadow: 3px 3px 7px var(--sh-dark), -3px -3px 7px var(--sh-light),
              inset 0 0 0 4px var(--accent);
}
.trim-input::-webkit-slider-thumb:active { cursor: grabbing; }
.trim-input::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 26px; height: 26px; border-radius: 50%; border: 4px solid var(--accent);
  background: var(--bg); box-shadow: 3px 3px 7px var(--sh-dark), -3px -3px 7px var(--sh-light);
}
.trim-input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }

.trim-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; flex-wrap: wrap;
}
.trim-readout {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text);
  font-size: 14px; text-align: center; flex: 1; min-width: 150px;
}
.trim-readout .len { color: var(--accent-ink); }

/* ---- Download tiers ---------------------------------------------------- */
.options-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.report-trigger {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
.report-trigger:hover { color: var(--accent-ink); }
.report-trigger svg { color: inherit; }
.clip-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--accent-ink); padding: 5px 12px; border-radius: 999px;
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.options { margin-top: 24px; }
.options h3 {
  font-size: 12px; color: var(--muted); font-weight: 700; margin: 0;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 14px; }

/* ---- Carousel Gallery Preview ------------------------------------------- */
.carousel-gallery { margin-top: 22px; margin-bottom: 22px; }
.carousel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.carousel-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.6px;
}
.carousel-title svg { color: var(--accent); }
.carousel-counter { font-size: 12px; font-weight: 700; color: var(--accent-ink); }

.carousel-type-badge {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  font-size: 10px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: #fff; background: rgba(20, 22, 31, 0.72); padding: 4px 9px; border-radius: 999px;
}

.carousel-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px;
}
.carousel-item-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.gallery-download-btn {
  flex: none; display: inline-flex !important; align-items: center; gap: 8px;
  padding: 10px 16px; min-height: 40px; font-size: 13px;
}
.gallery-download-btn svg { color: var(--accent); }

.carousel-stage {
  position: relative; width: 100%; height: 320px; border-radius: 18px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.carousel-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in;
  transition: transform 0.2s ease;
}
.carousel-stage img:hover { transform: scale(1.02); }

/* TeraBox "watch on original" fallback overlay */
.tera-fallback {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 18px; pointer-events: none;
  background: linear-gradient(to top, rgba(20,22,31,0.72) 0%, rgba(20,22,31,0.12) 45%, transparent 70%);
}
.tera-fallback-inner { text-align: center; pointer-events: auto; }
.tera-fallback-inner p { color: #eef0f8; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.tera-watch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px; min-height: 44px; font-size: 14px;
  font-weight: 700; text-decoration: none; color: var(--text);
}
.tera-watch-btn svg { color: var(--accent); }

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--bg); color: var(--text); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  z-index: 5; transition: box-shadow 0.15s ease, color 0.15s ease;
}
.carousel-nav:hover { color: var(--accent); }
.carousel-nav:active { box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light); }
.carousel-nav.prev-btn { left: 14px; }
.carousel-nav.next-btn { right: 14px; }

.carousel-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px 4px 4px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.carousel-thumb-item {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; background: var(--bg);
  box-shadow: 3px 3px 8px var(--sh-dark), -3px -3px 8px var(--sh-light);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.carousel-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-thumb-item.video-item { position: relative; }
.carousel-thumb-item.video-item::after {
  content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.7);
  color: #ffffff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); pointer-events: none; padding-left: 2px;
}
.carousel-thumb-item.active {
  border-color: var(--accent);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}

.tier.zip-tier {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(100, 110, 255, 0.08), rgba(60, 200, 240, 0.08));
  border: 1px solid rgba(100, 110, 255, 0.2);
  color: var(--accent-ink);
  font-size: 15px; font-weight: 800; justify-content: center; gap: 12px;
}

.tier {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: none; cursor: pointer; background: var(--bg); color: var(--text);
  border-radius: 14px; padding: 13px 15px; min-height: 50px;
  font-size: 14px; font-weight: 700; text-align: left;
  box-shadow: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  transition: box-shadow .18s ease, transform .1s ease, color .15s;
}
.tier:hover { color: var(--accent); }
.tier:active, .tier.selected {
  box-shadow: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
  transform: translateY(1px);
}
.tier .tier-main { display: flex; align-items: center; gap: 8px; }
.tier .tag { font-size: 10px; font-weight: 800; color: var(--ok-ink); }
.tier .size { color: var(--muted); font-size: 12px; font-weight: 600; }
.tier.audio .tier-main { color: var(--accent-ink); }
.tier:disabled { cursor: default; opacity: 0.55; }
.tier:disabled:hover { color: var(--text); }

/* ---- Progress ---------------------------------------------------------- */
.progress-box { margin-top: 24px; }
.progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
#progress-label { color: var(--text); font-weight: 700; }
#progress-meta { font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: 999px; padding: 3px; }
.bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 1px 1px 3px rgba(70, 80, 200, 0.4);
  transition: width .25s ease;
}
.bar-fill.done { background: linear-gradient(90deg, var(--ok), #46b98a); }

/* ---- Bottom-left floating menu ----------------------------------------- */
.bottom-brand-wrap {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
}

.brand-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: var(--bg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-float:hover {
  transform: translateY(-2px);
}
.brand-float:active {
  transform: translateY(1px);
  box-shadow: inset 4px 4px 8px var(--sh-dark), inset -4px -4px 8px var(--sh-light);
}
.brand-float img {
  display: block;
  border-radius: 12px;
}

.brand-menu {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 220px;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuPop .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes menuPop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(185, 189, 204, 0.3);
  margin-bottom: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.menu-item svg {
  color: var(--accent);
  flex: none;
}
.menu-item:hover {
  background: rgba(88, 102, 230, 0.08);
  color: var(--accent-ink);
}

/* ---- Modals ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 22, 31, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 82vh;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.15), -12px -12px 30px var(--sh-light);
  animation: cardSlideUp .22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(185, 189, 204, 0.4);
}
.modal-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.3px;
}
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-body {
  overflow-y: auto;
  padding-top: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--accent-ink);
}
.modal-body p {
  margin: 0 0 12px;
  color: var(--text);
}
.modal-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.modal-body li {
  margin-bottom: 6px;
}

/* ---- Report an issue form ----------------------------------------------- */
.report-form { display: flex; flex-direction: column; gap: 16px; }
.report-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.report-field input[type="text"],
.report-field input[type="email"],
.report-field textarea {
  font: inherit; font-weight: 500; font-size: 14px; color: var(--text);
  border: none; border-radius: 12px; padding: 12px 14px; resize: vertical;
  background: var(--bg);
  box-shadow: inset 4px 4px 9px var(--sh-dark), inset -4px -4px 9px var(--sh-light);
}
.report-field input:focus-visible, .report-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.report-checkbox { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.report-checkbox input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.report-shot-preview { margin-top: 10px; border-radius: 12px; padding: 6px; box-shadow: inset 3px 3px 7px var(--sh-dark), inset -3px -3px 7px var(--sh-light); }
.report-shot-preview img { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; }
.report-status { margin: 0; font-size: 13px; font-weight: 700; min-height: 18px; }
.report-status.ok { color: var(--ok-ink); }
.report-status.err { color: var(--danger); }
.report-actions { display: flex; justify-content: flex-end; }
.report-submit-btn { min-width: 160px; padding: 13px 20px; font-size: 14px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 560px) {
  .wrap { padding: 24px 14px; }
  .card { padding: 18px 14px; border-radius: 22px; }
  .media { flex-direction: column; align-items: stretch; gap: 14px; }
  .thumb-wrap { width: 100%; max-width: 100%; border-radius: 16px; padding: 6px; }
  .thumb-wrap img { height: 200px; border-radius: 12px; }
  .play-btn { width: 100%; justify-content: center; }
  .bottom-brand-wrap { left: 14px; bottom: 14px; }
  .brand-float { width: 44px; height: 44px; }
}

/* ---- Blog & SEO Article Styles ----------------------------------------- */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
}
.brand-logo-sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 4px 4px 9px var(--sh-dark), -4px -4px 9px var(--sh-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: transform .15s ease, color .15s ease;
}
.nav-btn:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.blog-hero {
  text-align: center;
  margin-bottom: 40px;
}
.blog-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.blog-title {
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.blog-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.feature-card {
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}
.feature-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.feature-card li {
  margin-bottom: 6px;
}

.seo-article {
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-top: 40px;
}
.seo-article h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.seo-article h2:first-child { margin-top: 0; }
.seo-article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent-ink);
}
.seo-article p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.seo-article ul, .seo-article ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 24px;
}
.seo-article li {
  margin-bottom: 8px;
}

.seo-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.seo-badge {
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
}

.faq-section {
  margin-top: 48px;
}
.faq-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
}
.faq-card {
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.faq-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-card h3 svg {
  color: var(--accent);
  flex: none;
}
.faq-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.cta-banner {
  text-align: center;
  border-radius: var(--radius);
  padding: 40px 24px;
  margin: 48px 0;
  background: var(--bg);
}
.cta-banner h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
}
.cta-banner p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  box-shadow: 5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light);
  transition: transform .18s ease, background .18s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
}

/* ---- Footer ------------------------------------------------------------ */
.foot {
  margin-top: 36px;
  padding: 16px 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.foot-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--bg);
  box-shadow: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
  transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.foot-btn:hover {
  transform: translateY(-2px);
  color: var(--accent);
  box-shadow: 6px 6px 14px var(--sh-dark), -6px -6px 14px var(--sh-light);
}
.foot-btn svg {
  color: var(--accent);
  flex: none;
}
.foot-note {
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  font-weight: 500;
  text-align: center;
}


