/* 스포티망고 v2 「외국 팬 안내서」 — 승인된 시안(docs/mockups/site-v2.html)의 색·구성. 외부 글꼴·CDN 없음.
 * 밝은 화면만, 휴대폰 먼저(양옆 16px), 가로 넘침 없음. */
:root {
  --bg: #fafaf8;
  --card: #fff;
  --line: #e7e5df;
  --text: #1d1d1b;
  --muted: #6f6d66;
  --accent: #e4572e;
  --accent-text: #a23412;
  --soft: #ffe3d8;
  --chip: #f1efe9;
  --thumb: #2b2b2b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
html[lang="ko"] body { word-break: keep-all; }
img { max-width: 100%; }
a { color: inherit; }
h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

/* 머리 */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 18px; text-decoration: none; }
.nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.lang {
  margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px;
  background: var(--chip); text-decoration: none; white-space: nowrap;
}
.lang:hover { border-color: var(--accent); }
@media (min-width: 760px) { .nav { order: 0; width: auto; } }
@media (max-width: 480px) { .brand-s { display: none; } }

.ko-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: -8px 0 14px;
  background: var(--soft); border-radius: 12px; padding: 8px 12px; font-size: 14px;
}
.ko-banner a { color: var(--accent-text); font-weight: 600; }
.ko-banner .x { font: inherit; font-size: 18px; line-height: 1; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px 6px; }

/* 첫 화면 */
.hero .lead { margin: 0; }
.search { position: relative; margin: 12px 0 4px; max-width: 560px; }
.search input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.results { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.results a:hover, .results a:focus { background: var(--chip); }
.results .k { font-size: 12px; color: var(--muted); white-space: nowrap; }
.results .none { padding: 8px 10px; color: var(--muted); }

.tabs { display: flex; gap: 6px; margin: 6px 0 12px; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--chip); color: var(--text);
}
.tabs button.on { background: var(--accent); color: #fff; font-weight: 600; }
.panel { margin-bottom: 18px; }
.ph { margin: 14px 0 10px; }
.tabbed .ph { margin-top: 0; }
.tabbed .ph-s { display: none; }

.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.team {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  text-decoration: none; min-width: 0;
}
.team:hover { border-color: var(--accent); }
.team > .small { display: block; }
.tbar { display: block; height: 6px; border-radius: 6px; margin: -4px 0 10px; }

/* 얼굴(세로 영상 썸네일 가운데를 동그랗게) */
.faces { display: flex; align-items: center; margin-top: 10px; }
.face {
  position: relative; display: block; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; margin-left: -8px; background: linear-gradient(135deg, #f7c9b6, #e4572e);
}
.faces .face:first-child { margin-left: 0; }
.face img, .avatar img {
  /* hqdefault(4:3) 안 세로 영상은 가운데 42% 폭 — 그 부분이 원을 채우도록 키우고 위쪽(얼굴)을 보여 줌 */
  position: absolute; left: 50%; top: -6%; width: 237%; max-width: none; height: auto; transform: translateX(-50%);
}
.faces em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }

/* 영상 카드 */
.row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .row { grid-template-columns: repeat(2, 1fr); } }
.vid { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.vid .play { display: block; text-decoration: none; color: inherit; }
.thumb { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--thumb); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid .play:hover img { filter: brightness(1.08); }
.pi {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); opacity: .9;
}
.tag, .dur {
  position: absolute; font-size: 11px; line-height: 1.6; padding: 0 6px; border-radius: 4px; font-weight: 600; color: #fff;
}
.tag { left: 6px; top: 6px; background: var(--accent); }
.dur { right: 6px; bottom: 6px; background: rgba(0, 0, 0, .68); font-variant-numeric: tabular-nums; }
.cap { display: block; margin: 8px 10px 10px; font-size: 13px; }
.cap b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap span { display: block; color: var(--muted); font-size: 12px; }

/* 응원 안내 카드 */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }
.g { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; }
.g:hover { border-color: var(--accent); }
.g b { display: block; margin-bottom: 4px; }

/* 치어리더 페이지 */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.profile {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; text-align: center; }
  .profile .avatar { margin: 0 auto; }
  .profile .chips { justify-content: center; }
}
.avatar {
  position: relative; display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #f7c9b6, #e4572e);
}
.sub { color: var(--muted); font-size: 18px; font-weight: 400; }
.role { margin: 2px 0 0; color: var(--muted); }
.role b { color: var(--text); }
.role a { text-decoration: none; }
.role a:hover b { text-decoration: underline; text-decoration-color: var(--accent); }
.igbox { text-align: center; }
.igbox span { display: block; margin-top: 6px; }
.ig {
  display: inline-block; padding: 10px 16px; border-radius: 12px; background: linear-gradient(45deg, #f9a03f, #e1306c, #833ab4);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; background: var(--chip); border-radius: 999px; padding: 3px 10px; font-size: 13px; text-decoration: none; }
a.chip:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.chip.now { background: var(--soft); color: var(--accent-text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.box h2 { font-size: 15px; margin: 0; }
.box > p { margin: 8px 0 0; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl li:last-child { border: 0; }
.tl b { flex: none; width: 92px; color: var(--muted); font-weight: 600; }
.tl a { text-decoration: none; }
.tl a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.cta {
  display: block; text-align: center; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px; border-radius: 12px; font-weight: 600; margin-top: 14px;
}
.cta:hover { filter: brightness(1.05); }
.mates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 10px; }
.mates a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; text-align: center; text-decoration: none; font-size: 12px; }
.mates a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--accent); }
.face.lg { width: 56px; height: 56px; margin: 0; border: 0; }

/* 팀·경기장 페이지 */
.thead { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.thead .tbar { height: 8px; margin: -6px 0 14px; }
.thead p { margin: 4px 0 0; }
.thead p a { text-decoration: none; }
.thead p a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.count { font-weight: 600; color: var(--accent-text); }
.season h3 { margin: 16px 0 8px; color: var(--muted); }

/* 글(응원 안내·소개) */
.article { max-width: 720px; }
.article .lead { font-size: 17px; color: var(--muted); }
.article h2 { margin-top: 26px; }
.article li { margin: 4px 0; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }

/* 버튼·발 */
.btn {
  font: inherit; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { border-color: var(--accent); }
.done { color: var(--muted); margin-left: 8px; }
.nf { text-align: center; padding: 48px 0; }
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 6px 0; }
.farm-cta {
  display: inline-block; background: var(--card); color: var(--accent-text); border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: 12px; font-weight: 600; text-decoration: none;
}

/* 재생 창 */
body.pl-open { overflow: hidden; }
dialog.player {
  padding: 0; border: 0; border-radius: 16px; background: var(--card); color: var(--text);
  width: min(960px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
}
dialog.player.is-v { width: fit-content; }
dialog.player::backdrop { background: rgba(0, 0, 0, .75); }
dialog.player[open]:not(:modal) { position: fixed; inset: 16px; margin: auto; z-index: 50; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .75); }
.pl-stage { position: relative; background: #000; overflow: hidden; }
.pl-stage.is-h { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; }
.pl-stage.is-v { aspect-ratio: 9 / 16; height: min(76vh, 720px); min-height: 356px; min-width: 200px; max-width: 100%; margin: 0 auto; }
.pl-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #fff; }
.pl-consent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.pl-consent > :not(img) { position: relative; }
.pl-consent p { margin: 0; font-size: 15px; max-width: 30em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pl-consent small { font-size: 12px; opacity: .85; }
.pl-go {
  font: inherit; font-size: 17px; font-weight: 800; padding: 12px 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
}
.pl-close {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.pl-info { padding: 12px 16px 16px; max-width: 960px; }
dialog.player.is-v .pl-info { max-width: min(405px, calc(100vw - 32px)); }
.pl-title { margin: 0 0 6px; font-weight: 700; }
.pl-desc { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; color: var(--muted); white-space: pre-line; max-height: 11em; overflow-y: auto; overscroll-behavior: contain; }
.pl-info a { color: var(--accent-text); font-weight: 600; }
/* 큰 화면: 재생 창을 크게(10-08 에릭 「영상 팝업이 너무 작은 거 같아」) — 세로 영상은 화면 높이 거의 다 + 글은 오른쪽 옆에,
   가로 영상은 화면 폭(높이에 맞춰 넘치지 않게). 폰은 그대로 위아래로. */
@media (min-width: 900px) and (min-height: 560px) {
  dialog.player.is-v { width: fit-content; }
  dialog.player.is-v[open] { display: flex; align-items: stretch; }
  dialog.player.is-v .pl-stage { height: min(calc(100vh - 48px), 1200px); margin: 0; flex: none; }
  dialog.player.is-v .pl-info { width: 360px; max-width: 360px; padding: 64px 24px 24px; display: flex; flex-direction: column; overflow: hidden; }
  dialog.player.is-v .pl-title { font-size: 18px; line-height: 1.4; }
  dialog.player.is-v .pl-desc { max-height: none; flex: 1 1 auto; min-height: 0; font-size: 14.5px; }
  dialog.player.is-h { width: min(1400px, calc(100vw - 64px), calc((100vh - 170px) * 16 / 9)); }
}
