/* User-requested navigation, independent panels and action feedback.
   Match's default desktop/phone composition remains in accepted-match.css. */
body{--header-height:88px;--panel-gap:24px}
body.page-match{--header-height:80px;--panel-gap:20px}
html{scroll-padding-top:100px}
.header,.page-match .header{position:sticky;top:0;z-index:8}
.rail,.accepted-rail{position:fixed;top:var(--header-height);height:calc(100dvh - var(--header-height));min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;z-index:7}
.rail nav{display:flex;flex-direction:column;gap:6px}
.rail .rail-switch{display:none}
.label-expanded{display:none}
.sidebar-expanded .rail .label-compact,.navigation-content .label-compact,.sidebar-expanded .rail .rail-casino,.navigation-content .rail-casino{display:none}
.sidebar-expanded .rail .label-expanded,.navigation-content .label-expanded{display:inline}
.rail-group-title,.rail-footnote{display:none}
.rail .rail-item{width:100%;flex-shrink:0;padding:8px 2px}
.rail .rail-divider{margin:10px 6px}
.rail .rail-bottom{margin-top:auto;padding-top:18px}
.rail-item:hover:not(:disabled){background:var(--raised);color:var(--aqua)}
body.sidebar-expanded:not(.page-match) .rail{width:220px;padding:20px 12px}
body.sidebar-expanded:not(.page-match) .layout{margin-left:220px}
.sidebar-expanded .rail .rail-switch,.navigation-content .rail-switch{display:flex;gap:0;margin-bottom:24px}
.rail-switch .button{flex:1;border-radius:0;padding:10px 8px}
.rail-switch .button:first-child{border-radius:8px 0 0 8px}
.rail-switch .button:last-child{border-radius:0 8px 8px 0}
.sidebar-expanded .rail .rail-item,.navigation-content .rail-item{flex-direction:row;justify-content:flex-start;gap:14px;padding:12px;min-height:46px;font-size:13px;text-align:left}
.sidebar-expanded .rail-group-title,.navigation-content .rail-group-title{display:block;font-size:10px;font-weight:700;letter-spacing:1px;color:var(--quiet);padding:0 12px;margin:0 0 10px}
.sidebar-expanded .rail-footnote,.navigation-content .rail-footnote{display:block;color:var(--quiet);font-size:10px;margin:16px 12px 0}
.match-rail-toggle{position:absolute;top:18px;right:4px;min-width:28px;min-height:28px;border:0;background:transparent;color:var(--muted);border-radius:4px;display:grid;place-items:center}
.match-rail-toggle:hover{color:var(--aqua);background:var(--raised)}
.accepted-rail .rail-heading:first-child{padding-right:14px;font-size:8px}
.accepted-rail-bottom{padding-top:32px;flex-shrink:0}
.extended-sports[hidden]{display:none}
.match-sidebar-collapsed .accepted-rail{width:72px;padding:52px 6px 20px}
.match-sidebar-collapsed .accepted-rail .rail-heading,.match-sidebar-collapsed .accepted-rail .rail-empty,.match-sidebar-collapsed .accepted-rail-bottom p{display:none}
.match-sidebar-collapsed .match-rail-toggle{top:14px;right:14px;width:44px}
.match-sidebar-collapsed .match-rail-item{font-size:9px;flex-direction:column;gap:5px;padding:8px 2px;text-align:center;line-height:14px;min-height:58px;position:relative}
.match-sidebar-collapsed .match-rail-item small{position:absolute;top:2px;right:3px;font-size:8px}
.match-sidebar-collapsed .accepted-rail .rail-divider{margin:12px 6px}
.page-match.match-sidebar-collapsed .layout{margin-left:72px}
.slip-column{top:calc(var(--header-height) + var(--panel-gap))}
.slip-column .slip{display:flex;flex-direction:column;overscroll-behavior-y:contain;max-height:calc(100dvh - var(--header-height) - var(--panel-gap) - 20px)}
.page-match .slip-column .slip,.page-match .slip-column .slip:has(.bet-record){min-height:min(708px,calc(100dvh - var(--header-height) - var(--panel-gap) - 20px))}
.slip-tabs{flex-shrink:0}
.slip-column .slip-content{overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;min-height:0}
.slip-content:focus-visible{outline:2px solid var(--aqua);outline-offset:-3px}
.slip-content,.navigation-content{scroll-padding-block:12px}
.slip-column .slip-content>.bet-record:last-child{margin-bottom:0}
main{container-type:inline-size}
@container(max-width:650px){
 .fixture{grid-template-columns:70px minmax(0,1fr) 24px;gap:10px}
 .fixture-info{grid-column:2;grid-row:1}
 .fixture-more{grid-column:3;grid-row:1}
 .fixture>.odds-row,.fixture>.suspended{grid-column:1/-1;grid-row:2}
 .competition-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .page-title{flex-wrap:wrap}
 .page-title .search{width:100%;max-width:none}
 .accepted-team{width:calc(50% - 80px);gap:5px 8px;grid-template-columns:30px minmax(0,1fr);left:12px}
 .accepted-team>.crest,.accepted-team>.initials,.accepted-team>.event-icon{width:30px;height:38px}
 .accepted-team h1{font-size:18px;line-height:22px}
 .team-away{left:auto;right:12px;grid-template-columns:minmax(0,1fr) 30px}
 .team-away h1{font-size:15px;line-height:20px}
 .accepted-score{min-width:124px;gap:10px}
 .accepted-score>strong{font-size:38px}
}
.follow-button svg{transform-origin:center;overflow:visible}
.follow-button.is-followed svg path{fill:currentColor}
.place-button{position:relative;isolation:isolate;overflow:hidden}
.place-button.is-placing:disabled{opacity:1;cursor:wait;animation:placement-glow 3s ease-in-out both;animation-delay:var(--placement-elapsed,0ms)}
.place-button.is-placing::before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(53,215,222,.35);transform-origin:left;animation:placement-fill 3s linear both;animation-delay:var(--placement-elapsed,0ms)}
.placement-progress{position:fixed;top:var(--header-height);left:0;right:0;height:3px;z-index:15;background:var(--aqua);transform-origin:left;animation:placement-fill 3s linear both;pointer-events:none}
.placement-status{position:fixed;right:24px;bottom:20px;z-index:15;border:1px solid var(--line);border-radius:8px;background:var(--shell);color:var(--aqua);padding:10px 16px;font-size:12px;box-shadow:0 8px 32px #0005;pointer-events:none}
.receipt .success{animation:receipt-in 360ms ease-out}
@keyframes placement-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes placement-glow{0%,100%{box-shadow:0 0 0 0 #b8f5ee00}40%,75%{box-shadow:0 0 16px 2px #b8f5ee66}}
@keyframes receipt-in{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}
.navigation-backdrop{justify-content:flex-start;align-items:stretch;padding:0}
.navigation-drawer{width:320px;max-width:calc(100vw - 36px);height:100dvh;max-height:none;border-radius:0 16px 16px 0;animation:drawer-in 180ms ease-out}
.navigation-drawer .dialog-header{border-bottom:1px solid var(--line);align-items:center}
.navigation-content{overflow:auto;overscroll-behavior:contain;padding:20px 16px;scrollbar-width:thin}
.navigation-content .rail-item{border:0;background:transparent;display:flex;width:100%;border-radius:8px;color:var(--muted)}
.navigation-content .rail-item.active{background:var(--blue);color:var(--aqua)}
.navigation-content .rail-item.rail-casino{display:none}
/* Live uses the same selected treatment in the rail, Home filters and drawer. */
button[data-action="sport"][data-id="live"].active{color:#ff656d;background:var(--red-bg);box-shadow:inset 0 0 0 1px #ff656d40}
button[data-action="sport"][data-id="live"].active>span{display:inline-flex;align-items:center;gap:6px}
button[data-action="sport"][data-id="live"].active>span>.live-active-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:currentColor;box-shadow:0 0 6px #ff656d66;animation:live-dot 1.6s ease-in-out infinite}
@keyframes live-dot{0%,100%{opacity:1}50%{opacity:.25}}
.navigation-content .rail-bottom{margin-top:24px}
@keyframes drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(min-width:1600px){body:not(.page-match){--panel-gap:28px}}
@media(max-width:1200px){body:not(.page-match){--panel-gap:20px}}
@media(min-width:651px) and (max-width:1050px){
 .rail,.accepted-rail{height:calc(100dvh - var(--header-height) - 66px)}
 .sidebar-expanded:not(.page-match) .phone-nav{left:220px}
 .sidebar-expanded:not(.page-match) .phone-selection{left:232px}
 .page-match.match-sidebar-collapsed .phone-nav{left:72px}
 .page-match.match-sidebar-collapsed .phone-selection{left:84px}
}
@media(max-width:1050px){.placement-status{bottom:calc(140px + env(safe-area-inset-bottom));right:12px;max-width:calc(100vw - 24px)}}
@media(max-width:650px){
 body{--header-height:66px}body.page-match{--header-height:64px}
 .header .menu-button{display:inline-flex;width:36px;min-height:40px;padding:7px;flex-shrink:0}
 .header:not(.accepted-header){gap:8px;padding:8px 12px}
 .header:not(.accepted-header) .logo{width:126px}
 .header:not(.accepted-header) .demo-pill{display:none}
 .header:not(.accepted-header) .header-actions{margin-left:auto}
 body.sidebar-expanded:not(.page-match) .layout,.page-match.match-sidebar-collapsed .layout{margin-left:0}
 .rail,.accepted-rail{display:none}
 .fixture{grid-template-columns:1fr auto;gap:8px}
 .fixture-info{grid-column:1/3;grid-row:1}
 .fixture>.odds-row,.fixture>.suspended{grid-column:1/3;grid-row:2}
 .competition-grid{grid-template-columns:1fr}
 .page-match .accepted-team{width:108px;left:10px;display:flex;gap:0}
 .page-match .accepted-team>.crest,.page-match .accepted-team>.initials,.page-match .accepted-team>.event-icon{width:36px;height:42px}
 .page-match .accepted-team h1{font-size:14px;line-height:18px}
 .page-match .team-away{left:auto;right:5px;width:104px}
 .page-match .team-away h1{font-size:13px}
 .page-match .accepted-score{min-width:115px;gap:15px}
 .page-match .accepted-score>strong{font-size:40px}
 .navigation-content{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
 .dialog .slip{overscroll-behavior-y:contain}
}
@media(prefers-reduced-motion:reduce){
 button[data-action="sport"][data-id="live"].active>span>.live-active-dot{animation:none;opacity:1}
 .place-button.is-placing,.place-button.is-placing::before,.placement-progress,.receipt .success,.navigation-drawer{animation:none!important}
 .placement-progress{transform:scaleX(1);opacity:.65}
 .place-button.is-placing::before{display:none}
}
