/* countdown badge shown in topic titles + lists */
/* Win98/XP-era raised bevel: square corners, light top-left + dark bottom-right
   edges, inner highlight. Not an actual button — just the look. */
.rel-badge { display: inline-block; padding: 2px 9px; margin-right: 6px; border-radius: 0; font-size: 11px; font-weight: 700;
  vertical-align: middle; white-space: nowrap; color: #fff; background: #6a3fb8;
  border: 2px solid; border-color: rgba(255,255,255,.55) rgba(0,0,0,.5) rgba(0,0,0,.5) rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1px -1px 0 rgba(0,0,0,.3);
  text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.rel-badge:empty { display: none; }
.rel-badge.soon { background: #3b6ea5; }
.rel-badge.today { background: #c0392b; }
.rel-badge.out { background: #218c54; }
h1.forumhead .rel-badge { font-size: 12px; position: relative; top: -2px; }

/* auto-tracked release info card (cover + synopsis) */
.rel-card { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px;
  border: 1px solid rgba(106,63,184,.3); border-radius: 6px; background: rgba(106,63,184,.06); }
.rel-cover { width: 90px; height: auto; max-height: 135px; border-radius: 3px; display: block; border: 1px solid rgba(127,127,127,.35); }
.rel-cover-link { flex: 0 0 auto; line-height: 0; }
.rel-card-body { min-width: 0; }
.rel-card-sub { font-weight: 700; font-size: 13px; color: #8a5ad8; margin-bottom: 3px; }
.rel-card-when { font-size: 12px; margin-bottom: 6px; }
.rel-card-desc { font-size: 13px; line-height: 1.45; opacity: .92; overflow-wrap: anywhere; }

.rel-edit { margin: 2px 0 10px; }
.rel-edit-link { font-size: 12px; }

/* "coming soon" index widget */
.rel-widget { margin: 14px 0; padding: 10px 14px; border: 1px solid rgba(106,63,184,.3); border-radius: 6px; background: rgba(106,63,184,.06); }
.rel-widget-h { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.rel-soon { display: flex; align-items: center; gap: 4px; padding: 3px 0; text-decoration: none; color: inherit; }
.rel-soon:hover .rel-soon-t { text-decoration: underline; }
.rel-soon-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "Coming soon" cover carousel */
/* horizontal cover filmstrip: title → cover → countdown btn → date btn, scrolled by arrows */
.rel-carousel { position: relative; display: flex; align-items: stretch; gap: 4px; }
.rel-track { flex: 1; display: flex; gap: 12px; overflow-x: hidden; scroll-behavior: smooth; padding: 4px 2px; }
.rel-slide { flex: 0 0 110px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: inherit; }
.rel-slide-head { display: flex; flex-direction: column; align-items: center; width: 100%; }
.rel-slide-title { font-weight: 700; font-size: 12px; text-align: center; line-height: 1.2; width: 100%; color: #4a90d9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-slide:hover .rel-slide-title { text-decoration: underline; }
.rel-slide-sub { font-size: 11px; text-align: center; width: 100%; line-height: 1.2; opacity: .85; }
.rel-slide-cover { line-height: 0; }
.rel-slide-cover img { width: 110px; height: 158px; object-fit: cover; border: 1px solid rgba(127,127,127,.5); }
.rel-noimg { display: inline-flex; align-items: center; justify-content: center; width: 110px; height: 158px; background: rgba(127,127,127,.15); border: 1px solid rgba(127,127,127,.35); font-size: 34px; }
/* squared, raised Win98-style faux buttons (not interactive) */
.rel-btn98 { width: 110px; box-sizing: border-box; text-align: center; font-size: 10px; font-weight: 700; padding: 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 2px solid; border-radius: 0; border-color: rgba(255,255,255,.55) rgba(0,0,0,.5) rgba(0,0,0,.5) rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.25), inset -1px -1px 0 rgba(0,0,0,.25); }
.rel-countdown-live { background: #2f4a6b; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .2px; text-shadow: 1px 1px 0 rgba(0,0,0,.45); }
.rel-countdown-live.out { background: #1d6b3f; }
.rel-date-btn { background: rgba(160,160,160,.22); color: inherit; }
/* arrows (real buttons): raised bevel, press inverts it */
.rel-arrow { flex: 0 0 auto; align-self: center; width: 28px; height: 64px; cursor: pointer; font-size: 20px; font-weight: 700; line-height: 1; color: inherit;
  background: rgba(127,127,127,.15); border: 2px solid; border-radius: 0;
  border-color: rgba(255,255,255,.5) rgba(0,0,0,.45) rgba(0,0,0,.45) rgba(255,255,255,.5); }
.rel-arrow:hover { background: rgba(127,127,127,.3); }
.rel-arrow:active { border-color: rgba(0,0,0,.45) rgba(255,255,255,.5) rgba(255,255,255,.5) rgba(0,0,0,.45); }
.rel-arrow:disabled { opacity: .35; cursor: default; }

/* ACP forum picker + upcoming page */
.rel-forum-list { display: flex; flex-direction: column; gap: 6px; }
.rel-forum { display: flex; align-items: center; gap: 7px; }
.rel-date { font-size: 12px; white-space: nowrap; }
.rel-grid { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0; }
.rel-grid label { font-size: 12px; }
