/* Shows desktop */
.page-shows { background: #0b0d12; color: #e6f0e6; font-family: system-ui, sans-serif; }
/* style.css impose body { height:100vh; overflow:hidden } pour le dashboard.
   Les pages Shows utilisent le scroll natif du document. */
body.page-shows { height: auto; overflow: auto; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #1f2a36; }
.topbar h1 { font-size: 20px; margin: 0; }
.app-tabs { display: flex; gap: 4px; }
.app-tabs button { background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.app-tabs button.on { background: #00F544; color: #000; border-color: #00F544; }
.movie-watch { display: flex; align-items: center; gap: 10px; margin: 10px 0; }

.topbar .back { color: #8aa; text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar button, .topbar .top-btn { background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 8px 14px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 14px; }
.topbar button.on { background: #00F544; color: #000; border-color: #00F544; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.toolbar input { flex: 1; max-width: 500px; background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.toolbar button { background: #00F544; color: #000; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.toolbar .cancel { background: #1f2a36; color: #e6f0e6; }
.filters-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters-bar select { background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
#search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.result-card { display: flex; gap: 12px; background: #131a22; border: 1px solid #1f2a36; border-radius: 10px; padding: 12px; }
.result-card img { width: 64px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; }
.result-card .meta { flex: 1; }
.result-card h3 { margin: 0 0 4px; font-size: 15px; }
.result-card .sub { font-size: 12px; color: #8aa; }
.result-card .actions { display: flex; flex-direction: column; gap: 6px; align-self: center; }
.result-card button { background: #00F544; color: #000; border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.result-card .added-tag { font-size: 12px; color: #00F544; text-align: center; font-weight: 600; }
.result-card .sg-btn { display: block; background: #1f2a36; color: #8cf; border: 1px solid #2a3a4a; border-radius: 6px; padding: 6px 12px; font-size: 12px; text-align: center; text-decoration: none; margin-top: 6px; }
.result-card .sg-link { font-size: 12px; color: #8cf; text-align: center; text-decoration: none; }
#shows-grid { display: block; }
.section-title { font-size: 16px; color: #8aa; margin: 20px 0 10px; padding-bottom: 4px; border-bottom: 1px solid #1f2a36; }
.section-title:first-child { margin-top: 0; }
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 8px; }
.show-card { background: #131a22; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; }
.show-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #000; }
.show-card .info { padding: 10px; }
.show-card h3 { margin: 0; font-size: 14px; }
.badges { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #1f2a36; color: #bcd; }
.badge.since { color: #00F544; }
.badge.until { color: #5af; }
.card-overlay { position: absolute; top: 8px; right: 8px; min-width: 30px; padding: 4px 8px; border-radius: 14px; font-size: 14px; font-weight: 700; text-align: center; backdrop-filter: blur(4px); z-index: 2; }
.card-overlay.since { background: rgba(0,0,0,0.55); color: #00F544; border: 1px solid rgba(0,245,68,0.4); }
.card-overlay.until { background: rgba(0,0,0,0.55); color: #5af; border: 1px solid rgba(85,170,255,0.4); }
.card-overlay.today { background: rgba(0,245,68,0.85); color: #000; border: 1px solid #00F544; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,68,0.7); } 50% { box-shadow: 0 0 16px 5px rgba(0,245,68,0.9); } }
.status-icon { position: absolute; bottom: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; z-index: 2; }
.status-icon.ended { background: rgba(0,180,80,0.85); color: #000; }
.status-icon.cancelled { background: rgba(220,60,60,0.85); color: #fff; }
.unwatched-count { position: absolute; top: 8px; left: 8px; min-width: 26px; padding: 3px 7px; border-radius: 12px; background: rgba(0,0,0,0.65); color: #ff9; font-size: 13px; font-weight: 700; text-align: center; z-index: 2; }
.title-row { display: flex; align-items: center; gap: 8px; }
.title-row h3 { flex: 1; min-width: 0; }
.media-badges { display: flex; gap: 5px; flex-shrink: 0; }
.media-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(0,0,0,0.7); }
.media-badge.plex { color: #e5a00d; border: 1px solid #e5a00d; }
.media-badge.dl { color: #4aa3ff; border: 1px solid #4aa3ff; }
.media-badge.watch { border: 1px solid #46c78c; font-size: 12px; }
.show-card .watchers { position: absolute; bottom: 8px; right: 8px; display: flex; flex-direction: row-reverse; }
.show-card .watchers .av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #0b0d12; object-fit: cover; margin-left: -6px; background: #334; }
#empty { text-align: center; color: #8aa; padding: 60px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #131a22; border: 1px solid #00F544; color: #e6f0e6; padding: 10px 16px; border-radius: 8px; z-index: 40; max-width: 80%; }
#sync-live { font-size: 13px; color: #8aa; }
#last-sync { font-size: 12px; color: #678; text-align: center; margin-top: 16px; }
.hint { font-size: 12px; color: #8aa; margin: 0 0 8px; }
.color-stop { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.color-stop input[type=number] { width: 72px; background: #000; border: 1px solid #1f2a36; color: #e6f0e6; padding: 4px 6px; border-radius: 6px; }
.color-stop input[type=color] { width: 36px; height: 28px; border: none; background: transparent; cursor: pointer; }
.color-stop button { background: #1f2a36; color: #c66; border: 1px solid #533; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.color-preview { display: flex; height: 18px; border-radius: 6px; overflow: hidden; margin-top: 10px; border: 1px solid #1f2a36; }
.color-preview span { flex: 1; }
dialog { background: #131a22; color: #e6f0e6; border: 1px solid #1f2a36; border-radius: 12px; padding: 20px; max-width: 700px; width: 90%; }
dialog::backdrop { background: rgba(0,0,0,0.7); }
dialog button { background: #1f2a36; color: #e6f0e6; border: 1px solid #2a3a4a; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
#detail-content .head { display: flex; gap: 14px; margin-bottom: 14px; }
#detail-content .head img { width: 140px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: #000; }
#detail-content h2 { margin: 0 0 6px; }
#detail-content .sub { color: #8aa; font-size: 13px; margin-bottom: 8px; }
#detail-content .actions { display: flex; gap: 8px; }
#detail-content .actions button.on { background: #00F544; color: #000; }
.season { margin-bottom: 12px; }
.season-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1f2a36; border-radius: 8px; cursor: pointer; }
.season-head h3 { margin: 0; flex: 1; min-width: 0; font-size: 15px; }
.season-body { padding-left: 8px; }
.ep { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #1f2a36; border-radius: 6px; }
.ep input { width: 18px; height: 18px; accent-color: #00F544; flex-shrink: 0; }
.neon-checkbox input { display: none; }
.ep .meta { flex: 1; min-width: 0; }
.ep .meta .t { font-size: 13px; }
.ep .meta .d { font-size: 11px; color: #8aa; }
.ep .watchers { display: flex; flex-direction: row-reverse; }
.ep .watchers .av { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #0b0d12; object-fit: cover; margin-left: -4px; }
.ep-rating, .season-rating { margin-left: auto; flex-shrink: 0; min-width: 2.6em; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ep.dim .t, .ep.dim .d, .ep.dim .ep-rating { color: var(--ep-muted, #6b7c8d); }
.ep.fresh { background-color: color-mix(in srgb, var(--ep-fresh, #1a4d7a) 42%, transparent); }

#tops-panel { display: none; }
#tops-panel.open { display: block; }
.top-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.top-filters[hidden] { display: none; }
.top-filters button, .top-filters select { background: #131a22; color: #e6f0e6; border: 1px solid #1f2a36; border-radius: 8px; padding: 8px 12px; }
.top-filters button.on { background: #00F544; color: #000; border-color: #00F544; }
.top-card { display: flex; gap: 12px; background: #131a22; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.top-card img { width: 64px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; }
.top-card .meta { flex: 1; }
.top-card h3 { margin: 0 0 4px; font-size: 16px; }
.top-card .sub { font-size: 12px; color: #8aa; }
.top-card .rank { font-weight: 700; color: #00F544; margin-right: 6px; }
.top-card .actions { display: flex; flex-direction: column; gap: 6px; align-self: center; }
.top-card button { background: #00F544; color: #000; border: none; border-radius: 6px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.top-card .added-tag { font-size: 12px; color: #00F544; text-align: center; font-weight: 600; }
.top-card .sg-btn { display: block; background: #1f2a36; color: #8cf; border: 1px solid #2a3a4a; border-radius: 6px; padding: 6px 12px; font-size: 12px; text-align: center; text-decoration: none; margin-top: 6px; }
.top-card .sg-link { font-size: 12px; color: #8cf; text-align: center; text-decoration: none; }
.top-card .ignore-btn { background: #1f2a36; color: #f88; border: 1px solid #3a2a2a; }
.top-card.movie-top { cursor: pointer; }
.top-card.movie-top:hover { background: #18222c; }
.ignore-btn { background: #1f2a36; color: #f88; border: 1px solid #3a2a2a; border-radius: 6px; padding: 6px 12px; font-weight: 600; cursor: pointer; }

/* Graph overlay */
#graph-overlay { position: fixed; inset: 0; background: #0b0d12; z-index: 30; overflow-y: auto; padding: 20px; }
.graph-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.graph-header button { background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.graph-season { margin-bottom: 24px; }
.graph-season h3 { font-size: 15px; margin: 0 0 10px; }
.graph-bars { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding-bottom: 10px; }
.graph-bar { display: flex; flex-direction: column; align-items: center; min-width: 32px; cursor: pointer; }
.bar-fill { width: 28px; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-label { font-size: 11px; color: #8aa; margin-top: 3px; }

/* Hidden card */
.hidden-card { opacity: 0.5; }
.hide-btn { color: #c66; border-color: #533; }
.delete-btn { color: #f44; border-color: #633; background: #2a0e0e; }
.add-btn { width: 40px; min-width: 40px; padding: 0; font-size: 22px; line-height: 1; }
#add-dialog { max-width: 720px; width: 90vw; max-height: 85vh; overflow: auto; background: #0b0d12; color: #e6f0e6; border: 1px solid #1f2a36; border-radius: 12px; padding: 20px; }
#add-dialog h2 { margin: 0 0 14px; }
.add-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.add-toolbar input { flex: 1; background: #131a22; border: 1px solid #1f2a36; color: #e6f0e6; padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.add-toolbar button { background: #00F544; color: #000; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; }
#add-results { display: flex; flex-direction: column; gap: 10px; }
#sources-list { margin-bottom: 16px; }
.source-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.source-row input { accent-color: #00F544; }
#admin-block { margin-top: 16px; padding-top: 12px; border-top: 1px solid #1f2a36; }
#admin-block label { display: block; margin: 6px 0; }
#admin-block input[type=text], #admin-block input[type=number], #admin-block input[type=password] { background: #000; border: 1px solid #1f2a36; color: #e6f0e6; padding: 6px; border-radius: 6px; }
#admin-block h3 { margin: 14px 0 6px; }
.indexer-row { display: flex; gap: 6px; margin: 4px 0; }
.indexer-row .ix-name { width: 90px; }
.indexer-row .ix-url { flex: 1; }
.indexer-row .ix-key { width: 140px; }
.indexer-row .ix-del { padding: 4px 8px; color: #f44; }

/* Download (Newznab + SABnzbd) */
.movie-offers { clear: both; margin-top: 14px; }
.movie-offers h3 { margin: 0 0 8px; font-size: 13px; color: #8aa; font-weight: 600; }
.movie-offer { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #1f2a36; }
.movie-offer .meta { flex: 1; min-width: 0; }
.movie-offer .t { font-size: 13px; word-break: break-word; }
.movie-offer .d { font-size: 11px; color: #8aa; }
.movie-offer button, .movie-pick { background: #00F544; color: #000; border: none; border-radius: 8px; padding: 6px 10px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.movie-wrong { background: #2a2416; border: 1px solid #6a5a2a; color: #e8d7a0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.download-btn { background: #7a1f1f; border-color: #a33; color: #f6d4d4; }
.download-btn.active { background: #00F544; border-color: #00F544; color: #000; font-weight: 600; }
.download-btn.unavailable { opacity: 0.45; }
.dl-down { position: relative; }
.dl-down::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #8cf; box-shadow: 0 0 6px #8cf; animation: dl-pulse 1s ease-in-out infinite; }
@keyframes dl-pulse { 50% { opacity: 0.3; } }
.dl-setup label { display: block; margin: 10px 0; }
.dl-setup input { accent-color: #00F544; }
.dl-actions { display: flex; gap: 10px; margin-top: 14px; }
.dl-badge { font-size: 11px; padding: 3px 8px; border-radius: 10px; white-space: nowrap; align-self: center; }
.dl-down { background: #1a3a5c; color: #8cf; }
.dl-ok { background: #1a4d2a; color: #4f6; }
.dl-err { background: #4d1a1a; color: #f66; }
.dl-warn { background: #4d3a1a; color: #fb6; }
.dl-wait { background: #333; color: #999; }
.dl-badge .dl-retry { font-size: 10px; padding: 2px 6px; margin-left: 6px; background: rgba(0,0,0,0.4); border: 1px solid currentColor; }

.dl-queue-btn.has-active { border-color: #8cf; color: #8cf; }
.dl-queue-btn.sab-down { border-color: #f90; color: #f90; }
.sab-warn-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23f90' d='M8 1l7 13H1z'/><path fill='%23000' d='M7.2 6h1.6v4.2H7.2zM7.2 11.2h1.6V13H7.2z'/></svg>") center / contain no-repeat;
}
.sab-warn-icon[hidden] { display: none; }
.sab-warn-text { color: #f90; font-weight: 600; margin-right: 8px; }
.dl-usenet.down { color: #c96; }
.dl-panel { background: #131a22; border: 1px solid #1f2a36; border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.dl-panel-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; }
.dl-panel-head h2 { margin: 0; font-size: 16px; }
.dl-back { background: #1a222c; border: 1px solid #2a3542; color: #cde; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.dl-back:hover { background: #222c38; }
.dl-panel-summary { font-size: 13px; color: #8aa; }
.dl-clear { margin-left: auto; background: #1a222c; border: 1px solid #2a3542; color: #cde; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.dl-clear:hover { background: #222c38; }
.dl-cancel { font-size: 11px; padding: 3px 8px; flex-shrink: 0; background: #2a1f22; border: 1px solid #4d2a2a; color: #d99; border-radius: 8px; cursor: pointer; }
.dl-cancel:hover { background: #352428; }
.dl-usenet { font-size: 12px; color: #8aa; padding: 0 14px 8px; }
.dl-usenet b { color: #cde; }
.dl-usenet.warn b { color: var(--orange, #f90); }
.dl-usenet.crit b { color: #f66; }
.usenet-bar { display: inline-block; vertical-align: middle; margin-left: 8px; width: 120px; height: 6px; background: #1a222c; border-radius: 3px; overflow: hidden; }
.usenet-bar i { display: block; height: 100%; background: #4af; border-radius: 3px; }
.dl-usenet.warn .usenet-bar i { background: var(--orange, #f90); }
.dl-usenet.crit .usenet-bar i { background: #f66; }
#dl-panel-body { padding: 0 14px 12px; }
.dl-panel-empty { color: #678; font-size: 13px; margin: 4px 0 0; }
.dl-panel-hint { color: #8aa; font-size: 12px; margin: 6px 0 0; }
.dl-group { margin-top: 10px; }
.dl-group h3 { margin: 0 0 6px; font-size: 12px; color: #8aa; text-transform: uppercase; letter-spacing: 0.04em; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.dl-row:hover { background: #1a222c; }
.dl-row img { width: 36px; height: 54px; object-fit: cover; border-radius: 4px; background: #000; flex-shrink: 0; }
.dl-row .meta { flex: 1; min-width: 0; }
.dl-row .t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row .d { font-size: 11px; color: #8aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row .dl-retry { font-size: 11px; padding: 3px 8px; flex-shrink: 0; }

.neon-checkbox {
  --primary: #00F544;
  --primary-dark: #00cc44;
  --primary-light: #88ffaa;
  --size: 26px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.neon-checkbox input { display: none; }
.neon-checkbox__frame { position: relative; width: 100%; height: 100%; }
.neon-checkbox__box {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  border: 2px solid var(--primary-dark);
  transition: all 0.4s ease;
}
.neon-checkbox__check-container {
  position: absolute; inset: 2px;
  display: flex; align-items: center; justify-content: center;
}
.neon-checkbox__check {
  width: 80%; height: 80%;
  fill: none; stroke: var(--primary); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.neon-checkbox__glow {
  position: absolute; inset: -2px; border-radius: 6px;
  background: var(--primary); opacity: 0; filter: blur(8px);
  transform: scale(1.2); transition: all 0.4s ease;
}
.neon-checkbox__borders { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; }
.neon-checkbox__borders span {
  position: absolute; width: 40px; height: 1px;
  background: var(--primary); opacity: 0; transition: opacity 0.4s ease;
}
.neon-checkbox__borders span:nth-child(1) { top: 0; left: -100%; animation: borderFlow1 2s linear infinite; }
.neon-checkbox__borders span:nth-child(2) { top: -100%; right: 0; width: 1px; height: 40px; animation: borderFlow2 2s linear infinite; }
.neon-checkbox__borders span:nth-child(3) { bottom: 0; right: -100%; animation: borderFlow3 2s linear infinite; }
.neon-checkbox__borders span:nth-child(4) { bottom: -100%; left: 0; width: 1px; height: 40px; animation: borderFlow4 2s linear infinite; }
.neon-checkbox__particles span {
  position: absolute; width: 4px; height: 4px; background: var(--primary);
  border-radius: 50%; opacity: 0; pointer-events: none; top: 50%; left: 50%;
  box-shadow: 0 0 6px var(--primary);
}
.neon-checkbox__rings { position: absolute; inset: -20px; pointer-events: none; }
.neon-checkbox__rings .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--primary); opacity: 0; transform: scale(0);
}
.neon-checkbox__sparks span {
  position: absolute; width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent); opacity: 0;
}
.neon-checkbox:hover .neon-checkbox__box { border-color: var(--primary); transform: scale(1.05); }
.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__box {
  border-color: var(--primary); background: rgba(0, 245, 68, 0.1);
}
.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__check {
  stroke-dashoffset: 0; transform: scale(1.1);
}
.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__glow { opacity: 0.2; }
.neon-checkbox input:checked ~ .neon-checkbox__frame .neon-checkbox__borders span { opacity: 1; }
.neon-checkbox.play input:checked ~ .neon-checkbox__frame .neon-checkbox__particles span {
  animation: particleExplosion 0.6s ease-out forwards;
}
.neon-checkbox.play input:checked ~ .neon-checkbox__frame .neon-checkbox__rings .ring {
  animation: ringPulse 0.6s ease-out forwards;
}
.neon-checkbox.play input:checked ~ .neon-checkbox__frame .neon-checkbox__sparks span {
  animation: sparkFlash 0.6s ease-out forwards;
}
@keyframes borderFlow1 { 0% { transform: translateX(0); } 100% { transform: translateX(200%); } }
@keyframes borderFlow2 { 0% { transform: translateY(0); } 100% { transform: translateY(200%); } }
@keyframes borderFlow3 { 0% { transform: translateX(0); } 100% { transform: translateX(-200%); } }
@keyframes borderFlow4 { 0% { transform: translateY(0); } 100% { transform: translateY(-200%); } }
@keyframes particleExplosion {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x, 20px)), calc(-50% + var(--y, 20px))) scale(0); opacity: 0; }
}
@keyframes ringPulse { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@keyframes sparkFlash {
  0% { transform: rotate(var(--r, 0deg)) translateX(0) scale(1); opacity: 1; }
  100% { transform: rotate(var(--r, 0deg)) translateX(30px) scale(0); opacity: 0; }
}
.neon-checkbox__particles span:nth-child(1) { --x: 25px; --y: -25px; }
.neon-checkbox__particles span:nth-child(2) { --x: -25px; --y: -25px; }
.neon-checkbox__particles span:nth-child(3) { --x: 25px; --y: 25px; }
.neon-checkbox__particles span:nth-child(4) { --x: -25px; --y: 25px; }
.neon-checkbox__particles span:nth-child(5) { --x: 35px; --y: 0px; }
.neon-checkbox__particles span:nth-child(6) { --x: -35px; --y: 0px; }
.neon-checkbox__particles span:nth-child(7) { --x: 0px; --y: 35px; }
.neon-checkbox__particles span:nth-child(8) { --x: 0px; --y: -35px; }
.neon-checkbox__particles span:nth-child(9) { --x: 20px; --y: -30px; }
.neon-checkbox__particles span:nth-child(10) { --x: -20px; --y: 30px; }
.neon-checkbox__particles span:nth-child(11) { --x: 30px; --y: 20px; }
.neon-checkbox__particles span:nth-child(12) { --x: -30px; --y: -20px; }
.neon-checkbox__sparks span:nth-child(1) { --r: 0deg; top: 50%; left: 50%; }
.neon-checkbox__sparks span:nth-child(2) { --r: 90deg; top: 50%; left: 50%; }
.neon-checkbox__sparks span:nth-child(3) { --r: 180deg; top: 50%; left: 50%; }
.neon-checkbox__sparks span:nth-child(4) { --r: 270deg; top: 50%; left: 50%; }
.neon-checkbox__rings .ring:nth-child(1) { animation-delay: 0s; }
.neon-checkbox__rings .ring:nth-child(2) { animation-delay: 0.1s; }
.neon-checkbox__rings .ring:nth-child(3) { animation-delay: 0.2s; }
