/*
 * 대회 상세 > 리더보드 탭 안의 실시간 리더보드 (라이브스코어 임베드)
 * 기존 리더보드(.competition-tbl.leaderboard-tbl)와 같은 표 문법을 그대로 쓴다: 갈색 헤더, 가운데 정렬, 세로 구분선,
 * 선수 사진 + 굵은 이름, 언더파 빨강·오버파 파랑. 라이브 고유 요소(등락·중계)는 사이트의 안내 상자와 보조 색만 빌려 쓴다.
 */
.lle { padding: 0; margin: 0; color: var(--color-basic, #212121); font-variant-numeric: tabular-nums; }
.lle *, .lle *::before, .lle *::after { box-sizing: border-box; }
.lle h3, .lle p, .lle ol { margin: 0; }
.lle button { font: inherit; color: inherit; cursor: pointer; }
.lle-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* LIVE 라운드 탭 버튼: 기존 .sort-btn 과 같은 크기 */
.round-tab-btn-wrap .lle-tab { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; margin-right: 3px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 0; background: var(--color-background, #fff); color: var(--color-deeplight, #999); font-size: 14px; font-weight: 400; line-height: 38px; cursor: pointer; }
.round-tab-btn-wrap .lle-tab i { width: 7px; height: 7px; border-radius: 50%; background: #e0252f; box-shadow: 0 0 0 0 rgba(224, 37, 47, .5); animation: lle-pulse 1.8s ease-out infinite; }
.round-tab-btn-wrap .lle-tab.select { border-color: var(--color-point, #0A1F4E); background: var(--color-point, #0A1F4E); color: #fff; font-weight: 500; }
.round-tab-btn-wrap .lle-tab.select i { background: #fff; box-shadow: none; animation: none; }
@keyframes lle-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 37, 47, .5); } 100% { box-shadow: 0 0 0 7px rgba(224, 37, 47, 0); } }
.competition-tab .lle-nav-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #e0252f; vertical-align: middle; animation: lle-pulse 1.8s ease-out infinite; }

/* ===== 헤더 줄 (기존 서브 정렬 줄과 같은 톤) ===== */
.lle-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.lle-head-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.lle-live { display: inline-flex; align-items: center; gap: 6px; color: #e0252f; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.lle-live i { width: 8px; height: 8px; border-radius: 50%; background: #e0252f; box-shadow: 0 0 0 0 rgba(224, 37, 47, .5); animation: lle-pulse 1.8s ease-out infinite; }
.lle-title { color: var(--color-point, #0A1F4E); font-size: 18px; font-weight: 700; }
.lle-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 999px; color: var(--color-light, #666); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lle-badge.is-live { border-color: var(--color-point, #0A1F4E); color: var(--color-point, #0A1F4E); }
.lle-badge.is-verified { border-color: var(--color-point, #0A1F4E); background: var(--color-point, #0A1F4E); color: #fff; }
.lle-updated { color: var(--color-deeplight, #999); font-size: 13px; }
.lle-head-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lle-division { height: 34px; padding: 0 30px 0 10px; border: 1px solid rgba(0, 0, 0, .12); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--color-basic, #212121); font-size: 13px; -webkit-appearance: none; appearance: none; }
.lle .lle-full { height: 34px; line-height: 32px; padding: 0 12px; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* ===== 중계 한 줄 (사이트 안내 상자 톤) ===== */
.lle-ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; padding: 12px 16px; background: var(--color-background-gray, #F3F3F3); }
.lle-ticker-tag { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--color-point, #0A1F4E); font-size: 13px; font-weight: 700; }
.lle-ticker-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.lle-ticker-text { flex: 1 1 320px; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--color-basic, #212121); overflow-wrap: anywhere; }
.lle-progress { flex: 0 0 auto; margin-left: auto; color: var(--color-light, #666); font-size: 13px; }
.lle-progress:empty { display: none; }
.lle-progress strong { font-weight: 700; color: var(--color-basic, #212121); }
.lle-ticker-in { animation: lle-ticker-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes lle-ticker-in { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.lle-ticker.is-birdie .lle-ticker-tag::before, .lle-ticker.is-eagle .lle-ticker-tag::before, .lle-ticker.is-albatross .lle-ticker-tag::before, .lle-ticker.is-ace .lle-ticker-tag::before { background: var(--color-red, #DC000C); }
.lle-ticker.is-bogey .lle-ticker-tag::before, .lle-ticker.is-double .lle-ticker-tag::before, .lle-ticker.is-triple .lle-ticker-tag::before { background: #2874AC; }
.lle-ticker.is-lead .lle-ticker-tag::before, .lle-ticker.is-finish .lle-ticker-tag::before { background: var(--color-gold, #C0A354); }
.lle-ticker.is-lead .lle-ticker-text, .lle-ticker.is-eagle .lle-ticker-text, .lle-ticker.is-ace .lle-ticker-text { font-weight: 700; }
.lle-ticker.is-hot .lle-ticker-tag::before { animation: lle-pulse 1.2s ease-out 2; }

/* ===== 표: 기존 .competition-tbl 규칙을 상속하고 크기만 맞춘다 ===== */
.lle-table-wrap { overflow-x: auto; }
.lle-table { width: 100%; table-layout: fixed; }
.lle-col-rank { width: 9%; }
.lle-col-player { width: 34%; }
.lle-col-division { width: 21%; }
.lle-col-topar { width: 12%; }
.lle-col-thru { width: 12%; }
.lle-col-strokes { width: 12%; }
.lle-table thead th { padding: 12px 6px; font-size: 14px; }
.lle-table tbody td { padding: 10px 6px; font-size: 14px; color: var(--color-basic, #212121); vertical-align: middle; }
.lle-table tbody tr { transition: background-color .25s ease; }
.lle-rank { line-height: 1.15; white-space: nowrap; }
.lle-rank-no { display: block; font-weight: 700; }
.lle-move { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--color-deeplight, #999); }
.lle-move-up { color: var(--color-red, #DC000C); }
.lle-move-down { color: #2874AC; }
.lle-move.is-fresh { animation: lle-fade-in .5s ease-out; }
@keyframes lle-fade-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.lle-player-cell { text-align: left !important; padding-left: 14px !important; }
.lle-open { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: inherit; text-decoration: none; }
.lle-open:hover .lle-name { text-decoration: underline; text-underline-offset: 3px; }
.lle-pic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #eee; }
.lle-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lle-name { min-width: 0; font-size: 16px; font-weight: 700; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lle-division-cell { color: var(--color-light, #666); }
.lle-topar { font-weight: 700; }
.lle-under { color: var(--color-red, #DC000C); }
.lle-over { color: #2874AC; }
.lle-even { color: var(--color-basic, #212121); }
.lle-thru { color: var(--color-light, #666); }
.lle-thru.is-finished { color: var(--color-basic, #212121); font-weight: 700; }
.lle-strokes { color: var(--color-light, #666); }
.lle-dim { color: var(--color-deeplight, #999); }
.lle-status-tag { color: var(--color-red, #DC000C); font-size: 12px; font-weight: 700; }
.lle-empty { padding: 28px 0; color: var(--color-light, #666); font-size: 14px; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .15); }
.lle-note { margin-top: 10px; color: var(--color-deeplight, #999); font-size: 12px; line-height: 1.5; }

/* 모션: 순위 이동·셀 변화·행 강조 (기존 스코어 색 bgBuddy/bgBogey 계열) */
.lle-table tbody tr.lle-row-moving { position: relative; z-index: 2; background: #fff; transition: transform .65s cubic-bezier(.2, .8, .2, 1), background-color .25s ease; }
.lle-table tbody tr.lle-row-enter { animation: lle-fade-in .5s ease-out; }
.lle-table td.lle-flash { animation: lle-flash 1.6s ease-out; }
@keyframes lle-flash { 0% { background-color: rgba(192, 163, 84, .35); } 100% { background-color: transparent; } }
.lle-table tbody tr.lle-hit-under td { animation: lle-hit-under 10s ease-out forwards; }
.lle-table tbody tr.lle-hit-over td { animation: lle-hit-over 10s ease-out forwards; }
.lle-table tbody tr.lle-hit-lead td { animation: lle-hit-lead 10s ease-out forwards; }
@keyframes lle-hit-under { 0% { background-color: #FFD0D0; } 100% { background-color: transparent; } }
@keyframes lle-hit-over { 0% { background-color: #D0E6FB; } 100% { background-color: transparent; } }
@keyframes lle-hit-lead { 0% { background-color: rgba(192, 163, 84, .35); } 100% { background-color: transparent; } }

/* ===== 문자 중계: 사이트 안내 상자(.normal-giude-box) 안에 ===== */
.lle .lle-feed { margin: 16px 0 24px; }
.lle .lle-feed .h3-tit { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; margin-bottom: 10px; }
.lle-feed-count { margin-left: 4px; color: var(--color-deeplight, #999); font-size: .85em; font-weight: 400; }
.lle-feed-count:empty { display: none; }
.lle-feed-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.lle-feed-list.is-expanded { max-height: 360px; }
.lle-feed-list:focus-visible { outline: 2px solid #173b64; outline-offset: 2px; }
.lle .lle-feed-text { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.lle #lle-ticker-text[hidden] { display: none; }
.lle-feed-item { display: grid; grid-template-columns: 48px 10px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 14px; line-height: 1.5; }
.lle-feed-item:last-child { border-bottom: none; }
.lle-feed-item time { color: var(--color-deeplight, #999); font-size: 12px; }
.lle-feed-dot { width: 7px; height: 7px; border-radius: 50%; background: #ccc; transform: translateY(-1px); }
.lle-feed-item.is-birdie .lle-feed-dot, .lle-feed-item.is-eagle .lle-feed-dot, .lle-feed-item.is-albatross .lle-feed-dot, .lle-feed-item.is-ace .lle-feed-dot { background: var(--color-red, #DC000C); }
.lle-feed-item.is-bogey .lle-feed-dot, .lle-feed-item.is-double .lle-feed-dot, .lle-feed-item.is-triple .lle-feed-dot { background: #2874AC; }
.lle-feed-item.is-lead .lle-feed-dot, .lle-feed-item.is-finish .lle-feed-dot { background: var(--color-gold, #C0A354); }
.lle-feed-text { color: var(--color-basic, #212121); }
.lle-feed-item.is-hot .lle-feed-text { font-weight: 700; }
/* 해설 줄: 캐스터 줄 아래에 조용히 붙는다 */
.lle-feed-item.is-analyst { padding-top: 0; }
.lle-feed-item.is-analyst time { visibility: hidden; }
.lle-feed-item.is-analyst .lle-feed-dot { width: 2px; height: 14px; border-radius: 0; background: rgba(0, 0, 0, .12); transform: none; }
.lle-feed-item.is-analyst .lle-feed-text { color: var(--color-light, #666); }
.lle-feed-item.is-analyst .lle-feed-text::before { content: "해설"; margin-right: 6px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .05); color: var(--color-deeplight, #999); font-size: 10.5px; font-weight: 700; }
.lle-ticker.is-analyst .lle-ticker-tag::before { background: #bbb; }
.lle-ticker.is-analyst .lle-ticker-text { color: var(--color-light, #666); font-weight: 500; }
.lle-feed-item.lle-feed-in { animation: lle-feed-in .6s ease-out; }
@keyframes lle-feed-in { from { background-color: rgba(192, 163, 84, .25); } to { background-color: transparent; } }
.lle-feed-empty { color: var(--color-light, #666); font-size: 14px; }
.lle-feed-more { display: inline-block; margin-top: 10px; padding: 0; height: 30px; border: none; background: transparent; color: var(--color-point, #0A1F4E); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 데스크톱: 기존 pc 요약표(18px, 78px 행)와 같은 스케일 */
@media screen and (min-width: 1100px) {
  .lle-title { font-size: 20px; }
  .lle-table thead th { padding: 16px 6px; font-size: 16px; }
  .lle-table tbody td { padding: 14px 6px; font-size: 17px; height: 70px; }
  .lle-rank-no { font-size: 18px; }
  .lle-move { font-size: 12px; }
  .lle-pic { flex-basis: 44px; width: 44px; height: 44px; }
  .lle-name { font-size: 17px; }
  .lle-topar { font-size: 18px; }
  .lle-feed-item { font-size: 15px; }
}
/* 모바일: 기존 모바일 요약표와 같은 밀도 */
@media screen and (max-width: 766px) {
  .lle-head { margin-bottom: 10px; }
  .lle-title { font-size: 16px; }
  .lle-updated { flex-basis: 100%; font-size: 12px; }
  .lle-head-side { width: 100%; margin-left: 0; justify-content: space-between; }
  .lle-ticker { padding: 10px 12px; margin: 0 0 10px; }
  .lle-ticker-text { font-size: 13px; }
  .lle-progress { flex-basis: 100%; margin-left: 0; font-size: 12px; }
  .lle-col-rank { width: 12%; }
  .lle-col-player { width: 38%; }
  .lle-col-division { width: 0; }
  .lle-division-cell, .lle-table thead th:nth-child(3) { display: none; }
  .lle-col-topar { width: 18%; }
  .lle-col-thru { width: 16%; }
  .lle-col-strokes { width: 16%; }
  .lle-table thead th { padding: 9px 4px; font-size: 12px; }
  .lle-table tbody td { padding: 8px 4px; font-size: 13px; }
  .lle-player-cell { padding-left: 8px !important; }
  .lle-open { gap: 8px; }
  .lle-pic { flex-basis: 30px; width: 30px; height: 30px; }
  .lle-name { font-size: 14px; }
  .lle-topar { font-size: 15px; }
  .lle-feed-item { grid-template-columns: 40px 8px minmax(0, 1fr); font-size: 13px; }
}
.lle .lle-expandable { cursor: pointer; }
.lle button.lle-open { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lle button.lle-open::after { content: "▾"; margin-left: 8px; }
.lle button.lle-open[aria-expanded="true"]::after { content: "▴"; }
.lle button.lle-open:focus-visible { outline: 2px solid #173b64; outline-offset: 3px; }
.lle .lle-detail-cell { padding: 16px; background: #f6f8fb; text-align: left; }
.lle .lle-hole-card { min-width: 0; min-height: 190px; white-space: normal; }
.lle .lle-hole-scroll { overflow-x: auto; max-width: 100%; margin-top: 12px; }
.lle .lle-hole-table { width: 100%; min-width: 940px; table-layout: auto; border-collapse: collapse; }
.lle .lle-hole-table th, .lle .lle-hole-table td { padding: 9px 10px; border: 1px solid #dde3eb; text-align: center; white-space: nowrap; background: #fff; }
.lle .lle-hole-table th { background: #edf2f7; }
.lle .lle-hole-table thead th { display: table-cell; }
.lle .lle-hole-table tbody td { height: auto; font-size: 13px; }
.lle .lle-hole-card p { margin: 10px 0 0; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .lle-live i, .round-tab-btn-wrap .lle-tab i, .competition-tab .lle-nav-dot, .lle-ticker.is-hot .lle-ticker-tag::before { animation: none; }
  .lle-table tbody tr { transition: none; }
  .lle-move.is-fresh, .lle-row-enter, .lle-table td.lle-flash, .lle-ticker-in, .lle-feed-in, .lle-table tbody tr[class*="lle-hit-"] td { animation: none; }
}
