/* # 확인요망 - 2026-11-06 : 스타또 bet365 화면 스타일 (starto.css 다음에 읽힘) */

/* ===================================================================================
   # 확인요망 - 2026-11-06 : 스타또 bet365 가상게임(피그마 3:33117 축구 · 3:36126 농구 · 3:37646 경마 · 3:39869 개경주 외) — 가운데 콘텐츠만
   종목 탭 1300×70 (바탕 rgba(10,9,24,.3), 아래 1px rgba(128,103,199,.45), bet365 로고 26 + 종목 그림 29 + 이름 Bold 15, 선택 #b79bff 밑줄 72×2)
   세부 탭 높이 51 (바탕 rgba(10,9,24,.35), 이름 Medium 15 #c9c0d9 / 선택 #b79bff 밑줄 88×2)
   제목·새로고침 막대 42 (#171229, 테두리 #594a7a, 둥글기 4, 글자 왼쪽 18) / 영상 상자 (#080817, 테두리 #594a7a, 둥글기 6)
   경기 카드 (#0e0f21, 테두리 #594a7a, 둥글기 6) — 머리 41 (#1c142c, 그림 28, 이름 Bold 17, 시간 Medium 13 #b9b0cf)
   마켓 이름 Bold 15 #b79bff / 배당 칸 높이 44 (아래→위 #352934→#211820, 가운데 칸 #271e27→#161116, 테두리 #594a7a, 둥글기 5)
   팀 이름 Medium 15 #f4f0ff, 배당 Medium 16 #b79bff, 칸 549 | 142 | 549 (사이 11)
   경마 칸 248×48 5칸(사이 10), 개경주 408×48 3칸(사이 20), 줄 사이 7, 글자 Medium 13 / 15
   큰 상자 사이 세로 10 은 사이트 규칙 var(--st-c)
   =================================================================================== */
.st_b3 .st_b3_wrap { font-family: 'EsaManru'; -webkit-font-smoothing: antialiased; container-type: inline-size; }

/* 종목 탭 (Bet365Vendors) */
.st_b3_tabs ul { display: flex; margin: 0; padding: 0; list-style: none; height: 70px; background: rgba(10, 9, 24, 0.3); box-shadow: inset 0 -1px 0 rgba(128, 103, 199, 0.45); }
.st_b3_tabs li { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.st_b3_tabs a { display: flex; align-items: center; justify-content: center; height: 70px; padding: 0 3px 0 0; text-decoration: none; color: #f4f0ff; transition: color 0.2s, background 0.2s; }
.st_b3_tabs .st_b3_logo { flex: none; display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px #05593d; }
.st_b3_tabs .st_b3_icon { flex: none; display: block; width: 29px; height: 29px; margin-left: 1px; object-fit: contain; }
.st_b3_tabs b { margin-left: 6px; font-weight: 700; font-size: 15px; line-height: 20px; white-space: nowrap; }
.st_b3_tabs li.active a { color: #b79bff; }
.st_b3_tabs li.active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 72px; height: 2px; margin-left: -36px; background: #b79bff; box-shadow: 0 0 8px rgba(154, 114, 255, 0.8); }
.st_b3_tabs a:hover { color: #ffffff; background: rgba(154, 114, 255, 0.1); }
.st_b3_tabs li.active a:hover { color: #c7bbff; }

/* 세부 탭 (Bet365Menu) */
.st_b3_sub ul { display: flex; margin: 0; padding: 0; list-style: none; height: 51px; background: rgba(10, 9, 24, 0.35); box-shadow: inset 0 -1px 0 rgba(128, 103, 199, 0.45); }
.st_b3_sub li { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.st_b3_sub a { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 4px; text-decoration: none; color: #c9c0d9; transition: color 0.2s, background 0.2s; }
.st_b3_sub b { font-weight: 500; font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st_b3_sub li.active a { color: #b79bff; }
.st_b3_sub li.active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 88px; height: 2px; margin-left: -44px; background: #b79bff; box-shadow: 0 0 8px rgba(154, 114, 255, 0.8); }
.st_b3_sub a:hover { color: #ffffff; background: rgba(154, 114, 255, 0.1); }
.st_b3_sub li.active a:hover { color: #c7bbff; }

/* 제목 막대 · 영상 상자 · 새로고침 막대 */
.st_b3_title, .st_b3_bar { display: flex; align-items: center; height: 42px; margin-top: var(--st-c); padding: 1px 18px 0; border: 1px solid #594a7a; border-radius: 4px; background: #171229; }
.st_b3_title { padding-left: 17px; font-weight: 700; font-size: 18px; color: #f4f0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st_b3_video { margin-top: var(--st-c); overflow: hidden; border: 1px solid #594a7a; border-radius: 6px; background: #080817; }
.st_b3_video iframe { display: block; width: 100%; }
.st_b3_bar { justify-content: space-between; padding-left: 17px; padding-right: 17px; }
.st_b3_reload { white-space: nowrap; display: inline-flex; align-items: center; height: 30px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font-family: 'EsaManru'; font-weight: 500; font-size: 15px; color: #b79bff; transition: color 0.2s, text-shadow 0.2s; }
/* 새로고침 그림: 시안 "⟳" 글자(15×13, 글자와 10 띄움) — 글꼴마다 모양이 달라 같은 모양 그림으로 */
.st_b3_reload_ic { flex: none; display: block; width: 15px; height: 13px; margin: -2px 10px 0 2px; transition: transform 0.4s; }
.st_b3_reload:hover { color: #c7bbff; text-shadow: 0 0 8px rgba(154, 114, 255, 0.7); }
.st_b3_reload:hover .st_b3_reload_ic { transform: rotate(180deg); }
.st_b3_bar > span { font-weight: 500; font-size: 14px; color: #b9b0cf; white-space: nowrap; }

/* 경기 카드 */
.st_b3_game { margin-top: var(--st-c); overflow: hidden; border: 1px solid #594a7a; border-radius: 6px; background: #0e0f21; padding: 0 19px 11px 17px; }
.st_b3_head { display: flex; align-items: center; height: 41px; margin: 0 -19px 0 -17px; padding: 0 19px 0 17px; background: #1c142c; }
.st_b3_head img { flex: none; display: block; width: 28px; height: 28px; object-fit: contain; }
.st_b3_head b { flex: 1 1 auto; min-width: 0; margin-left: 8px; font-weight: 700; font-size: 17px; color: #f4f0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st_b3_head span { flex: none; margin-left: 10px; padding-bottom: 2px; font-weight: 500; font-size: 13px; color: #b9b0cf; white-space: nowrap; }

/* 마켓 (XFolder · HandicapFolder · OverUnderFolder · RacingFolder) */
.st_b3_mk_name { height: 22px; margin: 2px 0 4px; font-weight: 700; font-size: 15px; line-height: 22px; color: #b79bff; }
.st_b3_mk + .st_b3_mk .st_b3_mk_name { margin: 4px 0 2px; font-size: 14px; }
.st_b3_row { display: grid; grid-template-columns: minmax(0, 1fr) 142px minmax(0, 1fr); gap: 11px; }
.st_b3_btn { position: relative; display: flex; align-items: center; height: 44px; padding: 0 13px; border: 1px solid #594a7a; border-radius: 5px;
    background: linear-gradient(0deg, #1d1d41 0%, #121227 100%); cursor: pointer; user-select: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.st_b3_team { flex: 1 1 auto; min-width: 0; font-weight: 500; font-size: 15px; color: #f4f0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st_b3_away .st_b3_team { text-align: right; }
.st_b3_odd { flex: none; font-style: normal; font-weight: 500; font-size: 16px; color: #b79bff; white-space: nowrap; }
.st_b3_mid { justify-content: center; padding-left: 4px; padding-right: 4px; background: linear-gradient(0deg, #151530 0%, #161116 100%); }
/* 화살표·H 와 배당 사이: 시안 그대로 왼쪽 칸 12.5 / 11.5, 오른쪽 칸 13.5 */
.st_b3_arrow { flex: none; display: block; width: 10px; height: 13px; margin: -1px 12.5px 0 10px; }
.st_b3_away .st_b3_arrow { margin: -1px 10px 0 13.5px; }
/* 핸디캡 H 배지 11×12 — 시안 청록(#75beb2) 대신 스포츠 화면과 같은 연보라 배지 */
.st_b3_h { flex: none; display: flex; align-items: center; justify-content: center; width: 11px; height: 12px; margin: -1px 15px 0; padding-top: 2px; border-radius: 2px;
    background: #7c3dff; box-shadow: inset 0 0 0 1px #d8ccff, 0 0 4px rgba(124, 61, 255, 0.55); font-style: normal; font-family: 'EsaManru'; font-weight: 700; font-size: 8px; line-height: 1; color: #ffffff; }
.st_b3_btn .st_b3_h { margin: -1px 11.5px 0 10px; } /* H 글자: 이사만루가 위로 붙어 padding-top 2 (1 이면 1px 위, 3 이면 1.5px 아래로 재짐) */
.st_b3_away .st_b3_h { margin: -1px 10px 0 13.5px; }

/* 마우스 올림 · 선택 · 막힘 — 메인 카드처럼 연보라 테두리 + 보라 빛 */
.st_b3_btn:hover { border-color: rgba(199, 187, 255, 0.9); box-shadow: 0 0 10px rgba(154, 114, 255, 0.5); }
.st_b3_btn.on { border-color: #d6ccff; background: linear-gradient(180deg, #7c4dff 0%, #5a2fd0 100%); box-shadow: 0 0 12px rgba(154, 114, 255, 0.55); }
.st_b3_btn.on .st_b3_team, .st_b3_btn.on .st_b3_odd { color: #ffffff; }
.st_b3_btn.none { cursor: default; }
.st_b3_btn.none:hover { border-color: #594a7a; box-shadow: none; }
.st_b3_btn.off { opacity: 0.45; cursor: default; }
.st_b3_btn.off:hover { border-color: #594a7a; box-shadow: none; }

/* 경마·개경주 — 이름과 배당을 한 덩어리로 가운데 (시안 "Wet Feet  13.00") */
.st_b3_race .st_b3_mk_name { height: 30px; margin: 6px 0 4px; padding-top: 2px; line-height: 28px; font-size: 15px; }
.st_b3_race_grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px 10px; }
.st_b3_race_dog .st_b3_race_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.st_b3_racer { justify-content: center; height: 48px; padding: 0 8px; }
.st_b3_racer .st_b3_team { flex: 0 1 auto; font-size: 13px; }
.st_b3_racer .st_b3_odd { margin-left: 7px; font-size: 13px; color: #f4f0ff; }
.st_b3_race_dog .st_b3_racer .st_b3_team, .st_b3_race_dog .st_b3_racer .st_b3_odd { font-size: 15px; }
.st_b3_race_dog .st_b3_racer .st_b3_odd { margin-left: 8px; }
.st_b3_game:has(.st_b3_race) { padding-bottom: 12px; }
/* 칸 오른쪽 끝: 시안 경마는 카드 안쪽 오른쪽 1px 까지(5칸 248), 개경주는 17px 까지(3칸 408) — 카드 오른쪽 여백 19 에서 빼서 맞춤 */
@media (min-width: 769px) {
    .st_b3_race_horse .st_b3_race_grid { margin-right: -18px; }
    .st_b3_race_dog .st_b3_race_grid { margin-right: -2px; }
}

/* 가운데 칸이 좁아지면(1281 근처·태블릿) 경마 4칸·3칸, 휴대폰 2칸 */
@container (max-width: 1000px) { .st_b3_race_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 760px) {
    .st_b3_race_grid, .st_b3_race_dog .st_b3_race_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
}
@container (max-width: 560px) {
    .st_b3_race_grid, .st_b3_race_dog .st_b3_race_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

/* 휴대폰·태블릿 — PC 모양을 접어 넣음: 탭은 그림 위·이름 아래, 배당 가운데 칸 60, 글자·여백 줄임 */
@media (max-width: 768px) {
    .st_b3_tabs ul { height: 62px; }
    .st_b3_tabs a { flex-wrap: wrap; align-content: center; height: 62px; row-gap: 3px; }
    .st_b3_tabs .st_b3_logo { width: 20px; height: 20px; }
    .st_b3_tabs .st_b3_icon { width: 22px; height: 22px; }
    .st_b3_tabs b { flex: 0 0 100%; margin: 0; text-align: center; font-size: 13px; line-height: 17px; }
    .st_b3_tabs li.active::after { width: 52px; margin-left: -26px; }
    .st_b3_sub ul { height: 42px; }
    .st_b3_sub a { height: 40px; }
    .st_b3_sub b { font-size: 13px; }
    .st_b3_sub li.active::after { width: 60px; margin-left: -30px; }
    .st_b3_title, .st_b3_bar { height: 38px; padding-left: 10px; padding-right: 10px; }
    .st_b3_title { font-size: 15px; }
    .st_b3_reload { font-size: 13px; }
    .st_b3_reload_ic { margin: 2px 6px 0 0; }
    .st_b3_bar > span { font-size: 12px; }
    .st_b3_game { padding: 0 8px 8px; }
    .st_b3_head { height: auto; min-height: 38px; margin: 0 -8px; padding: 5px 8px; }
    .st_b3_head img { width: 22px; height: 22px; }
    .st_b3_head b { margin-left: 6px; font-size: 14px; line-height: 1.3; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
    .st_b3_head span { margin-left: 6px; font-size: 11px; }
    .st_b3_mk_name, .st_b3_mk + .st_b3_mk .st_b3_mk_name { height: 20px; margin: 4px 0 3px; font-size: 13px; line-height: 20px; }
    .st_b3_row { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); gap: 4px; }
    .st_b3_btn { height: 40px; padding: 0 7px; }
    .st_b3_mid { padding: 0 2px; }
    /* 휴대폰에서 긴 팀 이름(예: Bosnia-Herzegovina)이 … 으로 잘리던 것 → 두 줄까지 */
    .st_b3_team { font-size: 12px; line-height: 1.2; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .st_b3_odd { font-size: 13px; }
    .st_b3_arrow, .st_b3_away .st_b3_arrow, .st_b3_btn .st_b3_h, .st_b3_away .st_b3_h { margin: -1px 5px 0; }
    .st_b3_race .st_b3_mk_name { height: 22px; margin: 4px 0 3px; line-height: 22px; font-size: 13px; }
    .st_b3_racer { height: 40px; padding: 0 4px; }
    .st_b3_racer .st_b3_team, .st_b3_racer .st_b3_odd, .st_b3_race_dog .st_b3_racer .st_b3_team, .st_b3_race_dog .st_b3_racer .st_b3_odd { font-size: 12px; }
    .st_b3_racer .st_b3_odd, .st_b3_race_dog .st_b3_racer .st_b3_odd { margin-left: 5px; }
    .st_b3_game:has(.st_b3_race) { padding-bottom: 8px; }
}

/* # 확인요망 - 2026-11-06 : 사용자 지적 — 리그명·팀명 글자가 너무 큼 → 스포츠 화면(.st_sk) 크기·굵기에 맞춤
   스포츠: 리그 13 얇게(300) #f8f6ff · 팀명 13 얇게 · 배당 13 보통(500) · 시간 14 얇게 #b7aecf · 제목 17 / 휴대폰은 1px 씩 작게 */
.st_b3_title { font-size: 17px; }
.st_b3_head img { width: 20px; height: 20px; }
.st_b3_head b { margin-left: 8px; padding-top: 1px; font-weight: 300; font-size: 13px; color: #f8f6ff; }
.st_b3_head span { font-weight: 300; font-size: 13px; color: #b7aecf; }
.st_b3_mk_name, .st_b3_mk + .st_b3_mk .st_b3_mk_name { font-weight: 500; font-size: 13px; }
.st_b3_team { font-weight: 300; font-size: 13px; color: #f8f6ff; }
.st_b3_odd { font-weight: 500; font-size: 13px; }
.st_b3_race .st_b3_mk_name { font-size: 13px; }
.st_b3_racer .st_b3_team, .st_b3_race_dog .st_b3_racer .st_b3_team { font-weight: 300; font-size: 13px; }
.st_b3_racer .st_b3_odd, .st_b3_race_dog .st_b3_racer .st_b3_odd { font-weight: 500; font-size: 13px; }
@media (max-width: 768px) {
    .st_b3_title { font-size: 15px; }
    .st_b3_head img { width: 18px; height: 18px; }
    .st_b3_head b { margin-left: 6px; font-size: 12px; }
    .st_b3_head span { font-size: 11px; }
    .st_b3_mk_name, .st_b3_mk + .st_b3_mk .st_b3_mk_name, .st_b3_race .st_b3_mk_name { font-size: 12px; }
    .st_b3_team, .st_b3_odd { font-size: 12px; }
    .st_b3_racer .st_b3_team, .st_b3_racer .st_b3_odd, .st_b3_race_dog .st_b3_racer .st_b3_team, .st_b3_race_dog .st_b3_racer .st_b3_odd { font-size: 12px; }
}

/* # 확인요망 - 2026-11-06 : 사용자 지적 — 스포츠와 똑같이 맞출 필요는 없고 "쓸데없이 너무 큰 부분" 줄이기 (PC 폭만, 휴대폰은 이미 작음)
   종목 탭 70→56(글자 15→14, 그림 29→24·로고 26→22) · 세부 탭 51/48→42/40(글자 15→14) · 제목 막대 42→38(글자 17→15)
   새로고침 줄 42→36(글자 14·15→13) · 경기 머리줄 41→36 · 배당 칸 44→40 · 경마 칸 48→42 · 경마 마켓 이름 30→24 */
@media (min-width: 769px) {
    .st_b3_tabs ul, .st_b3_tabs a { height: 56px; }
    .st_b3_tabs .st_b3_icon { width: 24px; height: 24px; }
    .st_b3_tabs .st_b3_logo { width: 22px; height: 22px; }
    .st_b3_tabs b { font-size: 14px; }
    .st_b3_sub ul { height: 42px; }
    .st_b3_sub a { height: 40px; }
    .st_b3_sub b { font-size: 14px; }
    .st_b3_title { height: 38px; font-size: 15px; }
    .st_b3_bar { height: 36px; }
    .st_b3_bar > span { font-size: 13px; }
    .st_b3_reload { height: 26px; font-size: 13px; }
    .st_b3_head { height: 36px; }
    .st_b3_btn { height: 40px; }
    .st_b3_racer { height: 42px; }
    .st_b3_race .st_b3_mk_name { height: 24px; margin: 4px 0 4px; line-height: 22px; }
}
/* # 확인요망 - 2026-11-06 : bet365 마크를 빼서, 마크 자리용 여백(칸 오른쪽 3·그림 왼쪽 1)이 남아 1px 왼쪽으로 쏠림 → 없앰 */
.st_b3_tabs a { padding-right: 0; }
.st_b3_tabs .st_b3_icon { margin-left: 0; }

/* # 확인요망 - 2026-11-06 : 사용자 지적 "이상한 갈색" — 이 파일의 어두운 자줏빛 갈색 3곳을 밝기·투명도는 그대로 두고 색만 사이트 남보라(색상 240°)로 바꿈 */
/* # 확인요망 - 2026-11-06 : 사용자 지적 — 벳365 배당판 색을 스포츠 배당 칸과 같게(위 #24213f → 아래 #101429) */
.st_b3_btn { background: linear-gradient(180deg, #24213f 0%, #101429 100%); }
.st_b3_mid { background: linear-gradient(180deg, #1b1a36 0%, #0d1024 100%); }
/* # 확인요망 - 2026-11-06 : 영상 높이가 16:9 로 계산돼 732.38 처럼 소수점 → 그 아래 상자들이 0.38px 어긋나 테두리가 흐려짐. 16:9 는 유지하고 정수 픽셀로 반올림 */
.st_b3_video iframe { height: round(nearest, calc((100cqw - 2px) * 9 / 16), 1px) !important; }

/* # 확인요망 - 2026-11-07 : 벳365 도 휴대폰·태블릿(1024 이하) 두 줄 — 윗줄 팀명(한 줄, 길면 …), 아랫줄 배당·H·화살표 가운데(스포츠 화면과 같은 방식). 예전 "팀 이름 두 줄까지" 대신 */
@media (max-width: 1024px) {
    .st_b3_btn:has(.st_b3_team) { flex-wrap: wrap; align-content: center; justify-content: center; gap: 1px 4px; height: 50px; padding: 2px 6px 0; }
    .st_b3_btn .st_b3_team { order: -1; flex: 0 0 100%; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center !important; font-size: 12px; line-height: 1.25; -webkit-line-clamp: unset; }
    .st_b3_btn .st_b3_odd { font-size: 13px; line-height: 1.2; }
    .st_b3_btn .st_b3_arrow, .st_b3_btn .st_b3_h, .st_b3_away .st_b3_arrow, .st_b3_away .st_b3_h { margin: 0 2px; }
    .st_b3_racer .st_b3_team { flex: 0 1 auto; order: 0; text-align: left !important; }
}

/* # 확인요망 - 2026-11-09 : 769~1024 경마·개경주 말 이름 크기 통일(경마 12 → 13) */
@media (min-width: 769px) and (max-width: 1024px) { .st_b3_btn.st_b3_racer .st_b3_team { font-size: 13px; } }

/* # 확인요망 - 2026-11-09 : 1024 이하에서 가운데 기준점 칸만 40, 좌우 50이라 칸 높이가 달랐음 → 같은 줄 칸과 같은 높이로 */
@media (max-width: 1024px) { .st_b3_row > .st_b3_btn.st_b3_mid { height: auto; align-self: stretch; } }
