/*
  Components — appearance of reusable UI pieces. Every rule here is a
  class selector, never an element selector. Not `.streaming-links a`,
  but `.streaming-link` — so replacing an <a> with a <button>, or
  adding an icon wrapper inside one, never requires touching this file.
*/

.media-video {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-standard);
}

.media-video.is-visible {
  opacity: 1;
}

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

/*
  Entrance reveal — the one-time content fade/rise on page load. This
  never gates interactivity: the HTML is real and clickable throughout,
  the animation is purely visual polish layered on top. Independent of
  the video crossfade, which can take arbitrarily longer on a slow
  connection — content never waits on media.
*/
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-title,
  .streaming-links,
  .footer,
  .wordmark,
  .featured-link {
    animation: none;
  }
}

.release-title {
  animation: reveal var(--duration-slow) var(--ease-standard) both;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
}

/*
  Streaming link — the "premium glass panel" direction: a low-opacity
  tint (kept deliberately low, 5-8%, so it never lightens the
  background enough to threaten text contrast) plus a backdrop blur
  where supported. The tint alone is a perfectly reasonable button
  background on its own — the blur is additive polish, not a
  requirement, so browsers without backdrop-filter support still get
  a coherent, functional button.

  The outline itself comes from the global :focus-visible rule in
  base.css. The background/border glow below is redefined for both
  :hover and :focus-visible, so keyboard users get the same feedback
  mouse users do — not just the bare outline.
*/
.streaming-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px; /* accessible tap target floor */
  padding-inline: var(--space-lg);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--text-body);
  color: var(--neutral-000);

  background: rgba(var(--neutral-000-rgb), 0.08);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);

  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.streaming-links {
  animation: reveal var(--duration-slow) var(--ease-standard) both;
  animation-delay: 100ms;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .streaming-link {
    background: rgba(var(--neutral-000-rgb), 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.streaming-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 15%, rgba(var(--neutral-000-rgb), 0.08));
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Scoped to devices that actually have hover, so touch doesn't get a
   hover state stuck on after a tap. */
@media (hover: hover) {
  .streaming-link:hover {
    background: color-mix(in srgb, var(--accent) 15%, rgba(var(--neutral-000-rgb), 0.08));
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    transform: scale(1.02);
  }
}

.streaming-link:active {
  transform: scale(0.98);
}

.footer {
  animation: reveal var(--duration-slow) var(--ease-standard) both;
  animation-delay: 180ms;
  margin-top: var(--space-xs);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* Hub page */

.wordmark {
  animation: reveal var(--duration-slow) var(--ease-standard) both;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
}

.release-link {
  display: block;
  text-decoration: none;
  padding-block: var(--space-xs);
}

.release-link:active {
  opacity: 0.7;
}

.featured-link {
  animation: reveal var(--duration-slow) var(--ease-standard) both;
  animation-delay: 100ms;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  font-weight: 600;
}

.release-link:focus-visible {
  text-decoration: underline;
}

@media (hover: hover) {
  .release-link:hover {
    text-decoration: underline;
  }
}
