:root {
  --ink: #090909;
  --paper: #f6f6f4;
  --muted: #a6a6a6;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(10, 10, 10, 0.78);
  --pink: #ff0a78;
  --pink-soft: #ff4da1;
  --cyan: #13c8eb;
  --radius: 24px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.stadium-backdrop,
.page-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.stadium-backdrop {
  background: url("/assets/anfield-bg.jpg") center top / cover no-repeat;
  filter: contrast(1.02);
}

.page-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0, rgba(0,0,0,.76) 45%, #080808 78%),
    radial-gradient(circle at 50% 0, transparent 10%, rgba(0,0,0,.38) 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1050px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(6,6,6,.72);
  backdrop-filter: blur(20px);
}

.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--pink);
  background: #000;
  border: 1px solid var(--pink);
  font-size: 11px;
  font-weight: 950;
}

.contact-pill {
  padding: 10px 19px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.contact-pill:hover { transform: translateY(-1px); background: var(--pink-soft); }

.profile-shell { width: min(1050px, calc(100% - 32px)); margin: 0 auto; }
.profile-card { padding: 78px 56px 30px; }
.profile-summary { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 52px; }
.avatar-wrap {
  width: 184px;
  aspect-ratio: 1;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0a78, #a42cff, #13c8eb, #ffaf1c, #ff0a78);
  box-shadow: 0 22px 65px rgba(255,10,120,.18);
}
.avatar { display: block; width: 100%; height: 100%; object-fit: cover; border: 5px solid #080808; border-radius: 50%; }
.profile-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.profile-title-row h1 { margin: 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.04em; }
.player-tag {
  padding: 7px 10px;
  border: 1px solid rgba(255,10,120,.52);
  border-radius: 999px;
  color: var(--pink-soft);
  background: rgba(255,10,120,.1);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.stats { display: flex; gap: clamp(22px, 5vw, 56px); margin: 28px 0 24px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 5px; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 0; font-size: 17px; font-weight: 800; }
.bio { max-width: 570px; }
.bio strong { font-size: 14px; }
.bio p { margin: 7px 0; color: #dfdfdf; line-height: 1.55; }
.bio span { color: var(--pink-soft); font-size: 13px; font-weight: 700; }

.story-row { display: flex; gap: 29px; margin-top: 45px; padding-left: 9px; }
.story { display: grid; justify-items: center; gap: 8px; }
.story-ring {
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #b024ff, var(--cyan), #ff9f1c);
  transition: transform .2s ease;
}
.story:hover .story-ring { transform: translateY(-3px); }
.story-ring span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 4px solid #0d0d0d;
  border-radius: 50%;
  background: #161616;
  color: var(--pink);
  font-size: 18px;
  font-weight: 950;
}
.story small { color: #d4d4d4; font-size: 11px; }

.content-tabs {
  display: flex;
  justify-content: center;
  gap: 46px;
  min-height: 56px;
  border-top: 1px solid var(--line);
}
.content-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -1px;
  border-top: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.content-tabs a.active, .content-tabs a:hover { color: #fff; border-top-color: var(--pink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; scroll-margin-top: 74px; }
.tile {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 18px;
  border: 0;
  color: #fff;
  background: #151515;
  cursor: pointer;
  text-align: left;
}
.tile::before,
.tile::after { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform .45s ease, opacity .35s ease; }
.tile::before {
  background: var(--tile-image, url("/assets/anfield-bg.jpg")) var(--tile-position) / cover no-repeat;
  filter: contrast(1.14) brightness(.62);
}
.tile::after {
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,.78), transparent 62%);
}
.tile:hover::before { transform: scale(1.06); }
.tile:hover::after { opacity: .72; }
.tile::selection { background: transparent; }
.tile-label, .tile-number { position: absolute; z-index: 2; }
.tile-label { left: 18px; bottom: 17px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tile-number { top: 16px; right: 17px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.tile > span:first-child::before {
  content: "▶";
  position: absolute;
  left: 50%;
  top: -120px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
  transform: translateX(-50%) scale(.88);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.tile:hover > span:first-child::before, .tile:focus-visible > span:first-child::before { opacity: 1; transform: translateX(-50%) scale(1); }
.gallery-error { grid-column: 1 / -1; padding: 44px 20px; color: var(--muted); text-align: center; }

.panel {
  margin-top: 80px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  scroll-margin-top: 94px;
}
.eyebrow { margin: 0 0 10px; color: var(--pink-soft); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.panel h2 { margin: 0; max-width: 650px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.05em; }
.panel > p:last-child, .contact-intro > p:last-child { max-width: 650px; color: #c8c8c8; line-height: 1.7; }

.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 7vw, 85px); margin-bottom: 80px; }
form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; color: #dedede; font-size: 12px; font-weight: 700; }
label small { color: #7e7e7e; font-weight: 500; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.055);
  transition: border .2s ease, box-shadow .2s ease;
}
input { height: 47px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,10,120,.12); }
.honeypot { position: absolute; left: -9999px; }
.form-actions { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.form-actions button {
  min-width: 145px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-weight: 850;
  cursor: pointer;
}
.form-actions button:disabled { cursor: wait; opacity: .56; }
#form-status { margin: 0; color: #d8d8d8; font-size: 12px; line-height: 1.4; }
#form-status.success { color: #66e6a0; }
#form-status.error { color: #ff8ab8; }

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 34px 20px 50px;
  border-top: 1px solid var(--line);
  color: #858585;
  font-size: 11px;
}
footer img { border-radius: 50%; }

.video-modal {
  width: min(1180px, calc(100% - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #0b0b0b;
  box-shadow: 0 40px 130px rgba(0,0,0,.8);
}
.video-modal::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(12px); }
.modal-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; height: 100%; }
.video-frame { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
.video-frame video { display: none; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255,10,120,.24), rgba(0,0,0,.24)),
    url("/assets/anfield-bg.jpg") center / cover no-repeat;
}
.video-placeholder[hidden] { display: none !important; }
.placeholder-play { display: grid; place-items: center; width: 74px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(0,0,0,.38); }
.video-placeholder strong { margin-top: 22px; font-size: 42px; letter-spacing: -.05em; }
.video-placeholder small { color: #ddd; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.6);
  font-size: 26px;
  cursor: pointer;
}
.modal-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  background: rgba(0,0,0,.5);
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}
.modal-nav.previous { left: 12px; }
.modal-nav.next { left: auto; right: 12px; }

:focus-visible { outline: 2px solid var(--pink-soft); outline-offset: 3px; }

@media (max-width: 780px) {
  .profile-card { padding: 48px 10px 27px; }
  .profile-summary { grid-template-columns: 118px 1fr; align-items: start; gap: 22px; }
  .avatar-wrap { width: 118px; }
  .profile-title-row { gap: 8px; }
  .player-tag { display: none; }
  .stats { gap: 18px; margin: 18px 0; }
  .stats dd { font-size: 14px; }
  .stats dt { font-size: 10px; }
  .story-row { margin-top: 34px; padding-left: 0; }
  .story-ring { width: 62px; }
  .content-tabs { gap: 26px; }
  .content-tabs a { font-size: 9px; }
  .contact-panel { grid-template-columns: 1fr; }
  .video-modal { width: calc(100% - 16px); height: min(820px, calc(100dvh - 16px)); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .modal-stage { grid-template-columns: 1fr; height: 100%; }
  .video-frame, .video-placeholder { min-height: 0; }
}

@media (max-width: 520px) {
  .topbar { min-height: 60px; padding: 10px 16px; }
  .profile-shell { width: 100%; }
  .profile-card { padding-inline: 16px; }
  .profile-summary { grid-template-columns: 92px 1fr; gap: 16px; }
  .avatar-wrap { width: 92px; }
  .profile-title-row h1 { font-size: 23px; }
  .bio p { font-size: 13px; }
  .stats { flex-wrap: wrap; gap: 13px; }
  .stats div { min-width: 55px; }
  .story-row { gap: 20px; }
  .story-ring { width: 58px; }
  .gallery { gap: 2px; }
  .tile { padding: 10px; }
  .tile-label { left: 10px; bottom: 10px; font-size: 9px; }
  .tile-number { top: 9px; right: 9px; }
  .tile > span:first-child::before { display: none; }
  .panel { margin: 54px 16px 0; border-radius: 18px; }
  .contact-panel { margin-bottom: 54px; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  footer { padding-bottom: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
