/* ============================================================================
   site.css — design system for iptvplayer.top
   Pass: visual refresh (Phase 1, May 2026)
   ========================================================================= */

/* ---------- Tokens ----------------------------------------------------- */
:root {
  /* Brand — green family (continues existing text-bg-success accent) */
  --brand-50:  #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #14532d;

  /* Neutral / surfaces */
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;

  --border:        #e5e7eb;
  --border-strong: #cbd5e1;

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --text-on-brand: #ffffff;

  /* Radii / shadows / spacing */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, .08);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, .12);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-8: 48px;  --sp-10: 64px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 64px;
}

/* ---------- Base ------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-1);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--text-1); font-weight: 700; line-height: 1.2; margin: 0 0 var(--sp-3); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

img { max-width: 100%; height: auto; }

/* ---------- Layout ----------------------------------------------------- */
.app-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4); }

.page { padding: var(--sp-6) 0 var(--sp-10); }

.page-header { margin-bottom: var(--sp-5); }
.page-header h1 { margin: 0 0 var(--sp-2); }
.page-header p   { margin: 0; color: var(--text-2); }

/* ---------- Navbar ----------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.site-nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--sp-5);
  max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4);
}
.site-nav__brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: 1.05rem; color: var(--text-1);
}
.site-nav__brand:hover { text-decoration: none; color: var(--brand-700); }
.site-nav__brand i { color: var(--brand-600); }

.site-nav__links { display: flex; gap: var(--sp-2); align-items: center; flex: 1; }
.site-nav__link {
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500;
}
.site-nav__link:hover { background: var(--surface-2); color: var(--text-1); text-decoration: none; }
.site-nav__link.is-active { color: var(--brand-700); background: var(--brand-50); }

.site-nav__search {
  margin-left: auto;
  display: flex; align-items: center;
  background: var(--surface-2); border-radius: var(--r-pill);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3);
  min-width: 220px; max-width: 320px;
}
.site-nav__search input {
  border: 0; background: transparent; outline: 0; flex: 1;
  font-size: 0.95rem; color: var(--text-1);
}
.site-nav__search button {
  border: 0; background: var(--brand-600); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.site-nav__search button:hover { background: var(--brand-700); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav__search { min-width: 0; flex: 1; }
}

/* Dropdown overrides — match the green/light brand */
.site-nav__link.dropdown-toggle {
  background: transparent; border: 0;
  font: inherit; line-height: inherit;
}
.site-nav__link.dropdown-toggle::after { margin-left: 6px; }
.site-nav__dropdown {
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: 6px; min-width: 220px;
}
.site-nav__dropdown .dropdown-item {
  border-radius: var(--r-sm); padding: 8px 12px; color: var(--text-1);
}
.site-nav__dropdown .dropdown-item:hover,
.site-nav__dropdown .dropdown-item:focus {
  background: var(--brand-50); color: var(--brand-800);
}
.site-nav__dropdown .dropdown-divider { margin: 6px 4px; }
.site-nav__dropdown .dropdown-item img {
  width: 24px; vertical-align: middle; border-radius: 2px; margin-right: 6px;
}
/* Fixed-width icons so dropdown-item text starts at the same x-position */
.site-nav__dropdown .dropdown-item i.dd-icon {
  display: inline-block; width: 22px; text-align: center; margin-right: 6px;
}
.site-nav__dropdown .dropdown-item { display: flex; align-items: center; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-0);
  margin-top: var(--sp-10);
  padding: var(--sp-6) 0;
  color: var(--text-2);
  font-size: 0.9rem;
}
.site-footer__inner { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- Cards & Grids --------------------------------------------- */
.card-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Channel card (YouTube-style) */
.channel-card {
  display: block; background: var(--surface-0);
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: 120ms ease;
  text-decoration: none; color: inherit;
}
.channel-card:hover {
  border-color: var(--brand-500); transform: translateY(-2px);
  box-shadow: var(--sh-md); text-decoration: none;
}
.channel-card__thumb {
  aspect-ratio: 16 / 9; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.channel-card__thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: var(--sp-3);
  background: #fff;
}
.channel-card__body { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.channel-card__title {
  font-weight: 600; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3; font-size: 0.95rem;
}

/* Country chip — compact row item */
.country-chip-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.country-chip {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  font-weight: 500; color: var(--text-1);
  transition: 120ms ease; text-decoration: none;
}
.country-chip:hover {
  border-color: var(--brand-500); background: var(--brand-50);
  text-decoration: none; color: var(--brand-800); transform: translateY(-1px);
}
.country-chip img { width: 26px; height: 19px; flex: 0 0 26px; border-radius: 2px; }
.country-chip span { font-size: 0.95rem; line-height: 1.2; }

/* Category chip — icon + name */
.category-chip-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.category-chip {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: var(--sp-3);
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-5) var(--sp-3);
  font-weight: 600; color: var(--text-1);
  min-height: 130px;
  transition: 120ms ease;
}
.category-chip:hover {
  border-color: var(--brand-500); background: var(--brand-50);
  text-decoration: none; color: var(--brand-800); transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.category-chip i {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-700);
  border-radius: var(--r-md); font-size: 1.5rem;
  transition: 120ms ease;
}
.category-chip:hover i {
  background: var(--brand-600); color: #fff;
}
.category-chip span { font-size: 0.95rem; }

/* Badges */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-2);
  font-size: 0.8rem; font-weight: 500; line-height: 1.2;
}
.badge-pill--brand { background: var(--brand-100); color: var(--brand-800); }

/* Chip-bar — horizontal scrollable filter/nav row above channel grids */
.chip-bar {
  display: flex; gap: var(--sp-2);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.chip-bar::-webkit-scrollbar { height: 4px; }
.chip-bar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--surface-0); color: var(--text-2);
  font-size: 0.88rem; font-weight: 500; white-space: nowrap;
  flex-shrink: 0; text-decoration: none;
  border: 1px solid var(--border); transition: 120ms ease;
}
.chip:hover {
  background: var(--brand-50); color: var(--brand-800);
  border-color: var(--brand-200); text-decoration: none;
}
.chip.is-active {
  background: var(--brand-600); color: #fff; border-color: var(--brand-600);
}
.chip i { font-size: 0.85em; }
.chip img { width: 18px; height: 13px; border-radius: 2px; }
.chip.chip--ghost { background: transparent; }

/* Filter input row */
.filter-row {
  display: flex; justify-content: center;
  margin-bottom: var(--sp-5);
}
.filter-input {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  min-width: 280px; max-width: 480px; width: 100%;
  box-shadow: var(--sh-sm);
}
.filter-input input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 0.95rem; color: var(--text-1);
}
.filter-input .clear-btn {
  border: 0; background: var(--surface-2); color: var(--text-2);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-input .clear-btn:hover { background: var(--surface-3); color: var(--text-1); }

/* ---------- Player page ----------------------------------------------- */
.player-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-5);
}
@media (max-width: 980px) {
  .player-layout { grid-template-columns: 1fr; }
}

.player-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--sh-sm);
}
.player-title {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4);
}
.player-title img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: contain; background: var(--surface-2); padding: 2px; }
.player-title h1 { margin: 0; font-size: 1.4rem; }

.player-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.related-card {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); box-shadow: var(--sh-sm);
}
.related-card h6 {
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2);
  font-size: 0.8rem; font-weight: 700; margin: 0 0 var(--sp-3);
}
.related-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2); border-radius: var(--r-sm);
  text-decoration: none; color: inherit; transition: 120ms ease;
}
.related-item:hover { background: var(--surface-1); text-decoration: none; }
.related-item img {
  width: 56px; height: 40px; flex: 0 0 56px;
  border-radius: 6px; object-fit: contain; background: var(--surface-2); padding: 4px;
}
.related-item__title {
  font-size: 0.9rem; font-weight: 500; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3;
}

/* Clappr wrapper (force aspect-ratio) */
.player-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--r-sm); overflow: hidden;
}
.player-wrap > div, .player-wrap [data-player] { width: 100% !important; height: 100% !important; }

/* ---------- TV-Player (/tv-player) ----------------------------------- */
.tvplayer-layout {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 980px) {
  .tvplayer-layout { grid-template-columns: 1fr; }
}

.tvplayer-sidebar {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: var(--sp-3);
  max-height: calc(100vh - var(--nav-h) - 80px);
  overflow-y: auto;
  position: sticky; top: calc(var(--nav-h) + 12px);
}
@media (max-width: 980px) {
  .tvplayer-sidebar { position: static; max-height: 50vh; }
}

.tvplayer-modes {
  display: flex; gap: 4px; background: var(--surface-2);
  padding: 4px; border-radius: var(--r-pill); margin-bottom: var(--sp-3);
}
.tvplayer-mode {
  flex: 1; border: 0; background: transparent; color: var(--text-2);
  padding: 6px 8px; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: 120ms ease;
}
.tvplayer-mode:hover { color: var(--text-1); }
.tvplayer-mode.is-active {
  background: var(--surface-0); color: var(--brand-700);
  box-shadow: var(--sh-sm);
}

.tvplayer-list {
  list-style: none; padding: 0; margin: 0;
}
.tvplayer-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--text-1); text-decoration: none; font-size: 0.92rem;
  transition: 120ms ease;
}
.tvplayer-list a:hover {
  background: var(--brand-50); color: var(--brand-800); text-decoration: none;
}
.tvplayer-list .back { color: var(--text-2); font-weight: 600; }
.tvplayer-list .back:hover { background: var(--surface-2); color: var(--text-1); }
.tvplayer-list img { width: 22px; flex: 0 0 22px; border-radius: 2px; }

.tvplayer-loader {
  display: none; text-align: center; padding: var(--sp-4);
  color: var(--text-3); font-size: 0.85rem;
}
.tvplayer-loader.is-visible { display: block; }
.tvplayer-loader i { animation: tvplayerSpin 800ms linear infinite; }
@keyframes tvplayerSpin { to { transform: rotate(360deg); } }

.tvplayer-main {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  padding: var(--sp-4);
}
.tvplayer-banner {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3);
  min-height: 44px;
}
.tvplayer-banner img { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: contain; background: var(--surface-2); padding: 2px; }
.tvplayer-banner h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* The Clappr player aspect-ratio wrapper */
.tvplayer-wrap {
  position: relative; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--r-sm); overflow: hidden;
}
.tvplayer-wrap > div, .tvplayer-wrap [data-player] { width: 100% !important; height: 100% !important; }

/* Floating action buttons (⚙ settings, ⭐ favorites) */
.tvplayer-fab {
  position: fixed; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-600); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; box-shadow: var(--sh-md);
  z-index: 90; transition: 120ms ease;
}
.tvplayer-fab:hover { background: var(--brand-700); transform: scale(1.05); }
.tvplayer-fab--settings { bottom: 24px; }
.tvplayer-fab--favs     { bottom: 84px; }

/* ---------- Share cluster (collapsed -> reveals platforms) ----------- */
.share-cluster { margin-top: var(--sp-5); }
.share-cluster__row {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
}
.share-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--brand-600); color: #fff; border: 0;
  font-weight: 600; cursor: pointer; box-shadow: var(--sh-sm);
  transition: 120ms ease;
}
.share-toggle:hover { background: var(--brand-700); }
.share-toggle .chev { transition: transform 200ms ease; }
.share-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.share-buttons {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 250ms ease, opacity 200ms ease;
}
.share-buttons.is-open { max-height: 200px; opacity: 1; }

.share-toast {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--brand-100); color: var(--brand-800);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  font-size: 0.85rem; font-weight: 500;
  opacity: 0; transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.share-toast.is-shown { opacity: 1; transform: translateY(0); }

/* ---------- Responsive Share Buttons (adapted from rtlive) ----------- */
.resp-sharing-button__link,
.resp-sharing-button__icon { display: inline-block; }
.resp-sharing-button__link { text-decoration: none; color: #fff; line-height: 1; }
.resp-sharing-button {
  border-radius: var(--r-sm); transition: 100ms ease-out;
  padding: 8px 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
}
.resp-sharing-button:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.resp-sharing-button__icon svg { width: 1.1em; height: 1.1em; vertical-align: top; }
.resp-sharing-button__icon { stroke: #fff; fill: none; }
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle { fill: #fff; stroke: none; }

.resp-sharing-button--facebook   { background:#3b5998; }
.resp-sharing-button--facebook:hover { background:#2d4373; }
.resp-sharing-button--twitter, .resp-sharing-button--x { background:#000; }
.resp-sharing-button--twitter:hover, .resp-sharing-button--x:hover { background:#222; }
.resp-sharing-button--whatsapp   { background:#25D366; }
.resp-sharing-button--whatsapp:hover { background:#1DA851; }
.resp-sharing-button--telegram   { background:#27A6E5; }
.resp-sharing-button--telegram:hover { background:#1487b8; }
.resp-sharing-button--email      { background:#777; }
.resp-sharing-button--email:hover { background:#5e5e5e; }
.resp-sharing-button--reddit     { background:#5f99cf; }
.resp-sharing-button--reddit:hover { background:#3a80c1; }
.resp-sharing-button--linkedin   { background:#0077b5; }
.resp-sharing-button--linkedin:hover { background:#046293; }
.resp-sharing-button--pinterest  { background:#bd081c; }
.resp-sharing-button--pinterest:hover { background:#8c0615; }
.resp-sharing-button--tumblr     { background:#35465C; }
.resp-sharing-button--tumblr:hover { background:#222d3c; }
.resp-sharing-button--xing       { background:#1a7576; }
.resp-sharing-button--xing:hover { background:#114c4c; }
.resp-sharing-button--vk         { background:#507299; }
.resp-sharing-button--vk:hover   { background:#43648c; }
.resp-sharing-button--hackernews { background:#FF6600; }
.resp-sharing-button--hackernews:hover { background:#FB6200; }
.resp-sharing-button--copy       { background: var(--surface-3); color: var(--text-2); }
.resp-sharing-button--copy:hover { background: var(--border-strong); color: var(--text-1); }
.resp-sharing-button--copy svg   { fill: currentColor; stroke: none; }

/* ---------- Modal polish (contact / settings / favorites) ------------ */
.modal-content {
  border: 0; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-1);
}
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-body { padding: var(--sp-5); }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-5);
}
/* Form controls inside modals — rounded, branded focus ring */
.modal .form-label {
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.01em;
  color: var(--text-2); margin-bottom: 5px;
}
.modal .form-control {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: 10px 14px; font-size: 0.95rem;
  background: var(--surface-1);
  transition: 120ms ease;
}
.modal .form-control:hover { border-color: var(--border-strong); }
.modal .form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
  background: var(--surface-0);
  outline: 0;
}
.modal .btn-secondary {
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font-weight: 600;
}
.modal .btn-secondary:hover { background: var(--surface-3); color: var(--text-1); }

/* ---------- Misc utilities -------------------------------------------- */
.spacer { height: var(--sp-6); }
.text-muted-2 { color: var(--text-2); }
.lift-on-hover:hover { transform: translateY(-2px); transition: 120ms ease; }
.btn-brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  background: var(--brand-600); color: #fff; border: 0; font-weight: 600;
  cursor: pointer; transition: 120ms ease;
}
.btn-brand:hover { background: var(--brand-700); color: #fff; text-decoration: none; }

/* Back-to-top floating button (homepage / list pages) */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--sh-md); z-index: 90; cursor: pointer;
}
.back-to-top:hover { background: var(--brand-700); color: #fff; text-decoration: none; }
.back-to-top.is-visible { display: inline-flex; }
