/* SPOKAZ Sports Tips */
.spk-tips-wrap { max-width: 100%; }

.spk-tips-header {
    background: linear-gradient(135deg, #0c2d5e, #1a6dff);
    border-radius: var(--spk-radius);
    padding: 16px 20px;
    color: #fff;
    margin-bottom: 10px;
}
.spk-tips-header h2 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.spk-tips-header p { margin: 0; font-size: 12px; color: #8ca; }

/* ── Today's 강력픽 ── */
.spk-top-picks { margin-bottom: 12px; }
.top-picks-title {
    font-size: 20px; font-weight: 900; color: #fff;
    text-align: center; padding: 14px 20px;
    background: linear-gradient(135deg, #ff2d55, #ff6b00, #ffcc33);
    border-radius: var(--spk-radius) var(--spk-radius) 0 0;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
    letter-spacing: 2px;
    animation: topPickGlow 2s ease infinite;
}
@keyframes topPickGlow {
    0%,100% { box-shadow: 0 4px 20px rgba(255,45,85,.3); }
    50% { box-shadow: 0 4px 30px rgba(255,107,0,.5); }
}
.top-picks-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0; border-radius: 0 0 var(--spk-radius) var(--spk-radius); overflow: hidden;
}
/* 균형 분할 행 — 페이지별 카드 수에 맞춰 컬럼 지정 */
.top-picks-row {
    display: grid; gap: 0; overflow: hidden;
}
.top-picks-row[data-cols="1"] { grid-template-columns: 1fr; }
.top-picks-row[data-cols="2"] { grid-template-columns: 1fr 1fr; }
.top-picks-row[data-cols="3"] { grid-template-columns: 1fr 1fr 1fr; }
.top-picks-row:last-child { border-radius: 0 0 var(--spk-radius) var(--spk-radius); }
@media (max-width: 640px) {
    .top-picks-row[data-cols="2"],
    .top-picks-row[data-cols="3"] { grid-template-columns: 1fr; }
}
.top-pick-card {
    background: linear-gradient(180deg, #1a0a10, #0a1628);
    padding: 16px 18px;
    border: 1px solid rgba(255,45,85,.15);
    position: relative; overflow: hidden;
}
.top-pick-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ff2d55, #ff6b00, #ffcc33);
}
.top-pick-card:first-child { border-right: 1px solid rgba(255,45,85,.15); }
.top-pick-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.top-pick-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #ff2d55, #ff6b00);
    color: #fff; font-size: 14px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(255,45,85,.4);
}
.top-pick-league { font-size: 11px; color: #ff8866; font-weight: 600; }
.top-pick-match {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 10px;
}
.top-pick-team { font-size: 16px; font-weight: 900; color: #fff; }
.top-pick-vs {
    font-size: 12px; font-weight: 900; color: #ff6b00;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(255,107,0,.15); border: 1px solid rgba(255,107,0,.3);
}
.top-pick-prediction {
    text-align: center; margin-bottom: 10px;
    font-size: 14px; color: #ffcc33; font-weight: 700;
    padding: 6px 12px; border-radius: 8px;
    background: rgba(255,204,51,.08); border: 1px solid rgba(255,204,51,.15);
}
.top-pick-prediction strong { color: #fff; font-size: 16px; }
.top-pick-reason {
    font-size: 11px; color: #8899aa; line-height: 1.6;
    max-height: 80px; overflow-y: auto;
    padding: 8px 10px; background: rgba(255,255,255,.03); border-radius: 6px;
}
.top-pick-translate {
    margin-top: 6px; padding: 4px 12px;
    border: 1px solid rgba(255,204,51,.3); border-radius: 6px;
    background: rgba(255,204,51,.08); color: #ffcc33;
    font-size: 10px; font-weight: 700; cursor: pointer;
    transition: all .15s;
}
.top-pick-translate:hover {
    background: rgba(255,204,51,.15); border-color: #ffcc33;
}

/* 필터 */
.spk-tips-filter {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.tips-search {
    padding: 7px 12px; border: 1.5px solid var(--spk-line); border-radius: 8px;
    font-size: 12px; outline: none; width: 200px; background: #fff;
}
.tips-search:focus { border-color: var(--spk-primary); }
.tips-select {
    padding: 7px 10px; border: 1.5px solid var(--spk-line); border-radius: 8px;
    font-size: 12px; background: #fff; outline: none;
}
.tips-count { font-size: 12px; font-weight: 700; color: var(--spk-primary); }
.tips-legend { display: flex; gap: 10px; margin-left: auto; }
.leg-item { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--spk-muted); font-weight: 600; }
.leg-box { width: 12px; height: 12px; border-radius: 3px; }
.leg-home { background: linear-gradient(135deg, #1a5ccc, #2a7cff); }
.leg-draw { background: linear-gradient(135deg, #555, #777); }
.leg-away { background: linear-gradient(135deg, #aa1a2a, #dd3344); }
.tips-update { font-size: 10px; color: var(--spk-muted); margin-left: 10px; }

/* 테이블 */
.spk-tips-table-wrap {
    background: var(--spk-card);
    border-radius: var(--spk-radius);
    box-shadow: var(--spk-shadow);
    overflow-x: auto;
    overflow-y: auto;
    max-height: 1528px;
    -webkit-overflow-scrolling: touch;
}
.spk-tips-table {
    width: 100%; border-collapse: collapse;
    min-width: 760px; /* 모바일에서 컬럼 축약 방지 → 가로 스크롤 */
}
@media (max-width: 768px) {
    .spk-tips-table-wrap { max-height: none; }
}
.spk-tips-table thead { position: sticky; top: 0; z-index: 2; }
.spk-tips-table th {
    padding: 10px 8px;
    background: linear-gradient(135deg, #0c2d5e, #1a4a80);
    color: #fff; font-size: 11px; font-weight: 700;
    text-align: center; white-space: nowrap;
}
.spk-tips-table td {
    padding: 8px 8px; font-size: 12px;
    border-bottom: 1px solid var(--spk-line);
    text-align: center; vertical-align: middle;
}
.spk-tips-table tr:hover td { background: rgba(26,109,255,.03); }

/* 컬럼 */
.date-col { font-size: 11px; color: var(--spk-muted); font-weight: 600; white-space: nowrap; }
.team-col { font-weight: 700; color: var(--spk-text); max-width: 200px; white-space: nowrap; }
.home-team { text-align: right; padding-right: 10px; }
.away-team { text-align: left; padding-left: 10px; }
.team-inner { display: inline-flex; align-items: center; gap: 5px; }
.team-logo { width: 16px; height: 16px; flex-shrink: 0; }

.league-col { font-size: 10px; color: var(--spk-muted); font-weight: 600; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

.score-col { width: 80px; white-space: nowrap; }
.score-box {
    display: inline-block; padding: 4px 14px;
    font-weight: 900; font-size: 13px;
    border-radius: 6px; letter-spacing: 2px;
    min-width: 55px; text-align: center; color: #fff;
}
.score-box.score-home { background: linear-gradient(135deg, #1a5ccc, #2a7cff); }
.score-box.score-away { background: linear-gradient(135deg, #aa1a2a, #dd3344); }
.score-box.score-draw { background: linear-gradient(135deg, #555, #777); }

/* 개별 확률바 */
.ip-single { margin-top: 5px; }
.ip-bar-single {
    height: 4px; border-radius: 2px; overflow: hidden;
    background: rgba(255,255,255,.07);
}
.ip-fill-home { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #1a6dff, #4a9dff); transition: width .3s; }
.ip-fill-draw { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #888, #aaa); transition: width .3s; }
.ip-fill-away { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #cc2233, #ff4466); transition: width .3s; }
.ip-single span { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; }
.ip-lbl-home { color: #4a9dff; }
.ip-lbl-draw { color: #aaa; text-align: center; }
.ip-lbl-away { color: #ff4466; text-align: right; }

/* TIP 뱃지 */
.tip-col { width: 50px; }
.tip-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 12px; font-size: 11px; font-weight: 800;
}
.tip-home { background: rgba(26,109,255,.12); color: #1a6dff; }
.tip-away { background: rgba(204,34,51,.12); color: #cc2233; }
.tip-home-draw { background: rgba(26,109,255,.08); color: #4488cc; }
.tip-away-draw { background: rgba(204,34,51,.08); color: #cc6677; }
.tip-draw { background: rgba(136,136,136,.12); color: #888; }
.tip-default { background: var(--spk-bg); color: var(--spk-muted); }

/* 밸류 */
.val-col { font-weight: 700; font-size: 11px; }
.val-pos { color: var(--spk-green); }
.val-neg { color: var(--spk-red); }

/* 로딩 */
.tips-loading { padding: 30px; text-align: center; color: var(--spk-muted); font-size: 12px; }

/* ── 날짜 네비게이션 ── */
.tips-date-nav {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.date-nav-btn {
    padding: 6px 14px; border-radius: 8px;
    border: 1.5px solid var(--spk-line);
    background: var(--spk-card); color: var(--spk-text);
    font-size: 12px; font-weight: 700; cursor: pointer;
    transition: all .15s;
}
.date-nav-btn:hover:not(:disabled) {
    background: var(--spk-primary); color: #fff; border-color: var(--spk-primary);
}
.date-nav-btn:disabled { opacity: .35; cursor: default; }
.date-nav-label {
    font-size: 15px; font-weight: 900; color: var(--spk-text);
    padding: 4px 12px;
}
.date-nav-today {
    padding: 5px 12px; border-radius: 8px;
    border: 1.5px solid var(--spk-primary);
    background: rgba(26,109,255,.08); color: var(--spk-primary);
    font-size: 11px; font-weight: 700; cursor: pointer;
    transition: all .15s;
}
.date-nav-today:hover { background: var(--spk-primary); color: #fff; }

/* 사용설명서 버튼 — 오른쪽 끝 */
.tips-help-btn {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--spk-line);
    background: #f0f5ff;
    color: var(--spk-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.tips-help-btn i { margin-right: 4px; }
.tips-help-btn:hover {
    background: var(--spk-primary);
    color: #fff;
    border-color: var(--spk-primary);
}

/* ── 사용설명서 모달 ── */
.tips-help-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 18, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tipsHelpIn .18s ease;
}
.tips-help-modal[hidden] { display: none; }
@keyframes tipsHelpIn { from { opacity: 0; } to { opacity: 1; } }
.tips-help-box {
    width: min(880px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.tips-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0c2d5e, #1a6dff 60%, #ff6b00 140%);
    color: #fff;
}
.tips-help-head strong { font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.tips-help-head strong i { margin-right: 6px; }
.tips-help-close {
    width: 32px; height: 32px;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.tips-help-close:hover { background: rgba(255, 255, 255, 0.3); }

.tips-help-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 30px;
    background: #fafcff;
    font-size: 13px;
    line-height: 1.7;
    color: #2c3e50;
}

/* 가이드 본문 */
.tips-help-body .help-intro {
    background: linear-gradient(135deg, #eaf2ff, #f3f7fc);
    border-left: 4px solid var(--spk-primary);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.tips-help-body .help-intro h3 {
    margin: 0 0 6px;
    font-size: 17px; font-weight: 900;
    color: var(--spk-primary-deep);
    letter-spacing: -0.01em;
}
.tips-help-body .help-intro p { margin: 0; color: #4a5d74; font-size: 13px; }

.tips-help-body .help-sec {
    margin: 14px 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--spk-line);
    border-radius: 10px;
}
.tips-help-body .help-sec h4 {
    margin: 0 0 10px;
    font-size: 14.5px; font-weight: 800;
    color: var(--spk-primary-deep);
    letter-spacing: -0.01em;
}
.tips-help-body .help-sec p { margin: 0 0 8px; }
.tips-help-body .help-sec ul,
.tips-help-body .help-sec ol { margin: 8px 0 0; padding-left: 22px; }
.tips-help-body .help-sec li { margin-bottom: 6px; }
.tips-help-body .help-sec b { color: var(--spk-primary-deep); font-weight: 800; }

/* ⭐ 강력픽 섹션 — 강조 */
.tips-help-body .help-highlight {
    background: linear-gradient(135deg, #fff4e6, #ffe8cc);
    border: 2px solid #ff6b00;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.15);
}
.tips-help-body .help-highlight h4 {
    color: #c14800;
    font-size: 15px;
}
.tips-help-body .hl-red { color: #c14800; font-weight: 900; }
.tips-help-body .hl-tip {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff9e6;
    border-left: 4px solid #f4b400;
    border-radius: 6px;
    font-size: 12.5px;
    color: #6b5b00;
}

/* ⭐ 날짜 비교 재미 섹션 — 강조 */
.tips-help-body .help-highlight-blue {
    background: linear-gradient(135deg, #e8f1ff, #dcebff);
    border: 2px solid var(--spk-primary);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(26, 109, 255, 0.15);
}
.tips-help-body .help-highlight-blue h4 {
    color: var(--spk-primary-deep);
    font-size: 15px;
}
.tips-help-body .hl-blue { color: var(--spk-primary); font-weight: 900; }
.tips-help-body .hl-box {
    margin: 10px 0;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px dashed var(--spk-primary);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #1a2238;
    font-weight: 500;
}
.tips-help-body .hl-box b { font-weight: 900; color: var(--spk-primary); }

/* 작은 chip/팀 라벨 */
.tips-help-body .hl-chip {
    display: inline-block;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 2px;
}
.tips-help-body .hl-chip.chip-home { background: #1a6dff; }
.tips-help-body .hl-chip.chip-away { background: #cc2233; }
.tips-help-body .hl-chip.chip-draw { background: #98a6b7; }
.tips-help-body .hl-chip.chip-hit  { background: #0abf53; }
.tips-help-body .hl-chip.chip-miss { background: #cc2233; }
.tips-help-body .hl-team {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 2px;
}
.tips-help-body .hl-team.win {
    background: rgba(26, 109, 255, 0.12);
    color: var(--spk-primary);
}
.tips-help-body .hl-team.lose { color: #8a9bb5; text-decoration: line-through; }

/* 팁 섹션 */
.tips-help-body .help-tip-sec {
    background: linear-gradient(135deg, #f5fffa, #e6fff0);
    border-color: #0abf53;
}
.tips-help-body .help-tip-sec h4 { color: #067838; }

/* 면책 */
.tips-help-body .help-disclaimer {
    background: #fff4f4;
    border-color: #f4c2c2;
}
.tips-help-body .help-disclaimer p { font-size: 12px; color: #7a3b3b; }
.tips-help-body .help-disclaimer a {
    color: var(--spk-red);
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .tips-help-body { padding: 14px 16px 24px; }
    .tips-help-body .help-sec { padding: 12px 14px; }
    .tips-help-btn {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}

/* ── 배당 컬럼 ── */
.odds-col { white-space: nowrap; font-size: 11px; font-weight: 700; }
.odds-item { color: #ccc; }
.odds-item.odds-fav { color: #ffd700; }
.odds-sep { color: #555; margin: 0 2px; }

/* ── 실제결과 / 적중 컬럼 ── */
.result-col { width: 80px; white-space: nowrap; }
.hit-col { width: 68px; white-space: nowrap; }
.result-pending { font-size: 13px; color: var(--spk-muted); font-weight: 600; }
.hit-badge {
    display: inline-block; padding: 3px 8px;
    border-radius: 10px; font-size: 11px; font-weight: 800;
}
.hit-badge.hit {
    background: rgba(0,200,100,.12); color: #00c864;
    border: 1px solid rgba(0,200,100,.25);
}
.hit-badge.miss {
    background: rgba(220,40,60,.12); color: #dc283c;
    border: 1px solid rgba(220,40,60,.25);
}
.hit-tip {
    display: block; font-size: 9px; color: var(--spk-muted);
    margin-top: 2px; font-weight: 600;
}

@media (max-width: 768px) {
    .spk-tips-table { font-size: 10px; }
    .team-col { max-width: 100px; }
    .prob-col { display: none; }
    .date-nav-label { font-size: 13px; }
}
