:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0a0a0a;
  --panel-2: #151515;
  --panel-3: #202020;
  --line: #303030;
  --text: #f7f7f7;
  --muted: #8e8e8e;
  --soft: #c9c9c9;
  --blue: #0878ff;
  --cyan: #00b9f2;
  --green: #52d400;
  --yellow: #ffd31a;
  --yellow-dark: #1c1809;
  --yellow-dark-hover: #26210c;
  --yellow-dark-line: #3a3212;
  --red: #ff4949;
  --radius: 6px;
  --phone: 540px;
  --side-pane-inset: 18px;
  --side-pane-min: 190px;
  --side-pane-max: min(310px, max(280px, calc((100vw - var(--phone) - 72px) / 2)));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #181818;
  color: var(--text);
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    minmax(var(--side-pane-min), var(--side-pane-max))
    minmax(0, var(--phone))
    minmax(var(--side-pane-min), var(--side-pane-max));
  gap: 18px;
  align-items: start;
  justify-content: center;
  padding: 0 18px;
}

.screen {
  width: min(100%, var(--phone));
  min-height: 100vh;
  background: #000;
  border-left: 1px solid #242424;
  border-right: 1px solid #242424;
}

.screen:has(#loadMoreHost) {
  display: flex;
  flex-direction: column;
}

.screen:has(#loadMoreHost) #commentsList {
  flex: 1 1 auto;
}

.screen:has(#loadMoreHost) #loadMoreHost {
  margin-top: auto;
  flex-shrink: 0;
}

.screen:has(> .loading-state:only-child) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.side-pane {
  position: sticky;
  top: calc(var(--side-pane-inset) + var(--side-pane-shift, 0px));
  display: grid;
  gap: 12px;
  padding: var(--side-pane-inset) 0;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    max-height 0.34s ease,
    opacity 0.28s ease,
    transform 0.34s ease,
    visibility 0s linear 0.34s;
}

.app-brand--side {
  padding: 0 4px;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

a.app-brand--side:hover,
a.app-brand--side:focus-visible {
  color: var(--yellow);
  outline: none;
}

body:not(:has(.hero-home)) .app-brand--side {
  max-height: 40px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  padding: 0 4px 2px;
  transition:
    max-height 0.34s ease,
    opacity 0.28s ease,
    transform 0.34s ease,
    visibility 0s linear 0s;
}

.app-brand-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}

.app-brand--drawer .app-brand-icon {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .app-brand {
    transition: none;
  }
}

.side-pane-note {
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.side-pane-community-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 4px 0;
}

.hero-community-links {
  container-type: inline-size;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
}

.hero-community-links-row {
  display: contents;
}

@container (max-width: 450px) {
  .hero-community-links {
    flex-direction: column;
  }

  .hero-community-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
}

.side-pane-reddit-link,
.side-pane-discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.side-pane-reddit-link {
  background: rgba(247, 66, 0, 0.831)
}

.side-pane-discord-link {
  background: #5865f2;
}

.side-pane-reddit-link:hover,
.side-pane-discord-link:hover {
  filter: brightness(1.08);
}

.side-pane-reddit-icon,
.side-pane-discord-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.mobile-discord-fab {
  display: none;
}

.side-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid #2b2b2b;
  border-radius: var(--radius);
  background: #0d0d0d;
}

.side-block h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.12;
}

.side-block p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.side-block p + p {
  margin-top: 10px;
}

.fetch-info-widget em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.fetch-info-widget-toggle {
  display: flex;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fetch-info-widget-head {
  flex: 1;
  min-width: 0;
}

.fetch-info-widget.is-collapsed .fetch-info-widget-head h2 {
  margin-bottom: 0;
}

.fetch-info-widget-toggle:hover .fetch-info-widget-head h2 {
  color: var(--yellow);
}

.fetch-info-widget-chevron {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.fetch-info-widget.is-open .fetch-info-widget-chevron {
  transform: rotate(90deg);
}

.fetch-info-widget-details {
  display: grid;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.fetch-info-widget-details.is-open {
  max-height: 420px;
  opacity: 1;
}

.fetch-info-widget-details[hidden] {
  display: grid !important;
}

.cache-widget-toggle {
  display: flex;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cache-widget-head {
  flex: 1;
  min-width: 0;
}

.cache-widget.is-collapsed .cache-widget-head h2 {
  margin-bottom: 0;
}

.cache-widget-toggle:hover .cache-widget-head h2 {
  color: var(--yellow);
}

.cache-widget-chevron {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.cache-widget.is-open .cache-widget-chevron {
  transform: rotate(90deg);
}

.cache-widget-details {
  display: grid;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.cache-widget-details.is-open {
  max-height: min(560px, 60vh);
  opacity: 1;
  overflow: auto;
}

.cache-widget-details[hidden] {
  display: grid !important;
}

.community-polls-widget-toggle {
  display: flex;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.community-polls-widget-head {
  flex: 1;
  min-width: 0;
}

.community-polls-widget .community-polls-widget-toggle p.side-kicker {
  margin-bottom: 0;
}

.community-polls-widget.is-collapsed .community-polls-widget-toggle {
  align-items: center;
}

.community-polls-widget.is-collapsed .community-polls-widget-chevron {
  margin-top: 0;
}

.community-polls-widget-toggle:hover .side-kicker {
  color: #fff;
}

.community-polls-widget-chevron {
  flex: 0 0 auto;
  margin-top: -1px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.community-polls-widget.is-open .community-polls-widget-chevron {
  transform: rotate(90deg);
}

.community-polls-widget-details {
  display: grid;
  gap: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.community-polls-widget-details.is-open {
  max-height: min(640px, 70vh);
  opacity: 1;
  overflow: auto;
}

.community-polls-widget-details[hidden] {
  display: grid !important;
}

.feedback-widget {
  display: block;
}

.feedback-widget-toggle {
  display: flex;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feedback-widget-head {
  flex: 1;
  min-width: 0;
}

.feedback-widget .feedback-widget-toggle p.side-kicker {
  margin-bottom: 0;
}

.feedback-widget.is-collapsed .feedback-widget-toggle {
  align-items: center;
}

.feedback-widget.is-collapsed .feedback-widget-chevron {
  margin-top: 0;
}

.feedback-widget-toggle:hover .side-kicker {
  color: #fff;
}

.feedback-widget-chevron {
  flex: 0 0 auto;
  margin-top: -1px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.feedback-widget.is-open .feedback-widget-chevron {
  transform: rotate(90deg);
}

.feedback-widget-details {
  display: grid;
  gap: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.feedback-widget-details.is-open {
  max-height: min(420px, 55vh);
  opacity: 1;
  overflow: auto;
}

.feedback-widget-details[hidden] {
  display: grid !important;
}

.feedback-hint,
.feedback-thanks {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.feedback-thanks {
  color: var(--soft);
}

.feedback-input {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #121212;
  color: var(--soft);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.feedback-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--yellow) 55%, #2d2d2d);
}

.feedback-submit {
  width: 100%;
}

.feedback-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.side-block p.pw {
  color: #fff; /* white */
}

.side-block p.pb {
  font-weight: 900; /* bold */
}

.side-kicker,
.side-block p.side-kicker {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.side-block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.side-icon {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.side-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-widget.is-collapsed {
  padding: 12px 16px;
}

.token-widget-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.token-widget-toggle:hover .token-widget-ok-text {
  color: var(--yellow);
}

.token-widget-ok-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.token-widget-chevron {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.token-widget.is-open .token-widget-chevron {
  transform: rotate(90deg);
}

.token-widget-details {
  display: grid;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease;
}

.token-widget-details.is-open {
  max-height: 420px;
  opacity: 1;
  margin-top: 12px;
}

.token-widget-details[hidden] {
  display: grid !important;
}

.token-preview {
  display: block;
  overflow: hidden;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #050505;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.side-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.donation-widget {
  display: none;
}

.side-pane-right .donation-widget,
.context-drawer .donation-widget {
  display: block;
}

.donation-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  text-decoration: none;
}

.kofi-support-button {
  gap: 8px;
}

.donation-button.kofi-support-button {
  background-color: #009ad4;
}

.kofi-coffee-icon {
  height: 22px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.kofi-floating-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 39;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background-color: #00b9fe;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 185, 254, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kofi-floating-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 185, 254, 0.34);
}

[data-community-polls-widget] {
  display: grid;
  gap: 12px;
}

.community-polls-widget {
  display: none;
}

.fetch-info-widget {
  display: none;
}

.movie-paradise-promo {
  display: none;
}

.tvtime-alternatives-promo {
  position: relative;
  overflow: hidden;
  border-color: #3a3212;
  background:
    radial-gradient(circle at top right, rgba(255, 211, 26, 0.12), transparent 52%),
    linear-gradient(180deg, #12100a 0%, #0d0d0d 100%);
}

.tvtime-alternatives-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 211, 26, 0.08), transparent 42%, rgba(124, 58, 237, 0.08));
  pointer-events: none;
}

.tvtime-alternatives-promo-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.tvtime-alternatives-discussion-button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 12px;
  background: #cc3700;
}

.tvtime-alternatives-discussion-button:hover {
  filter: brightness(1.08);
}

.tvtime-alternatives-discussion-button--removed {
  background: #3a3a3a;
  color: var(--muted);
  cursor: pointer;
}

.tvtime-alternatives-discussion-button--removed:hover {
  background: #4a4a4a;
  color: var(--soft);
  filter: brightness(1.06);
}

.tvtime-alternatives-promo .tvtime-alternatives-discussion-button + .movie-paradise-promo-text {
  margin-top: 14px;
}

.tvtime-alternatives-promo .movie-paradise-promo-text u {
  font-weight: 800;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.tvtime-alternatives-promo .tvtime-alternatives-inline-link {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 211, 26, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.tvtime-alternatives-promo .tvtime-alternatives-inline-link:hover {
  color: #fff;
  text-decoration-color: var(--yellow);
}

.roadmap {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 211, 26, 0.18);
}

.roadmap .roadmap-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.roadmap .roadmap-status {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(82, 212, 0, 0.28);
  border-radius: var(--radius);
  background: rgba(82, 212, 0, 0.08);
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.roadmap-status strong {
  color: #fff;
  font-weight: 800;
}

.roadmap .roadmap-subtitle {
  margin: 22px 0 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap button.roadmap-subtitle,
.whats-next-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.whats-next-toggle {
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.whats-next-toggle strong {
  color: #fff;
  font-weight: 800;
}

.roadmap-toggle-chevron,
.whats-next-toggle-chevron {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.roadmap button.roadmap-subtitle[aria-expanded="false"] .roadmap-toggle-chevron,
.whats-next-toggle[aria-expanded="false"] .whats-next-toggle-chevron {
  transform: rotate(0deg);
}

.roadmap-details,
.whats-next-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s ease,
    opacity 0.24s ease;
}

.roadmap-details.is-open,
.whats-next-details.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.roadmap-details-inner,
.whats-next-details-inner {
  min-height: 0;
  overflow: hidden;
}

.roadmap-details[hidden],
.whats-next-details[hidden] {
  display: grid !important;
}

.side-block .whats-next {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.roadmap-step strong {
  color: #fff;
  font-weight: 800;
}

.roadmap-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.roadmap-step--done .roadmap-dot {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-radius: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
}

.roadmap-step--done .roadmap-dot::before {
  content: "✓";
}

.roadmap-step--done .roadmap-step-text {
  color: var(--muted);
}

.roadmap-step--doing .roadmap-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 211, 26, 0.6);
  animation: roadmap-pulse 1.6s ease-out infinite;
}

.roadmap-step--doing .roadmap-step-text {
  color: #fff;
  font-weight: 700;
}

.roadmap-step--todo .roadmap-dot {
  background: transparent;
  border: 1.5px solid #6b6b6b;
}

.roadmap .roadmap-note {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.roadmap-note-icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 1px solid #5a5a5a;
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  line-height: 12px;
  text-align: center;
}

@keyframes roadmap-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 211, 26, 0.55);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 211, 26, 0);
    opacity: 0.65;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 211, 26, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-step--doing .roadmap-dot {
    animation: none;
  }
}

.roadmap-costs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.roadmap-costs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.roadmap-costs strong {
  color: var(--soft);
  font-weight: 700;
  white-space: nowrap;
}

.roadmap .roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.roadmap-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.roadmap-legend-item .roadmap-dot {
  margin-top: 0;
}

.movie-paradise-promo:not([hidden]) {
  position: relative;
  overflow: hidden;
  border-color: #3a3212;
  background:
    radial-gradient(circle at top right, rgba(255, 211, 26, 0.12), transparent 52%),
    linear-gradient(180deg, #12100a 0%, #0d0d0d 100%);
}

.movie-paradise-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 211, 26, 0.08), transparent 42%, rgba(124, 58, 237, 0.08));
  pointer-events: none;
}

.movie-paradise-promo-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.movie-paradise-promo-text strong {
  color: #fff;
  font-weight: 800;
}

.movie-paradise-promo-text u {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.movie-paradise-download-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #8b5cf6 0%, #ec4899 48%, #f59e0b 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 14px 30px rgba(236, 72, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.movie-paradise-download-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 36px rgba(236, 72, 153, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.movie-paradise-download-button:active {
  transform: translateY(0);
}

.movie-paradise-download-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.movie-paradise-download-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.movie-paradise-download-label {
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.movie-paradise-download-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.movie-paradise-download-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  opacity: 0.92;
}

.community-poll + .community-poll {
  padding-top: 14px;
  border-top: 1px solid #242424;
}

.community-poll-title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: bold;
}

.community-poll-hint,
.community-poll-lock,
.community-poll-total {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.community-poll-lock {
  color: var(--soft);
  text-transform: none;
  font-weight: 600;
}

.community-poll.is-locked .community-poll-options,
.community-poll.is-locked .community-poll-other,
.community-poll.is-locked .community-poll-submit,
.community-poll.is-locked .community-poll-hint {
  display: none;
}

.community-poll-secondary.is-locked .community-poll-title {
  opacity: 0.72;
}

.community-poll-secondary:not(.is-locked) .community-poll-hint,
.community-poll-secondary:not(.is-locked) .community-poll-options,
.community-poll-secondary:not(.is-locked) .community-poll-other,
.community-poll-secondary:not(.is-locked) .community-poll-submit {
  animation: pollReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pollReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.community-poll-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 168px;
  overflow: auto;
  padding-right: 2px;
}

.community-poll-option {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #121212;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.community-poll-option:hover {
  border-color: #444;
  color: #fff;
}

.community-poll-option.is-selected {
  border-color: var(--blue);
  background: #062c63;
  color: #fff;
  transform: translateY(-1px);
}

.community-poll-other {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.community-poll-other.is-hidden {
  display: none;
}

.community-poll-other span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.community-poll-other input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #050505;
  color: #fff;
}

.community-poll-submit {
  width: 100%;
  margin-top: 10px;
}

.community-poll-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.community-poll-results {
  display: grid;
  gap: 8px;
}

.community-poll-result-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 168px;
  overflow: auto;
  padding-right: 2px;
}

.community-poll-result {
  position: relative;
  min-height: 30px;
  padding: 6px 22px 6px 8px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #121212;
  overflow: hidden;
}

.community-poll-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(8, 120, 255, 0.42), rgba(8, 120, 255, 0.16));
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.community-poll-result.is-animated::before {
  width: var(--pct);
}

.community-poll-result.is-mine {
  border-color: var(--blue);
}

.community-poll-result.is-mine::before {
  background: linear-gradient(90deg, rgba(8, 120, 255, 0.58), rgba(8, 120, 255, 0.24));
}

.community-poll-result-label {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.community-poll-result.is-mine .community-poll-result-label {
  color: #fff;
}

.community-poll-result-pct {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 1;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.cache-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 6px;
}

.cache-mini-footnote {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.cache-mini-stats span {
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #070707;
}

.cache-mini-stats strong,
.cache-mini-stats small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cache-mini-stats strong {
  color: white;
  font-size: 15px;
}

.cache-mini-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cache-mini-list {
  display: grid;
  gap: 7px;
}

.cache-mini-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #070707;
  color: white;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cache-type-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.cache-type-pill.type-show {
  color: #bfdbfe;
  background: color-mix(in srgb, #3b82f6 28%, #070707);
  border: 1px solid color-mix(in srgb, #60a5fa 55%, #1e3a5f);
}

.cache-type-pill.type-movie {
  color: #fbcfe8;
  background: color-mix(in srgb, #ec4899 28%, #070707);
  border: 1px solid color-mix(in srgb, #f472b6 55%, #5b1d3f);
}

.cache-mini-body {
  min-width: 0;
}

.cache-mini-item .archive-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}

.cache-mini-item .archive-compact-cell {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 22px;
  padding: 2px 6px;
  gap: 4px;
  font-size: 9px;
  box-sizing: border-box;
}

.cache-mini-item .archive-compact-cell span {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.cache-mini-item .archive-compact-cell strong {
  display: inline;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 900;
  text-align: right;
}

.cache-mini-item .archive-compact-cell::before {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.cache-mini-item.entity-movie .archive-compact-cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.cache-mini-item.entity-movie .archive-compact-cell:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.cache-mini-item.entity-movie .archive-compact-cell:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.cache-mini-item:hover {
  border-color: color-mix(in srgb, var(--status), #fff 18%);
}

.cache-mini-item > .cache-mini-body > strong,
.cache-mini-item > .cache-mini-body > small,
.cache-mini-body > strong:first-of-type,
.cache-mini-body > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cache-mini-item > .cache-mini-body > strong {
  font-size: 12px;
  padding-right: 42px;
}

.cache-item-size {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cache-mini-item .cache-item-size {
  margin-top: 2px;
}

.cache-result-actions .cache-item-size {
  display: block;
  margin-bottom: 4px;
}

.cache-mini-item small,
.side-empty,
.side-loading {
  color: var(--muted);
  font-size: 11px;
}

.side-empty,
.side-loading {
  padding: 14px 0 4px;
}

.context-drawer {
  display: none;
}

.context-toggle {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--yellow-dark-line);
  background: var(--yellow-dark);
  color: white;
  padding: 0 14px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease;
}

.context-toggle:hover,
.context-toggle:focus-visible {
  background: var(--yellow-dark-hover);
}

.context-toggle-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.context-toggle-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s ease;
}

.context-toggle[aria-expanded="true"] .context-toggle-chevron {
  transform: rotate(90deg);
}

.context-toggle-icon {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.context-toggle-icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--yellow);
  transform-origin: center;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease;
}

.context-toggle[aria-expanded="true"] .context-toggle-icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.context-toggle[aria-expanded="true"] .context-toggle-icon-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.context-toggle[aria-expanded="true"] .context-toggle-icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.context-drawer-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 12px;
  border-bottom: 1px solid transparent;
  background: #080808;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    padding 0.32s ease,
    border-color 0.32s ease;
}

.context-drawer.is-open .context-drawer-content {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 44px);
  opacity: 1;
  padding: 12px;
  border-bottom-color: var(--line);
  overflow: auto;
}

.admin-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 36;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

body.admin-mode .admin-drawer {
  display: flex;
}

body.admin-mode {
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}

.admin-drawer-toggle {
  position: relative;
  width: min(calc(100% - 24px), 768px);
  border: 1px solid var(--yellow-dark-line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: auto;
}

.admin-drawer-chevron {
  transform: rotate(-90deg);
}

.admin-drawer-toggle[aria-expanded="true"] .admin-drawer-chevron {
  transform: rotate(90deg);
}

.admin-drawer-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-drawer-toggle-status {
  margin-left: auto;
  color: #c9b070;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-drawer-content {
  width: min(calc(100% - 24px), 768px);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    padding 0.32s ease;
}

.admin-drawer.is-open .admin-drawer-content {
  max-height: var(--admin-drawer-height, min(72vh, calc(100vh - 56px)));
  opacity: 1;
  padding: 0 0 8px;
}

.admin-drawer-frame {
  width: 100%;
  min-height: 0;
  height: var(--admin-drawer-height, min(72vh, calc(100vh - 56px)));
  max-height: min(92vh, calc(100vh - 44px));
  min-height: 180px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  border: 1px solid #3d2f14;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, #1a1408 0%, #12100a 100%);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.legacy-admin-transition {
  display: grid;
  gap: 10px;
  height: auto;
  min-height: 0;
  padding: 16px;
}

.legacy-admin-transition p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.legacy-admin-link {
  justify-self: start;
  padding: 9px 12px;
  border: 1px solid var(--yellow-dark-line);
  border-radius: var(--radius);
  background: var(--yellow-dark);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.legacy-admin-link:hover,
.legacy-admin-link:focus-visible {
  background: var(--yellow-dark-hover);
}

.admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid #3d2f14;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.admin-drawer-head:hover .admin-drawer-resize-grip,
.admin-drawer-head.is-resizing .admin-drawer-resize-grip {
  background: #d4a017;
}

.admin-drawer-head-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-drawer-resize-grip {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: #5a4a24;
}

.admin-drawer-head .admin-panel-eyebrow {
  margin: 0;
  text-align: center;
}

.admin-drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  cursor: default;
}

.admin-drawer .admin-dashboard-explorer {
  max-height: none;
  overflow: auto;
}

.admin-drawer .admin-dashboard-explorer:has(.bulk-queue-dashboard) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-drawer .admin-dashboard-explorer:has(.bulk-queue-dashboard) .admin-dashboard-panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-drawer-toggle .context-toggle-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 520px) {
  .admin-drawer-toggle-status {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .context-drawer-content,
  .context-toggle-chevron,
  .context-toggle-icon-bar,
  .admin-drawer-content,
  .admin-drawer-chevron,
  .token-widget-details,
  .token-widget-chevron,
  .fetch-info-widget-details,
  .fetch-info-widget-chevron,
  .cache-widget-details,
  .cache-widget-chevron,
  .community-polls-widget-details,
  .community-polls-widget-chevron,
  .feedback-widget-details,
  .feedback-widget-chevron,
  .how-possible-details,
  .how-possible-chevron,
  .roadmap-details,
  .roadmap-toggle-chevron,
  .whats-next-details,
  .whats-next-toggle-chevron {
    transition: none;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 52px;
  padding: 0 6px;
  background: color-mix(in srgb, var(--yellow-dark) 88%, transparent);
  border-bottom: 1px solid var(--yellow-dark-line);
  backdrop-filter: blur(12px);
}

.topbar-start {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar .icon-button {
  flex: 0 0 36px;
  padding: 0;
  font-size: 0;
}

.topbar .icon-button .ui-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
  color: white;
}

.topbar small {
  display: block;
  margin-top: 2px;
  color: color-mix(in srgb, var(--yellow) 42%, var(--soft));
  font-size: 12px;
}

.topbar-stats {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.topbar-stats .archive-compact {
  justify-content: center;
  margin-top: 0;
  gap: 3px;
}

.topbar-stats .archive-compact-cell {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 9px;
}

.topbar-stats .archive-compact-cell strong {
  font-size: 9px;
}

.topbar-stats .archive-compact-cell.label-only {
  grid-template-columns: auto auto;
}

.topbar .icon-button:hover {
  background: var(--yellow-dark-hover);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 24px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.icon-button:hover {
  background: #1d1d1d;
}

.hero-home {
  padding: 26px 18px 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), #000 94%),
    radial-gradient(circle at 18% 0%, rgba(8, 120, 255, 0.45), transparent 30%),
    linear-gradient(135deg, #111, #020202 68%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-home h1,
.hero-title {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.03;
  letter-spacing: 0;
}

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

.hero-title-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.shutdown-countdown {
  position: relative;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--yellow-dark-line);
  border-radius: var(--radius);
  background: var(--yellow-dark);
  color: var(--yellow);
  font-size: 14px;
  line-height: 1.35;
}

.shutdown-countdown .countdown-label {
  color: #f3df7a;
  font-weight: 700;
}

.shutdown-countdown .countdown-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.shutdown-countdown .countdown-value strong {
  font-size: 16px;
  font-weight: 900;
}

.shutdown-countdown.is-expired {
  color: #d7f5b8;
  background: #101a0d;
  border-color: #2a4520;
}

.shutdown-countdown.is-expired .countdown-label {
  color: var(--green);
}

.shutdown-countdown .countdown-expired {
  font-weight: 900;
  color: #fff;
}

.shutdown-countdown.is-frantic {
  animation: shutdown-frantic 0.18s ease-in-out infinite;
}

.shutdown-countdown.is-frantic .countdown-value strong {
  color: #fff6b8;
}

.shutdown-countdown.is-morphing {
  animation: shutdown-morph var(--shutdown-morph-ms, 550ms) cubic-bezier(0.34, 1.2, 0.48, 1) forwards;
  pointer-events: none;
}

.shutdown-countdown.is-morphing .countdown-layer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  width: 100%;
}

.shutdown-countdown.is-morphing .countdown-layer--active {
  animation: shutdown-layer-out var(--shutdown-morph-ms, 550ms) ease-in forwards;
}

.shutdown-countdown.is-morphing .countdown-layer--expired {
  position: absolute;
  inset: 10px 12px;
  z-index: 2;
  animation: shutdown-layer-in var(--shutdown-morph-ms, 550ms) ease-out forwards;
}

.shutdown-countdown.is-morphing .countdown-layer--expired .countdown-label {
  color: var(--green);
}

.shutdown-countdown.is-morphing .countdown-layer--expired .countdown-expired {
  color: #fff;
}

.shutdown-countdown-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.shutdown-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: var(--size);
  line-height: 1;
  opacity: 0;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(0deg) scale(0.35);
  animation: shutdown-particle-burst var(--duration) cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay) forwards;
  will-change: transform, opacity;
}

.shutdown-particle.is-drifting {
  animation-name: shutdown-particle-drift;
  animation-timing-function: cubic-bezier(0.18, 0.7, 0.22, 1);
}

@keyframes shutdown-frantic {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1px);
  }

  75% {
    transform: translateX(1px);
  }
}

@keyframes shutdown-morph {
  0% {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark-line);
    color: var(--yellow);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 223, 122, 0.35);
  }

  22% {
    transform: scale(1.05);
    filter: brightness(1.28);
    box-shadow: 0 0 18px 5px rgba(255, 220, 90, 0.55);
  }

  48% {
    background: #1a2814;
    border-color: #315028;
    color: #c8e8a8;
    transform: scale(1.015);
    filter: brightness(1.08);
    box-shadow: 0 0 10px 2px rgba(120, 180, 90, 0.25);
  }

  100% {
    background: #101a0d;
    border-color: #2a4520;
    color: #d7f5b8;
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }
}

@keyframes shutdown-layer-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-1px) scale(1.02);
  }

  100% {
    opacity: 0;
    transform: translateY(-5px) scale(0.97);
    filter: blur(1.5px);
  }
}

@keyframes shutdown-layer-in {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    filter: blur(2px);
  }

  42% {
    opacity: 0;
    transform: translateY(4px) scale(0.97);
    filter: blur(1.5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes shutdown-particle-burst {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(0deg) scale(0.35);
  }

  12% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(calc(var(--spin) * 0.2)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 0px) + var(--dx)), calc(-50% + var(--y, 0px) + var(--dy))) rotate(var(--spin)) scale(0.45);
  }
}

@keyframes shutdown-particle-drift {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(0deg) scale(0.45);
  }

  10% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--x, 0px) + (var(--dx) * 0.12)), calc(-50% + var(--y, 0px) + 10px))
      rotate(calc(var(--spin) * 0.18)) scale(1);
  }

  45% {
    opacity: 0.9;
    transform: translate(calc(-50% + var(--x, 0px) + (var(--dx) * 0.55)), calc(-50% + var(--y, 0px) + (var(--dy) * 0.45)))
      rotate(calc(var(--spin) * 0.55)) scale(0.96);
  }

  78% {
    opacity: 0.32;
    transform: translate(calc(-50% + var(--x, 0px) + (var(--dx) * 0.82)), calc(-50% + var(--y, 0px) + (var(--dy) * 0.8)))
      rotate(calc(var(--spin) * 0.82)) scale(0.82);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x, 0px) + var(--dx)), calc(-50% + var(--y, 0px) + var(--dy)))
      rotate(var(--spin)) scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shutdown-countdown.is-morphing,
  .shutdown-countdown.is-frantic,
  .shutdown-countdown.is-morphing .countdown-layer--active,
  .shutdown-countdown.is-morphing .countdown-layer--expired,
  .shutdown-particle {
    animation: none;
  }
}

.hero-home.is-shutdown .eyebrow {
  color: var(--green);
}

.hero-home p,
.copy-block p {
  margin: 10px 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.hero-home .pw,
.pw {
  color: #fff; /* white */
}
.hero-home .pb,
.pb {
  font-weight: 900; /* bold */
}

.how-possible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 20px 0 10px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--yellow) 24%, #2b2b2b);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--yellow-dark) 78%, transparent);
  color: var(--yellow);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.hero-home .how-possible-toggle .pw,
.how-possible-toggle .how-possible-chevron {
  color: inherit;
}

.how-possible-toggle:hover,
.how-possible-toggle:focus-visible {
  background: var(--yellow-dark-hover);
  border-color: color-mix(in srgb, var(--yellow) 42%, #3a3212);
  color: #fff;
}

.how-possible-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--yellow) 55%, transparent);
  outline-offset: 2px;
}

.how-possible-chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-0.08em) rotate(90deg);
  transform-origin: center center;
  transition: transform 0.24s ease, color 0.15s ease;
}

.how-possible.is-open .how-possible-chevron {
  transform: translateY(-0.08em) rotate(270deg);
}

.how-possible-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s ease,
    opacity 0.24s ease;
}

.how-possible-details.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.how-possible-details-inner {
  min-height: 0;
  overflow: hidden;
}

.how-possible-details[hidden] {
  display: grid !important;
}

.how-possible [data-token-widget] {
  margin-top: 12px;
}

.hero-home .how-possible .side-block p {
  margin: 0;
  font-size: 13px;
}

.hero-home .how-possible .side-block p + p {
  margin-top: 10px;
}

.hero-home .how-possible .side-block p.side-kicker {
  margin: 0 0 8px;
}

.search-panel {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-input,
.select-input,
.token-dialog textarea {
  width: 100%;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #141414;
  color: white;
  outline: 0;
}

.search-input {
  height: 46px;
  padding: 0 14px;
  font-size: 16px;
}

.select-input {
  height: 40px;
  padding: 0 10px;
}

.primary-button,
.secondary-button,
.status-button,
.pill-button {
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--blue);
}

.secondary-button {
  min-height: 40px;
  padding: 0 14px;
  background: #242424;
}

.pill-button {
  min-height: 34px;
  padding: 0 14px;
  background: #202020;
}

.filters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.filter-chip {
  flex: 1;
  min-height: 36px;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #151515;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-chip.active {
  border-color: var(--blue);
  background: #062c63;
}

.legend,
.copy-block,
.status-banner {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.legend {
  display: grid;
  gap: 10px;
  background: #060606;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
}

.status-dot,
.status-pill::before {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
}

.status-missing {
  --status: var(--red);
}

.status-partial {
  --status: var(--yellow);
}

.status-replies-partial {
  --status: color-mix(in srgb, var(--green) 42%, var(--yellow) 58%);
}

.status-complete {
  --status: var(--green);
}

.status-dot {
  background: var(--status);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--status), #000 35%);
  border-radius: 999px;
  color: white;
  background: color-mix(in srgb, var(--status), #000 80%);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill::before {
  background: var(--status);
}

.status-banner {
  background: #111;
}

.archive-summary {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #080808;
}

.archive-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-overall {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.archive-overall-mark {
  width: 14px;
  height: 42px;
  border-radius: 999px;
  background: var(--status);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--status), #000 35%);
}

body.solo-fetch-mode #app.screen {
  border-radius: 18px;
  border: 2px solid rgba(255, 23, 68, 0.9);
  animation: solo-fetch-pulse 1.8s ease-in-out infinite;
  outline: 2px solid #ff1744;
  outline-offset: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 82, 82, 0.7),
    0 0 0 2px rgba(255, 23, 68, 0.35),
    0 0 28px rgba(255, 23, 68, 0.45);
}

@keyframes solo-fetch-pulse {
  0%,
  100% {
    border-color: rgba(255, 23, 68, 0.85);
    outline-color: #ff1744;
    box-shadow:
      inset 0 0 0 1px rgba(255, 82, 82, 0.55),
      0 0 0 2px rgba(255, 23, 68, 0.35),
      0 0 18px rgba(255, 23, 68, 0.35);
  }

  50% {
    border-color: rgba(255, 82, 82, 1);
    outline-color: #ff5252;
    box-shadow:
      inset 0 0 0 2px rgba(255, 82, 82, 0.85),
      0 0 0 3px rgba(255, 82, 82, 0.5),
      0 0 36px rgba(255, 23, 68, 0.75);
  }
}

.fetch-frozen-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.fetch-frozen-wrap:has(> .primary-button),
.fetch-frozen-wrap:has(> .power-fetch-button) {
  display: block;
  width: 100%;
}

.fetch-frozen-wrap:has(> .power-check-comments) {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.fetch-frozen-wrap:has(> #loadMoreButton) {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.fetch-frozen-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 45;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a1014 0%, #17080b 100%);
  border: 1px solid rgba(255, 23, 68, 0.72);
  color: #ffccd5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 23, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.05s ease, visibility 0s linear 0.05s;
}

.fetch-frozen-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 23, 68, 0.72);
}

.fetch-frozen-wrap:hover .fetch-frozen-tooltip,
.fetch-frozen-wrap:focus-within .fetch-frozen-tooltip {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.05s ease, visibility 0s linear 0s;
}

button.fetch-frozen,
button.fetch-frozen:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.15);
}

.archive-overall strong,
.archive-summary-head strong {
  min-width: 0;
  font-size: 15px;
}

.archive-overall small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.archive-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.archive-tile {
  min-width: 0;
  min-height: 86px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--status), #000 45%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--status), #000 88%);
}

.archive-tile-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.archive-tile-head strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-tile-count {
  margin-top: 8px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.archive-tile small {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.2;
}

.archive-summary-guidance {
  margin-top: 2px;
  padding-top: 0;
}

.archive-summary-guidance-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-summary-guidance-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-summary-guidance-step {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.archive-summary-guidance-step .status-dot {
  margin-top: 4px;
}

.archive-summary-guidance-step strong {
  color: white;
  font-size: 11px;
  text-transform: uppercase;
}

.archive-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.archive-compact-cell {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--status), #000 45%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--status), #000 84%);
  color: white;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-compact-cell::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status);
  content: "";
}

.archive-compact-cell span {
  color: var(--soft);
}

.archive-compact-cell strong {
  font-size: 10px;
}

.status-banner h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.status-banner p {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}

.results-list,
.episode-list,
.comments-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.home-farewell-widget,
.home-cache-widget {
  display: none;
}

.result-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid #242424;
  border-radius: var(--radius);
  background: #101010;
  color: white;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.poster {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #242424;
}

.result-card h3,
.episode-card h3 {
  margin: 0;
  font-size: 16px;
}

.result-card p,
.episode-card p,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-original-title {
  font-size: 12px;
  opacity: 0.85;
}

small.result-original-title {
  display: block;
  margin-top: 2px;
}

.chevron {
  color: white;
  font-size: 26px;
}

.media-hero {
  position: relative;
  min-height: 298px;
  display: flex;
  align-items: end;
  padding: 18px;
  background: #111 center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.media-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.94) 92%);
  content: "";
}

.media-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.media-hero-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-self: center;
  flex-shrink: 0;
  margin-left: 14px;
}

.media-hero-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.media-hero-nav-btn .ui-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.media-hero-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

.media-hero-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.media-hero .tag {
  display: inline-block;
  margin-bottom: 90px;
  padding: 5px 10px;
  border: 1px solid white;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.media-hero button.tag {
  cursor: pointer;
}

.media-hero button.tag:hover {
  background: rgba(255, 255, 255, 0.12);
}

.media-hero h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1;
}

.media-hero p {
  margin: 0;
  color: white;
  font-size: 15px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: white;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.external-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #121212;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.external-links a:hover {
  border-color: var(--blue);
}

.external-links.embedded {
  padding: 12px 0 0;
  border-bottom: 0;
  background: transparent;
}

.info-section .info-description {
  margin: 14px 0 0;
  color: #d7d7d7;
  line-height: 1.5;
}

.episode-title-line {
  margin: 12px 0 0;
}

.big-stars {
  display: flex;
  justify-content: center;
}

.big-stars-inner {
  width: 100%;
  max-width: 340px;
  display: grid;
  gap: 14px;
}

.big-stars-bar,
.big-stars-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.big-stars-bar {
  align-items: center;
  padding: 16px 10px;
  border-radius: 999px;
  background: #1a1a1a;
}

.big-star {
  display: flex;
  justify-content: center;
  line-height: 1;
}

.big-star-track {
  position: relative;
  display: inline-block;
  font-size: 34px;
  line-height: 1;
}

.big-star-empty {
  color: #3d3d3d;
}

.big-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill, 0%);
  overflow: hidden;
  color: var(--yellow);
  white-space: nowrap;
}

.big-stars-col {
  min-width: 0;
  text-align: center;
}

.big-stars-word,
.big-stars-pct,
.big-stars-count {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #8f8f8f;
}

.big-stars-pct {
  margin-top: 4px;
  font-size: 12px;
}

.big-stars-count {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  color: #666;
}

.big-stars-col.top .big-stars-word,
.big-stars-col.top .big-stars-pct,
.big-stars-col.top .big-stars-count {
  color: white;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-badge {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.check-badge[data-admin-unlock] {
  cursor: default;
}

.section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

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

.section-head h2,
.section-head .section-title {
  margin: 0;
}

.ops-button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: #171717;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.ops-button:hover {
  color: white;
  border-color: #555;
}

.admin-panel {
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid #3d2f14;
  border-left: 4px solid #d4a017;
  background: linear-gradient(180deg, #1a1408 0%, #12100a 100%);
}

.admin-panel-eyebrow {
  margin: 0 0 10px;
  color: #e8b923;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-button {
  padding: 8px 12px;
  border: 1px solid #5a4518;
  border-radius: 999px;
  background: #20180a;
  color: #f0d27a;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-button:hover:not(:disabled) {
  color: #fff4cc;
  border-color: #d4a017;
  background: #2a200d;
}

.admin-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-button-primary {
  border-color: #d4a017;
  background: #3a2c0d;
  color: #ffe9a8;
}

.admin-button-stop {
  border-color: #7a2b2b;
  background: #2a1010;
  color: #ffb4b4;
}

.admin-button-text {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #c9b070;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.admin-button-text:hover:not(:disabled) {
  color: #ffe9a8;
  background: none;
  border-color: transparent;
}

.admin-button-text:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #c9b070;
  font-size: 12px;
  font-weight: 700;
}

.admin-option input {
  accent-color: #d4a017;
}

.admin-option.is-disabled {
  opacity: 0.55;
}

.admin-bulk-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.admin-bulk-options .admin-replies-mode {
  margin-top: 0;
}

.admin-bulk-options .admin-option {
  margin-top: 0;
}

.admin-bulk-options .admin-bulk-toggle {
  align-self: flex-start;
  margin-top: 2px;
}

.admin-replies-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.admin-replies-mode.is-disabled {
  opacity: 0.55;
}

.admin-replies-label {
  color: #c9b070;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-pill-group {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #5a4518;
  border-radius: 999px;
  background: #181208;
}

.admin-pill {
  min-width: 52px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b89a52;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-pill:hover:not(:disabled) {
  color: #f0d27a;
}

.admin-pill.is-active {
  background: #3a2c0d;
  color: #ffe9a8;
  box-shadow: inset 0 0 0 1px #d4a017;
}

.admin-pill:disabled {
  cursor: not-allowed;
}

.admin-replies-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-stepper-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #5a4518;
  border-radius: 999px;
  background: #20180a;
  color: #f0d27a;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.admin-stepper-btn:hover:not(:disabled) {
  border-color: #d4a017;
  color: #fff4cc;
}

.admin-stepper-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-replies-count-input {
  width: 56px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #5a4518;
  border-radius: 8px;
  background: #12100a;
  color: #ffe9a8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.admin-replies-count-input::-webkit-outer-spin-button,
.admin-replies-count-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-replies-count-input:disabled {
  opacity: 0.55;
}

.admin-replies-warning {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.admin-replies-warning-strong {
  color: #ffb74d;
  font-weight: 700;
}

.admin-replies-warning-critical {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 87, 34, 0.65);
  background: rgba(42, 18, 8, 0.9);
  color: #ffab91;
  font-weight: 700;
}

.admin-replies-warning-movie {
  color: #d8c89a;
}

.admin-bulk-core-complete {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.22);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.admin-bulk-core-complete strong {
  color: #8ef0b8;
}

.bulk-tools-panel.is-bulk-core-complete .admin-bulk-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-bulk-caution {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.admin-bulk-caution-danger {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 23, 68, 0.65);
  background: linear-gradient(180deg, rgba(42, 16, 20, 0.95) 0%, rgba(23, 8, 11, 0.98) 100%);
  color: #ffccd5;
  font-size: 12px;
  line-height: 1.45;
}

.admin-bulk-caution-movie {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #3d2f14;
  background: #171106;
  color: #d8c89a;
}

.bulk-tools-panel {
  display: block;
}

.archive-summary + .bulk-tools-panel,
.power-action + .bulk-tools-panel,
.status-banner + .bulk-tools-panel {
  margin-top: 0;
}

.admin-panel-note {
  margin: 10px 0 0;
  font-size: 11px;
}

.admin-progress {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3d2f14;
}

.admin-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #e8d6a0;
}

.admin-progress-meta [data-progress-status] {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-progress-working {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: #171106;
}

.admin-progress-working strong {
  min-width: 0;
  color: #ffe9a8;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.admin-panel.is-bulk-stopped [data-progress-status] {
  color: #ffb74d;
}

.admin-panel.is-bulk-complete [data-progress-status] {
  color: #a5d6a7;
}

.admin-panel.is-bulk-complete .admin-progress-bar span {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.admin-panel.is-bulk-complete .admin-progress-stack.is-skipped .admin-progress-bar span {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.admin-bulk-complete-label {
  margin: 4px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #81c784;
}

.admin-panel.is-bulk-error [data-progress-status] {
  color: #ef9a9a;
}

.admin-progress-meta [data-progress-elapsed] {
  font-variant-numeric: tabular-nums;
  color: #c9b070;
}

.admin-resilience {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.admin-resilience-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-resilience-interval {
  color: #ffe9a8;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.admin-resilience-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
}

.admin-resilience-log {
  display: grid;
  gap: 4px;
  max-height: 140px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.admin-resilience-entry {
  display: grid;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #3d2f14;
  background: #16120a;
  opacity: 0.7;
  transition: opacity 0.35s ease;
}

.admin-resilience-entry-fresh {
  opacity: 1;
}

.admin-resilience-entry-retry {
  border-left: 3px solid #ffb74d;
}

.admin-resilience-entry-success {
  border-left: 3px solid #66bb6a;
}

.admin-resilience-entry-fatal {
  border-left: 3px solid #ef5350;
}

.admin-resilience-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
}

.admin-resilience-time {
  flex: 0 0 auto;
  color: #9e8f63;
  font-variant-numeric: tabular-nums;
}

.admin-resilience-sep {
  flex: 0 0 auto;
  color: #7a6b45;
}

.admin-resilience-summary {
  flex: 1 1 auto;
  min-width: 0;
  color: #e8d6a0;
}

.admin-resilience-entry-success .admin-resilience-summary {
  color: #b9f6ca;
}

.admin-resilience-entry-fatal .admin-resilience-summary {
  color: #ffb4b4;
}

.admin-resilience-target {
  display: block;
  margin: 0;
  padding-left: 52px;
  color: #c9b070;
  font-size: 10px;
  line-height: 1.25;
  word-break: break-all;
}

.admin-progress-stack {
  display: grid;
  gap: 4px;
}

.admin-progress-label {
  color: #c9b070;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a2214;
}

.admin-progress-bar span {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8860b, #ffd54f);
  transition: width 0.25s ease;
}

.admin-progress-stack.is-skipped .admin-progress-bar span {
  background: #4a4a4a;
}

.admin-progress-stack.is-skipped p {
  color: var(--muted);
}

.admin-progress-stack p {
  margin: 0;
  color: #e8d6a0;
  font-size: 11px;
}

.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  color: var(--yellow);
}

.rating-line {
  color: white;
  font-size: 15px;
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.emotion-item {
  min-width: 0;
  text-align: center;
}

.emotion-face {
  width: 72px;
  max-width: 100%;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  aspect-ratio: 1.55 / 1;
  border-radius: 4px;
  background: #171717;
  font-size: 28px;
}

.emotion-item.top .emotion-face {
  background: var(--yellow);
}

.emotion-item strong,
.cast-card strong {
  display: block;
  overflow: hidden;
  color: white;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.emotion-item span,
.cast-card span {
  color: var(--muted);
  font-size: 12px;
}

.cast-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cast-card {
  min-width: 0;
  text-align: center;
}

.cast-card img {
  width: 84px;
  height: 94px;
  object-fit: cover;
  border-radius: 4px;
  background: #202020;
}

.watch-strip .watch-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 84px;
  height: 52px;
  margin: 0 auto;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #202020;
}

.watch-strip .watch-logo-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.watch-strip .watch-logo-wrap img.broken {
  display: none;
}

.watch-strip .watch-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #bdbdbd;
}

.watch-strip .watch-logo-fallback.is-hidden {
  display: none;
}

.watch-strip .watch-logo-wrap img.broken + .watch-logo-fallback.is-hidden {
  display: flex;
}

.watch-strip .watch-logo-fallback .ui-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.watch-strip .watch-logo-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2d2d2d;
  color: white;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: white;
  font-weight: 900;
}

.episode-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #242424;
  border-radius: var(--radius);
  background: #111;
  color: white;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.season-tabs,
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.sort-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.sort-row-scroll {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.comment-settings-wrap {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  z-index: 1;
}

.comment-settings-button {
  position: relative;
}

.comment-settings-button.is-filtered {
  color: #f6d565;
}

.comment-settings-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #f6d565;
  color: #111;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.comment-settings-panel {
  z-index: 500;
  width: min(320px, calc(100vw - 28px));
  max-height: min(420px, 60vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid #333;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-settings-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.comment-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-settings-head strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comment-settings-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.35;
}

.comment-settings-show-all {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.comment-settings-show-all-option {
  margin: 0;
}

.comment-settings-options {
  display: grid;
  gap: 6px;
}

.comment-settings-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  background: #181818;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.comment-settings-option:not(.is-disabled):hover {
  border-color: #444;
  background: #202020;
  transform: translateX(2px);
  transition:
    border-color 0s,
    background 0s,
    transform 0s;
}

.comment-settings-option.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.comment-settings-option.is-disabled:hover {
  border-color: #2a2a2a;
  background: #181818;
  transform: none;
}

.comment-settings-option input {
  accent-color: #f6d565;
}

.comment-settings-option-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.comment-settings-option-label {
  font-size: 12px;
  font-weight: 700;
}

.comment-settings-option-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #ddd;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.comment-card[hidden] {
  display: none !important;
}

.season-tabs {
  position: relative;
}

.season-tab-indicator {
  position: absolute;
  top: 12px;
  left: 0;
  height: 34px;
  border-radius: var(--radius);
  background: white;
  transform: translateX(0);
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    width 220ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.season-tab,
.sort-chip,
.tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: #202020;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.season-tab {
  position: relative;
  z-index: 1;
  background: #202020;
  transition:
    color 220ms ease,
    background-color 220ms ease;
}

.season-tab.active {
  background: transparent;
  color: black;
}

.sort-chip.active,
.tab.active {
  background: white;
  color: black;
}

/* Sorting other than most-liked is temporarily unavailable; the chips stay in
   place so the row keeps its shape for when it returns. */
.sort-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .season-tab-indicator,
  .season-tab {
    transition: none;
  }
}

.season-panel {
  padding: 14px 14px 0;
  background: #080808;
  border-bottom: 1px solid var(--line);
}

.season-panel-stats {
  margin-bottom: 12px;
}

.season-power-action {
  margin-top: 0;
  padding-bottom: 14px;
}

.show-comments-power-action {
  margin: 0;
  padding: 14px 18px;
  background: #080808;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.show-comments-power-action-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.power-action + .admin-panel,
.status-banner + .admin-panel {
  margin-top: 0;
}

button.power-action-done {
  cursor: pointer;
  font: inherit;
}

.season-panel-note {
  margin: 10px 0 0;
}

.season-fetch-progress {
  margin-top: 10px;
}

.sticky-action {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent, #000 34%);
}

.load-more-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.load-more-hint {
  max-width: min(460px, calc(100vw - 36px));
  color: var(--soft);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.comments-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.comments-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.comment-card {
  overflow: hidden;
  border: 1px solid #242424;
  border-radius: var(--radius);
  background: #050505;
}

.comment-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #242424;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: white;
  border: 2px solid white;
}

.comment-author {
  margin: 0;
  font-weight: 900;
}

.comment-date {
  color: var(--soft);
  font-size: 13px;
}

.comment-body {
  padding: 0 12px 12px;
  color: white;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.comment-mention {
  font-weight: 900;
}

.comment-image-wrap {
  position: relative;
  min-height: 120px;
  background: #111;
}

.comment-image-loading,
.comment-image-failed,
.comment-image-rate-limited,
.comment-image-website-media-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 18px 16px;
  color: var(--soft);
  text-align: center;
}

.comment-image-loading {
  font-size: 13px;
}

.comment-image-loading .button-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--soft);
}

.comment-image-failed,
.comment-image-rate-limited,
.comment-image-website-media-disabled {
  display: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.comment-image-failed .ui-icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.comment-image-failed p,
.comment-image-rate-limited p,
.comment-image-website-media-disabled p {
  max-width: 34rem;
  margin: 0;
}

.comment-image-wrap .comment-image {
  display: none;
}

.comment-image-wrap.is-loaded .comment-image-loading,
.comment-image-wrap.is-failed .comment-image-loading,
.comment-image-wrap.is-rate-limited .comment-image-loading,
.comment-image-wrap.is-website-media-disabled .comment-image-loading {
  display: none;
}

.comment-image-wrap.is-loaded .comment-image {
  display: block;
}

.comment-image-wrap.is-loaded.is-expandable .comment-image {
  cursor: zoom-in;
}

.comment-image-wrap.is-failed .comment-image-failed,
.comment-image-wrap.is-rate-limited .comment-image-rate-limited,
.comment-image-wrap.is-website-media-disabled .comment-image-website-media-disabled {
  display: flex;
}

.comment-image {
  width: 100%;
  display: block;
  max-height: 800px;
  object-fit: contain;
  object-position: center;
  background: #111;
  transition: max-height 0.5s ease;
}

.comment-image-wrap.is-expanded.is-expandable .comment-image {
  max-height: var(--comment-image-full-height, 800px);
  cursor: zoom-out;
}

@media (prefers-reduced-motion: reduce) {
  .comment-image {
    transition: none;
  }
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid #242424;
  color: white;
}

.reply-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #141414;
  color: white;
  font-weight: 800;
  white-space: nowrap;
}

.reply-button:disabled {
  cursor: default;
  opacity: 0.8;
}

.reply-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.reply-button.reply-complete {
  color: var(--green);
}

.reply-button.reply-partial {
  color: var(--yellow);
}

.reply-button.reply-missing {
  color: var(--red);
}

.reply-button.reply-empty {
  color: var(--muted);
}

.reply-hint {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.reply-fetch-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.reply-fetch-link:disabled,
button.reply-fetch-link.fetch-frozen,
button.reply-fetch-link.fetch-frozen:disabled {
  opacity: 1;
  filter: none;
  color: inherit;
  cursor: not-allowed;
}

.reply-hint .fetch-frozen-wrap {
  display: inline-block;
  vertical-align: baseline;
  max-width: 100%;
}

.replies {
  display: grid;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 12px;
  border-top: 1px solid #242424;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    padding 0.32s ease;
}

.replies.is-open {
  max-height: min(760px, 72vh);
  opacity: 1;
  overflow: auto;
  padding: 10px 12px 12px;
}

.reply {
  padding: 10px;
  border-radius: var(--radius);
  background: #101010;
}

.reply-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.reply-head .avatar {
  width: 28px;
  height: 28px;
}

.reply-head .avatar-fallback .ui-icon {
  width: 14px;
  height: 14px;
}

.reply-meta {
  min-width: 0;
}

.reply-head strong {
  display: block;
  margin: 0;
}

.reply-date {
  color: var(--soft);
  font-size: 11px;
  line-height: 1.3;
}

.reply-likes {
  flex-shrink: 0;
  color: white;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.reply-body {
  color: white;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.reply strong {
  display: block;
  margin-bottom: 4px;
}

.reply-error {
  border: 1px solid color-mix(in srgb, var(--red, #d84a4a), #000 45%);
  background: color-mix(in srgb, var(--red, #d84a4a), #000 88%);
  color: color-mix(in srgb, var(--red, #d84a4a) 40%, white);
}

.reply-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.reply-collapse-button {
  flex-shrink: 0;
}

.reply-collapse-button .ui-icon {
  width: 20px;
  height: 20px;
}

.reply-panel-button,
[data-fetch-replies] {
  display: none !important;
}

.reply-panel-button {
  min-height: 34px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .replies {
    transition: none;
  }

  .comment-image-loading .button-spinner {
    animation: none;
    border-top-color: var(--soft);
  }
}

.empty-state,
.loading-state {
  padding: 34px 18px;
  color: var(--soft);
  text-align: center;
}

.loading-state::before {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 12px;
  border: 3px solid #333;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  content: "";
}

.loading-state-progress::before {
  margin-bottom: 10px;
}

.loading-state-title {
  margin: 0;
}

.loading-progress-bar {
  width: min(340px, 88vw);
  margin: 14px auto 0;
  text-align: left;
}

.loading-progress-bar p {
  margin-top: 8px;
}

.token-dialog {
  width: min(94vw, 640px);
  max-height: min(92vh, 820px);
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 10px;
  background: #080808;
  color: white;
  padding: 0;
}

.token-dialog::backdrop,
.cache-dialog::backdrop,
.locked-title-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.locked-title-dialog {
  width: min(92vw, 520px);
  border: 1px solid #333;
  border-radius: 12px;
  background: #080808;
  color: white;
  padding: 0;
}

.locked-title-dialog-frame {
  display: grid;
  gap: 20px;
  padding: 28px 24px 24px;
  text-align: center;
}

.locked-title-message {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #f2f2f2;
}

.locked-title-dismiss {
  justify-self: center;
  min-width: 9rem;
}

.cache-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  height: min(860px, calc(100vh - 28px));
  max-height: none;
  border: 1px solid #333;
  border-radius: 10px;
  background: #080808;
  color: white;
  padding: 0;
}

.cache-dialog-frame {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.cache-dialog-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cache-dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-dashboard-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-dashboard-updated {
  margin: 0 0 12px;
  color: #c9b070;
  font-size: 11px;
}

.admin-dialog-frame {
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-dashboard-explorer {
  overflow: auto;
  min-height: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-dashboard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard-top .admin-dashboard-updated {
  margin: 0;
}

.admin-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-dashboard-tabs .admin-pill {
  padding: 6px 10px;
  font-size: 10px;
}

.admin-dashboard-panel {
  display: grid;
  gap: 12px;
}

.bulk-queue-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.15fr);
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.bulk-queue-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.bulk-queue-column [data-bulk-queue-list-host] {
  overflow: auto;
  min-height: 0;
}

.bulk-queue-progress-panel {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.bulk-queue-lock-notice {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: #171106;
  color: #e8d6a0;
  font-size: 11px;
  line-height: 1.45;
}

.bulk-queue-lock-notice.is-active {
  border-color: #d4a017;
  color: #ffe9a8;
}

.bulk-queue-lock-notice.is-warning {
  border-color: #b8860b;
  color: #f0d27a;
}

.bulk-queue-lock-notice.is-released {
  border-color: #4a5f2f;
  color: #d8e8b8;
}

.bulk-queue-add {
  margin-bottom: 10px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: #171106;
}

.bulk-queue-add summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #f0d27a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bulk-queue-add-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.bulk-queue-type {
  justify-content: flex-start;
}

.bulk-queue-ids {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.bulk-queue-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bulk-queue-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #2a220f;
  border-radius: 8px;
  background: #120e05;
}

.bulk-queue-item.is-dragging {
  opacity: 0.45;
}

.bulk-queue-item.is-drag-over {
  border-color: #d4a017;
  box-shadow: inset 0 0 0 1px #d4a017;
}

.bulk-queue-drag-handle {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  border-radius: 4px;
  background: transparent;
  color: #8f7a45;
  font-size: 14px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.bulk-queue-drag-handle:hover,
.bulk-queue-drag-handle:focus-visible {
  color: #f0d27a;
  background: #1b1407;
}

.bulk-queue-drag-handle:active {
  cursor: grabbing;
}

.bulk-queue-item.is-current {
  border-color: #d4a017;
  background: #1b1407;
}

.bulk-queue-item.is-done {
  opacity: 0.62;
}

.bulk-queue-index,
.bulk-queue-status {
  color: #c9b070;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bulk-queue-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

a.bulk-queue-item-link {
  color: inherit;
  text-decoration: none;
}

a.bulk-queue-item-link:hover strong,
a.bulk-queue-item-link:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.bulk-queue-item-link:focus-visible {
  outline: 1px solid #d4a017;
  outline-offset: 2px;
  border-radius: 4px;
}

.bulk-queue-main strong {
  overflow: hidden;
  color: #ffe9a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-queue-main span,
.bulk-queue-main small {
  color: #c9b070;
  font-size: 10px;
  line-height: 1.3;
  word-break: break-word;
}

.bulk-queue-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #3d2f14;
  border-radius: 50%;
  background: #171106;
  color: #f0d27a;
  cursor: pointer;
}

.bulk-queue-remove:hover:not(:disabled) {
  border-color: #d4a017;
  color: #ffe9a8;
}

.bulk-queue-remove:disabled {
  cursor: wait;
  opacity: 0.5;
}

.admin-dashboard-block h3 {
  margin: 0 0 6px;
  color: #f0d27a;
  font-size: 13px;
}

.admin-dashboard-meta {
  margin: 0 0 8px;
  color: #c9b070;
  font-size: 11px;
}

.admin-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-dashboard-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: #171106;
}

.admin-dashboard-metrics strong {
  color: #ffe9a8;
  font-size: 14px;
}

.admin-dashboard-metrics small {
  color: #c9b070;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-dashboard-bars,
.admin-dashboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-dashboard-bars li,
.admin-dashboard-list li {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid #2a220f;
}

.admin-dashboard-bars li:last-child,
.admin-dashboard-list li:last-child {
  border-bottom: 0;
}

.admin-dashboard-bar-label {
  color: #e8d7a0;
  font-size: 11px;
}

.admin-dashboard-bar-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #2a220f;
  overflow: hidden;
}

.admin-dashboard-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4a017, #f0d27a);
}

.admin-dashboard-bar-value {
  color: #c9b070;
  font-size: 10px;
}

.admin-dashboard-list li strong {
  color: #ffe9a8;
  font-size: 12px;
}

.admin-dashboard-list li span,
.admin-dashboard-list li p {
  margin: 0;
  color: #d8c792;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-dashboard-list li small {
  color: #9a8750;
  font-size: 10px;
}

.admin-dashboard-list.compact li {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-dashboard-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-dashboard-block-head h3 {
  margin: 0 0 4px;
}

.admin-dashboard-block-head .admin-dashboard-meta {
  margin: 0;
}

.admin-dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-dashboard-sort {
  display: flex;
  gap: 4px;
}

.admin-dashboard-toolbar .admin-pill {
  padding: 5px 8px;
  font-size: 10px;
}

.admin-locked-titles-input {
  width: 100%;
  min-height: 12rem;
  margin-top: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.admin-dashboard-list.requests li {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}

.admin-dashboard-list.requests li.is-done {
  opacity: 0.72;
}

.admin-request-link,
.admin-request-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-request-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  margin: -4px;
  padding: 4px;
  transition: background 0.15s ease;
}

.admin-request-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-request-link strong {
  color: #9ec5ff;
}

.admin-request-link:hover strong {
  text-decoration: underline;
}

.admin-jobs-block .admin-dashboard-toolbar {
  align-items: center;
}

.admin-jobs-dashboard {
  display: grid;
  gap: 8px;
}

.admin-jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-jobs-header-title {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.admin-jobs-updated {
  margin: 0;
  color: var(--muted, #9aa3b2);
  font-size: 10px;
  white-space: nowrap;
}

.admin-jobs-refresh {
  flex-shrink: 0;
}

.admin-jobs-grid {
  display: grid;
  gap: 8px;
}

.admin-job-card {
  border: 1px solid #2a3140;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
}

.admin-job-card.is-live {
  border-color: #3d5f96;
  box-shadow: inset 2px 0 0 #6ea8ff;
}

.admin-job-card.is-stopped {
  opacity: 0.9;
}

.admin-job-card.is-error {
  border-color: #7a3f3f;
}

.admin-job-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-job-card-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.admin-job-card-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.admin-job-card-title a {
  color: inherit;
  text-decoration: none;
}

.admin-job-card-title a:hover {
  text-decoration: underline;
}

.admin-job-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #273041;
  color: #b8c0cc;
}

.admin-job-badge.is-running,
.admin-job-card.is-running .admin-job-badge {
  background: #1f3a5f;
  color: #9ec5ff;
}

.admin-job-badge.is-stopped,
.admin-job-card.is-stopped .admin-job-badge {
  background: #3a3420;
  color: #e0c060;
}

.admin-job-badge.is-error,
.admin-job-card.is-error .admin-job-badge {
  background: #4a2323;
  color: #f0a0a0;
}

.admin-job-card-settings {
  color: var(--muted, #9aa3b2);
  font-size: 10px;
}

.admin-job-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.admin-job-card-actions .admin-button-compact {
  padding: 3px 8px;
  font-size: 10px;
}

.admin-job-card-rows {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.admin-job-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: baseline;
  font-size: 11px;
  line-height: 1.35;
}

.admin-job-k {
  color: #7f8794;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-job-v {
  min-width: 0;
  word-break: break-word;
}

.admin-job-v a {
  color: #9ec5ff;
  text-decoration: none;
}

.admin-job-v a:hover {
  text-decoration: underline;
}

.admin-job-delete {
  color: #e08a8a;
}

.admin-job-lock.is-locked {
  color: #e0b060;
}

.admin-job-lock.is-unlocked {
  color: #8fbf7a;
}

.admin-drawer .admin-dashboard-explorer:has(.admin-jobs-dashboard) {
  overflow: auto;
}

.admin-drawer .admin-dashboard-explorer:has(.admin-jobs-dashboard) .admin-dashboard-panel {
  min-width: 0;
}

@media (max-width: 720px) {
  .admin-job-row {
    grid-template-columns: auto 1fr;
  }

  .admin-job-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-job-card-actions {
    justify-content: flex-end;
  }
}

.admin-request-done {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 10px;
}

.admin-request-status {
  color: #8fbf7a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-dashboard-list.feedback li {
  padding: 10px 0;
}

.cache-explorer {
  overflow: auto;
  min-height: 0;
  padding: 16px;
}

.cache-stats-rebuild {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #3d2f14;
  border-radius: 8px;
  background: #141006;
}

.cache-explorer-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(110px, auto)) auto;
  gap: 8px;
  align-items: center;
}

.cache-explorer-status-select.cache-status-all {
  color: white;
}

.cache-explorer-status-select.status-missing {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 42%, #333);
}

.cache-explorer-status-select.status-partial {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 42%, #333);
}

.cache-explorer-status-select.status-replies-partial {
  --status: color-mix(in srgb, var(--green) 42%, var(--yellow) 58%);
  color: var(--status);
  border-color: color-mix(in srgb, var(--status) 42%, #333);
}

.cache-explorer-status-select.status-complete {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 42%, #333);
}

#cacheExplorerStatus option.cache-status-all {
  color: white;
  background: #141414;
}

#cacheExplorerStatus option.status-missing {
  color: var(--red);
  background: #141414;
}

#cacheExplorerStatus option.status-partial {
  color: var(--yellow);
  background: #141414;
}

#cacheExplorerStatus option.status-replies-partial {
  --status: color-mix(in srgb, var(--green) 42%, var(--yellow) 58%);
  color: var(--status);
  background: #141414;
}

#cacheExplorerStatus option.status-complete {
  color: var(--green);
  background: #141414;
}

.cache-explorer-crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #070707;
}

.cache-explorer-crumb .side-kicker {
  margin: 0 0 4px;
}

.cache-explorer-crumb strong {
  display: block;
  font-size: 15px;
}


.cache-db-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.cache-db-summary--counts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.cache-explorer-overview {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #0f0f0f;
}

.cache-overview-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid #282828;
}

.cache-storage-button {
  flex: 0 0 auto;
  min-height: 32px;
  white-space: nowrap;
}

.cache-overview-hero strong {
  font-size: 24px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.cache-overview-hero-copy span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.cache-overview-hero-copy small {
  display: block;
  margin-top: 2px;
  max-width: 16rem;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.35;
}

.cache-overview-meta {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  min-width: 0;
}

.cache-overview-meta > div {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #171717;
  cursor: help;
}

.cache-overview-meta dt {
  margin: 0;
  color: #777;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cache-overview-meta dd {
  margin: 0;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.cache-db-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #0f0f0f;
}

.cache-db-summary strong,
.cache-db-summary span {
  display: block;
}

.cache-db-summary strong {
  font-size: 22px;
  line-height: 1;
}

.cache-db-summary span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.resource-bands span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #2d2d2d;
  border-radius: 999px;
  background: #050505;
}

.resource-bands strong {
  font-size: 11px;
  text-transform: uppercase;
}

.resource-bands small {
  color: var(--muted);
  font-size: 11px;
}

.cache-result-list {
  display: grid;
  gap: 10px;
}

.cache-result-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--status), #000 50%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--status), #000 92%);
}

.cache-result-row.is-clickable {
  cursor: pointer;
}

.cache-result-row.is-clickable:hover .cache-result-main h3 {
  color: #fff;
}

.cache-result-row.is-locked-title {
  opacity: 0.72;
}

.cache-result-row.is-locked-title .cache-result-main h3::after {
  content: " · ⚠️ LOCKED - Don't worry, we have this item separately";
  font-size: 0.78em;
  font-weight: 500;
  color: var(--muted);
}

.cache-result-row-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.cache-result-main {
  position: relative;
  z-index: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  pointer-events: none;
}

.cache-result-main.has-type-pill {
  padding-right: 54px;
}

.cache-result-main .cache-type-pill {
  top: 0;
  right: 0;
}

.cache-result-main h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cache-result-main p,
.cache-key-line {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cache-key-line {
  color: #777;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.cache-result-layers {
  position: relative;
  z-index: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.cache-result-actions {
  position: relative;
  z-index: 0;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.cache-result-actions.has-drill {
  z-index: 2;
  pointer-events: none;
}

.cache-drill-action {
  pointer-events: auto;
  white-space: nowrap;
}

.cache-result-actions time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.cache-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 2px;
  color: var(--soft);
}

.cache-pager div {
  display: flex;
  gap: 8px;
}

.cache-pager button:disabled {
  cursor: default;
  opacity: 0.45;
}

.token-card {
  position: relative;
  max-height: inherit;
  overflow: auto;
  padding: 22px;
}

.token-card h2 {
  margin: 0 40px 8px 0;
  font-size: 24px;
  line-height: 1.1;
}

.token-card p,
.token-card li {
  color: var(--soft);
  line-height: 1.42;
}

.token-eyebrow {
  margin: 0 40px 8px 0;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-reason {
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #0f0f0f;
}

.fetch-reason-heading {
  margin: 0 0 8px;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.fetch-reason-note {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.fetch-reason-note strong {
  color: white;
}

.fetch-reason-plain {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.fetch-reason-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.fetch-reason-list li + li {
  margin-top: 6px;
}

.status-banner .fetch-reason-list {
  margin-bottom: 12px;
}

.token-guide {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.token-guide-tabs {
  display: flex;
  gap: 6px;
}

.token-guide-tab {
  flex: 1;
  min-height: 36px;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #151515;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.token-guide-tab.active,
.token-guide-tab[aria-selected="true"] {
  border-color: var(--yellow);
  background: #1f1a10;
  color: var(--yellow);
}

.token-guide-lead {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}

.token-guide-panel {
  display: grid;
  gap: 10px;
}

.token-guide-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
}

.token-guide-steps-visual {
  padding-left: 0;
  list-style: none;
}

.token-guide-steps-visual li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #101010;
}

.token-guide-step-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
}

.token-guide-browser-hint {
  display: block;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid #333;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.token-guide-browser-hint strong {
  color: #d8c48a;
}

.token-ios-share-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.token-ios-share-icon {
  display: inline-block;
  width: 0.95em;
  height: 1.15em;
  flex: 0 0 auto;
  color: white;
  vertical-align: -0.1em;
}

.token-guide-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.4;
}

.token-guide-callout-note {
  border: 1px solid #4a3a18;
  background: #1a160d;
  color: #f0d27a;
}

.token-guide-callout-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a3a18;
  color: #f0d27a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.token-bookmark-copy {
  display: block;
  margin-top: 8px;
}

.token-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #444;
  border-radius: var(--radius);
  background: #181818;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.token-copy-button:hover,
.token-copy-button.is-copied {
  border-color: var(--yellow);
  color: var(--yellow);
}

.token-guide p {
  margin: 0;
}

.token-guide ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
}

.token-guide li {
  position: relative;
}

.token-guide strong {
  color: white;
}

.token-guide a {
  color: white;
  font-weight: bold;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.token-guide a:hover {
  color: var(--yellow);
}

.token-inline-help {
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  border: 1px solid #444;
  background: #151515;
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.token-inline-help:hover,
.token-inline-help[aria-expanded="true"] {
  border-color: var(--yellow);
}

.token-how-help {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
}

.token-icon-help {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
}

.token-help-panel {
  display: grid;
  gap: 6px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.24s ease,
    margin-top 0.32s ease;
}

.token-help-panel.is-open {
  max-height: 240px;
  opacity: 1;
  margin-top: 8px;
}

.token-help-panel[hidden] {
  display: grid !important;
}

.token-tool-options span,
.token-help-panel p {
  display: block;
  margin: 0;
  /* padding: 7px 9px;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #121212; */
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.token-guide figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #111;
}

.token-guide img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #201d25;
}

.token-guide figcaption,
.token-input-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.token-guide figcaption {
  padding: 8px 10px;
  border-top: 1px solid #333;
}

.token-quick {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #2d2d2d;
  border-radius: var(--radius);
  background: #101010;
}

.token-quick p {
  margin: 0;
}

.token-label {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-card textarea {
  min-height: 96px;
  margin-top: 8px;
  padding: 10px;
  resize: vertical;
}

.token-card-quick textarea {
  min-height: 72px;
}

.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
}

.token-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-top: 14px;
}

.toast-layer {
  position: fixed;
  left: 50%;
  top: calc(52px + 10px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-sound-fab {
  --toast-accent: var(--blue);
  position: relative;
  align-self: flex-end;
  margin-top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 48%, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: color-mix(in srgb, var(--toast-accent) 14%, rgba(8, 12, 18, 0.88));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.toast-sound-fab:hover,
.toast-sound-fab:focus-visible {
  border-color: color-mix(in srgb, var(--toast-accent) 62%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--toast-accent) 22%, rgba(8, 12, 18, 0.9));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.toast-sound-fab.is-on {
  color: var(--toast-accent);
  border-color: color-mix(in srgb, var(--toast-accent) 58%, rgba(255, 255, 255, 0.16));
  background: color-mix(in srgb, var(--toast-accent) 24%, rgba(8, 12, 18, 0.9));
}

.toast-sound-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.toast-stack {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  transform: none;
  pointer-events: none;
}

.toast-stack:not([hidden]) {
  pointer-events: auto;
}

.toast-stack-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.toast {
  --toast-accent: var(--blue);
  --toast-bg: color-mix(in srgb, var(--toast-accent) 20%, rgba(8, 12, 18, 0.68));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 42%, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  background: var(--toast-bg);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  color: white;
  text-align: left;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 color-mix(in srgb, var(--toast-accent) 24%, rgba(255, 255, 255, 0.12));
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.24s ease;
}

.toast--success {
  --toast-accent: var(--green);
  --toast-bg: color-mix(in srgb, var(--green) 18%, rgba(8, 14, 10, 0.68));
  border-color: color-mix(in srgb, var(--green) 40%, rgba(255, 255, 255, 0.08));
}

.toast--warning {
  --toast-accent: var(--yellow);
  --toast-bg: color-mix(in srgb, var(--yellow) 16%, rgba(16, 14, 8, 0.7));
  border-color: color-mix(in srgb, var(--yellow) 38%, rgba(255, 255, 255, 0.08));
}

.toast--error {
  --toast-accent: var(--red);
  --toast-bg: color-mix(in srgb, var(--red) 18%, rgba(16, 8, 8, 0.7));
  border-color: color-mix(in srgb, var(--red) 40%, rgba(255, 255, 255, 0.08));
}

.toast-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.toast-body {
  flex: 1 1 auto;
  min-width: 0;
}

.toast-age {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: color-mix(in srgb, white 58%, transparent);
  font-variant-numeric: tabular-nums;
}

.toast-details-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--toast-accent) 82%, white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toast-details-toggle:hover,
.toast-details-toggle:focus-visible {
  color: white;
}

.toast-details {
  margin: 8px 0 0;
  padding: 8px 10px;
  max-height: 180px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 28%, rgba(255, 255, 255, 0.08));
  background: rgba(0, 0, 0, 0.28);
  color: color-mix(in srgb, white 88%, var(--toast-accent));
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toast-sound-fab .toast-sound-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast-sound-icon--on {
  display: none;
}

.toast-sound-fab.is-on .toast-sound-icon--off {
  display: none;
}

.toast-sound-fab.is-on .toast-sound-icon--on {
  display: block;
}

.toast-dismiss {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--toast-accent) 10%, transparent);
}

.toast-dismiss:hover,
.toast-dismiss:focus-visible {
  background: color-mix(in srgb, var(--toast-accent) 22%, transparent);
}

.toast-timer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.toast-timer-track {
  stroke: color-mix(in srgb, var(--toast-accent) 22%, #333);
}

.toast-timer-progress {
  stroke: var(--toast-accent);
  stroke-dasharray: 62.83;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

.toast.is-active .toast-timer-progress {
  animation: toast-countdown 10s linear forwards;
}

.toast-dismiss-icon {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1.5px);
}

@keyframes toast-countdown {
  to {
    stroke-dashoffset: 62.83;
  }
}

@media (max-width: 1039px) {
  .toast-layer {
    top: calc(44px + 52px + 10px);
  }
}

.soft {
  color: var(--soft);
}

.danger {
  color: var(--red);
}

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

.archive-summary:has(+ .power-action) {
  border-bottom: 0;
}

.archive-summary + .power-action,
.archive-summary + .status-banner {
  margin-top: 0;
  padding: 0 18px 14px;
  background: #080808;
  border-bottom: 1px solid var(--line);
}

.archive-summary + .status-banner {
  padding: 14px 18px;
}

.power-action {
  margin-top: 14px;
}

.power-action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.power-action-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.power-check-comments {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.power-check-comments:hover:not(:disabled) {
  color: white;
}

.power-check-comments:disabled {
  opacity: 0.55;
  cursor: wait;
}

.power-check-status {
  margin: 6px 0 0;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--soft);
}

.power-check-episode-log {
  display: grid;
  gap: 2px;
  max-height: 96px;
  margin: 6px 0 0;
  padding: 0 4px;
  overflow: auto;
  list-style: none;
}

.power-check-episode-entry {
  font-size: 10px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--muted) 88%, white);
  font-variant-numeric: tabular-nums;
}

.power-check-episode-entry.has-new {
  color: color-mix(in srgb, #8bc34a 72%, white);
}

.power-check-episode-entry-stop {
  color: color-mix(in srgb, var(--soft) 92%, white);
  font-style: italic;
}

.power-action-completed-at {
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.power-fetch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  cursor: pointer;
  transition: background-color 120ms ease, filter 120ms ease;
}

.power-fetch-button-comments {
  background: var(--blue);
}

.power-fetch-button-comments:hover:not(:disabled) {
  filter: brightness(1.08);
}

.power-fetch-button-replies {
  background: #242424;
}

.power-fetch-button-replies:hover:not(:disabled) {
  background: #303030;
}

.power-fetch-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.power-action-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid color-mix(in srgb, var(--green), #000 45%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green), #000 88%);
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.power-action-fetch-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid color-mix(in srgb, var(--amber, #d4a017), #000 55%);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--amber, #d4a017), #000 90%);
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.power-action-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.power-action-upstream-log {
  display: grid;
  gap: 4px;
  max-height: 120px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.reply-fetch-host,
.fetch-route-host {
  display: grid;
  gap: 0;
  min-width: 0;
}

.reply-fetch-host .power-action-upstream-log,
.fetch-route-host .power-action-upstream-log {
  margin-top: 4px;
}

.power-action-upstream-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  color: color-mix(in srgb, var(--muted) 88%, white);
  font-size: 11px;
  line-height: 1.35;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.power-action-upstream-entry:first-child {
  border-top: 0;
}

.power-action-upstream-time {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--muted) 100%, white 12%);
  font-variant-numeric: tabular-nums;
}

.power-action-upstream-message {
  min-width: 0;
  color: color-mix(in srgb, #ffb74d 72%, white);
}

.power-action-upstream-entry-success .power-action-upstream-message {
  color: color-mix(in srgb, #81c784 78%, white);
}

.power-action-upstream-entry-fatal .power-action-upstream-message {
  color: color-mix(in srgb, #ef9a9a 78%, white);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.interest-chip {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #151515;
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.vote-list {
  display: grid;
  gap: 8px;
}

.vote-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #242424;
  border-radius: var(--radius);
  background: #101010;
}

.vote-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-search-panel {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #070707;
}

.comment-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.comment-search-results {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.archive-progress {
  margin-top: 10px;
}

.archive-progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #242424;
}

.archive-progress-bar span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease;
}

.archive-progress p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 12px;
}

@media (max-width: 420px) {
  .hero-home h1,
  .hero-title {
    font-size: 26px;
  }

  .hero-title-icon {
    width: 32px;
    height: 32px;
  }

  .shutdown-countdown {
    font-size: 13px;
  }

  .shutdown-countdown .countdown-value strong {
    font-size: 15px;
  }

  .emotion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .comment-actions {
    flex-wrap: wrap;
  }

  .reply-hint {
    flex-basis: 100%;
  }

  .comment-search-form {
    grid-template-columns: 1fr;
  }

  .cache-db-summary {
    grid-template-columns: 1fr;
  }

  .cache-explorer-overview {
    flex-direction: column;
    gap: 8px;
  }

  .cache-overview-hero {
    align-items: stretch;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid #282828;
  }

  .cache-storage-button {
    width: 100%;
  }

  .cache-overview-meta > div {
    flex: 1 1 calc(50% - 6px);
  }

  .token-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .token-card {
    padding: 18px;
  }

  .token-card h2 {
    font-size: 21px;
  }

  .token-guide img {
    max-height: 240px;
  }

  .token-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (max-width: 1039px) {
  .mobile-discord-fab {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #5865f2;
    color: #fff;
    text-decoration: none;
    box-shadow:
      0 10px 24px rgba(88, 101, 242, 0.42),
      0 2px 8px rgba(0, 0, 0, 0.28);
    transition:
      transform 0.18s ease,
      filter 0.18s ease,
      box-shadow 0.18s ease;
  }

  .mobile-discord-fab:hover,
  .mobile-discord-fab:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
      0 14px 28px rgba(88, 101, 242, 0.48),
      0 4px 10px rgba(0, 0, 0, 0.32);
  }

  .mobile-discord-fab:active {
    transform: translateY(0);
  }

  .mobile-discord-fab-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .context-drawer {
    position: sticky;
    top: 0;
    z-index: 35;
    display: block;
  }

  .context-toggle {
    position: relative;
  }

  .app-brand--drawer {
    position: absolute;
    left: 50%;
    top: 50%;
    max-height: none;
    overflow: visible;
    gap: 7px;
    font-size: 15px;
    color: white;
    white-space: nowrap;
    transform: translate(-50%, calc(-50% - 5px));
    transition:
      opacity 0.28s ease,
      transform 0.34s ease,
      visibility 0s linear 0.34s;
  }

  body:not(:has(.hero-home)) .app-brand--side {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    padding: 0 4px;
  }

  body:not(:has(.hero-home)) .app-brand--drawer {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
    transition:
      opacity 0.28s ease,
      transform 0.34s ease,
      visibility 0s linear 0s;
  }

  .app-shell {
    display: flex;
    padding: 0;
  }

  .side-pane {
    display: none;
  }

  .home-farewell-widget {
    display: block;
    padding: 14px;
    border-top: 1px solid var(--line);
  }

  .home-cache-widget {
    display: block;
    padding: 14px;
    border-top: 1px solid var(--line);
  }

  body:has(.home-farewell-widget) .context-drawer [data-farewell-widget] {
    display: none;
  }

  body:has(.home-cache-widget) .context-drawer [data-cache-widget] {
    display: none;
  }

  body:has(.how-possible) .context-drawer [data-token-widget] {
    display: none;
  }

  .topbar {
    top: 44px;
  }

  body.solo-fetch-mode #app.screen {
    outline: none;
    outline-offset: 0;
    border-left: 2px solid rgba(255, 23, 68, 0.95);
    border-right: 2px solid rgba(255, 23, 68, 0.95);
    box-shadow:
      inset 0 0 0 2px rgba(255, 23, 68, 0.55),
      inset 0 0 18px rgba(255, 23, 68, 0.12);
  }

  body.admin-mode .mobile-discord-fab {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 820px) {
  .bulk-queue-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .bulk-queue-progress-panel {
    order: -1;
  }

  .bulk-queue-column {
    min-height: 0;
  }

  .bulk-queue-item {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "handle index main remove"
      "handle status status remove";
    align-items: start;
  }

  .bulk-queue-drag-handle {
    grid-area: handle;
    align-self: center;
  }

  .bulk-queue-index {
    grid-area: index;
  }

  .bulk-queue-main {
    grid-area: main;
  }

  .bulk-queue-status {
    grid-area: status;
    align-self: center;
  }

  .bulk-queue-remove {
    grid-area: remove;
    align-self: center;
  }

  .cache-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .cache-explorer-controls,
  .cache-result-row {
    grid-template-columns: 1fr;
  }

  .cache-result-actions {
    justify-items: stretch;
  }

  .cache-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .cache-pager div,
  .cache-pager button {
    width: 100%;
  }
}
