/* Elisseeff Basketball — shared styles (compact layout) */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&display=swap");

:root {
  --paper: #f4f2ed;
  --card: #ffffff;
  --ink: #111214;
  --muted: #666970;
  --line: rgba(17, 18, 20, 0.1);
  --accent: #e4572e;
  --tint: #e7e3da;
}
.lucie  { --accent: #1f4fd8; --tint: #dbe5f6; }
.romain { --accent: #5b2bb5; --tint: #e3dcf3; }

* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ol, ul, dl { list-style: none; padding: 0; }

.display { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: 0.9; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }

/* ---------- top bar ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.bar .brand { font-weight: 800; font-stretch: 75%; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.bar .brand span { color: var(--accent); }
.bar nav { display: flex; gap: 20px; font-size: 0.85rem; font-weight: 600; }
.bar nav a { opacity: 0.55; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; }

/* ---------- home: both players in one screen ---------- */
body.home { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.panel {
  position: relative; overflow: hidden; container-type: size;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(16px, 3vw, 36px);
  background: var(--tint);
}
.panel + .panel { border-left: 1px solid var(--line); }
.panel .intro { position: relative; z-index: 2; max-width: 62%; }
.panel .team { display: flex; align-items: center; gap: 10px; font-size: clamp(0.8rem, 1.1vw, 0.95rem); font-weight: 600; line-height: 1.25; }
.panel .team img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; mix-blend-mode: multiply; flex: none; }
.panel h2 { font-size: clamp(3.4rem, 8.5vw, 7.5rem); margin: 0.16em 0 0.12em; }
.panel .role { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.2; }
.panel .sub { font-size: clamp(0.95rem, 1.35vw, 1.2rem); margin-top: 6px; line-height: 1.3; }
.panel .photo {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  /* Both photos share one aspect ratio and framing, so one rule sizes them identically. */
  width: min(62cqw, 62cqh); height: auto; max-width: none;
  mix-blend-mode: multiply;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-origin: bottom right;
}
.panel:hover .photo { transform: scale(1.04); }
.panel > .cta { position: relative; z-index: 2; align-self: flex-start; padding: 13px 20px; font-size: 0.9rem; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  transition: background 0.2s;
}
.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.panel:hover .cta, .cta:hover { background: var(--accent); color: #fff; box-shadow: none; }


/* ---------- player page: header ---------- */
.head { background: var(--tint); padding: clamp(20px, 3.2vw, 40px) 0; }
.head .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px clamp(14px, 2.5vw, 28px); align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 11px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.head .photo {
  width: clamp(84px, 14vw, 160px); aspect-ratio: 1; object-fit: cover; object-position: 50% 20%;
  border-radius: 14px; background: #fff;
}
.head .club { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; line-height: 1.2; }
.head .club img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; mix-blend-mode: multiply; flex: none; }
.head .club b { font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 800; font-stretch: 80%; }
.head .club span { font-size: clamp(0.8rem, 1.1vw, 0.95rem); color: var(--muted); font-weight: 600; }
.head h1 { font-size: clamp(2rem, 5.6vw, 4rem); margin: 8px 0 10px; }
.head h1 em { font-style: normal; color: var(--accent); }
.head .role { font-weight: 600; font-size: clamp(0.9rem, 1.6vw, 1.1rem); }
.head .role b { color: var(--accent); }
.head .actions { display: flex; flex-direction: column; gap: 8px; }

.facts { background: var(--ink); color: var(--paper); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0 12px; }
.facts .wrap > div { padding: 16px 0; }
.facts dt { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.facts dd { font-size: 1.15rem; font-weight: 800; font-stretch: 75%; line-height: 1.2; }
.facts dd small.below { display: block; margin-left: 0; margin-top: 2px; }
.facts dd small { font-size: 0.75rem; font-weight: 400; font-stretch: 100%; opacity: 0.6; margin-left: 4px; }

/* ---------- player page: content ----------
   Laptop: a wide main column (film, profile) and a narrower side column
   (contact, facts). Phone: one column, cards ordered by --o. */
.cards { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 16px; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { min-width: 0; background: var(--card); border-radius: 18px; padding: clamp(20px, 2.4vw, 30px); order: var(--o, 0); }
.card > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 18px; }
.card h2 { font-size: 1.7rem; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats div { min-width: 0; background: var(--card); padding: 16px 18px 18px; }
.stats b { display: block; font-size: 3rem; font-weight: 900; font-stretch: 62%; line-height: 1; font-variant-numeric: tabular-nums; }
.stats div:first-child b { color: var(--accent); }
.stats span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.statline { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.statline b { color: var(--ink); font-weight: 600; }
.statline a { color: var(--ink); border-bottom: 1px solid currentColor; margin-left: 4px; white-space: nowrap; }

.films { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.films figure.playing { grid-column: 1 / -1; order: -1; }
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
a.video { position: relative; display: block; }
a.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.2s; }
a.video:hover img { opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--accent); }
.play::after { content: ""; position: absolute; left: 24px; top: 18px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.caption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

.rows > div, .timeline li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); align-items: baseline; }
.rows > div:first-child, .timeline li:first-child { border-top: 0; padding-top: 0; }
.rows > div:last-child, .timeline li:last-child { padding-bottom: 0; }
.rows dt, .timeline time { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows dd, .timeline strong { font-weight: 600; }
.timeline p { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.timeline li.now time { color: var(--accent); font-weight: 600; }
.rows a, .prose a { border-bottom: 1px solid currentColor; }
.rows a:hover { color: var(--accent); }

.points { display: grid; gap: 14px; }
.points li { line-height: 1.5; }
.points b { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.points a, .profiles a, .quote a { border-bottom: 1px solid currentColor; }
.points a:hover, .profiles a:hover, .quote a:hover { color: var(--accent); }
.quotes { display: grid; gap: 12px; margin-top: 22px; }
.quote { padding: 16px 18px; background: var(--tint); border-radius: 12px; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.profiles { margin-top: 16px; font-size: 0.9rem; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.profiles a { color: var(--ink); }

.insta { display: block; width: 100%; height: 520px; border: 0; border-radius: 12px; background: var(--tint); }
.card .eyebrow a:hover { color: var(--accent); }
.lede { margin-bottom: 16px; color: var(--muted); }
.none { color: var(--muted); }
.schedule li { grid-template-columns: 64px 1fr; }
.schedule li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); padding-top: 13px; }
.schedule time { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }
.more { margin-top: 16px; font: inherit; font-size: 0.88rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.more:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.prose p { font-size: 1.05rem; line-height: 1.55; }
.prose p + p { margin-top: 0.8em; }

footer { padding: 10px 0 28px; }
footer .wrap { display: flex; justify-content: flex-end; }
.fine { font-size: 0.72rem; color: var(--muted); }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .cards { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; }
  .col { display: contents; }
  .facts .wrap { grid-template-columns: repeat(3, 1fr); }
  /* A last fact alone on its row takes the full width, with its note on the same line. */
  .facts .wrap > div:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .facts .wrap > div:last-child:nth-child(3n + 1) small.below { display: inline; margin: 0 0 0 4px; }
  .head .wrap { grid-template-columns: auto 1fr; }
  .head .actions { grid-column: 1 / -1; flex-direction: row; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  .panel h2 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .panel .intro { max-width: 60%; }
  .panel .photo { width: min(52cqw, 62cqh); }
  .rows > div, .timeline li { grid-template-columns: 92px 1fr; }
  .films { grid-template-columns: 1fr; }
  .pills span { font-size: 0.62rem; padding: 2px 8px; letter-spacing: 0.05em; }
  .stats div { padding: 14px 12px 16px; }
  .stats b { font-size: 2.3rem; }
  .stats span { letter-spacing: 0.06em; }
}
/* narrow or portrait screens: stack the two players, still one screen */
@media (max-width: 640px), (max-width: 1000px) and (orientation: portrait) {
  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
