/**
 * match.css — 경기 카드 전용 스타일
 * 위치:   /var/www/test_seohyeon/public/assets/css/match.css
 * 역할:   경기 카드 렌더링 스타일 (목록 인라인 / 상세)
 * 의존:   theme.css CSS 변수 (--blade, --text, --muted, --bg 등)
 * 로드:   경기 카드가 필요한 페이지에서만 개별 로드
 *         (feed/index.php 등 — match-render.js 와 함께)
 * 수정이력:
 *   2026-04-12 feed.css에서 분리 신규 작성
 */

/* ══════════════════════════════════════════════
   경기결과 카드 (인라인 — 목록 썸네일 오버레이)
══════════════════════════════════════════════ */
.feed-match-card-inline {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: linear-gradient(to top, rgba(10,27,42,.92) 0%, rgba(10,27,42,.7) 70%, transparent 100%);
	backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px);
	border-radius: 0 0 14px 14px;
	padding: 20px 14px 12px;
	z-index: 2;
}
.feed-match-score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 3px;
}
.feed-match-team         { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); }
.feed-match-team--us     { color: #60c3f5; }
.feed-match-score-num    { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.feed-match-meta         { padding:0px;text-align: center; font-size: 12px; color: rgba(255,255,255,.6); }
.feed-match-so-badge     { display:block; text-align:center; font-size:13px; font-weight:800; color:#f59e0b; letter-spacing:.05em; margin-top:2px; }
.feed-match-so-badge--win     { color: #6BEC62}
.feed-match-so-badge--loss    { color: #FF007F}
.feed-match-so-badge--draw    { color: #D4F4FA}
.feed-match-so-badge--ot_win  { color: #1ec864}
.feed-match-so-badge--ot_loss { color: #ff6060}
.feed-match-so-badge--so_win  { color: #BCE55C}
.feed-match-so-badge--so_loss { color: #FFB2F5}

.feed-match-score-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	text-align: center;
	gap: 0 6px;
	width: 100%;
}
.feed-match-score-grid .feed-match-team--us   { text-align: center; }
.feed-match-score-grid .feed-match-team--them { text-align: center; }
.feed-match-score-grid .feed-match-score-num  { text-align: center; }
.feed-match-score-sep {
	font-size: 13px;
	color: var(--muted);
	font-weight: 700;
}

/* ══════════════════════════════════════════════
   경기결과 카드 (상세 레이어)
══════════════════════════════════════════════ */
/* feed-match-card margin/padding: 해상도별 미디어쿼리에서 관리 */
.feed-match-card { }

.feed-match-card-detail {
	background: var(--bladeL);
	border: 1px solid var(--blade);
	border-radius: 10px;
}
.feed-match-card-detail .feed-match-team    { color: var(--blade); font-weight: 700; }
.feed-match-card-detail .feed-match-team--us { color: var(--blade); }
.feed-match-card-detail .feed-match-score-num { color: var(--text); font-size: 25px; }
.feed-match-card-detail .feed-match-meta     { padding:10px 0px; color: var(--muted); }

/* ══════════════════════════════════════════════
   경기 상세 카드 — 경기구분/출전선수
══════════════════════════════════════════════ */
.fmd-type-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fmd-type-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--blade); color: #fff; }
.fmd-tournament { font-size: 14px; font-weight: 600; color: var(--text); }

.fmd-teams-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.fmd-team-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; }
.fmd-team-col--away { align-items: center; }
.fmd-score-col { flex-shrink: 0; text-align: center; }
.fmd-colon { margin: 0 4px; color: var(--muted); }

.fmd-result-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.fmd-result-badge--win  { background: #22c55e; color: #fff; }
.fmd-result-badge--loss { background: #ef4444; color: #fff; }
.fmd-result-badge--draw { background: var(--muted); color: #fff; }
.fmd-pts { font-size: 10px; font-weight: 500; opacity: .85; }

.fmd-roster { margin-top: 10px; display: flex; gap: 12px; border-top: 1px solid var(--hd-drawer-border); padding-top: 10px; }
.fmd-players { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fmd-players--home { border-right: 1px solid var(--hd-drawer-border); padding-right: 12px; }
.fmd-players-header { font-size: 13px; font-weight: 700; color: var(--subject-1); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 4px; }
.fmd-player { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text); padding: 2px 0; }
.fmd-player-no { font-style: normal; font-weight: 700; color: var(--blade); min-width: 30px; font-size: 11px; flex-shrink: 0; }
.fmd-player-name { flex: 0 0 auto; width: 5em; max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fmd-player small { font-size: 10px; color: var(--muted); flex-shrink: 0; margin-left: 2px; }
.fmd-player--guest .fmd-player-no { color: var(--muted); }

.fmd-goals { margin-top: 10px; border-top: 1px solid var(--hd-drawer-border); padding-top: 10px; }
.fmd-goals-cols { display: flex; gap: 0; }
.fmd-goals-col { flex: 1; min-width: 0; }
.fmd-goals-col--away { border-left: 1px solid var(--hd-drawer-border); padding-left: 8px; margin-left: 4px; }
.fmd-goals-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.fmd-goal-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; flex-wrap: wrap; }
.fmd-goal-order { flex-shrink: 0; width: 14px; height: 14px; background: var(--blade); color: #fff; border-radius: 50%; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fmd-goal-scorer { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 4px; }
.fmd-goal-scorer i { display: none; }
.fmd-goal-assist { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.fmd-goal-assist i { font-size: 10px; }
.fmd-goals--shootout { margin-top: 6px; }
.fmd-goals--shootout .fmd-goals-title i { color: #f59e0b; }
.fmd-so-badge { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fmd-so-badge--o { background: #22c55e; color: #fff; }
.fmd-so-badge--x { background: #ef4444; color: #fff; }
.fmd-so-badge--none { background: var(--border); color: var(--muted); }

/* ══════════════════════════════════════════════
   출전선수 grid — 해상도 4단계
   ① ~339px   : 1열 · 극소형 폰
   ② 340~479px: 2열 · 일반 폰 · 핸드 숨김
   ③ 480~767px: 2열 · 대형 폰/소형 태블릿 · 핸드 표시
   ④ 768px~   : 2열 · 풀사이즈 · 태블릿·PC
══════════════════════════════════════════════ */

/* 포지션 그룹 공통 */
.fmd-pos-group { margin-bottom: 8px; }
.fmd-pos-group:last-child { margin-bottom: 0; }
.fmd-pos-group-header {
	font-size: 10px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 3px;
	display: flex;
	align-items: center;
	gap: 4px;
}
.fmd-pos-group-count {
	font-weight: 400;
	opacity: .75;
}

/* ── ① 기본(~339px): 1열 · 최소 사이즈 ── */
.fmd-players-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px 4px;
}
.feed-match-card        { margin: 8px 2px 5px 3px; }
.feed-match-card-detail { padding: 10px 4px; margin: 0 0 10px; }
.fmd-roster             { gap: 4px; }
.fmd-players--home      { padding-right: 4px; }
.fmd-player             { gap: 2px; font-size: 11px; }
.fmd-player-no          { min-width: 18px; font-size: 10px; }
.fmd-player-name        { width: 3em; max-width: 4em; font-size: 11px; }
.fmd-player small       { font-size: 10px; }
.fmd-goal-row           { gap: 5px; }
/* 핸드 기본 숨김 (~479px) */
.fmd-hand               { display: none; }

/* ── ② 340~479px: 2열 전환 · 사이즈 동일 ── */
@media (min-width: 340px) {
	.fmd-players-list { grid-template-columns: 1fr 1fr; }
}

/* ── ③ 480~767px: 텍스트·갭 확대 + 핸드 표시 ── */
@media (min-width: 480px) {
	.feed-match-card        { margin: 8px 6px 5px; }
	.feed-match-card-detail { padding: 12px 10px; margin: 0 0 10px; }
	.fmd-roster             { gap: 8px; }
	.fmd-players--home      { padding-right: 8px; }
	.fmd-player             { gap: 4px; font-size: 12px; }
	.fmd-player-no          { min-width: 22px; font-size: 11px; }
	.fmd-player-name        { width: 5em; max-width: 6em; font-size: 12px; }
	.fmd-player small       { font-size: 11px; }
	.fmd-players-list       { gap: 3px 6px; }
	.fmd-goal-row           { gap: 7px; }
	/* 핸드 표시 */
	.fmd-hand               { display: inline; }
}

/* ── ④ 768px~: 풀사이즈 (태블릿·PC) ── */
@media (min-width: 768px) {
	.feed-match-card        { margin: 5px 2px 5px 5px; }
	.feed-match-card-detail { padding: 10px; margin: 0 0 4px; }
	.fmd-roster             { gap: 10px; }
	.fmd-players--home      { padding-right: 5px; }
	.fmd-player             { gap: 5px; font-size: 12px; }
	.fmd-player-no          { min-width: 20px; font-size: 11px; }
	.fmd-player-name        { width: 4em; max-width: 5em; font-size: 12px; }
	.fmd-player small       { font-size: 10px; }
	.fmd-players-list       { gap: 2px 4px; }
}