/*
 * 이적시장 v2 (transferhub-v2.html) 스타일 — 메인 리디자인 토큰(css/statify-tokens.css)을 쓴다.
 * v1(transferhub.html)의 인라인 스타일을 클래스로 옮겼다. transferhub-v2.js 가 의존하는 클래스·id는 그대로 둔다.
 * 다크 모드는 <html data-theme="dark"> (토큰 파일이 값을 바꾼다).
 */

/* ---------- 토큰 매핑 (옛 변수 이름을 쓰는 코드·리포트 렌더러 호환) ---------- */
:root {
    --primary-color: var(--st-accent);
    --bg-color: var(--st-bg);
    --card-bg: var(--st-card);
    --border-color: var(--st-border);
    --text-main: var(--st-text);
    --text-sub: var(--st-sub);
    --hover-bg: var(--st-soft);
    --tf-fw: #ef4444; --tf-mf: #10b981; --tf-df: #3b82f6; --tf-gk: #f59e0b;
    --tf-fw-soft: #fef2f2; --tf-mf-soft: #ecfdf5; --tf-df-soft: #eff6ff; --tf-gk-soft: #fffbeb;
    --tf-discord: #5865f2;
    --tf-founding: #6d28d9; --tf-founding-soft: #ede9fe;
    --tf-danger: var(--st-danger);
    --sr-win: #16a34a; --sr-draw: #94a3b8; --sr-loss: #ef4444; /* 최근 폼 막대 */
}
[data-theme="dark"] {
    --sr-win: #4ade80; --sr-draw: #64748b; --sr-loss: #f87171;
    --tf-fw: #f87171; --tf-mf: #34d399; --tf-df: #60a5fa; --tf-gk: #fbbf24;
    --tf-fw-soft: rgba(248,113,113,0.14); --tf-mf-soft: rgba(52,211,153,0.14); --tf-df-soft: rgba(96,165,250,0.14); --tf-gk-soft: rgba(251,191,36,0.14);
    --tf-founding: #c4b5fd; --tf-founding-soft: rgba(167,139,250,0.16);
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
html { color-scheme: light; }
[data-theme="dark"] html, html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font-family: var(--st-font); background: var(--st-bg); color: var(--st-text); line-height: 1.55; padding-bottom: 40px; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--st-accent); }
.tf-muted { color: var(--st-faint); font-size: 0.85rem; }
.tf-container { max-width: 1240px; margin: 0 auto; padding: 20px 20px 0; } /* 안쪽 1200px = 메인 페이지 본문 폭 */

/* ---------- 히어로: 메인 정체성 배너(main.html .main-hero)와 같은 작전판 그림 ---------- */
.tf-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; gap: 16px;
    min-height: 124px; margin: 0 0 22px; padding: 20px 28px; border-radius: 16px;
    background:
        radial-gradient(120% 140% at 84% 50%, rgba(14, 240, 70, 0.12), transparent 55%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 64px, transparent 64px 128px),
        linear-gradient(115deg, #06200f 0%, #0b3a1c 45%, #0f5229 100%);
    color: #ffffff; box-shadow: var(--st-shadow-sm);
}
.tf-hero-pitch { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 72%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.tf-hero-lines { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.4; }
.tf-hero-spots { fill: rgba(255, 255, 255, 0.45); }
.tf-hero-chalk path, .tf-hero-chalk circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tf-hero-chalk-x { stroke: rgba(255, 255, 255, 0.62); stroke-width: 2; }
.tf-hero-chalk-mark { stroke: #0ef046; stroke-width: 2.4; }
.tf-hero-chalk-slot { stroke: #0ef046; stroke-width: 1.8; stroke-dasharray: 3.5 3.5; opacity: 0.9; }
.tf-hero-play circle { fill: #0ef046; }
.tf-hero-play .tf-hero-ring { fill: none; stroke: #0ef046; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: tf-hero-ring 2.4s ease-out infinite; }
@keyframes tf-hero-ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tf-hero-play .tf-hero-ring { animation: none; } }
.tf-hero-copy { position: relative; flex: 1; min-width: 0; max-width: 62%; display: flex; flex-direction: column; gap: 4px; }
/* 언어가 바뀌어도 한 줄 (문구는 언어별로 한 줄에 맞는 길이로 씀) */
.tf-hero-title, .tf-hero-desc { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tf-hero-title { padding-bottom: 6px; color: #ffffff; font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.tf-hero-mark { position: relative; white-space: nowrap; }
.tf-hero-mark::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -0.2em; height: 0.32em; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.5C30 4.2 64 3.6 118 5.4' fill='none' stroke='%230ef046' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M7 9.6C42 7.4 82 7.6 113 8.2' fill='none' stroke='%230ef046' stroke-width='1.3' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.tf-hero-desc { color: rgba(236, 253, 245, 0.82); font-size: 0.98rem; font-weight: 500; }
@media (min-width: 769px) and (max-width: 1100px) { .tf-hero-pitch { width: 52%; } .tf-hero-copy { max-width: 56%; } }
@media (max-width: 768px) {
    .tf-hero { min-height: 0; margin-bottom: 14px; padding: 16px; gap: 12px; border-radius: 14px; }
    /* 폰에서는 글줄이 길어 그림과 겹치므로 왼쪽을 더 길게 흐린다 */
    .tf-hero-pitch { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 68%); mask-image: linear-gradient(90deg, transparent 22%, #000 68%); opacity: 0.8; }
    .tf-hero-chalk-mark, .tf-hero-chalk-slot, .tf-hero-play { opacity: 0.5; } /* 글 뒤의 화살표·빈 자리는 배경 무늬 정도로 */
    .tf-hero-copy { max-width: none; gap: 3px; }
    .tf-hero-title { padding-bottom: 5px; font-size: clamp(1.1rem, 5.8vw, 1.38rem); }
    .tf-hero-desc { font-size: clamp(0.7rem, 3.4vw, 0.82rem); }
}

/* ---------- 맞춤 안내 띠 (히어로 아래, 로그인 전용) ---------- */
.tf-insight { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: -8px 0 18px; padding: 11px 14px; border-radius: 12px; background: var(--st-accent-tint); border: 1px solid var(--st-accent-soft); color: var(--st-text); font-size: 0.9rem; line-height: 1.5; }
.tf-insight[hidden] { display: none; }
.tf-insight-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent); color: var(--st-on-accent); font-size: 0.9rem; }
.tf-insight-text { flex: 1 1 320px; min-width: 0; }
.tf-insight-text b { color: var(--st-text-strong); font-weight: 800; }
.tf-insight-text .tf-pos { vertical-align: middle; margin: 0 1px; }
.tf-insight-team { font-weight: 800; color: var(--st-accent-strong); text-decoration: none; border-bottom: 1px dashed var(--st-accent); cursor: pointer; }
.tf-insight-team:hover { border-bottom-style: solid; }
.tf-insight-sub { display: block; margin-top: 2px; font-size: 0.76rem; color: var(--st-faint); }
.tf-insight-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.tf-insight-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--st-accent); background: var(--st-card); color: var(--st-accent-strong); font-size: 0.8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tf-insight-btn:hover { background: var(--st-accent-soft); }
.tf-insight-btn.is-primary { background: var(--st-accent); color: var(--st-on-accent); }
.tf-insight-close { flex: none; border: 0; background: transparent; color: var(--st-faint); font-size: 1rem; cursor: pointer; padding: 2px 4px; line-height: 1; }
.tf-insight-close:hover { color: var(--st-text); }
@media (max-width: 768px) {
    .tf-insight { margin-top: -4px; padding: 10px 12px; font-size: 0.86rem; gap: 8px 10px; align-items: flex-start; }
    .tf-insight-icon { width: 26px; height: 26px; font-size: 0.82rem; margin-top: 1px; }
    .tf-insight-text { flex: 1 1 0; }
    .tf-insight-actions { flex-basis: 100%; margin-left: 36px; }
    .tf-insight-close { position: absolute; top: 6px; right: 6px; }
    .tf-insight { position: relative; padding-right: 30px; }
}

/* ---------- 모바일 탭 (세그먼트) ---------- */
.mobile-tabs { display: none; }
@media (max-width: 1024px) {
    .mobile-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; position: sticky; top: 8px; z-index: 50; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: var(--st-card); border: 1px solid var(--st-border); box-shadow: var(--st-shadow-sm); }
    .tab-btn { border: 0; background: transparent; color: var(--st-sub); font-weight: 700; font-size: 0.86rem; padding: 10px 6px; white-space: nowrap; min-width: 0; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .tab-btn.active { background: var(--st-accent); color: var(--st-on-accent); }
}

/* ---------- 두 열 패널 ---------- */
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.section-card { min-width: 0; background: var(--st-card); border: 1px solid var(--st-border); border-radius: var(--st-radius-lg); padding: 18px; box-shadow: var(--st-shadow-sm); }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--st-line); }
.section-title { font-size: 1.05rem; font-weight: 800; color: var(--st-text-strong); display: flex; align-items: center; gap: 8px; margin: 0; }
.tf-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--st-accent-soft); color: var(--st-accent-strong); font-size: 0.74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.section-actions { display: flex; gap: 8px; align-items: center; }
.btn-write { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--st-accent); background: var(--st-accent); color: var(--st-on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: filter 0.15s, transform 0.15s; white-space: nowrap; }
.btn-write:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-write:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.btn-write.is-founding { background: var(--st-card); color: var(--tf-founding); border-color: var(--tf-founding); }

/* ---------- 공고 카드 ---------- */
.tf-card { position: relative; min-width: 0; overflow-wrap: anywhere; background: var(--st-card); border: 1px solid var(--st-border); border-radius: 14px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; color: var(--st-text); }
.tf-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); border-color: var(--st-border-strong); }
.tf-card.is-closed { opacity: 0.62; filter: grayscale(0.8); background: var(--st-subtle); }
.tf-card.is-closed:hover { transform: none; box-shadow: none; }
.tf-card-top { display: flex; align-items: flex-start; gap: 12px; }
.tf-card-emblem { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--st-border); background: var(--st-soft); flex-shrink: 0; }
.tf-card.is-founding .tf-card-emblem { border-radius: 50%; }
.tf-card-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--st-border); background: var(--st-soft); flex-shrink: 0; }
.tf-card-id { flex: 1; min-width: 0; }
.tf-card-name { font-weight: 800; font-size: 1rem; color: var(--st-text-strong); line-height: 1.25; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-card-meta { font-size: 0.8rem; color: var(--st-faint); margin-top: 2px; }
.tf-card-awards { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tf-card-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tf-card-title { margin: 12px 0 4px; font-size: 1.02rem; font-weight: 800; color: var(--st-text-strong); line-height: 1.35; display: flex; align-items: center; gap: 8px; }
.tf-card-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-card-excerpt { margin: 0 0 10px; color: var(--st-muted); font-size: 0.88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-card-excerpt-3 { -webkit-line-clamp: 3; color: var(--st-text); font-size: 0.92rem; }
.tf-card-conds { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tf-cond { font-size: 0.74rem; font-weight: 600; color: var(--st-muted); background: var(--st-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tf-card-positions { display: flex; flex-wrap: wrap; gap: 5px; }
.tf-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.76rem; color: var(--st-faint); }
.time-ribbon { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; color: var(--st-faint); }
.tf-cmt { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--st-soft); color: var(--st-faint); white-space: nowrap; flex-shrink: 0; }
.tf-cmt.has-comments { background: var(--st-accent-soft); color: var(--st-accent-strong); }
.tf-deadline { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--st-accent-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-deadline.is-soon { color: var(--st-danger); }
.tf-deadline.is-closed { color: var(--st-faint); }
.tf-badge { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; line-height: 1.5; white-space: nowrap; }
.tf-badge-founding { background: var(--tf-founding-soft); color: var(--tf-founding); }
.tf-badge-closed { background: var(--st-draw-bg); color: var(--st-draw-fg); }
.tf-award { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 800; border: 1px solid var(--st-border); background: var(--st-card); padding: 1px 7px; border-radius: 999px; }
.tf-pos { display: inline-flex; align-items: center; gap: 4px; border: 1px solid; padding: 3px 9px; border-radius: 8px; font-size: 0.78rem; font-weight: 800; background: var(--st-card); white-space: nowrap; line-height: 1.5; }
.tf-pos small { font-weight: 600; font-size: 0.7rem; color: var(--st-muted); }
.tf-pos-fw { color: var(--tf-fw); border-color: var(--tf-fw); background: var(--tf-fw-soft); }
.tf-pos-mf { color: var(--tf-mf); border-color: var(--tf-mf); background: var(--tf-mf-soft); }
.tf-pos-df { color: var(--tf-df); border-color: var(--tf-df); background: var(--tf-df-soft); }
.tf-pos-gk { color: var(--tf-gk); border-color: var(--tf-gk); background: var(--tf-gk-soft); }
.tf-chip { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--st-border); background: var(--st-subtle); color: var(--st-text); }
.tf-chip-fmt { background: var(--st-accent-tint); border-color: var(--st-accent-soft); color: var(--st-accent-strong); }
.tf-empty { text-align: center; padding: 34px 12px; color: var(--st-faint); font-size: 0.9rem; border: 1px dashed var(--st-border); border-radius: 12px; }
.tf-empty.is-error { color: var(--st-danger); border-color: var(--st-danger); }

/* ---------- 모달 공통 ---------- */
.tf-modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.common-modal-box { background: var(--st-card); width: 92%; max-width: 1100px; margin: 4vh auto; border-radius: 18px; display: flex; flex-direction: column; max-height: 90vh; overflow: hidden; position: relative; border: 1px solid var(--st-border); box-shadow: var(--st-shadow-pop); }
.common-modal-box.is-narrow { max-width: 640px; }
.common-modal-header { padding: 14px 18px; border-bottom: 1px solid var(--st-line); flex-shrink: 0; background: var(--st-card); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--st-text-strong); }
.common-modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.tf-modal-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--st-sub); font-size: 1.5rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.tf-modal-close:hover { background: var(--st-soft); color: var(--st-text); }
.common-modal-body { flex: 1; overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.common-modal-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--st-line); flex-shrink: 0; background: var(--st-card); display: flex; justify-content: flex-end; gap: 8px; }
.tf-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tf-identity img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--st-border); background: var(--st-soft); flex-shrink: 0; }
.tf-identity img.is-round { border-radius: 50%; }
.tf-identity h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-identity-sub { font-size: 0.8rem; color: var(--st-sub); margin-top: 2px; }
.fa-profile-link { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 4px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--st-accent-soft); background: var(--st-accent-tint); color: var(--st-accent-strong); font-size: 0.76rem; font-weight: 800; text-decoration: none; line-height: 1; }
.fa-profile-link:hover { background: var(--st-accent); color: var(--st-on-accent); }

/* 버튼 */
.tf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--st-border-strong); background: var(--st-card); color: var(--st-text); font-weight: 700; font-size: 0.86rem; cursor: pointer; white-space: nowrap; }
.tf-btn:hover { background: var(--st-soft); }
.tf-btn-primary { background: var(--st-accent); border-color: var(--st-accent); color: var(--st-on-accent); }
.tf-btn-primary:hover { filter: brightness(1.06); background: var(--st-accent); }
.tf-btn-bump { border-color: var(--st-accent); color: var(--st-accent-strong); background: var(--st-accent-tint); }
.tf-btn-danger { color: var(--st-danger); border-color: var(--st-loss-bg); background: var(--st-card); }
.tf-btn-danger:hover { background: var(--st-loss-bg); }
.tf-btn.is-disabled, .tf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tf-admin-btns { display: none; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tf-dm-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 20px; border-radius: 12px; border: 0; background: var(--tf-discord); color: #fff; font-weight: 800; font-size: 0.95rem; text-decoration: none; cursor: pointer; text-align: center; }
.tf-dm-btn:hover { filter: brightness(1.08); }
.tf-dm-btn.is-disabled { background: var(--st-draw-bg); color: var(--st-draw-fg); cursor: not-allowed; filter: none; }
.sr-dm-note { font-size: 0.76rem; color: var(--st-faint); text-align: center; margin-top: 8px; }

/* ---------- 상세 모달 ---------- */
.modal-body-split { display: flex; height: 72vh; overflow: hidden; }
.detail-left { flex: 1; min-width: 0; padding: 22px 26px; overflow-y: auto; }
.detail-right { width: 380px; background: var(--st-subtle); display: flex; flex-direction: column; border-left: 1px solid var(--st-line); flex-shrink: 0; }
.tf-post-title { margin: 0 0 14px; font-size: 1.3rem; font-weight: 900; color: var(--st-text-strong); line-height: 1.3; }
.tf-awards-box { margin-bottom: 14px; }
.tf-awards-box .tf-section-label { margin-bottom: 6px; }
.tf-section-label { font-size: 0.74rem; font-weight: 700; color: var(--st-faint); letter-spacing: 0.02em; margin-bottom: 6px; }
.tf-h4 { margin: 18px 0 8px; font-size: 0.92rem; font-weight: 800; color: var(--st-text-strong); display: flex; align-items: center; gap: 6px; }
.tf-h4::before { content: ''; width: 3px; height: 1em; border-radius: 999px; background: var(--st-accent); }
.tf-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tf-field-card { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tf-field-card .l { font-size: 0.72rem; color: var(--st-faint); margin-bottom: 3px; }
.tf-field-card .v { font-weight: 700; font-size: 0.9rem; color: var(--st-text); }
.tf-group { border: 1px solid var(--st-border); border-radius: 12px; padding: 12px 14px; background: var(--st-card); margin-bottom: 12px; }
.tf-group-title { font-size: 0.86rem; font-weight: 800; color: var(--st-text-strong); margin: 0 0 8px; }
.tf-group .tf-field-grid { margin-bottom: 0; }
.tf-group .tf-field-card { background: var(--st-subtle); }
.tf-group .v { color: var(--st-accent-strong); }
.tf-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-content { white-space: pre-wrap; color: var(--st-text); line-height: 1.65; background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; }
.tf-video { display: inline-flex; align-items: center; gap: 6px; color: #e11d48; font-weight: 800; text-decoration: none; font-size: 0.9rem; }
.detail-action-area { margin-top: 26px; border-top: 1px solid var(--st-line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.transfer-translation-status, .tf-comment-translation-meta { display: flex; align-items: center; gap: 7px; color: var(--st-faint); font-size: 0.75rem; }
.transfer-translation-status { margin-top: 8px; }
.tf-comment-translation-meta { margin-top: 5px; }
.transfer-translation-status[hidden], .tf-comment-translation-meta[hidden] { display: none; }
.transfer-translation-status::before, .tf-comment-translation-meta::before { content: '\f1ab'; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; }
.transfer-translation-toggle, .tf-comment-translation-meta button { border: 0; padding: 0; background: transparent; color: var(--st-accent); font: inherit; cursor: pointer; font-weight: 700; }

/* 모바일 탭 (상세) */
.mobile-tab-nav { display: none; border-bottom: 1px solid var(--st-line); background: var(--st-card); }
.m-tab-btn { flex: 1; padding: 12px 6px; font-weight: 700; font-size: 0.88rem; color: var(--st-sub); text-align: center; cursor: pointer; border-bottom: 2px solid transparent; }
.m-tab-btn.active { color: var(--st-accent-strong); border-bottom-color: var(--st-accent); background: var(--st-accent-tint); }
.m-tab-btn .badge { background: var(--st-danger); color: #fff; font-size: 0.68rem; padding: 1px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }

/* 댓글 */
.comment-container { flex: 1; overflow-y: auto; padding: 14px; }
.comment-input-area { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--st-card); border-top: 1px solid var(--st-line); }
.tf-comment-form { display: flex; gap: 6px; align-items: flex-end; }
.tf-comment-form textarea { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--st-border-strong); background: var(--st-card); color: var(--st-text); height: 40px; resize: none; font-size: 0.9rem; }
.tf-comment-form textarea:focus { outline: 2px solid var(--st-accent-soft); border-color: var(--st-accent); }
.tf-comment-send { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--st-accent); color: var(--st-on-accent); cursor: pointer; flex-shrink: 0; }
.tf-comment-item { margin-bottom: 14px; font-size: 0.9rem; }
.tf-comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-weight: 700; font-size: 0.84rem; color: var(--st-text); gap: 8px; }
.tf-comment-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tf-comment-avatar { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--st-border); object-fit: cover; }
.tf-comment-date { color: var(--st-faint); font-weight: 400; font-size: 0.76rem; white-space: nowrap; }
.tf-comment-body { background: var(--st-card); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--st-border); line-height: 1.5; color: var(--st-text); }
.tf-comment-actions { margin-top: 5px; display: flex; gap: 12px; font-size: 0.78rem; }
.tf-reply { margin-left: 18px; border-left: 2px solid var(--st-border-strong); padding-left: 10px; }
.deleted-cmt { color: var(--st-faint); font-style: italic; background: var(--st-soft); padding: 8px; border-radius: 8px; }
.cmt-btn { cursor: pointer; color: var(--st-faint); transition: color 0.15s; }
.cmt-btn:hover { color: var(--st-accent); }
.cmt-btn.is-liked { color: var(--st-danger); }
.cmt-btn.is-danger { color: var(--st-danger); }

/* ---------- 폼 ---------- */
.tf-form .tf-field { margin-bottom: 14px; }
.tf-form label { display: block; font-weight: 700; font-size: 0.86rem; color: var(--st-text-strong); margin-bottom: 6px; }
.tf-form label small { font-weight: 500; color: var(--st-faint); font-size: 0.78rem; }
.tf-form input[type="text"], .tf-form select, .tf-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--st-border-strong); border-radius: 10px; background: var(--st-card); color: var(--st-text); font-size: 0.92rem; }
.tf-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.tf-form input:focus, .tf-form select:focus, .tf-form textarea:focus { outline: 2px solid var(--st-accent-soft); border-color: var(--st-accent); }
.form-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-grid-row .tf-field { margin-bottom: 0; }
.tf-time-row { display: flex; align-items: center; gap: 8px; }
.tf-time-row .tf-time-pair { flex: 1; display: flex; gap: 6px; min-width: 0; }
.tf-time-row span { color: var(--st-faint); }
.tf-form-section { border-top: 1px dashed var(--st-border); padding-top: 14px; margin-top: 4px; }
.tf-form-subgroup { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 12px; padding: 12px; }
.pos-selector-container { user-select: none; }
.pos-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--st-border); }
.pos-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pos-label { font-size: 0.74rem; color: var(--st-faint); width: 100%; font-weight: 700; }
.pos-btn { padding: 6px 12px; border: 1px solid var(--st-border-strong); background: var(--st-card); border-radius: 8px; font-size: 0.84rem; font-weight: 700; color: var(--st-sub); cursor: pointer; transition: all 0.15s; }
.pos-btn:hover { background: var(--st-soft); color: var(--st-text); }
.pos-btn.active-FW { background: var(--tf-fw-soft); color: var(--tf-fw); border-color: var(--tf-fw); }
.pos-btn.active-MF { background: var(--tf-mf-soft); color: var(--tf-mf); border-color: var(--tf-mf); }
.pos-btn.active-DF { background: var(--tf-df-soft); color: var(--tf-df); border-color: var(--tf-df); }
.pos-btn.active-GK { background: var(--tf-gk-soft); color: var(--tf-gk); border-color: var(--tf-gk); }
.fmt-btn { padding: 7px 11px; border: 1px solid var(--st-border-strong); background: var(--st-card); border-radius: 8px; font-size: 0.84rem; font-weight: 700; color: var(--st-sub); cursor: pointer; transition: all 0.15s; }
.fmt-btn:hover { background: var(--st-soft); color: var(--st-text); }
.fmt-btn.active { background: var(--st-accent-tint); color: var(--st-accent-strong); border-color: var(--st-accent); }
.selected-pos-list { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 10px; padding: 10px; min-height: 44px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.selected-pos-prompt { text-align: center; color: var(--st-faint); font-size: 0.84rem; padding: 8px; }
.selected-pos-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--st-card); padding: 6px 8px 6px 10px; border-radius: 8px; border: 1px solid var(--st-border); }
.selected-pos-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.selected-pos-item .pos-freq-select { width: auto; padding: 5px 8px; border: 1px solid var(--st-border-strong); border-radius: 8px; font-size: 0.82rem; background: var(--st-card); color: var(--st-text); }
.selected-pos-remove { border: 0; background: transparent; color: var(--st-danger); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.selected-pos-remove:hover { background: var(--st-loss-bg); }
.sr-preview-wrap { margin-bottom: 14px; }

/* ---------- 필터 모달 ---------- */

/* ---------- 작은 대화상자 (디스코드 연결 · 마감 확인) ---------- */
.tf-dialog { background: var(--st-card); width: 92%; max-width: 440px; margin: 16vh auto; border-radius: 16px; padding: 22px; border: 1px solid var(--st-border); box-shadow: var(--st-shadow-pop); color: var(--st-text); }
.tf-dialog h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--st-text-strong); }
.tf-dialog p { margin: 0 0 16px; color: var(--st-sub); font-size: 0.92rem; line-height: 1.55; }
.tf-dialog-actions { display: flex; flex-direction: column; gap: 8px; }
.tf-dialog-actions.is-row { flex-direction: row; justify-content: flex-end; }
.tf-dialog-info { padding: 12px 14px; border: 1px solid var(--st-border); border-radius: 10px; background: var(--st-subtle); color: var(--st-sub); font-size: 0.88rem; line-height: 1.55; margin-bottom: 16px; }
.tf-dialog-info b { color: var(--st-text-strong); display: block; margin-bottom: 4px; }
.tf-btn-discord { background: var(--tf-discord); border-color: var(--tf-discord); color: #fff; }
.tf-btn-ghost { background: transparent; border-color: transparent; color: var(--st-sub); }

/* ---------- 스카우팅 리포트 (js/transfer-report-ui.js) ---------- */
.sr-strip { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--st-subtle); border: 1px solid var(--st-border); border-left: 3px solid var(--st-accent); font-size: 0.8rem; color: var(--st-text); }
.sr-strip-closed { opacity: 0.7; border-left-color: var(--st-border-strong); }
.sr-strip-tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 4px; background: var(--st-accent); color: var(--st-on-accent); }
.sr-strip-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sr-strip-item small { color: var(--st-faint); }
.sr-strip-item b { font-weight: 700; }
.sr-muted { color: var(--st-faint); }
.sr-pos { display: inline-block; border: 1px solid; padding: 1px 6px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; background: var(--st-card); line-height: 1.5; white-space: nowrap; }
.sr-pos-fw { color: var(--tf-fw); border-color: var(--tf-fw); } .sr-pos-mf { color: var(--tf-mf); border-color: var(--tf-mf); } .sr-pos-df { color: var(--tf-df); border-color: var(--tf-df); } .sr-pos-gk { color: var(--tf-gk); border-color: var(--tf-gk); }
.sr-form { display: inline-flex; gap: 3px; vertical-align: middle; }
.sr-form i { width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; font-style: normal; font-size: 0.62rem; font-weight: 800; }
.sr-form-w { background: var(--st-win-bg); color: var(--st-win-fg); } .sr-form-d { background: var(--st-draw-bg); color: var(--st-draw-fg); } .sr-form-l { background: var(--st-loss-bg); color: var(--st-loss-fg); }
.sr-verify { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sr-verify-ok { background: var(--st-win-bg); color: var(--st-win-fg); } .sr-verify-warn { background: var(--st-gold-chip); color: var(--st-gold-fg); } .sr-verify-low { background: var(--st-soft); color: var(--st-faint); }
.sr-verify-mini { padding: 0 5px; }
.sr-spark { display: inline-block; vertical-align: middle; max-width: 100%; }
.sr-spark-line { fill: none; stroke: var(--st-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sr-spark-dot { fill: var(--st-accent); stroke: var(--st-card); stroke-width: 2; }
.sr-spark-grid { stroke: var(--st-border); stroke-width: 1; }
.sr-spark-label { font-size: 7px; fill: var(--st-faint); font-family: monospace; }
.sr-kpis-wrap { margin-bottom: 14px; }
.sr-kpis-caption { font-size: 0.72rem; font-weight: 800; color: var(--st-accent-strong); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; letter-spacing: 0.02em; }
.tf-cond-card { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 12px; padding: 12px 14px 8px; margin-bottom: 14px; }
.tf-cond-head { font-size: 0.72rem; font-weight: 800; color: var(--st-faint); letter-spacing: 0.04em; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.tf-cond-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.tf-cond-item { min-width: 0; padding: 8px 0; border-bottom: 1px dashed var(--st-border); }
.tf-cond-item.is-wide { grid-column: 1 / -1; }
.tf-cond-grid .tf-cond-item:nth-last-child(-n+2):not(.is-wide), .tf-cond-grid .tf-cond-item.is-wide:last-child { border-bottom: 0; }
.tf-cond-item .l { font-size: 0.72rem; color: var(--st-faint); margin-bottom: 2px; }
.tf-cond-item .v { font-weight: 700; font-size: 0.92rem; color: var(--st-text); line-height: 1.4; }
@media (max-width: 480px) { .tf-cond-grid { grid-template-columns: 1fr; } .tf-cond-grid .tf-cond-item:nth-last-child(-n+2):not(.is-wide) { border-bottom: 1px dashed var(--st-border); } .tf-cond-grid .tf-cond-item:last-child { border-bottom: 0; } }
.sr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sr-kpis.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .sr-kpis:not(.is-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-kpi { background: var(--st-card); border: 1px solid var(--st-border); border-top: 3px solid var(--st-accent); border-radius: 10px; padding: 9px 11px; min-width: 0; box-shadow: var(--st-shadow-sm); }
.sr-kpi-v { font-size: 1.3rem; font-weight: 900; line-height: 1.2; color: var(--st-text-strong); font-variant-numeric: tabular-nums; }
.sr-kpi-l { font-size: 0.72rem; color: var(--st-faint); margin-top: 2px; }
.sr-kpi-s { font-size: 0.7rem; color: var(--st-faint); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sr-kpi-s .sr-verify { white-space: normal; line-height: 1.3; text-align: left; }
.sr-section > .sr-spark { width: 100%; max-width: 520px; height: auto; }
.sr-report-wrap { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--st-line); }
.sr-report-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; font-weight: 900; color: var(--st-text-strong); }
.sr-section { margin-bottom: 12px; background: var(--st-card); border: 1px solid var(--st-border); border-radius: 12px; box-shadow: var(--st-shadow-sm); overflow: hidden; }
.sr-section-title { margin: 0; padding: 9px 14px; font-size: 0.9rem; font-weight: 800; color: var(--st-text-strong); display: flex; align-items: center; gap: 7px; background: var(--st-subtle); border-bottom: 1px solid var(--st-line); }
.sr-section-title::before { content: ''; width: 3px; height: 1em; border-radius: 999px; background: var(--st-accent); }
.sr-section-icon { font-size: 0.95rem; line-height: 1; }
.sr-section-body { padding: 12px 14px 14px; }
.sr-section-muted { box-shadow: none; border-style: dashed; background: transparent; }
.sr-section-muted .sr-section-title { background: transparent; border-bottom-color: transparent; padding-bottom: 2px; color: var(--st-sub); font-weight: 700; }
.sr-section-muted .sr-section-title::before { background: var(--st-border-strong); }
.sr-section-muted .sr-section-body { padding-top: 4px; }
.sr-line { margin: 0 0 8px; font-size: 0.9rem; color: var(--st-text); line-height: 1.6; }
.sr-sub { font-size: 0.74rem; color: var(--st-faint); margin-bottom: 4px; }
.sr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .sr-two { grid-template-columns: 1fr; } }
.sr-bars { display: grid; gap: 4px; font-size: 0.76rem; }
.sr-bar { display: grid; grid-template-columns: minmax(44px, auto) 1fr 56px; gap: 8px; align-items: center; }
.sr-bar-label { color: var(--st-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sr-bar-label a { color: inherit; text-decoration: underline dotted; }
.sr-bar-track { height: 10px; background: var(--st-border); border-radius: 3px; overflow: hidden; display: block; }
.sr-bar-fill { display: block; height: 100%; background: var(--st-accent-bright); opacity: 0.55; border-radius: 0 3px 3px 0; }
.sr-bar-hi { background: var(--st-accent); opacity: 1; }
.sr-bar-val { font-size: 0.72rem; color: var(--st-text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-prime-tag { display: inline-block; font-size: 0.6rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--st-gold-chip); color: var(--st-gold-fg); vertical-align: middle; margin-left: 3px; letter-spacing: 0.02em; }
.sr-prime-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--st-gold-chip); color: var(--st-gold-fg); border: 1px solid var(--st-gold-border); white-space: nowrap; }
.sr-prime-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.78rem; margin: -2px 0 10px; }
.sr-bar.is-prime .sr-bar-label { color: var(--st-gold-fg); font-weight: 700; overflow: visible; }
.sr-bar.is-prime .sr-bar-fill { background: var(--st-accent); opacity: 1; }
.sr-bar.is-prime .sr-bar-val { font-weight: 800; }
.sr-heat-h.is-prime { color: var(--st-gold-fg); font-weight: 800; }
.sr-heat-c.is-prime { box-shadow: inset 0 0 0 1px var(--st-gold-border); }
.sr-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; margin-top: 4px; }
.sr-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 10px; background: var(--st-subtle); border: 1px solid var(--st-border); min-width: 0; }
.sr-day.is-main { background: var(--st-accent-tint); border-color: var(--st-accent-soft); }
.sr-day-val { font-weight: 800; font-size: 0.95rem; color: var(--st-text-strong); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sr-day-track { width: 100%; height: 52px; display: flex; align-items: flex-end; }
.sr-day-bar { display: block; width: 100%; background: var(--st-accent-bright); opacity: 0.45; border-radius: 4px 4px 2px 2px; }
.sr-day.is-main .sr-day-bar { background: var(--st-accent); opacity: 1; }
.sr-day-name { font-size: 0.76rem; color: var(--st-sub); font-weight: 700; }
.sr-day.is-main .sr-day-name { color: var(--st-accent-strong); }
@media (max-width: 480px) { .sr-day { padding: 6px 2px 5px; } .sr-day-track { height: 40px; } .sr-day-val { font-size: 0.85rem; } }
.sr-stab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sr-stab-tile { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 10px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-stab-tile.is-wide { grid-column: span 2; }
.sr-stab-l { font-size: 0.72rem; color: var(--st-faint); display: flex; align-items: center; gap: 4px; }
.sr-stab-v { font-size: 1.02rem; font-weight: 800; color: var(--st-text-strong); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.3; }
.sr-stab-s { font-size: 0.72rem; color: var(--st-sub); line-height: 1.4; }
.sr-flow { display: flex; height: 10px; border-radius: 4px; overflow: hidden; background: var(--st-border); margin-top: 4px; }
.sr-flow-in { display: block; background: var(--st-accent); }
.sr-flow-out { display: block; background: var(--st-loss-fg); opacity: 0.75; }
.sr-flow-legend { display: flex; justify-content: space-between; gap: 6px; font-size: 0.72rem; margin-top: 4px; }
.sr-flow-in-t { color: var(--st-accent-strong); font-weight: 700; }
.sr-flow-out-t { color: var(--st-loss-fg); font-weight: 700; }
@media (max-width: 640px) { .sr-stab { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sr-stab-tile.is-wide { grid-column: span 2; } }
.sr-hist-tiles { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.sr-stab-tile.is-rank { background: var(--st-gold-bg); border-color: var(--st-gold-border); }
.sr-rank-big { font-size: 1.3rem; font-weight: 900; color: var(--st-gold-fg); line-height: 1.1; }
.sr-clubbar { display: flex; height: 14px; border-radius: 6px; overflow: hidden; background: var(--st-border); margin: 6px 0 8px; }
.sr-seg { display: block; height: 100%; min-width: 2px; }
.sr-seg-0 { background: var(--st-accent); } .sr-seg-1 { background: var(--st-accent-bright); opacity: 0.8; } .sr-seg-2 { background: var(--st-accent-bright); opacity: 0.6; } .sr-seg-3 { background: var(--st-accent-bright); opacity: 0.45; } .sr-seg-4 { background: var(--st-accent-bright); opacity: 0.32; } .sr-seg-rest { background: var(--st-border-strong); }
.sr-club-list { display: grid; gap: 3px; }
.sr-club-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) 64px 44px; gap: 8px; align-items: center; font-size: 0.78rem; }
.sr-seg-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sr-club-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-text); }
.sr-club-name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--st-faint); }
.sr-club-games { text-align: right; color: var(--st-sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-club-share { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .sr-hist-tiles { grid-template-columns: 1fr 1fr; } .sr-hist-tiles .is-rank-tile { grid-column: span 2; } }
.sr-heat-wrap { overflow-x: auto; }
.sr-heat { display: grid; grid-template-columns: 28px repeat(12, minmax(14px, 1fr)); gap: 2px; font-size: 0.62rem; color: var(--st-faint); min-width: 300px; }
.sr-heat-h { text-align: center; } .sr-heat-d { line-height: 14px; }
.sr-heat-c { height: 14px; border-radius: 2px; background: var(--st-soft); }
.sr-heat-l1 { background: #dcfce7; } .sr-heat-l2 { background: #86efac; } .sr-heat-l3 { background: #22c55e; } .sr-heat-l4 { background: #15803d; }
[data-theme="dark"] .sr-heat-l1 { background: #14532d; } [data-theme="dark"] .sr-heat-l2 { background: #166534; } [data-theme="dark"] .sr-heat-l3 { background: #22c55e; } [data-theme="dark"] .sr-heat-l4 { background: #86efac; }
.sr-table-wrap { overflow-x: auto; }
.sr-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.sr-table th { font-size: 0.68rem; color: var(--st-faint); font-weight: 600; text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--st-border); white-space: nowrap; }
.sr-table td { padding: 6px; border-bottom: 1px solid var(--st-line); font-variant-numeric: tabular-nums; color: var(--st-text); }
.sr-table tr.sr-dim td { opacity: 0.55; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-chip { font-size: 0.76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--st-border); background: var(--st-card); color: var(--st-text); }
.sr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; }
.sr-row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; margin-top: 4px; }
.sr-depth { display: grid; gap: 4px; margin-top: 8px; }
.sr-depth-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: 0.78rem; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; }
.sr-depth-row:nth-child(even) { background: var(--st-subtle); }
.sr-depth-wanted, .sr-depth-row.sr-depth-wanted:nth-child(even) { background: var(--st-gold-bg); border-color: var(--st-gold-border); }
.sr-depth-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sr-slots { display: inline-flex; gap: 4px; align-items: center; }
.sr-slot { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--st-border-strong); background: var(--st-card); box-sizing: border-box; }
.sr-slot.is-fixed { background: var(--st-accent); border-color: var(--st-accent); }
.sr-slot.is-semi { background: linear-gradient(90deg, var(--st-accent) 50%, var(--st-card) 50%); border-color: var(--st-accent); }
.sr-depth-note { color: var(--st-sub); white-space: nowrap; }
.sr-depth-badge { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.sr-depth-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.72rem; color: var(--st-sub); margin-top: 10px; align-items: center; }
.sr-depth-legend .sr-slot { width: 12px; height: 12px; border-width: 1.5px; margin-right: 5px; vertical-align: middle; border-radius: 3px; }
@media (max-width: 640px) { .sr-depth-row { grid-template-columns: 56px 1fr; row-gap: 4px; } .sr-depth-badge { grid-column: 2; justify-content: flex-start; } }
.sr-tag { display: inline-block; font-size: 0.64rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--st-gold-chip); color: var(--st-gold-fg); }
.sr-lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; font-size: 0.76rem; }
@media (max-width: 480px) { .sr-lineup { grid-template-columns: 1fr; } }
.sr-lineup-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--st-card); border: 1px solid var(--st-border); border-radius: 8px; min-width: 0; }
.sr-lineup-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-text); text-decoration: none; font-weight: 700; }
.sr-lineup-item b { font-weight: 600; color: var(--st-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sr-recent { display: grid; gap: 3px; }
.sr-recent-row { display: flex; gap: 10px; align-items: center; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--st-border); background: var(--st-card); color: var(--st-text); text-decoration: none; font-size: 0.8rem; min-width: 0; }
.sr-recent-row:hover { background: var(--st-soft); }
.sr-recent-when { color: var(--st-faint); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.sr-recent-main { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sr-recent-score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-recent-opp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-sub); }
.sr-notice { padding: 10px 12px; border-radius: 10px; background: var(--st-subtle); border: 1px solid var(--st-border); font-size: 0.85rem; color: var(--st-sub); margin-bottom: 12px; }
.sr-notice-warn { border-color: var(--st-gold-border); background: var(--st-gold-bg); color: var(--st-gold-fg); }
.sr-notice-login { text-align: center; }
.sr-criteria { margin: 0; font-size: 0.74rem; color: var(--st-faint); line-height: 1.5; }
.sr-crit { margin: 0; display: grid; gap: 5px; }
.sr-crit-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 0.76rem; line-height: 1.5; align-items: baseline; }
.sr-crit-row dt { margin: 0; color: var(--st-faint); font-weight: 700; }
.sr-crit-row dd { margin: 0; color: var(--st-sub); min-width: 0; }
.sr-crit-gen { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .sr-crit-row { grid-template-columns: 64px 1fr; } }
.sr-refresh { font: inherit; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--st-accent); background: var(--st-card); color: var(--st-accent-strong); cursor: pointer; }
.sr-refresh:disabled { opacity: 0.6; cursor: wait; }
.sr-preview { padding: 12px; border-radius: 12px; border: 1px solid var(--st-border); border-left: 4px solid var(--st-accent); background: var(--st-subtle); font-size: 0.85rem; color: var(--st-text); }
.sr-preview-low { border-left-color: #f59e0b; }
.sr-preview .sr-kpis { margin-top: 8px; }
.sr-preview .sr-kpi { background: var(--st-card); }

/* ---------- 프리셋 줄 (필터 모달 대신, 게스트허브와 같은 방식): 3백/4백 · 포지션 그룹 ---------- */
.tf-presets { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 12px; }
.tf-presets:empty { display: none; }
.tf-preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tf-preset { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--st-border-strong); background: var(--st-card); color: var(--st-sub); font-size: 0.8rem; font-weight: 700; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.tf-preset:hover { background: var(--st-soft); color: var(--st-text); }
.tf-preset.active { background: var(--st-accent-soft); border-color: var(--st-accent); color: var(--st-accent-strong); }
/* 포지션 버튼 글자색: 게스트 허브처럼 꺼져 있어도 그룹 색이 옅게 보인다 */
.tf-preset.is-fw { color: color-mix(in srgb, var(--tf-fw) 60%, var(--st-sub)); }
.tf-preset.is-mf { color: color-mix(in srgb, var(--tf-mf) 60%, var(--st-sub)); }
.tf-preset.is-df { color: color-mix(in srgb, var(--tf-df) 62%, var(--st-sub)); }
.tf-preset.is-gk { color: color-mix(in srgb, var(--tf-gk) 66%, var(--st-sub)); }
.tf-preset.is-fw:hover, .tf-preset.is-mf:hover, .tf-preset.is-df:hover, .tf-preset.is-gk:hover { background: var(--st-soft); }
.tf-preset.is-fw small, .tf-preset.is-mf small, .tf-preset.is-df small, .tf-preset.is-gk small { color: var(--st-faint); opacity: 1; }
.tf-preset.active small { color: inherit; opacity: 0.8; }
.tf-preset.is-fw.active { background: var(--tf-fw-soft); border-color: var(--tf-fw); color: var(--tf-fw); }
.tf-preset.is-mf.active { background: var(--tf-mf-soft); border-color: var(--tf-mf); color: var(--tf-mf); }
.tf-preset.is-df.active { background: var(--tf-df-soft); border-color: var(--tf-df); color: var(--tf-df); }
.tf-preset.is-gk.active { background: var(--tf-gk-soft); border-color: var(--tf-gk); color: var(--tf-gk); }
.tf-preset small { font-weight: 800; font-size: 0.72rem; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* ---------- 선수 찾기 하위 탭: 팀 입단 원해요 / FA 리스트 (PC 전용. 모바일은 상단 탭 3개가 대신한다) ---------- */
.tf-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: -2px 0 14px; border-radius: 14px; background: var(--st-soft); border: 1px solid var(--st-border); }
.tf-subtab { border: 1px solid transparent; background: transparent; color: var(--st-sub); font-weight: 800; font-size: 0.95rem; padding: 11px 12px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; transition: background 0.15s, color 0.15s; }
.tf-subtab i { font-size: 0.9em; opacity: 0.75; }
.tf-subtab:hover { background: var(--st-card); color: var(--st-text-strong); }
.tf-subtab.active { background: var(--st-accent); color: var(--st-on-accent); border-color: var(--st-accent); box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25); }
.tf-subtab.active i { opacity: 1; }
.tf-subtab .tf-count { height: 22px; min-width: 24px; background: var(--st-card); color: var(--st-sub); border: 1px solid var(--st-border); font-size: 0.78rem; }
.tf-subtab.active .tf-count { background: rgba(255, 255, 255, 0.22); color: var(--st-on-accent); border-color: transparent; }
[data-theme="dark"] .tf-subtab.active { box-shadow: 0 4px 14px rgba(74, 222, 128, 0.22); }
.tf-subpanel { display: none; }
.tf-subpanel.active { display: block; }
.tf-subnote { margin: 0 0 10px; font-size: 0.8rem; color: var(--st-faint); line-height: 1.45; display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.tf-subnote-time { white-space: nowrap; font-weight: 600; }
/* 세부 칩은 세 줄 모두 5칸 격자라 모든 버튼 너비가 같다 (MF 줄 기준). PC 에서는 너무 넓지 않게 폭을 제한 */
.tf-preset-row.is-detail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 440px; }
.tf-preset-row.is-detail .tf-preset { justify-content: center; padding: 4px 6px; font-size: 0.74rem; border-radius: 8px; min-width: 0; }
.tf-preset-row.is-detail + .tf-preset-row.is-detail { margin-top: -2px; }
/* 폰: 그룹 줄(전체~GK)은 5칸 한 줄, 세부 줄은 화면 폭 전체 */
@media (max-width: 480px) {
    .tf-preset-row.is-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .tf-preset-row.is-groups .tf-preset { justify-content: center; padding: 6px 2px; font-size: 0.78rem; gap: 3px; }
    .tf-preset-row.is-detail { max-width: none; gap: 4px; }
    .tf-preset-row.is-detail .tf-preset { padding: 4px 2px; font-size: 0.72rem; gap: 3px; }
    .tf-preset small { font-size: 0.66rem; }
}

/* ---------- FA 리스트 카드 (무소속 랭커) ---------- */
.tf-rank-best { display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 10px; border-radius: 10px; border: 1px solid; font-weight: 900; line-height: 1; white-space: nowrap; }
.tf-rank-best b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.tf-rank-best small { font-size: 0.72rem; font-weight: 800; }
.tf-rank-best.is-fw { color: var(--tf-fw); border-color: var(--tf-fw); background: var(--tf-fw-soft); }
.tf-rank-best.is-mf { color: var(--tf-mf); border-color: var(--tf-mf); background: var(--tf-mf-soft); }
.tf-rank-best.is-df { color: var(--tf-df); border-color: var(--tf-df); background: var(--tf-df-soft); }
.tf-rank-best.is-gk { color: var(--tf-gk); border-color: var(--tf-gk); background: var(--tf-gk-soft); }
.tf-rank-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tf-rank-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: var(--st-soft); color: var(--st-text); white-space: nowrap; }
.tf-rank-chip b { font-weight: 900; }
.tf-rank-chip.is-fw b { color: var(--tf-fw); }
.tf-rank-chip.is-mf b { color: var(--tf-mf); }
.tf-rank-chip.is-df b { color: var(--tf-df); }
.tf-rank-chip.is-gk b { color: var(--tf-gk); }
.tf-rank-chip small { color: var(--st-faint); font-weight: 600; font-size: 0.7rem; }
.tf-rank-more { font-size: 0.74rem; color: var(--st-faint); align-self: center; }
.tf-badge-post { background: var(--st-accent-soft); color: var(--st-accent-strong); }
.tf-card-ranked .sr-strip { margin-top: 10px; }
.tf-rank-card { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.tf-rank-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 800; color: var(--st-sub); }
.tf-rank-card-head a { font-size: 0.76rem; font-weight: 700; color: var(--st-accent-strong); text-decoration: none; }
.tf-rank-card-head a:hover { text-decoration: underline; }
.tf-rank-card .tf-rank-row { margin-top: 8px; }
.tf-rank-post-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--st-accent-soft); background: var(--st-accent-tint); color: var(--st-accent-strong); font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.common-modal-box.is-player { max-width: 760px; }
.common-modal-box.is-player .common-modal-body { padding: 18px 22px 0; }
.sr-report-wrap.is-player { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- 최근 폼: 요약 타일 + 최근 10경기 막대(평점·결과) + 30일 평균선 ---------- */
.sr-formstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sr-formstat { background: var(--st-subtle); border: 1px solid var(--st-border); border-radius: 10px; padding: 8px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-formstat b { font-size: 1.05rem; font-weight: 900; color: var(--st-text-strong); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-formstat small { font-size: 0.7rem; color: var(--st-faint); font-weight: 600; }
.sr-formstat-trend { margin-top: 3px; }
.sr-formchart { margin-top: 2px; }
.sr-formchart-plot { position: relative; display: flex; align-items: flex-end; gap: 6px; }
.sr-formcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 1; }
.sr-formcol-v { font-size: 0.7rem; font-weight: 800; color: var(--st-text); font-variant-numeric: tabular-nums; line-height: 12px; height: 12px; }
.sr-formcol-bar { width: 100%; max-width: 34px; height: 90px; display: flex; align-items: flex-end; background: var(--st-soft); border-radius: 6px; overflow: hidden; }
.sr-formcol-bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; }
.sr-formcol-bar i.is-w { background: var(--sr-win); }
.sr-formcol-bar i.is-d { background: var(--sr-draw); }
.sr-formcol-bar i.is-l { background: var(--sr-loss); }
.sr-formcol-bar i.is-n { background: var(--st-border-strong); }
.sr-formcol-r { height: 18px; display: flex; align-items: center; }
.sr-formchart-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--st-accent-strong); z-index: 2; pointer-events: none; }
.sr-formchart-avg span { position: absolute; right: 0; bottom: 3px; font-size: 0.66rem; font-weight: 800; color: var(--st-accent-strong); background: var(--st-card); border: 1px solid var(--st-accent-soft); border-radius: 4px; padding: 1px 5px; line-height: 1.3; white-space: nowrap; }
.sr-formchart-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.7rem; color: var(--st-faint); font-weight: 600; }
.sr-formchart-note { margin-top: 6px; font-size: 0.72rem; color: var(--st-faint); }
@media (max-width: 400px) { .sr-formchart-plot { gap: 4px; } .sr-formcol-v { font-size: 0.62rem; } .sr-formstat b { font-size: 0.95rem; } .sr-formstats { grid-template-columns: 1fr 1fr; } .sr-formstats .sr-formstat:first-child { grid-column: 1 / -1; } }

/* ---------- 반응형 ---------- */
/* 두 열 패널 규칙(.hub-grid display:grid)보다 뒤에 와야 모바일에서 한 열이 된다. */
@media (max-width: 1024px) {
    .hub-grid { display: block; }
    .tab-section { display: none; }
    .tab-section.active { display: block; }
    .tf-subtabs { display: none; } /* 상단 탭(팀 공고/선수 공고/FA 리스트)이 대신한다 */
}
@media (max-width: 768px) {
    .tf-container { padding: 12px 12px 0; }
    .section-card { padding: 14px; }
    .form-grid-row { grid-template-columns: 1fr; gap: 10px; }
    .tf-field-grid { grid-template-columns: 1fr; }
    .common-modal-box { position: absolute; bottom: 0; left: 0; width: 100%; max-width: 100%; max-height: 92vh; margin: 0; border-radius: 20px 20px 0 0; }
    .common-modal-body { padding: 14px; padding-bottom: 0; }
    .common-modal-footer { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08); }
    .modal-body-split { flex-direction: column; flex: 1; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
    .detail-left, .detail-right { width: 100%; border: 0; overflow: visible; height: auto; padding: 0; flex: none; }
    .detail-left { padding: 16px 14px 0; }
    .detail-right { background: var(--st-subtle); height: auto; min-height: 460px; display: flex; flex-direction: column; }
    .detail-action-area { position: sticky; bottom: 0; z-index: 2; margin: 22px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--st-card); box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08); border-top: 1px solid var(--st-line); }
    .mobile-hidden { display: none !important; }
    .mobile-tab-nav { display: flex; flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
    .detail-left.report-only > *:not(.sr-report-wrap):not(.detail-action-area) { display: none !important; }
    .detail-left.report-only .sr-report-wrap { margin-top: 0; padding-top: 0; border-top: 0; }
    .detail-left.conditions-only .sr-report-wrap { display: none !important; }
    .tf-modal { z-index: 5000; }
    .tf-dialog { margin: 10vh auto; }
}
