/* Scoped usability refinements; retain the existing Goal.si visual identity. */
.goal-search { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; }
.goal-search label { color: #e2e8f0; font-size: 14px; font-weight: 600; }
.goal-search-controls { display: flex; gap: 8px; }
.goal-search input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #172b36; font: inherit; font-size: 16px; box-sizing: border-box; }
.goal-search input::placeholder { color: #526273; }
.goal-clear { min-height: 44px; padding: 8px 14px; background: #e2e8f0; color: #172b36; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; cursor: pointer; }
.goal-clear:disabled { opacity: .65; cursor: default; }
#match-stats { flex-wrap: wrap; justify-content: center; }
#match-stats button.stat-item { font-family: inherit; min-height: 44px; border: 2px solid transparent; cursor: pointer; padding: 6px 10px; }
#match-stats .stat-all { background: #334155; color: #fff; }
#match-stats button[aria-pressed="true"] { outline: 2px solid #1e293b; outline-offset: 2px; border-color: #fff; }
.goal-search input:focus-visible,.goal-clear:focus-visible,#match-stats button:focus-visible { outline: 3px solid #f4bf36; outline-offset: 3px; }
.goal-feed-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: #dce7ed; font-size: 13px; margin: 10px 0; min-height: 22px; }
.goal-feed-status[data-state="error"] #goal-feed-message,.goal-feed-status[data-state="stale"] #goal-feed-message { color: #ffd9a3; }
#goal-results { font-variant-numeric: tabular-nums; }
#matches-container [hidden],#goal-no-results[hidden] { display: none !important; }
#goal-no-results { background: #fff; color: #334155; padding: 24px 16px; border-radius: 8px; text-align: center; }
.standings-table th[scope="row"] { background: inherit; text-align: left; color: #334155; }
.standings-table th { white-space: nowrap; }
@media (max-width: 768px) {
    #matches-container .match-row { grid-template-columns: 42px minmax(0,1fr) 48px minmax(0,1fr); grid-template-rows: auto auto; padding: 8px 6px; column-gap: 5px; row-gap: 4px; min-height: 90px; }
    #matches-container .col-time { grid-column: 1; grid-row: 1; }
    #matches-container .col-home { grid-column: 2; grid-row: 1; gap: 4px; }
    #matches-container .col-score { grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; }
    #matches-container .col-away { grid-column: 4; grid-row: 1; gap: 4px; }
    #matches-container .col-home .team-name,#matches-container .col-away .team-name { font-size: 13px; line-height: 1.45; overflow-wrap: normal; word-break: normal; -webkit-line-clamp: 2; }
    #matches-container .col-home img,#matches-container .col-away img { width: 18px; height: 18px; flex: 0 0 18px; }
    #matches-container .match-actions { grid-column: 2 / -1; grid-row: 2; justify-self: end; align-self: center; gap: 8px; }
    #matches-container .match-toggle,#matches-container .match-detail-link { min-width: 44px; width: auto; min-height: 44px; height: 44px; padding: 0 9px; box-sizing: border-box; border-radius: 8px; }
    #matches-container .match-toggle .toggle-label { display: inline; font-size: 12px; }
    #matches-container .match-toggle { gap: 5px; }
    #matches-container .match-detail-link { display: inline-flex; align-items: center; gap: 4px; }
    #matches-container .match-detail-link::after { content: 'วิเคราะห์'; font-size: 12px; font-weight: 600; color: #1e3c72; }
    #matches-container .match-detail-link .detail-icon { width: 24px; height: 24px; }
    #matches-container .col-odds-wrap { grid-column: 1 / -1; grid-row: 3; }
    .goal-search { margin-top: 12px; }
    #match-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; }
    #match-stats button.stat-item { flex: 1 1 auto; padding-inline: 7px; }
    #match-stats .stat-label { font-size: 12px; }
    .standings-table { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    #matches-container .live-badge,#matches-container .fiery-text { animation: none; }
}
