@layer mobile-tab-contract {
/* Shared mobile tab contract: one visible row, no horizontal scrolling. */
@media(max-width:700px){
 html body :is([role="tablist"],.profile-tabs,.section-switcher,.history-switcher,.home-league-tabs,.lineup-team-switcher,.match-center-switcher,.match-centre-tabs,.national-view-switcher,.news-category-switcher,.prediction-subtabs,.spfl-split-tabs,.spfl-table-split-tabs,.spfl-table-stage-tabs,.table-tabs){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:3px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;box-sizing:border-box;padding-inline:0!important}
 html body :is([role="tablist"],.profile-tabs,.section-switcher,.history-switcher,.home-league-tabs,.lineup-team-switcher,.match-center-switcher,.match-centre-tabs,.national-view-switcher,.news-category-switcher,.prediction-subtabs,.spfl-split-tabs,.spfl-table-split-tabs,.spfl-table-stage-tabs,.table-tabs)>:is(button,a,[role="tab"]){flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:44px;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;letter-spacing:0!important;padding:9px 3px!important;font-size:clamp(8px,2.25vw,13px)!important;line-height:1.2!important;text-align:center;box-sizing:border-box}
 html body .profile-tabs{gap:3px!important}html body .profile-tabs>button{font-family:Inter,sans-serif!important;font-size:clamp(8px,2.15vw,12px)!important}
}
.club-competition-frame{background:transparent;color-scheme:inherit}
.club-frame-status{padding:16px;margin:0;background:var(--sfp-card,#f1f5fa);color:inherit}
html[data-supporter-theme="dark"] .club-frame-status{background:#10213b}

@media(max-width:700px){html body [role=tablist][hidden],html body .section-switcher[hidden],html body .spfl-split-tabs[hidden]{display:none!important}}
html.club-competition-embed,html.club-competition-embed body,html.club-competition-embed main,html.club-competition-embed .page-section,html.club-competition-embed #spfl{min-height:0!important;height:auto!important}
html.club-competition-embed .page-hero,html.club-competition-embed body .spfl-view-switcher{display:none!important}

}

@layer mobile-tab-contract {
 .standalone-header{flex-wrap:nowrap!important;align-items:center!important}
 .standalone-header .standalone-brand{flex:1 1 auto!important;min-width:0!important;margin-right:auto!important}
 .standalone-header .standalone-back{flex:0 0 auto!important;margin-left:auto!important;white-space:nowrap!important}
 html.club-competition-embed .news-ticker,html.club-competition-embed .section-cover-banner,html.club-competition-embed #spfl-status,html.club-competition-embed .spfl-table-matchday-nav,html.club-competition-embed .spfl-cup-groups>h2,html.club-competition-embed .spfl-cup-groups>.cup-format-note,html.club-competition-embed .spfl-cup-groups>.cup-qualification-key{display:none!important}
 html.club-competition-embed .spfl-table-controls{margin:0 0 14px!important;padding:0!important;background:transparent!important;box-shadow:none!important;grid-template-columns:minmax(0,1fr)!important}
 html.club-competition-embed .spfl-table-controls label{margin:0!important}
 html.club-competition-embed #spfl-table,html.club-competition-embed .spfl-cup-groups,html.club-competition-embed .spfl-bracket-card{padding:0!important;margin:0!important;box-shadow:none!important}
 .compact-horizontal{display:none!important}
 @media(max-width:700px){
  .main-nav.open{gap:0!important;row-gap:0!important;padding-block:0!important}
  .main-nav.open>a,.main-nav.open>.more-nav{margin-block:0!important}
  .standalone-header{gap:8px!important}.standalone-header .brand-name{font-size:clamp(12px,3.5vw,18px)!important}.standalone-header .brand-logo{width:42px!important;height:42px!important;flex:none}
  #spfl #spfl-table table th,#spfl #spfl-table table td{width:calc((62% - 44px)/8)!important}
  #spfl #spfl-table table:has(th:nth-child(12)) th,#spfl #spfl-table table:has(th:nth-child(12)) td{width:calc((62% - 44px)/9)!important}
  #spfl #spfl-table table th:first-child,#spfl #spfl-table table td:first-child{width:5%!important}
  #spfl #spfl-table table th:nth-child(2),#spfl #spfl-table table td:nth-child(2){width:33%!important}
  #spfl #spfl-table table th:last-child,#spfl #spfl-table table td:last-child{width:44px!important}
  .table-form,#spfl #spfl-table .table-form{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:1px!important;justify-content:center!important;min-width:39px!important;max-width:none!important}
  .table-form .table-form-dot,#spfl #spfl-table .table-form-dot{flex:0 0 7px!important;width:7px!important;min-width:7px!important;height:7px!important;font-size:6px!important;line-height:7px!important}
  .spfl-bracket-grid,.european-final-bracket{display:grid!important;grid-template-columns:repeat(var(--bracket-columns,4),minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:3px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important}
  .spfl-bracket-grid.is-mirrored:has(+.compact-horizontal){display:none!important}
  .spfl-bracket-round{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;padding:0!important}
  .spfl-bracket-round>h3{font:700 8px/1.3 Inter,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere;letter-spacing:0!important;min-height:30px!important;padding:3px!important}
  .spfl-bracket-round>div{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;justify-content:space-around!important;gap:12px!important;height:auto!important;min-width:0!important}
  .spfl-bracket-tie{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;padding:3px 2px!important;margin:0!important;box-shadow:none!important}
  .spfl-bracket-tie>span{display:grid!important;grid-template-columns:minmax(0,1fr) 12px!important;gap:2px!important;min-width:0!important;padding:3px 0!important}
  .spfl-bracket-tie>span>img{display:none!important}
  .spfl-bracket-tie>span>strong{font:700 8px/1.3 Inter,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important;min-width:0!important}
  .spfl-bracket-tie>span>b{font:800 10px/1.3 Inter,sans-serif!important;min-width:0!important}
  .spfl-bracket-tie time,.spfl-bracket-tie small,.spfl-bracket-tie summary,.spfl-bracket-tie em{font:6px/1.3 Inter,sans-serif!important;white-space:normal!important;overflow-wrap:anywhere!important}
 }
}

@layer mobile-tab-contract {
 .spfl-table-scroll td:nth-child(2),.spfl-table-scroll td:nth-child(2) :is(strong,a,button){word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;white-space:normal!important}
 @media(max-width:700px){
  .spfl-table-scroll table :is(th,td){width:calc(62%/8)!important}
  .spfl-table-scroll table:has(th:nth-child(11)) :is(th,td){width:calc((62% - 44px)/8)!important}
  .spfl-table-scroll table:has(th:nth-child(12)) :is(th,td){width:calc((62% - 44px)/9)!important}
  .spfl-table-scroll table :is(th,td):first-child{width:5%!important}
  .spfl-table-scroll table :is(th,td):nth-child(2){width:33%!important}
  .spfl-table-scroll table:has(th:nth-child(11)) :is(th,td):last-child{width:44px!important}
  .spfl-table-scroll .match-table-team{gap:2px!important}
  .spfl-table-scroll .match-table-team>img,.spfl-table-scroll .match-table-team>.club-logo-fallback{width:12px!important;height:12px!important;flex:0 0 12px!important;margin:0!important}
  .spfl-table-scroll .match-table-team .table-live-team{width:6px!important;height:6px!important;flex:0 0 6px!important;margin:0!important}
  .spfl-table-scroll td:nth-child(2) :is(strong,a,button){font-size:9px!important}
 }
 @media(max-width:360px){.spfl-table-scroll td:nth-child(2) :is(strong,a,button){font-size:8px!important}}
}

@layer mobile-tab-contract { @media(max-width:700px){
 #spfl #spfl-table table:has(th:nth-child(12)) :is(th,td):first-child{width:5%!important}
 #spfl #spfl-table table:has(th:nth-child(12)) :is(th,td):nth-child(2){width:33%!important}
 #spfl #spfl-table table:has(th:nth-child(12)) :is(th,td):last-child{width:44px!important}
 .spfl-table-scroll table:has(th:nth-child(11)) :is(th,td):first-child{width:5%!important}
 .spfl-table-scroll table:has(th:nth-child(11)) :is(th,td):nth-child(2){width:33%!important}
 .spfl-cup-group{padding-inline:0!important}.spfl-table-scroll th:nth-child(2){white-space:nowrap!important}
}}

@layer mobile-tab-contract{@media(max-width:700px){.main-nav{gap:0!important;transition:none!important}.main-nav.open>.more-nav-item{margin-block:0!important}}}

@layer mobile-tab-contract{
 html[data-supporter-theme=dark] :is(.spfl-bracket-card,.european-final-bracket){background:#10213b!important;color:#edf4ff!important}
 html[data-supporter-theme=dark] .spfl-bracket-tie{background:#172d49!important;color:#edf4ff!important;border-color:#526b87!important}
 html[data-supporter-theme=dark] .spfl-bracket-tie :is(strong,b,time,small,em,summary){color:#edf4ff!important}
 html[data-supporter-theme=dark] .spfl-bracket-card>header :is(p,span){color:#c7d7eb!important}
 html.club-competition-embed .spfl-bracket-card>header,html.club-competition-embed .spfl-bracket-section>.section-heading{display:none!important}
 @media(max-width:700px){
  .spfl-bracket-grid,.european-final-bracket{align-items:stretch!important}
  .spfl-bracket-tie{padding-inline:1px!important}
  .spfl-bracket-tie>span{grid-template-columns:minmax(0,1fr) 10px!important;gap:1px!important}
  .spfl-bracket-tie>span>strong{font-size:clamp(6.5px,1.9vw,8px)!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  .spfl-bracket-round:not(:last-child)>div:after,.spfl-bracket-round .spfl-bracket-tie:after,.spfl-bracket-round .spfl-bracket-tie:before{width:3px!important;right:-4px!important}
  .spfl-bracket-round .spfl-bracket-tie:before{left:-4px!important}
 }
}

@layer mobile-tab-contract{@media(max-width:700px){.spfl-bracket-tie .bracket-penalty-score[data-penalty]{font-size:0!important;white-space:nowrap!important}.spfl-bracket-tie .bracket-penalty-score[data-penalty]:after{content:"(" attr(data-penalty) ")";font:6px/1.3 Inter,sans-serif}}}
