/* Layout do aplicativo */
:root {
  --ink: #172c44;
  --muted: #5d6c7a;
  --edge: #dae2e7;
  --accent: #204f77;
  --accent-tint: #e3edf4;
  --surface: #fff;
}
body { background: #f4f6f7; color: var(--ink); }
.wrap { width: min(840px, calc(100% - 40px)); }
header { padding-top: env(safe-area-inset-top); background: var(--surface); border-bottom-color: var(--edge); }
.bar { height: 66px; }
.bar .brand { gap: 9px; font-size: 22px; font-weight: 730; letter-spacing: -.9px; }
.bar .brand img { width: 34px; border-radius: 10px; }
.bar .picker { height: 44px; background: #f3f6f7; border-color: transparent; border-radius: 13px; }
.content { padding-top: 18px; padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
button, select, summary, .picker, .switch { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid #397db1; outline-offset: 2px; }

/* Acesso com uma mão */
.appTabs { position: fixed; z-index: 5; inset: auto 0 0; background: #fafcfbf2; border-top: 1px solid #cdd7ded9; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 5px 8px calc(4px + env(safe-area-inset-bottom)); }
.appTabs>div { max-width: 480px; margin: auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.appTabs button, .appTabs #menuOpen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 47px; border: 0; background: transparent; color: #61717e; border-radius: 13px; font: 550 11px/1.15 -apple-system,BlinkMacSystemFont,Arial,sans-serif; cursor: pointer; }
.appTabs button[aria-current=page], .appTabs #menuOpen[aria-current=page] { color: #193f61; background: var(--accent-tint); font-weight: 700; }
.appTabs .ico { width: 20px; height: 20px; }
.sideNav button { min-height: 46px; }
#menuClose, #close { min-width: 44px; min-height: 44px; }
#sideMenu { border-radius: 0 24px 24px 0; }
.menuHead { padding-bottom: 12px; }

/* O próximo jogo mantém as duas linhas da agenda. */
#hero.featuredMatch { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; padding: 12px 16px 13px; color: white; background: #142e46; }
#hero.featuredMatch:before { display: block; content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg,#0d263ef0 0%,#14314bcf 55%,#15364ba8 100%),url(stadium.webp) 50% 52%/cover; }
#hero.featuredMatch .group { color: #d2e4ed; font-size: 11px; letter-spacing: 1.4px; margin: 0 0 6px; }
#hero.featuredMatch .rows, #hero.featuredMatch .fixtureLine { background: transparent; border: 0; color: white; }
#hero.featuredMatch .fixtureLine { padding: 2px 0; grid-template-columns: 33px 30px minmax(0,1fr); gap: 10px; }
#hero.featuredMatch .fixtureDate { color: #eaf2f6; border-right: 1px solid #ffffff40; padding-right: 7px; }
#hero.featuredMatch .fixtureLine>img { width: 30px; height: 32px; object-fit: contain; }
#hero.featuredMatch .lineOne>b { font-size: 18px; letter-spacing: -.35px; }
#hero.featuredMatch .lineTwo, #hero.featuredMatch .lineOne small, #hero.featuredMatch .featureTV, #hero.featuredMatch .ytMark { color: #dce9f2; }
.calendar .listhead { min-height: 46px; }
.timezone { font-size: 12px; }
.calendar .group { color: var(--muted); font-size: 11px; letter-spacing: 1.2px; margin: 15px 0 6px; }
.calendar .group:first-child { margin-top: 3px; }
.rows, .standwrap, .dailyRows { border-radius: 14px; border-color: var(--edge); }
.fixtureLine { padding: 7px 12px; min-height: 48px; }
.fixtureLine.homeGame { background: #f2f4ef; }
.fixtureLine.awayGame { background: #edf1f5; }
.fixtureDate, .kickoff, .lineOne strong, .tieTeam>b { font-variant-numeric: tabular-nums; }
.fixtureDate small { color: inherit; }
.lineOne b, .dailyTeams { font-weight: 650; }
#past>h2, .dayHeading h2 { font-size: 23px; letter-spacing: -.9px; }
.switch { font-weight: 550; color: var(--muted); }
.switch input:checked+span { background: var(--accent); }

/* Competições e consulta por data */
.tabletools { margin-bottom: 8px; gap: 12px; }
.tabletools .league { font-size: 19px; letter-spacing: -.5px; }
.league b { display: inline-block; margin-left: 2px; }
.metric select { min-height: 44px; background-color: white; border-radius: 12px; }
#dayStrip { display: flex; gap: 5px; max-width: none; overflow-x: auto; padding: 2px 1px 5px; scroll-snap-type: x proximity; }
#dayStrip button { flex: 1 0 45px; min-height: 49px; border-radius: 12px; scroll-snap-align: center; }
#dayStrip button[aria-pressed=true] { color: white; background: #1c3f5b; }
.dailyLeague h3 { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.dailyRows article { min-height: 46px; }
.standwrap th { font-size: 12px; letter-spacing: .15px; }
.stageCard { background: #eaf0f3; border-radius: 11px; border-top-color: #9baebc; padding: 7px; }
.tie { border-color: #d5dfe6; }
.tie summary { min-height: 44px; }
.moreTies>summary { min-height: 36px; display: flex; align-items: center; }
#modal h2 { letter-spacing: -.8px; }
#modal .fact i { background: #edf2f5; color: var(--accent); }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); }
  .bar { height: 58px; }
  .bar .brand { font-size: clamp(16px,4.7vw,20px); gap: 7px; }
  .bar .brand img { width: 31px; }
  .bar .picker { max-width: 40%; }
  .content { padding-top: 12px; }
  #hero.featuredMatch { padding: 10px 12px; border-radius: 15px; }
  #hero.featuredMatch .fixtureLine { gap: 6px; grid-template-columns: 27px 24px minmax(0,1fr); }
  #hero.featuredMatch .fixtureLine>img { width: 24px; }
  #hero.featuredMatch .lineOne>b { font-size: 16px; }
  .fixtureLine { padding: 5px 8px; min-height: 44px; }
  #modal { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 100%; max-height: 82dvh; overflow: auto; border-radius: 24px 24px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
  #modal::before { content: ''; display: block; width: 34px; height: 4px; border-radius: 9px; margin: -7px auto 13px; background: #ced7df; }
}
@media (prefers-reduced-motion:no-preference) {
  .fixtureLine, .appTabs button { transition: background-color .16s ease; }
  #modal[open], #sideMenu[open] { animation: reveal .16s ease-out; }
  @keyframes reveal { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

#sideMenu [hidden] { display: none; }
#openGuide { margin-top: 8px; border-top: 1px solid #d8e1e9; border-radius: 0; }
#installGuide { padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
#installGuide button, #guidePlatform { min-height: 44px; font: inherit; }
#backGuide { border: 0; background: transparent; color: #244f70; padding: 0 4px; cursor: pointer; }
#guideTitle { font-size: 22px; line-height: 1.15; margin: 10px 0 20px; }
#installGuide label { display: block; margin-bottom: 5px; font-size: 13px; }
#guidePlatform, #installNow { width: 100%; padding: 8px 12px; border-radius: 12px; }
#guidePlatform { background: white; color: #193f61; border: 1px solid #bdcad5; }
#installGuide ol { padding-left: 23px; line-height: 1.45; font-size: 15px; }
#installGuide li { margin: 12px 0; padding-left: 2px; }
#installGuide li::marker { color: #41617a; font-weight: 650; }
#installGuide li .ico { width: 1em; height: 1em; vertical-align: -.12em; }
#installNow { background: #193f61; color: white; border: 0; cursor: pointer; }

#dayList .dailyRows article { grid-template-columns: 3.6rem minmax(0,1fr); gap: 8px; padding: 8px 10px; }
#dayList .dailyTeams { line-height: 1.3; overflow-wrap: anywhere; }
#dayList .dayScore { display: inline-block; white-space: nowrap; padding: 0 5px; border-radius: 4px; background: #eef2f6; color: #17314b; font-variant-numeric: tabular-nums; }
#dayList .dayLive { color: #16654d; font-weight: 650; }

.dayHeading { align-items: center; flex-wrap: wrap; }
.dayHeading h2 { margin: 0 0 2px; }
#dayView { max-width: 100%; min-height: 44px; padding: 0 10px; font: 600 14px system-ui; color: #193f61; background-color: #f5f7fa; border: 1px solid var(--edge); border-radius: 12px; }
