/* Luveria public chrome — cache key 20261125b
   References (structure only, not copied UI):
   - HBO Max home: ink bar, editorial headline on a dark stage
   - Prime Video welcome: white primary action, outline secondary
   - YouTube browse: quiet chips, poster cards, duration chip
   - Square marketplace: search field with an attached action
   - Linear footer: near-black columns, hairline rules, small labels
   Self-hosted type only (existing --font-syne / --font-manrope). No font CDN.
*/

:root {
  --lv-ink: #101114;
  --lv-ink-2: #1a1c22;
  --lv-paper: #f4f3f5;
  --lv-line: rgba(16, 17, 20, 0.12);
  --lv-garnet: #9f1239;
  --lv-focus: #9f1239;
}

html,
body {
  overflow-x: clip;
}

body {
  background-color: var(--lv-paper) !important;
  background-image: none !important;
}

/* Header — HBO Max: solid ink bar, hairline, light nav.
   Scoped to the top bar so the mobile drawer and menus keep their own surfaces. */
header.safe-pt {
  background: var(--lv-ink) !important;
  border-bottom: 1px solid rgba(242, 241, 243, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header.safe-pt > .pointer-events-none {
  display: none !important;
}

header.safe-pt > .relative a {
  color: rgba(242, 241, 243, 0.78);
}

header.safe-pt > .relative a:hover {
  color: #fff;
}

header.safe-pt > .relative a[aria-current="page"] {
  color: #fff;
}

header.safe-pt > .relative svg {
  color: #fff;
}

header.safe-pt > .relative .bg-border-medium {
  background: rgba(255, 255, 255, 0.18) !important;
}

header.safe-pt > .relative a.btn-primary {
  background: #fff !important;
  color: var(--lv-ink) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  filter: none !important;
}

header.safe-pt > .relative a.btn-primary:hover {
  background: #f4f4f5 !important;
  color: var(--lv-ink) !important;
}

header.safe-pt > .relative button {
  color: rgba(242, 241, 243, 0.82);
}

header.safe-pt > .relative button[aria-controls] {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: transparent !important;
  color: #fff !important;
}

header.safe-pt > .relative [role="menu"] {
  background: #fff !important;
  border-color: var(--lv-line) !important;
}

header.safe-pt > .relative [role="menu"] a,
header.safe-pt > .relative [role="menu"] button {
  color: #3f3f46;
}

header.safe-pt > .relative [role="menu"] a:hover,
header.safe-pt > .relative [role="menu"] button:hover {
  color: var(--lv-ink);
}

@media (max-width: 640px) {
  header.safe-pt img {
    max-width: 7.25rem !important;
    height: 1.75rem !important;
  }

  header.safe-pt > .relative a.btn-primary {
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }
}

/* Hero — headline leads, brand name is a small kicker.
   Prime Video: white pill action + outline companion. */
.portal-hero--cinematic {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: min(72vh, 38rem);
}

.portal-brand {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
  color: rgba(242, 241, 243, 0.68) !important;
}

.portal-hero--cinematic__line {
  margin-top: 0.65rem !important;
  max-width: 12ch !important;
  font-size: clamp(2.35rem, 6vw, 4.6rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.96 !important;
}

.portal-hero--cinematic__line .text-primary-bright {
  color: #fff !important;
  background-image: linear-gradient(#e11d48, #e11d48);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.08em;
}

.portal-hero--cinematic__body {
  max-width: 34rem;
  color: rgba(242, 241, 243, 0.78) !important;
}

.btn-cinematic {
  background: #fff !important;
  color: var(--lv-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  filter: none !important;
  box-shadow: none !important;
}

.btn-cinematic:hover {
  background: #f4f4f5 !important;
  filter: none !important;
}

.btn-cinematic-ghost {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  background: transparent !important;
}

.btn-cinematic-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #fff !important;
}

/* Trust row — Linear-style quiet metrics on the same ink stage */
.home-trust-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--lv-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.home-trust-strip__item {
  padding: 1.05rem 1.15rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.home-trust-strip__item:last-child {
  border-right: 0;
}

.home-trust-strip__label {
  color: rgba(242, 241, 243, 0.5) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-trust-strip__value {
  margin-top: 0.2rem;
  color: #fff !important;
  font-family: var(--font-syne), "Syne", "Segoe UI", sans-serif;
  font-size: 1.15rem !important;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .home-trust-strip {
    grid-template-columns: 1fr !important;
    border-radius: 0;
  }

  .home-trust-strip__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-trust-strip__item:last-child {
    border-bottom: 0;
  }
}

/* Buttons on the light canvas — ink, not a hot gradient */
a.btn-primary,
button.btn-primary {
  background: var(--lv-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  filter: none !important;
}

a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--lv-ink-2) !important;
  filter: none !important;
}

.btn-ghost {
  border-radius: 999px !important;
  border-color: var(--lv-line) !important;
  background: #fff !important;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--lv-ink) !important;
  color: #fff !important;
  border-color: var(--lv-ink) !important;
}

/* Search — Square: one field, action attached on the right */
form[action="/"].flex {
  gap: 0 !important;
  width: 100%;
  max-width: 26rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lv-line);
  border-radius: 12px;
}

form[action="/"].flex .input-field {
  width: auto !important;
  min-height: 2.75rem;
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

form[action="/"].flex .btn-ghost,
form[action="/"].flex .btn-ghost:hover {
  border: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--lv-ink) !important;
  background: var(--lv-ink) !important;
  color: #fff !important;
}

/* Chips — YouTube selected state as ink, not a garnet fill */
.portal-chip {
  background: #fff !important;
  color: #3f3f46 !important;
  border: 1px solid var(--lv-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.portal-chip:hover {
  color: var(--lv-ink) !important;
  border-color: var(--lv-ink) !important;
  background: #fff !important;
}

.portal-chip-active,
.portal-chip-active:hover {
  background: var(--lv-ink) !important;
  color: #fff !important;
  border-color: var(--lv-ink) !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Cards */
.video-card__thumb {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 17, 20, 0.08);
}

.video-card__title {
  font-family: var(--font-syne), "Syne", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.video-card__duration {
  border-radius: 6px !important;
  background: rgba(16, 17, 20, 0.82) !important;
  font-variant-numeric: tabular-nums;
}

/* Footer — Linear */
footer.safe-pb {
  background: var(--lv-ink) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(242, 241, 243, 0.68);
}

footer.safe-pb a {
  color: rgba(242, 241, 243, 0.72) !important;
}

footer.safe-pb a:hover {
  color: #fff !important;
}

footer.safe-pb .text-neutral-900 {
  color: rgba(242, 241, 243, 0.42) !important;
  letter-spacing: 0.14em;
}

footer.safe-pb .text-neutral-500,
footer.safe-pb .text-neutral-400,
footer.safe-pb .text-neutral-600 {
  color: rgba(242, 241, 243, 0.62) !important;
}

footer.safe-pb .border-t {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Legal documents */
.legal-document {
  border: 1px solid rgba(16, 17, 20, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px rgba(16, 17, 20, 0.05);
}

.legal-title {
  font-family: var(--font-syne), "Syne", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal-prose {
  font-size: 1rem;
  line-height: 1.7;
}

/* Public forms (not the admin shell) */
main form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
main form textarea,
main form select {
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--lv-line);
}

main form input:focus-visible,
main form textarea:focus-visible,
main form select:focus-visible,
.input-field:focus-visible {
  outline: 2px solid var(--lv-focus);
  outline-offset: 2px;
}

/* Age gate — dark editorial card, white confirm (Prime) */
[aria-labelledby="age-gate-title"] > .absolute {
  background: rgba(8, 8, 10, 0.72) !important;
}

[aria-labelledby="age-gate-title"] > .relative {
  background: #16161a !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
}

[aria-labelledby="age-gate-title"] h2,
[aria-labelledby="age-gate-title"] #age-gate-title {
  color: #fff !important;
  font-family: var(--font-syne), "Syne", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

[aria-labelledby="age-gate-title"] p {
  color: rgba(244, 244, 245, 0.76) !important;
}

[aria-labelledby="age-gate-title"] .bg-slate-100 {
  background: rgba(255, 255, 255, 0.06) !important;
}

[aria-labelledby="age-gate-title"] .text-slate-800,
[aria-labelledby="age-gate-title"] .ring-slate-200 {
  color: #fff !important;
}

[aria-labelledby="age-gate-title"] button {
  background: #fff !important;
  color: var(--lv-ink) !important;
  border-radius: 999px !important;
}

[aria-labelledby="age-gate-title"] a.touch-target {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

[aria-labelledby="age-gate-title"] a:not(.touch-target) {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Language switch — ink pill, light active (replaces rose) */
[aria-label="Sprache / Language"] > div {
  background: var(--lv-ink) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
}

[aria-label="Sprache / Language"] button {
  color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
}

[aria-label="Sprache / Language"] button[aria-pressed="true"] {
  background: #fff !important;
  color: var(--lv-ink) !important;
}

/* Focus */
header.safe-pt a:focus-visible,
header.safe-pt button:focus-visible,
footer.safe-pb a:focus-visible,
footer.safe-pb button:focus-visible,
.portal-chip:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-cinematic:focus-visible,
.btn-cinematic-ghost:focus-visible,
.video-card:focus-visible,
.video-card a:focus-visible,
[aria-label="Sprache / Language"] button:focus-visible,
[aria-labelledby="age-gate-title"] a:focus-visible,
[aria-labelledby="age-gate-title"] button:focus-visible {
  outline: 2px solid var(--lv-focus);
  outline-offset: 3px;
}

header.safe-pt a:focus-visible,
header.safe-pt button:focus-visible,
.btn-cinematic:focus-visible,
.btn-cinematic-ghost:focus-visible,
[aria-labelledby="age-gate-title"] button:focus-visible,
[aria-label="Sprache / Language"] button:focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .portal-hero--cinematic__media img,
  .portal-brand,
  .portal-hero--cinematic__line,
  .portal-hero--cinematic__body,
  .portal-hero--cinematic__cta,
  .btn-primary,
  .btn-cinematic,
  .btn-ghost,
  .portal-chip,
  .video-card__img,
  .video-card__play {
    animation: none !important;
    transition: none !important;
  }
}
