/* ============================================================
   PlexList 2.0
   Keine Frameworks, keine Build-Schritte. Reines CSS.
   ============================================================ */

:root {
  --plex-orange: #e5a00d;
  --plex-orange-dim: #b87d08;
  --plex-orange-glow: rgba(229, 160, 13, .22);

  --bg: #0e1015;
  --bg-raised: #161920;
  --bg-card: #1c1f27;
  --bg-hover: #242833;
  --bg-input: #10131a;

  --fg: #eceef2;
  --fg-muted: #9aa1ad;
  --fg-dim: #6b7280;

  --line: #272b35;
  --line-strong: #363b47;

  --ok: #3fb950;
  --warn: #d29922;
  --err: #f85149;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;

  --shadow: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-l: 0 12px 40px rgba(0, 0, 0, .6);

  --topbar-h: 60px;
  --tabs-h: 46px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

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

html[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #eceef2;
  --bg-input: #ffffff;

  --fg: #14161b;
  --fg-muted: #565d6a;
  --fg-dim: #858c99;

  --line: #dfe2e8;
  --line-strong: #c6cad2;

  --shadow: 0 2px 10px rgba(20, 22, 27, .10);
  --shadow-l: 0 12px 40px rgba(20, 22, 27, .18);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--plex-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--plex-orange);
  color: #17181c;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────── Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 20px;
  max-width: 1800px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand__mark {
  width: 26px; height: 26px;
  fill: var(--plex-orange);
}
.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand__accent { color: var(--plex-orange); }

/* ─────────────────────────────────────────────── Suche */
.search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 12px;
  width: 17px; height: 17px;
  fill: var(--fg-dim);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 38px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search__input::placeholder { color: var(--fg-dim); }
.search__input:focus {
  outline: none;
  border-color: var(--plex-orange);
  box-shadow: 0 0 0 3px var(--plex-orange-glow);
}
.search__input::-webkit-search-cancel-button { filter: invert(.5); }
.search__kbd {
  position: absolute;
  right: 10px;
  padding: 1px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--fg-dim);
  background: var(--bg-hover);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  pointer-events: none;
}
.search__input:focus ~ .search__kbd { opacity: 0; }

.topbar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.iconbtn:hover { background: var(--bg-hover); border-color: var(--line); }
.iconbtn svg { width: 19px; height: 19px; fill: var(--fg-muted); }
.iconbtn:hover svg { fill: var(--fg); }
.iconbtn.is-syncing svg { animation: syncspin .7s linear infinite; }

.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ─────────────────────────────────────────────── Filterpanel */
.filterpanel {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  animation: slideDown .18s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.filterpanel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 16px 20px;
}
.filtergroup { display: flex; flex-direction: column; gap: 5px; }
.filtergroup__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.filtergroup--checks {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.filtergroup--checks .filtergroup__label { margin-right: 2px; }

.select {
  height: 34px;
  min-width: 170px;
  padding: 0 30px 0 11px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa1ad' d='M2.5 4.5 6 8l3.5-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
}
.select:focus {
  outline: none;
  border-color: var(--plex-orange);
  box-shadow: 0 0 0 3px var(--plex-orange-glow);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-muted);
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 15px; height: 15px;
  accent-color: var(--plex-orange);
  cursor: pointer;
}
.check:hover { color: var(--fg); }

/* ─────────────────────────────────────────────── Tabs */
.tabs {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tabs__inner {
  display: flex;
  gap: 4px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__inner::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 13px 14px;
  background: none;
  border: 0;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s var(--ease);
}
.tab:hover { color: var(--fg); }
.tab.is-active { color: var(--plex-orange); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  background: var(--plex-orange);
  border-radius: 2px 2px 0 0;
}
.tab[hidden] { display: none; }

/* ─────────────────────────────────────────────── [hidden] global
   Das hidden-Attribut muss auch fuer Elemente greifen, die per CSS
   display: flex bekommen (#empty, .errorbox, .card__placeholder ...).
   Ohne diese Regel bleiben Empty-State und Fehlerbox dauerhaft
   sichtbar, obwohl das Attribut gesetzt ist — der Browser blendet
   per default nur aus, wenn keine display-Angabe greift. */
[hidden] {
  display: none !important;
}

/* ─────────────────────────────────────────────── Main */
.main {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--fg-muted);
}
.statusbar::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--plex-orange);
  flex-shrink: 0;
}
.statusbar.is-error::before { background: var(--err); }
.statusbar.is-loading::before {
  background: var(--plex-orange);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* ─────────────────────────────────────────────── Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 22px 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: inherit;
  border-radius: var(--radius);
}

.card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover .card__poster {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}
.card:focus-visible { outline: none; }
.card:focus-visible .card__poster {
  outline: 2px solid var(--plex-orange);
  outline-offset: 2px;
}

.card__img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card__img.is-loaded { opacity: 1; }

.card__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  /* Sichtbar, solange kein geladenes Bild da ist */
  transition: opacity .3s var(--ease);
}

/* Sobald ein Bild geladen ist, verschwindet der Platzhalter. */
.card__poster:has(.card__img.is-loaded) .card__placeholder {
  opacity: 0;
}

.card__badges {
  position: absolute;
  z-index: 2;
  top: 7px; left: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge--4k { background: var(--plex-orange); color: #17181c; }
.badge--type {
  background: rgba(255,255,255,.10);
  color: var(--fg-muted);
  font-weight: 600;
  letter-spacing: .02em;
}
.badge--watched { background: rgba(63, 185, 80, .9); color: #04220a; }
.badge--progress {
  left: 7px; right: 7px; top: auto; bottom: 7px;
  padding: 0;
  height: 3px;
  background: rgba(0, 0, 0, .6);
  overflow: hidden;
}
.badge--progress i {
  display: block;
  height: 100%;
  background: var(--plex-orange);
}

.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, .55));
  transition: opacity .2s var(--ease);
}
.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; }
.card__play span {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--plex-orange);
  color: #17181c;
}
.card__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }

.card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card__meta {
  font-size: 11.5px;
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__section {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--plex-orange-dim);
  margin-top: -4px;
}

/* ─────────────────────────────────────────────── Empty / Error */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 70px 20px;
  text-align: center;
}
.empty__icon { width: 42px; height: 42px; fill: var(--fg-dim); opacity: .5; }
.empty__title { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.empty__text { margin: 0; color: var(--fg-muted); font-size: 14px; }

.errorbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--err) 10%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--err) 40%, var(--line));
  border-radius: var(--radius);
}
.errorbox__title { margin: 0; font-weight: 600; color: var(--err); }
.errorbox__text { margin: 0; color: var(--fg-muted); font-size: 14px; }

.btn {
  padding: 8px 18px;
  background: var(--plex-orange);
  color: #17181c;
  border: 0;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: #f0ac1c; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-hover); color: var(--fg); }
.btn--wide { width: 100%; max-width: 320px; margin: 34px auto 0; display: block; }

.loadmore-wrap { display: flex; justify-content: center; }

/* ─────────────────────────────────────────────── Detail-Dialog */
.detail {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--bg-raised);
  color: var(--fg);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.detail::backdrop {
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
}
.detail__inner {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.detail__close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: rgba(0, 0, 0, .55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.detail__close svg { width: 15px; height: 15px; fill: #fff; }

.detail__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  overflow: hidden;
}
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-raised) 2%, transparent 65%);
}

.detail__head {
  position: relative;
  margin-top: -54px;
  padding: 0 26px 20px;
  z-index: 1;
}
.detail__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plex-orange);
}
.detail__title {
  margin: 4px 0 6px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--fg-muted);
}
.detail__rating { color: var(--plex-orange); font-weight: 600; }
.detail__dot { color: var(--fg-dim); }

.detail__body { padding: 0 26px 26px; }
.detail__summary {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--fg-muted);
  max-width: 68ch;
}

.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  padding: 3px 9px;
  background: var(--bg-hover);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12px;
  color: var(--fg-muted);
}
.tag--link { cursor: pointer; }
.tag--link:hover { color: var(--fg); border-color: var(--plex-orange-dim); }

.detail__sectiontitle {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.detail__seasons { display: flex; flex-direction: column; gap: 16px; }
.season__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.season__name { font-weight: 600; font-size: 14px; }
.season__count { font-size: 12px; color: var(--fg-dim); }
.episodes { display: flex; flex-direction: column; gap: 6px; }
.episode {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.episode:hover { background: var(--bg-hover); border-color: var(--line-strong); }
.episode__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-dim);
  text-align: center;
}
.episode__title {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode__sub { font-size: 11.5px; color: var(--fg-dim); }
.episode__watched {
  font-size: 11px;
  color: var(--ok);
  font-weight: 600;
  white-space: nowrap;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ─────────────────────────────────────────────── Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 11px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  font-size: 14px;
  z-index: 60;
  animation: toastIn .22s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ─────────────────────────────────────────────── Skeleton */
.card.is-skeleton .card__poster {
  background: linear-gradient(100deg,
    var(--bg-card) 30%, var(--bg-hover) 50%, var(--bg-card) 70%);
  background-size: 240% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to   { background-position: -40% 0; }
}

/* ─────────────────────────────────────────────── Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 12px; }
}

@media (max-width: 640px) {
  .topbar__inner { padding: 0 14px; gap: 10px; }
  .brand__name { display: none; }
  .search { max-width: none; }
  .search__kbd { display: none; }
  .tabs__inner { padding: 0 14px; }
  .main { padding: 16px 14px 70px; }
  .filterpanel__inner { padding: 14px; gap: 12px; }
  .select { min-width: 0; width: 100%; }
  .filtergroup { flex: 1 1 140px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px 10px; }
  .card__title { font-size: 12px; }
  .detail__head { padding: 0 18px 16px; }
  .detail__body { padding: 0 18px 20px; }
  .detail__title { font-size: 20px; }
  .episode { grid-template-columns: 30px 1fr; }
  .episode__watched { display: none; }
}

/* ─────────────────────────────────────────────── Reduced Motion */
/* ─────────────────────────────────────────────── Landing */
.landing {
  margin-bottom: 28px;
}

.landing__intro {
  margin-bottom: 22px;
}

.landing__title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.landing__sub {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

.landing__groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.landing__group {
  min-width: 0;
}

.landing__grouptitle {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.landing__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.landing__count::before {
  content: "(";
}
.landing__count::after {
  content: ")";
}

.grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* ─────────────────────────────────────────────── Badges */
.badge--variants {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fg);
  font-weight: 600;
}

/* ─────────────────────────────────────────────── Detail-Qualitaet */
.detail__quality {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  color: var(--plex-orange);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.detail__note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--plex-orange);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  color: var(--fg-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────────────────────────────────────── Sync-Anzeige */

.syncstatus {
  margin: 0;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-alt, var(--bg));
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.syncstatus[hidden] { display: none !important; }

#sync-btn svg { width: 20px; height: 20px; fill: currentColor; }
#sync-btn:disabled { opacity: .5; cursor: progress; }

/* Lade-Animation, waehrend ein Sync laeuft */
.syncstatus.is-syncing::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: syncspin .7s linear infinite;
  vertical-align: -1px;
}

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