/* Site-wide type system -- unified with the coaches view's own look
   (Oswald for headings, Manrope for body copy, JetBrains Mono for small
   meta/labels) instead of the old separate Barlow Condensed + Inter pair.
   Font loading itself happens via <link> tags in index.html's <head>
   (faster than @import -- the browser can discover and fetch the fonts
   immediately while parsing the HTML, in parallel with this stylesheet,
   instead of waiting to parse this whole file first). */

:root {
  font-family: Manrope, system-ui, sans-serif;
  color: #f5f5f2;
  background: #0a0a0d;
  /* --red stays the site's main accent (buttons, headings, live badges).
     --coach-gold below is kept for the coaches view only. */
  --red: #f22636;
  --red-dark: #9e1320;
  --panel: #111116;
  --panel-2: #18181f;
  --muted: #92929e;
  --line: #292930;
  --cream: #eae8df;

  /* Coach-view palette, matching tekken-slam-suomi-valmentajat's style.css
     1:1 -- kept under a separate --coach- prefix so it can't collide with
     or accidentally get reused by the rest of this site's own tokens. */
  --coach-bg: #08090c;
  --coach-bg-elev: #131620;
  --coach-bg-elev-2: #1a1e2b;
  --coach-rule: #262b38;
  --coach-rule-strong: #3c4256;
  --coach-text: #eef0f6;
  --coach-text-dim: #9aa1b8;
  --coach-text-faint: #7a8299;
  --coach-accent: #e8323f;
  --coach-accent-strong: #ff4b58;
  --coach-gold: #e8b94d;
  --coach-gold-dim: rgba(232, 185, 77, 0.14);
  --coach-shadow: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; min-width: 320px; background: #0a0a0d; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 3px;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,13,.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand { font: 700 28px/1 Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.brand span { color: var(--red); margin-left: 6px; }
nav { display: flex; gap: 32px; color: var(--muted); font-size: 14px; font-weight: 600; }
nav a:hover, nav a.active { color: white; }

main { overflow: hidden; }
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  padding: 72px clamp(24px, 7vw, 110px);
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 50%, rgba(242,38,54,.13), transparent 32%),
    linear-gradient(120deg, #0a0a0d 0 55%, #101015 55% 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: repeating-linear-gradient(125deg, transparent 0 26px, #fff 27px, transparent 28px 56px);
  pointer-events: none;
}
.hero__copy, .hero__graphic { position: relative; z-index: 1; }
.kicker--live span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px rgba(242,38,54,.7); }
h1,h2,h3 { font-family: Oswald, sans-serif; font-weight: 700; text-transform: uppercase; margin: 0; }
h1 { max-width: 720px; font-size: clamp(58px, 7vw, 102px); line-height: .86; letter-spacing: -.035em; }
h1 em { color: var(--red); font-style: italic; }
.hero__text { max-width: 570px; margin: 30px 0 0; color: #b9b9c2; font-size: 17px; line-height: 1.7; }
.hero__actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 0 20px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: .2s ease; border-radius: 3px; }
.button--primary, .button--live { background: var(--red); color: white; }
.button--primary:hover, .button--live:hover { background: #ff4050; transform: translateY(-1px); }
.button--secondary { width: 100%; border: 1px solid #34343e; background: #16161c; }
.button--secondary:hover { border-color: #666673; background: #1d1d25; }
.text-link { color: #c7c7ce; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hero__graphic { justify-self: center; transform: rotate(-5deg); text-align: center; opacity: .92; }
.hero__number { font: italic 800 clamp(170px, 22vw, 330px)/.7 Oswald, sans-serif; color: transparent; -webkit-text-stroke: 2px #34343d; }
.hero__word { margin-top: 35px; font: 700 30px/1 Oswald, sans-serif; letter-spacing: .35em; color: var(--red); }

.section { padding: 78px clamp(24px, 7vw, 110px); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
.section-heading h2, .event h2 { font-size: clamp(42px, 5vw, 68px); line-height: .95; }
.section-heading > p { color: var(--muted); font-size: 13px; }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.live-card { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 1.15fr); min-height: 230px; border: 1px solid #3b2329; background: linear-gradient(135deg, #181216, #111116); border-radius: 3px; overflow: hidden; }
.live-card__image { min-height: 230px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at center, #292936 0, #131319 72%); overflow: hidden; }
.live-card__image::after { content: ""; position:absolute; inset:0; background: linear-gradient(135deg, transparent 52%, rgba(242,38,54,.18)); }
.live-pill, .viewer-pill { position: absolute; z-index: 2; top: 14px; font-size: 11px; font-weight: 800; padding: 7px 9px; backdrop-filter: blur(7px); }
.live-pill { left: 14px; background: var(--red); display: flex; gap: 6px; align-items:center; }
.live-pill span { width: 6px; height:6px; background:white; border-radius:50%; }
.viewer-pill { right: 14px; background: rgba(0,0,0,.62); }
.live-card__content { padding: 28px; display:flex; flex-direction:column; min-width:0; }
.live-card__content h3 { font-size: 38px; }
.stream-title { color:#b5b5be; line-height:1.5; margin: 9px 0 20px; overflow-wrap:anywhere; }
.live-card__footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; color:#8f8f9a; font-size:12px; }

/* Square box -- matches Twitch's own 1:1 profile picture aspect ratio, so
   object-fit: cover never has to crop (a taller/wider box would cut off
   the top/bottom or sides of an otherwise square photo). */
.avatar { width: 100%; aspect-ratio: 1 / 1; display:grid; place-items:center; background: linear-gradient(150deg, #22222b, #15151b); overflow:hidden; border-radius: 3px; }
.avatar span { grid-area: 1 / 1; font: italic 800 78px/1 Oswald, sans-serif; color:#30303a; transform: rotate(-6deg); }
.avatar--large { height:100%; background: transparent; }
.avatar--large span { font-size: 120px; color:#363642; }
/* Twitch profile picture, used as a static thumbnail when a player isn't
   currently live (falls back to the initials placeholder if there's no
   avatar yet, or the image fails to load -- see onerror in main.js). */
.avatar img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.avatar:has(img) span { display: none; }

.players-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:18px; }
.player-card { border:1px solid var(--line); background: var(--panel); min-width:0; border-radius: 3px; overflow: hidden; }
.player-card--live { border-top: 2px solid var(--red); }
.player-card__visual { position:relative; }
.status { position:absolute; bottom:12px; left:12px; padding:6px 8px; font-size:10px; font-weight:900; letter-spacing:.08em; }
.status--live { background:var(--red); }
.status--offline { background:#292930; color:#aaaab3; }
.player-card__body { padding:20px; }
.player-card h3 { font-size:32px; line-height:.9; }
.player-coach { margin: 10px 0 0; padding: 8px 10px; width: 100%; display: flex; align-items: center; gap: 8px; background: rgba(242,38,54,.08); border-radius: 3px; border-left: 2px solid var(--red); border-top: 0; border-right: 0; border-bottom: 0; font-size: 12px; text-align: left; }
.player-coach span { color: #a9a9b3; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.player-coach strong { color: #fff; font-weight: 700; }
.player-coach--link { cursor: pointer; transition: background .18s ease; }
.player-coach--link:hover { background: rgba(242,38,54,.16); }
.player-coach--link strong { color: var(--red); }
.player-coach--pending { background: transparent; border-left-color: var(--line); }
.player-coach--pending strong { color: #8f8f9a; font-weight: 700; font-style: italic; }
/* Shared micro-label style -- .kicker (section headers) and .eyebrow (card
   headers) used to be two near-identical systems; merged into one. */
.eyebrow, .kicker { margin: 0 0 13px; color: #a9a9b3; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker--live { color: #ff5966; display: flex; align-items: center; gap: 8px; }

.event { padding:110px 24px; text-align:center; background: radial-gradient(circle at center, rgba(242,38,54,.09), transparent 38%); }
.event > p:not(.kicker) { max-width:600px; margin:20px auto 30px; color:#92929e; line-height:1.7; }
footer { min-height:80px; display:flex; justify-content:space-between; align-items:center; padding:0 clamp(24px,7vw,110px); color:#555560; font-size:11px; font-weight:700; letter-spacing:.08em; }

@media (max-width: 1050px) {
  .players-grid { grid-template-columns: repeat(2,1fr); }
  .live-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .site-header { height:auto; min-height:68px; padding-top:14px; padding-bottom:14px; }
  nav { display:none; }
  .hero { min-height:auto; grid-template-columns:1fr; padding-top:70px; padding-bottom:70px; }
  .hero__graphic { display:none; }
  .section { padding-top:58px; padding-bottom:58px; }
  .section-heading { align-items:start; flex-direction:column; }
  .live-card { grid-template-columns:1fr; }
  .live-card__image { min-height:200px; }
  .players-grid { grid-template-columns:1fr; }
  footer { align-items:flex-start; flex-direction:column; justify-content:center; gap:8px; }
}

/* Single-page navigation */
button { font: inherit; color: inherit; }
.brand--button, nav button, .text-link--button, .mobile-menu-toggle, .mobile-nav button {
  border: 0;
  background: none;
  cursor: pointer;
}
.brand--button { padding: 0; text-align: left; }
nav button { padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
nav button:hover, nav button.active { color: white; }
.text-link--button { padding: 0; color: #c7c7ce; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mobile-menu-toggle, .mobile-nav { display: none; }

.page-hero {
  padding: 96px clamp(24px, 7vw, 110px) 72px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 40%, rgba(242,38,54,.11), transparent 28%), #0c0c10;
}
.page-hero h1 { font-size: clamp(72px, 10vw, 145px); line-height: .8; }
.page-hero > p:last-child { max-width: 700px; color: #aaaab4; line-height: 1.7; font-size: 16px; margin: 30px 0 0; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.info-card { padding: 28px; min-height: 260px; border: 1px solid var(--line); background: var(--panel); border-radius: 3px; }
.info-card strong { display:block; color:#3e3e47; font:700 58px/1 Oswald,sans-serif; }
.info-card h3 { margin-top: 22px; font-size: 28px; }
.info-card p { color: #92929e; line-height: 1.7; font-size: 13px; }
.details-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius: 3px; overflow: hidden; }
.details-grid > div { min-width:0; padding:26px; border-right:1px solid var(--line); background:#0e0e13; }
.details-grid > div:last-child { border-right:0; }
.details-grid span { display:block; margin-bottom:12px; color:#73737d; font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.details-grid strong { display:block; font:700 25px/1 Oswald,sans-serif; text-transform:uppercase; }
.details-grid p { margin:10px 0 0; color:#7e7e89; font-size:12px; line-height:1.6; }
.event--compact { padding-top: 80px; padding-bottom: 80px; }
.event--compact .button { margin-top: 4px; }

@media (max-width: 1050px) {
  .info-grid { grid-template-columns:1fr; }
  .details-grid { grid-template-columns:repeat(2,1fr); }
  .details-grid > div:nth-child(2) { border-right:0; }
  .details-grid > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { position:sticky; flex-wrap:wrap; }
  .site-header nav { display:none; }
  .mobile-menu-toggle { display:block; min-height:44px; padding:0 4px; color:#b9b9c2; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
  .mobile-nav { width:100%; padding:10px 0 4px; border-top:1px solid var(--line); }
  .mobile-nav:not([hidden]) { display:grid; grid-template-columns:repeat(3,1fr); }
  .mobile-nav button { min-height:44px; color:#c2c2ca; font-size:13px; font-weight:700; }
  .details-grid { grid-template-columns:1fr; }
  .details-grid > div { border-right:0; border-bottom:1px solid var(--line); }
  .details-grid > div:last-child { border-bottom:0; }
  .page-hero { padding-top:70px; padding-bottom:58px; }
}


/* Tekken Slam Suomi participant socials */
.social-list { margin-top: 20px; border-top: 1px solid var(--line); }
.social-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 12px; transition: .18s ease; }
.social-link span { color: #8a8a96; }
.social-link strong { color: #d7d7dd; font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.social-link:hover { padding-left: 6px; padding-right: 6px; background: #17171d; }
.live-notice { margin: 0; padding: 24px clamp(24px, 7vw, 110px); display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #101015; }
.live-notice__dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #555560; }
.live-notice strong { display: block; font: 700 20px/1 Oswald, sans-serif; text-transform: uppercase; }
.live-notice p { margin: 5px 0 0; color: #84848f; font-size: 12px; line-height: 1.5; }

/* Info page video + schedule */
.video-frame {
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #070709;
  aspect-ratio: 16 / 9;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* Kahakka 3 / final event context */
.kahakka-feature {
  padding: 64px clamp(24px, 7vw, 110px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(242,38,54,.12), transparent 52%), #0e0e13;
}
.kahakka-feature h2 {
  font-size: clamp(58px, 8vw, 110px);
  line-height: .82;
}
.kahakka-feature p:not(.kicker) {
  max-width: 700px;
  margin: 22px 0 0;
  color: #a0a0aa;
  line-height: 1.7;
}
.details-grid--event { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 1240px; margin: 0 auto; }
.details-cell--venue { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.details-venue-badge { height: 74px; width: auto; flex: none; }
@media (max-width: 620px) {
  .details-venue-badge { height: 56px; }
}
.details-grid--event > div:nth-child(3) { border-right: 0; }
.details-grid--event > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.details-grid--event > div:nth-child(4),
.details-grid--event > div:nth-child(5) { border-right: 1px solid var(--line); }
.details-grid__action .button { margin-top: 18px; }

@media (max-width: 1050px) {
  .details-grid--event { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .details-grid--event > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .details-grid--event > div:nth-child(even) { border-right: 0; }
  .details-grid--event > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .kahakka-feature { align-items: flex-start; flex-direction: column; }
  .details-grid--event { grid-template-columns: 1fr; }
  .details-grid--event > div,
  .details-grid--event > div:nth-child(even),
  .details-grid--event > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .details-grid--event > div:last-child { border-bottom: 0; }
}

/* Expanded Kahakka 3 event information */
.inline-link { color:#d8d8df; text-decoration:underline; text-underline-offset:4px; }
.inline-link:hover { color:#fff; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.feature-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.feature-card { border:1px solid var(--line); background:var(--panel); padding:28px; border-radius: 3px; }
.feature-card h3 { margin:7px 0 14px; font-size:32px; }
.feature-card > p:last-child { color:#92929e; line-height:1.7; font-size:13px; }
.venue-section > .button { margin-top:22px; }
.venue-heading-lockup { display: flex; align-items: center; gap: 22px; }
.venue-logo { height: 150px; width: auto; flex: none; }
@media (max-width: 900px) {
  .venue-logo { height: 110px; }
}
@media (max-width: 640px) {
  .venue-heading-lockup { gap: 12px; }
  .venue-logo { height: 78px; }
}

@media (max-width:1050px) {
  .feature-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .kahakka-feature { align-items:flex-start; flex-direction:column; }
}

/* Coach view -- ported 1:1 from tekken-slam-suomi-valmentajat's own
   style.css. The rest of this site's styling was later unified to match
   this same look (see the top of the file), so the --coach- tokens below
   are now effectively the whole site's palette -- kept under this prefix
   for historical reasons, not because they're still coach-only. */

.coach-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px clamp(24px, 7vw, 110px) 24px;
  background: var(--coach-bg);
  border-bottom: 1px solid var(--coach-rule);
}
.coach-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coach-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.coach-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coach-accent);
  box-shadow: 0 0 10px 1px var(--coach-accent);
  display: inline-block;
  flex: none;
}
.coach-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #d9dce6 55%, #a7adbe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coach-title em {
  font-style: italic;
  color: var(--coach-accent-strong);
  -webkit-text-fill-color: var(--coach-accent-strong);
}
.coach-subhead {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--coach-text-dim);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
}

.coach-roster-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px clamp(24px, 7vw, 110px) 100px;
  background: var(--coach-bg);
}
.coach-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.coach-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  border: 1px solid var(--coach-rule);
  background: var(--coach-bg-elev);
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  opacity: 0;
  animation: coach-tile-in 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@keyframes coach-tile-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.coach-tile:hover,
.coach-tile:focus-visible {
  transform: translateY(-5px);
  border-color: var(--coach-gold);
  box-shadow: 0 20px 40px -16px var(--coach-shadow), 0 0 0 1px var(--coach-gold-dim);
  outline: none;
}
.coach-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
  transition: transform 0.5s ease;
}
.coach-tile:hover .coach-tile-img { transform: scale(1.06); }
.coach-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 40%, rgba(8, 9, 12, 0.6) 72%, rgba(8, 9, 12, 0.95) 100%);
}
.coach-tile-num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--coach-text-faint);
  background: rgba(8, 9, 12, 0.55);
  padding: 3px 7px;
  border: 1px solid var(--coach-rule);
  border-radius: 1px;
}
.coach-tile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 13px 14px;
}
.coach-tile-name {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--coach-text);
}
.coach-tile-tag {
  display: block;
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--coach-text-dim);
}
.coach-tile-tag-char { color: var(--coach-gold); }
.coach-tile-taken {
  display: inline-block;
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #17130a;
  background: linear-gradient(180deg, #f6cf74, var(--coach-gold));
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.coach-tile--character {
  background: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(232, 50, 63, 0.16), transparent 70%), var(--coach-bg-elev);
}
.coach-tile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 62%, var(--coach-gold-dim), transparent 70%);
  pointer-events: none;
}
.coach-tile-char {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 94%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.65));
  transition: transform 0.4s ease;
}
.coach-tile:hover .coach-tile-char { transform: translateX(-50%) translateY(-4px) scale(1.045); }
.coach-tile-alts {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.coach-tile-alts img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 1px solid var(--coach-rule-strong);
  background: var(--coach-bg-elev-2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* "can coach anyone" -- a diagonal ribbon laid over the big portrait. */
.coach-all-ribbon {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: -46px;
  width: 170px;
  transform: rotate(40deg);
  transform-origin: center;
  text-align: center;
  padding: 4px 0 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #17130a;
  background: linear-gradient(180deg, #f6cf74, var(--coach-gold));
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  cursor: default;
  pointer-events: none;
}
.coach-profile-portrait .coach-all-ribbon {
  /* Smaller/repositioned than the tile version so the full "+ Kaikki
     hahmot" text clears the portrait's overflow:hidden edges instead of
     getting clipped -- the 168px profile portrait is narrower than what
     the original ribbon geometry was sized for. Kept close to the
     original top-right corner placement rather than pushed down over the
     character art. */
  top: 24px;
  right: 4px;
  width: 80px;
  font-size: 8px;
}

/* Split tile: main character on the left, "plays everyone" panel on the right. */
.coach-tile-split { position: absolute; inset: 0; display: flex; }
.coach-tile-split-char { position: relative; flex: 1 1 64%; overflow: hidden; }
.coach-tile-split-char .coach-tile-char { height: 94%; }
.coach-tile-split-all {
  position: relative;
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 6px;
  border-left: 1px solid var(--coach-rule-strong);
  background: linear-gradient(180deg, rgba(232, 185, 77, 0.1), transparent 45%), var(--coach-bg-elev-2);
}
.coach-tile-split-all .coach-tile-alts {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}
.coach-tile-split-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 100%;
}
.coach-tile-split-mosaic img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 2px;
  filter: saturate(0.45) brightness(0.55);
}
.coach-tile-split-label {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 11px;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: var(--coach-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* "plays everyone" roster-wall tile */
.coach-tile-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}
.coach-tile-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: saturate(0.35) brightness(0.5);
  transition: filter 0.3s ease;
}
.coach-tile--mosaic:hover .coach-tile-mosaic img { filter: saturate(0.7) brightness(0.7); }
.coach-tile-mosaic-badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 20%;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--coach-gold);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.coach-source-note {
  margin: 22px 0 0;
  color: var(--coach-text-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.6;
}

@media (max-width: 1100px) { .coach-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .coach-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .coach-roster { grid-template-columns: 1fr; } }

/* ---------- coach profile page ---------- */

.coach-profile-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(24px, 7vw, 110px) 100px;
  background: var(--coach-bg);
}
.coach-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coach-text-dim);
  transition: color 0.2s ease;
}
.coach-back-link:hover { color: var(--coach-gold); }

.coach-profile-head {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--coach-rule);
}
@media (max-width: 520px) {
  .coach-profile-head { grid-template-columns: 96px 1fr; gap: 16px; }
  .coach-profile-portrait .coach-tile-mosaic-badge { font-size: 11px; }
  .coach-profile-portrait .coach-all-ribbon { top: 18px; right: 6px; width: 55px; font-size: 6px; }
}
.coach-profile-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--coach-rule-strong);
  box-shadow: 0 24px 48px -20px var(--coach-shadow);
}
.coach-profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.coach-profile-portrait--character { background: var(--coach-bg-elev); }
.coach-profile-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 60% at 50% 60%, var(--coach-gold-dim), transparent 72%);
  pointer-events: none;
}
.coach-profile-char {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6));
}
.coach-profile-num {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--coach-text);
  background: rgba(8, 9, 12, 0.6);
  padding: 2px 6px;
  border: 1px solid var(--coach-rule-strong);
}
.coach-profile-name {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--coach-text);
}
.coach-profile-tag {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  color: var(--coach-gold);
}
.coach-profile-alts {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.coach-profile-alts .coach-tile-alts {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-stage {
  position: relative;
  margin-top: 36px;
  border: 1px solid var(--coach-rule-strong);
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.coach-stage-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.coach-stage-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--coach-gold);
  border-style: solid;
  opacity: 0.85;
  pointer-events: none;
}
.coach-stage-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.coach-stage-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.coach-stage-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.coach-stage-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.coach-stage-label {
  position: absolute;
  top: 10px;
  left: 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coach-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.coach-video-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: var(--coach-bg-elev);
}
/* `display: flex` above overrides the browser's default [hidden]{display:none}
   rule (author styles beat the UA stylesheet even at equal specificity), so
   without this the error box showed permanently regardless of the `hidden`
   attribute main.js toggles on video error. */
.coach-video-error[hidden] {
  display: none;
}
.coach-video-error strong {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--coach-text);
}
.coach-video-error p {
  margin: 12px auto 0;
  max-width: 380px;
  color: var(--coach-text-dim);
  font-size: 13px;
  line-height: 1.6;
}
.coach-video-error a {
  display: inline-block;
  margin-top: 12px;
  color: var(--coach-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.coach-replay-unavailable {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: var(--coach-bg-elev);
}
.coach-replay-unavailable span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coach-gold);
}
.coach-replay-unavailable strong {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--coach-text);
}
.coach-replay-unavailable p {
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--coach-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.coach-sheet {
  margin-top: 20px;
  border-top: 1px solid var(--coach-rule);
}
.coach-stat {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--coach-rule);
}
@media (max-width: 620px) {
  .coach-stat { grid-template-columns: 1fr; gap: 6px; }
}
.coach-stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coach-text-faint);
  padding-top: 2px;
}
.coach-stat-value {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--coach-text);
  white-space: pre-line;
}
.coach-stat-value--emphasis { font-size: 16px; }

.coach-students {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--coach-rule);
}
.coach-student-card {
  width: min(100%, 560px);
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--coach-rule-strong);
  border-radius: 3px;
  background: var(--coach-bg-elev);
  color: var(--coach-text);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.coach-student-card:hover,
.coach-student-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coach-gold);
  background: var(--coach-bg-elev-2);
  box-shadow: 0 14px 30px -18px var(--coach-shadow);
}
.coach-student-card__avatar {
  position: relative;
  width: 82px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  align-self: stretch;
  overflow: hidden;
  background: linear-gradient(145deg, var(--coach-bg-elev-2), #0d0f16);
  border-right: 1px solid var(--coach-rule);
}
.coach-student-card__avatar img,
.coach-student-card__avatar strong {
  grid-area: 1 / 1;
}
.coach-student-card__avatar img {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coach-student-card__avatar strong {
  color: var(--coach-rule-strong);
  font: italic 700 31px/1 "Oswald", sans-serif;
}
.coach-student-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 12px 0;
}
.coach-student-card__copy small {
  color: var(--coach-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.coach-student-card__copy > strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font: 700 25px/1 "Oswald", sans-serif;
  text-transform: uppercase;
}
.coach-student-card__copy > span {
  margin-top: 8px;
  color: var(--coach-text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.coach-student-card:hover .coach-student-card__copy > span {
  color: var(--coach-gold);
}

.coach-cta-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.coach-cta-box {
  border: 1px solid var(--coach-rule-strong);
  background: var(--coach-bg-elev);
  padding: 14px 20px;
  border-radius: 2px;
}
.coach-cta-label {
  margin: 0 0 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coach-text-faint);
}
.coach-cta-discord {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--coach-gold);
}
.coach-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--coach-accent);
  color: #fff;
  border: 1px solid var(--coach-accent);
  padding: 14px 26px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.coach-cta:hover {
  background: var(--coach-accent-strong);
  box-shadow: 0 10px 26px -10px rgba(232, 50, 63, 0.6);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .coach-tile { transition: none; animation: none; opacity: 1; }
}

/* Twitch live integration */
.live-card__image--thumbnail,
.player-card__visual--stream {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.live-card__image--thumbnail::before,
.player-card__visual--stream::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 12, .72), rgba(8, 8, 12, .06) 65%);
}
.live-card__image--thumbnail > *,
.player-card__visual--stream > * { position: relative; z-index: 2; }
.player-card__visual--stream { min-height: 180px; }
.player-live-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 10px 0 14px; padding: 10px 12px; background: rgba(145,70,255,.10); border: 1px solid rgba(145,70,255,.25); }
.player-live-summary strong { font-size: 12px; text-transform: uppercase; }
.player-live-summary span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.stream-game { display:inline-block; margin: 0 0 8px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.12); color: #b6b6c3; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing:.06em; }
.live-notice--error .live-notice__dot { background: #d9a441; }

/* Venue links */
.inline-link--strong {
  font-weight: 800;
  color: inherit;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}



/* TEKKEN_SLAM_STRUCTURED_PLAYER_INTRO_V2 */
.player-introduction {
  margin-top: 1.5rem;
}

.player-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.player-intro__section {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
}

.player-intro__section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: currentColor;
  opacity: .72;
}

.player-intro__kicker {
  margin-bottom: .4rem;
  opacity: .68;
}

.player-intro__heading {
  margin: 0 0 .8rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: .025em;
}

.player-intro__body {
  font-size: clamp(.98rem, 1.7vw, 1.08rem);
  line-height: 1.72;
}

.player-intro__body a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.player-intro__body a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .player-intro {
    grid-template-columns: 1fr;
  }

  .player-intro__section {
    border-radius: 14px;
    padding: 1rem;
  }
}
/* Fix profile heading character overlap */
.page-hero h1,
.player-intro__heading {
  line-height: 1.3;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
  overflow: visible;
}
.page-hero h1 {
  line-height: 1.25;
  padding-block: 0.12em;
}

.player-intro__heading {
  line-height: 1.35;
}



/* TEKKEN_SLAM_BACK_LINK_V2 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  min-height: 0;
  margin: 0 0 32px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9b9c2;
  cursor: pointer;
  font: 800 11px/1 Barlow, sans-serif;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.back-link:hover {
  border-color: rgba(242, 38, 54, 0.58);
  background: rgba(242, 38, 54, 0.075);
  color: #fff;
  transform: translateX(-2px);
}

.back-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .back-link {
    margin-bottom: 24px;
    padding: 9px 13px;
    font-size: 10px;
  }
}

/* Tekken Slam Suomi TikTok CTA in the front-page live card */
.event.event--compact {
  position: relative;
  padding-bottom: 72px;
}

.event__actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tiktok-follow {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.tiktok-follow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.075);
}

.tiktok-follow__label {
  color: var(--muted);
  font-weight: 600;
}

.tiktok-follow strong {
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .event.event--compact {
    padding-bottom: 76px;
  }

  .tiktok-follow {
    right: 16px;
    bottom: 16px;
  }
}
/* TEKKEN_SLAM_CLIPS_V1 */
.clips-hero {
  padding-bottom: 42px;
}

.clips-library {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px clamp(24px, 7vw, 110px) 100px;
}

.clips-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.clip-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-filter {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #111116;
  color: #b4b4bf;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: .18s ease;
}

.clip-filter span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #23232b;
  color: #858590;
  font-size: 10px;
}

.clip-filter:hover {
  border-color: #555561;
  color: #fff;
}

.clip-filter.active {
  border-color: var(--red);
  background: rgba(242, 38, 54, .12);
  color: #fff;
}

.clip-filter.active span {
  background: var(--red);
  color: #fff;
}

.clips-updated {
  flex: none;
  margin: 0;
  color: var(--muted);
  font: 500 10px/1.5 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.clip-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  transition: transform .18s ease, border-color .18s ease;
}

.clip-card:hover {
  transform: translateY(-3px);
  border-color: #41414c;
}

.clip-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(242, 38, 54, .13), transparent 58%),
    #08080b;
}

.clip-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.clip-card:hover .clip-card__media > img {
  transform: scale(1.025);
  filter: brightness(.78);
}

.clip-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #2d2d35;
  font: italic 800 clamp(34px, 5vw, 70px)/1 Oswald, sans-serif;
}

.clip-card__player {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 6px 9px;
  background: rgba(8, 8, 11, .84);
  border-left: 2px solid var(--red);
  color: #fff;
  font: 700 12px/1 Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.clip-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(8, 8, 11, .82);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  backdrop-filter: blur(8px);
}

.clip-card__play span {
  margin-left: 3px;
  font-size: 18px;
}

.clip-card__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--red);
  background: var(--red);
}

.clip-card__embed {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.clip-card__body {
  padding: 18px;
}

.clip-card__meta,
.clip-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #777783;
  font-size: 10px;
}

.clip-card__meta {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.clip-card__meta span:first-child {
  color: var(--red);
  font-weight: 800;
}

.clip-card h3 {
  margin: 12px 0 20px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  text-transform: none;
  overflow-wrap: anywhere;
}

.clip-card__footer {
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.clip-player-link {
  padding: 0;
  border: 0;
  background: none;
  color: #d7d7de;
  cursor: pointer;
  font-weight: 800;
}

.clip-player-link:hover {
  color: var(--red);
}

.clips-status {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 50px 24px;
  border: 1px dashed #303039;
  border-radius: 3px;
  background: #0d0d11;
  text-align: center;
}

.clips-status strong {
  font: 700 28px/1 Oswald, sans-serif;
  text-transform: uppercase;
}

.clips-status p {
  max-width: 600px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.clips-status__spinner {
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  border: 2px solid #33333d;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: clips-spin .8s linear infinite;
}

@keyframes clips-spin {
  to { transform: rotate(360deg); }
}

.clips-status--error {
  border-color: rgba(242, 38, 54, .35);
}

@media (max-width: 1050px) {
  .clips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mobile-nav:not([hidden]) {
    grid-template-columns: repeat(2, 1fr);
  }

  .clips-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .clips-grid {
    grid-template-columns: 1fr;
  }

  .clip-filter {
    min-height: 42px;
  }
}
/* TEKKEN_SLAM_CLIPS_V1_1 */
.clip-filter-select-wrap {
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
}

.clip-filter-select-wrap .kicker {
  margin-bottom: 0;
}

.clip-filter-select {
  width: min(100%, 320px);
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(45deg, transparent 50%, #8c8c98 50%) calc(100% - 17px) 19px / 6px 6px no-repeat,
    linear-gradient(135deg, #8c8c98 50%, transparent 50%) calc(100% - 11px) 19px / 6px 6px no-repeat,
    #111116;
  color: #f2f2f5;
  appearance: none;
  cursor: pointer;
  font: 700 13px/1 Manrope, system-ui, sans-serif;
}

.clip-filter-select:hover,
.clip-filter-select:focus {
  border-color: #565662;
}

.clip-filter-select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.clips-grid--player {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-clips-section {
  background:
    linear-gradient(180deg, rgba(242, 38, 54, .025), transparent 40%),
    #0a0a0d;
}

.clips-status--compact {
  min-height: 170px;
  padding: 30px 20px;
}

.clips-status--compact strong {
  font-size: 22px;
}

@media (max-width: 1050px) {
  .clips-grid--player {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .clip-filter-select,
  .clip-filter-select-wrap {
    width: 100%;
    max-width: none;
  }

  .clips-grid--player {
    grid-template-columns: 1fr;
  }
}
/* TEKKEN_SLAM_CLIPS_V1_2_MULTISELECT */
.clip-filter-multi {
  min-width: min(100%, 360px);
}

.clip-filter-multi > .kicker {
  display: block;
  margin-bottom: 8px;
}

.clip-filter-dropdown {
  position: relative;
  width: min(100%, 360px);
}

.clip-filter-dropdown > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #111116;
  color: #f2f2f5;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.clip-filter-dropdown > summary::-webkit-details-marker {
  display: none;
}

.clip-filter-dropdown[open] > summary {
  border-color: #555561;
}

.clip-filter-dropdown__arrow {
  color: #8c8c98;
  font-size: 18px;
  transition: transform .18s ease;
}

.clip-filter-dropdown[open] .clip-filter-dropdown__arrow {
  transform: rotate(180deg);
}

.clip-filter-dropdown__panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  width: min(360px, calc(100vw - 48px));
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #363641;
  border-radius: 3px;
  background: #0f0f14;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.clip-filter-dropdown__actions {
  display: flex;
  justify-content: flex-end;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.clip-filter-dropdown__actions button {
  padding: 5px 7px;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.clip-filter-checks {
  display: grid;
}

.clip-check {
  min-height: 42px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 7px;
  border-radius: 3px;
  cursor: pointer;
}

.clip-check:hover {
  background: rgba(255,255,255,.045);
}

.clip-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.clip-check__box {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #4a4a56;
  border-radius: 2px;
  background: #17171d;
}

.clip-check input:checked + .clip-check__box {
  border-color: var(--red);
  background: var(--red);
}

.clip-check input:checked + .clip-check__box::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.clip-check input:focus-visible + .clip-check__box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.clip-check__label {
  min-width: 0;
  color: #e1e1e7;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.clip-check__count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #23232b;
  color: #8e8e99;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .clip-filter-multi,
  .clip-filter-dropdown {
    width: 100%;
    max-width: none;
  }

  .clip-filter-dropdown__panel {
    width: 100%;
    max-width: none;
  }
}
/* TEKKEN_SLAM_CLIPS_V1_3_PAGINATION */
.kicker--nowrap,
.clips-title-nowrap {
  white-space: nowrap;
}

.clips-title-nowrap {
  display: inline-block;
}

.clips-pagination {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr minmax(120px, auto);
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.clips-page-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #111116;
  color: #e3e3e8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: .18s ease;
}

.clips-page-button:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(242, 38, 54, .08);
}

.clips-page-button:disabled {
  opacity: .35;
  cursor: default;
}

.clips-page-status {
  text-align: center;
  color: var(--muted);
  font: 600 11px/1.4 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (max-width: 760px) {
  .clips-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .clips-page-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .clips-page-button {
    width: 100%;
  }
}


/* =========================================================
   TWITCH HIGHLIGHTS — additive patch on top of Clips v1.3
   ========================================================= */

.clips-media-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 26px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #101015;
  border-radius: 4px;
}

.clips-media-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #aaaab4;
  font: 800 12px/1 Manrope, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.clips-media-tab span {
  min-width: 23px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #24242b;
  color: #d8d8df;
  font-size: 10px;
  text-align: center;
}

.clips-media-tab:hover {
  color: #fff;
  background: #18181f;
}

.clips-media-tab.active {
  color: #fff;
  background: var(--red);
}

.clips-media-tab.active span {
  color: #fff;
  background: rgba(0,0,0,.22);
}

.highlight-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 3px;
  background: rgba(5,5,8,.88);
  color: #fff;
  font: 800 10px/1 Manrope, system-ui, sans-serif;
  letter-spacing: .03em;
}

.highlight-card .clip-card__meta span:first-child {
  color: #fff;
}

@media (max-width: 560px) {
  .clips-media-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .clips-media-tab {
    justify-content: center;
    padding-inline: 12px;
  }
}

/* Player profile: coach link */
.page-hero > .player-coach {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  margin-bottom: 4px;
}


/* Coach roster item: keep the original coach card untouched and place
   the participant link as a separate row underneath it. */
.coach-roster-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.coach-roster-item > .coach-tile {
  width: 100%;
  flex: 1 0 auto;
}

.coach-student-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--coach-rule-strong);
  border-top: 0;
  color: var(--coach-text);
  background: var(--coach-bg-elev);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.coach-student-link:hover,
.coach-student-link:focus-visible {
  border-color: var(--coach-gold);
  background: var(--coach-bg-elev-2);
}

.coach-student-link > span {
  color: var(--coach-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coach-student-link > strong {
  min-width: 0;
  overflow: hidden;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.coach-student-link > b {
  color: var(--coach-text-dim);
  font-size: 12px;
  transition: color .18s ease, transform .18s ease;
}

.coach-student-link:hover > b,
.coach-student-link:focus-visible > b {
  color: var(--coach-gold);
  transform: translateX(2px);
}
