/* Greybox Watch CTA — ONE centralized playback-button system.
 *
 * Every button that starts movie/TV playback uses .watch-cta (with
 * .watch-cta--hero / .watch-cta--compact where the size demands it):
 *   #hero-play  (hero Watch Now — navigates to the title)
 *   #m-watch    (detail modal Watch Now — starts playback)
 * Playback LOGIC is untouched (js/app.js, js/stream.js, js/hero.js): this
 * file is pure visual + interaction. Old .gx-btn classes stay on the
 * markup for compatibility; these rules win by source order (this sheet
 * loads last) on every tied specificity.
 *
 * Design: a clean premium pill — warm-white surface, near-black text, a
 * thin dark outline, a soft outer shadow and an inner top highlight. No
 * chromatic border, no orbit animation, no hue shift: the art behind the
 * button is already colorful, so the control stays quiet and legible.
 */

.watch-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--watch-border);
  border-radius: var(--gx-radius-pill);
  background: linear-gradient(180deg, #fffefb 0%, var(--watch-surface) 58%, var(--watch-surface-bottom) 100%);
  color: var(--watch-text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-variant-emoji: text; /* ▶ stays a text glyph, never an emoji */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -2px 5px rgba(12, 12, 17, 0.07),
    0 12px 30px rgba(0, 0, 0, 0.38),
    0 2px 7px rgba(0, 0, 0, 0.32);
  transition:
    transform 180ms var(--gx-kease, ease),
    box-shadow 200ms var(--gx-kease, ease),
    background 200ms var(--gx-kease, ease),
    border-color 200ms var(--gx-kease, ease);
}

/* Hover: a 1px lift and a brighter surface. No scale, no color travel. */
.watch-cta:hover {
  transform: translateY(-1px);
  border-color: #000;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf6 58%, #f0eee7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 5px rgba(12, 12, 17, 0.055),
    0 16px 36px rgba(0, 0, 0, 0.43),
    0 3px 9px rgba(0, 0, 0, 0.34);
}

/* Press: physically pressed — sinks 1px, shadow collapses. Transform only,
 * so the surrounding row never reflows. */
.watch-cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 2px 6px rgba(12, 12, 17, 0.13),
    0 3px 9px rgba(0, 0, 0, 0.28);
}

/* Intentional keyboard focus: bright outer ring. The dual selector outranks
 * the generic .gx-detail .gx-btn rule on the modal button. */
.watch-cta:focus-visible,
.gx-detail .watch-cta:focus-visible {
  outline: 2px solid var(--watch-focus-ring);
  outline-offset: 3px;
}

/* Variants share the base language — size only. */
.watch-cta--hero {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 15.5px;
}

.watch-cta--compact {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13.5px;
}

/* Small screens: protect the 44px touch floor, tighten padding. The detail
 * page owns its own 52px full-width primary rule in css/detail.css. */
@media (max-width: 640px) {
  .watch-cta {
    min-height: 46px;
    padding: 11px 22px;
    font-size: 14px;
  }
  .watch-cta--hero {
    min-height: 48px;
    padding: 12px 26px;
    font-size: 14.5px;
  }
}

/* Reduced motion: keep the surface, drop the lift/press movement. */
@media (prefers-reduced-motion: reduce) {
  .watch-cta:hover,
  .watch-cta:active {
    transform: none;
  }
}
