/* Jellyfin brand palette: #00A4DC (blue) and #AA5CC3 (purple) on #101010. */
:root {
  --jf-blue: #00a4dc;
  --jf-purple: #aa5cc3;
  --bg: #101010;
  --surface: #18181d;
  --text: #eef0f4;
  --muted: #9aa0ae;
  --ring: rgba(170, 92, 195, 0.32);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Dynamic viewport so mobile browser chrome cannot clip the top. */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(38rem 38rem at 12% -8%, rgba(170, 92, 195, 0.20), transparent 62%),
    radial-gradient(42rem 42rem at 92% 8%, rgba(0, 164, 220, 0.16), transparent 60%),
    radial-gradient(46rem 30rem at 50% 116%, rgba(0, 164, 220, 0.10), transparent 70%);
  background-repeat: no-repeat;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Auto margins centre the block when there is room, and collapse to the top
   padding instead of clipping when the content is taller than the viewport. */
.wrap {
  margin-block: auto;
  width: 100%;
  max-width: 44rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- brand ---------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.brand__mark svg {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  filter: drop-shadow(0 0 0.9rem rgba(170, 92, 195, 0.45));
}

.brand__text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(96deg, var(--jf-purple), var(--jf-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- status pill ---------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid rgba(170, 92, 195, 0.35);
  border-radius: 999px;
  background: rgba(170, 92, 195, 0.10);
  color: #d9c8e6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--jf-purple);
  box-shadow: 0 0 0 0 rgba(170, 92, 195, 0.65);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(170, 92, 195, 0.65); }
  70%  { box-shadow: 0 0 0 0.55rem rgba(170, 92, 195, 0); }
  100% { box-shadow: 0 0 0 0 rgba(170, 92, 195, 0); }
}

/* --- artwork -------------------------------------------------------- */
.art {
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  width: min(23.5rem, 84vw);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1.5rem 3.5rem -1rem rgba(0, 0, 0, 0.85),
    0 0 4rem -1rem rgba(170, 92, 195, 0.35);
}

.art img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- copy ----------------------------------------------------------- */
h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 4.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.lede {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: #d3d7e0;
}

/* --- footer --------------------------------------------------------- */
.footer {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7280;
}

@media (prefers-reduced-motion: reduce) {
  .status__dot {
    animation: none;
  }
}

/* --- small screens --------------------------------------------------- */
@media (max-width: 30rem) {
  body {
    padding: 1.4rem 1rem 1.4rem;
  }

  /* On phones, anchor the content to the top instead of centring it in the
     viewport, which otherwise leaves a large dead gap above the logo. */
  .wrap {
    margin-block: 0;
  }

  .footer {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.68rem;
  }

  .brand {
    margin-bottom: 0.9rem;
  }

  .brand__mark svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .status {
    margin-bottom: 1.1rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  }

  .art {
    width: min(19rem, 68vw);
    margin-bottom: 1.2rem;
    border-radius: 1.15rem;
  }

  h1 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .lede {
    font-size: 0.97rem;
  }
}

/* Short viewports (landscape phones): shrink the art so the copy stays visible. */
@media (max-height: 42rem) and (min-width: 30.01rem) {
  .art {
    width: min(14rem, 26vh);
  }
}
