:root { --r: 18px; --shadow: 0 10px 30px rgba(0,0,0,.14); }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: rgba(20, 20, 20, .95);
}

.widget { width: 100%; max-width: 980px; margin: 0 auto; padding: 12px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}

.title {
  font-weight: 750; font-size: 16px; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

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

.icon {
  border: 0; width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,.88); box-shadow: var(--shadow);
  cursor: pointer; font-size: 26px; line-height: 38px; padding: 0;
}

.dots { display: flex; gap: 6px; min-height: 10px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .28; }
.dot.active { opacity: .9; }

.frame {
  position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); background: rgba(255,255,255,.92);
}

.track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }

.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.slide img {
  width: 100%; display: block;
  user-select: none; -webkit-user-drag: none;
  object-fit: cover; background: rgba(0,0,0,.05);
  aspect-ratio: 16 / 9; /* default */
}

.caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  font-size: 13px; line-height: 1.25;
  backdrop-filter: blur(6px);
}

.status {
  position: absolute; inset: 12px 12px auto 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  font-size: 13px;
  display: none;
}

.retry {
  position: absolute; inset: auto 12px 12px auto;
  border: 0; border-radius: 999px;
  padding: 10px 12px; cursor: pointer;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.9);
  display: none;
}

.meta { margin-top: 10px; font-size: 12px; opacity: .65; display: flex; justify-content: center; }
