/* Media tab. Layered on studio.css Direction A tokens; loaded only by /media/ pages. */
.media-head { position: relative; overflow: hidden; padding: 64px 0 28px;
  background: radial-gradient(640px 320px at 85% 0%, rgba(240,169,58,.18), transparent 65%), linear-gradient(180deg, #0b0b0d, #0e0d0b); }
.media-head h1 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
.media-head h1 .accent { background: linear-gradient(180deg, #ffd27a, #e48a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.media-head .lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 14px 0 0; }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }

/* game pages: plain eyebrow, no gradient band; pills sit right under it */
.media-crumb { padding: 30px 0 0; }
.media-crumb .eyebrow { margin: 0; }
.media-crumb + .pills-bar { border-top: 0; }
.media-crumb + .pills-bar .pills { padding-top: 12px; }

/* game pills: real links, one page per game, no JS needed */
.pills-bar { position: sticky; top: 68px; z-index: 20; background: rgba(11,11,13,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pills { display: flex; gap: 10px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: .95rem; background: var(--card); }
.pill img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.pill .count { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); }
.pill.all { padding-left: 16px; }
.pill[aria-current="page"] { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: 0 6px 20px rgba(240,169,58,.3); }
.pill[aria-current="page"] .count { background: rgba(22,18,8,.18); color: var(--btn-ink); }
.pill.future { border-style: dashed; color: var(--muted); background: transparent; }

/* game header on a game tab */
.game-bar { display: flex; align-items: center; gap: 20px; padding: 26px 0 8px; flex-wrap: wrap; }
.game-bar .g-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.game-bar .g-text { flex: 1; min-width: 220px; }
.game-bar h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; text-transform: uppercase; text-wrap: balance; }
.game-bar p { margin: 4px 0 0; color: var(--muted); }
.game-bar .play-badge img { height: 56px; width: auto; }

/* clip grid: vertical 9:16 */
.clip-section { padding: 22px 0 72px; }
.clip-section h3.row-title { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; }
.clip-section h3.row-title small { font-family: "Barlow", sans-serif; text-transform: none; font-size: .9rem; color: var(--muted); font-weight: 600; }
.clip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.clip { margin: 0; }
.clip-frame { position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.clip-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); border: 0; cursor: pointer; padding: 0; }
.clip-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(240,169,58,.92); box-shadow: 0 0 30px rgba(240,169,58,.55); display: grid; place-items: center; }
.clip-play svg { width: 26px; height: 26px; fill: #161208; margin-left: 4px; }
.clip-frame .len { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-weight: 700; font-size: .8rem; pointer-events: none; }
.clip.playing .clip-play, .clip.playing .len { display: none; }
.clip figcaption { padding: 12px 4px 0; }
.clip figcaption strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.clip figcaption span { color: var(--muted); font-size: .88rem; }
.clip .game-tag { display: inline-block; margin-bottom: 4px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* landing: game tiles */
.game-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.g-tile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--card-shadow); }
.g-tile .g-art { aspect-ratio: 16/9; overflow: hidden; background: #111; position: relative; }
.g-tile .g-art img { width: 100%; height: 100%; object-fit: cover; }
.g-tile .g-art img.st-art { object-position: 37% 50%; } /* clean board crop, amber car */
.g-tile .g-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.g-tile h4 { margin: 0; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; }
.g-tile .meta { color: var(--muted); font-size: .95rem; }
.g-tile .go { margin-top: 10px; color: var(--accent); font-weight: 700; }
.g-tile.future { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.g-tile.future .g-art { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #111114 0 14px, #0d0d10 14px 28px); }
.g-tile.future .g-art img { width: 84px; height: auto; opacity: .6; }

/* coming soon state */
.soon-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line-strong); }
.soon-panel h3 { font-size: 2rem; text-transform: uppercase; font-weight: 800; }
.soon-panel p { color: var(--muted); font-size: 1.05rem; }
.soon-panel .follow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.soon-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.soon-stills figure { margin: 0; }
.soon-stills img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); }
.soon-stills figcaption { color: var(--muted); font-size: .8rem; margin-top: 6px; }

@media (max-width: 860px) {
  .pills-bar { top: 60px; }
  .media-head { padding: 36px 0 18px; }
  .media-head .lede { font-size: 1.02rem; }
  .clip-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pill .count { display: none; }
  .pill { padding: 8px 14px 8px 8px; font-size: .9rem; gap: 7px; }
  .pill img { width: 22px; height: 22px; }
  .pills { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); padding-left: 12px; padding-right: 40px; gap: 8px; margin: 0 -12px; /* bleed to the screen edge so the next pill peeks */ }
  .game-bar { flex-wrap: wrap; }
  .game-bar .g-text { flex: 1 1 0; }
  .game-bar > .play-badge { order: 3; flex: 0 0 100%; margin: 2px 0 0; }
  .game-bar > .play-badge img { margin-left: -8px; } /* badge PNG has ~8px built-in clear space; visible edge lines up with the page edge */
  .game-bar h2 { font-size: 1.4rem; }
  .clip-play span { width: 48px; height: 48px; }
  .clip-play svg { width: 20px; height: 20px; }
  .clip figcaption strong { font-size: .95rem; }
  .game-tiles { grid-template-columns: 1fr; gap: 16px; }
  .g-tile { flex-direction: row; }
  .g-tile .g-art { width: 38%; aspect-ratio: auto; flex: none; }
  .g-tile .g-body { padding: 14px 16px; }
  .g-tile h4 { font-size: 1.2rem; }
  .game-bar { gap: 14px; padding-top: 20px; }
  .game-bar .g-icon { width: 56px; height: 56px; border-radius: 14px; }
  .game-bar .g-text { min-width: 0; }
  .game-bar .play-badge img { height: 48px; }
  .soon-panel { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
  .soon-panel h3 { font-size: 1.6rem; }
  .soon-stills { gap: 8px; }
}
