/* ---------------------------------------------------------------
   Seerr request widget styles.

   Dynacat ignores <style> blocks inside custom-api templates, so
   these live here instead and get pulled in via:

     theme:
       custom-css-file: /assets/seerr.css

   Append to an existing global.css if you already have one — a
   theme can only reference a single file.
   --------------------------------------------------------------- */

.seerr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}

/* Separators between rows only, so no stray line under the last one. */
.seerr-row + .seerr-row {
  border-top: 1px solid var(--color-separator);
}

.seerr-thumb {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.seerr-poster {
  width: 34px;
  height: 51px;
  object-fit: cover;
  border-radius: 3px;
}

/* Hover preview — hidden until the thumbnail is hovered. */
.seerr-preview {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 150px;
  height: auto;
  max-width: none;            /* beats any global img rule */
  border-radius: 5px;
  border: 1px solid var(--color-separator);
  box-shadow: 0 8px 24px rgb(0 0 0 / .55);
  transform: translateY(-50%) scale(.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  transition: opacity .12s ease, transform .12s ease, visibility 0s .12s;
}

/* Short delay so it doesn't flash as the cursor passes through. */
.seerr-thumb:hover .seerr-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  transition-delay: .15s, .15s, 0s;
}

.seerr-btn {
  background: none;
  border: 1px solid var(--color-separator);
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.seerr-form {
  display: inline;
  margin: 0;
}
