/* Original Sunday match-details composition: Figma 519:10559.
   Native controls, data, visibility classes and scroll behaviour remain intact. */
@layer club-shared {
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog {
    width:min(calc(100vw - 24px),720px)!important;
    max-width:720px!important;
    padding:0!important;
    border:1px solid var(--sh-line)!important;
    border-radius:24px!important;
    background:var(--sh-canvas)!important;
    box-shadow:0 20px 44px rgba(0,0,0,.55)!important;
    isolation:isolate;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog::before {
    display:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-detail-shell {
    gap:0!important;
    background:transparent!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .modal-heading {
    min-height:64px!important;
    box-sizing:border-box!important;
    padding:10px 20px!important;
    border:0!important;
    background:linear-gradient(rgba(5,8,6,.78),rgba(5,8,6,.5)),url("graphics/pitch-portrait.webp") center top/cover no-repeat!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .modal-heading h3 {
    font:700 0.6875rem/1.4 Inter,system-ui,sans-serif!important;
    color:#fff!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .modal-heading button {
    width:80px!important;
    min-height:44px!important;
    font:700 0.8125rem/1.4 Inter,system-ui,sans-serif!important;
    color:#fff!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .modal-heading button::before {
    content:"Close ";
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-scroll {
    display:block!important;
    padding:0!important;
    background:linear-gradient(color-mix(in srgb,var(--sh-canvas) 86%,transparent),color-mix(in srgb,var(--sh-canvas) 86%,transparent)),url("graphics/fabric.webp") center top/700px auto!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-match-confirmed-bar {
    margin:0 20px!important;
    min-height:0!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus {
    --dialog-own:125px;
    --dialog-opponent:111px;
    --dialog-scale:1;
    position:relative!important;
    display:block!important;
    box-sizing:border-box!important;
    padding:23px 24px 44px!important;
    margin:0!important;
    min-height:501px!important;
    overflow:clip!important;
    background:linear-gradient(180deg,rgba(5,8,6,.5),transparent 28%,transparent 58%,#111715 100%),url("graphics/pitch-portrait.webp") center 34%/cover no-repeat!important;
    color:#fff!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-row {
    display:block!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-row+.sunday-dialog-row {
    margin-top:28px!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-fixture-labels {
    display:grid;
    gap:8px;
    min-width:0;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-fixture-labels .canonical-v11-label {
    display:block!important;
    font:700 0.6875rem/1.4 Inter,system-ui,sans-serif!important;
    color:#fff!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-date {
    font:600 0.8125rem/1.4 Inter,system-ui,sans-serif!important;
    color:#fff!important;
    text-shadow:0 1px 4px rgba(0,0,0,.9);
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr)!important;
    grid-template-rows:190px auto auto!important;
    align-items:start!important;
    gap:0!important;
    position:relative;
    margin-top:10px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities::before {
    content:"";
    position:absolute;
    pointer-events:none;
    inset:45px -15px auto;
    height:200px;
    background:url("graphics/fixture/green-reflection.svg") center/auto no-repeat;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities::after {
    content:"";
    position:absolute;
    pointer-events:none;
    top:147px;
    left:calc(50% - 157.5px);
    width:315px;
    height:85px;
    background:url("graphics/fixture/ground-shadow.svg") center/auto no-repeat;
    z-index:0;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities>.canonical-v11-side {
    display:contents!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities .canonical-v11-badge {
    position:relative!important;
    grid-row:1!important;
    justify-self:center;
    z-index:1;
    display:block!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    filter:none!important;
    overflow:visible!important;
    min-width:0!important;
    max-width:none!important;
    max-height:none!important;
    flex:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .canonical-v11-side:first-child .canonical-v11-badge { grid-column:1!important; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .canonical-v11-side:last-child .canonical-v11-badge { grid-column:3!important; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-own .canonical-v11-badge {
    width:var(--dialog-own)!important;
    height:var(--dialog-own)!important;
    margin-top:0!important;
    transform:rotate(-8deg) scale(var(--dialog-scale))!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-opponent .canonical-v11-badge {
    width:var(--dialog-opponent)!important;
    height:var(--dialog-opponent)!important;
    margin-top:45px!important;
    transform:rotate(7deg) scale(var(--dialog-scale))!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .canonical-v11-badge::before,
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .canonical-v11-badge::after {
    content:"";
    position:absolute;
    pointer-events:none;
    display:block;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-own .canonical-v11-badge::before {
    left:-33px;top:3px;width:174px;height:174px;
    background:url("graphics/fixture/own-rim.svg") 0 0/auto no-repeat;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-own .canonical-v11-badge::after {
    inset:0 auto auto 0;width:126px;height:126px;
    background:url("graphics/fixture/own-mount.svg") 0 0/auto no-repeat;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-opponent .canonical-v11-badge::before {
    left:-33px;top:3px;width:160px;height:160px;
    background:url("graphics/fixture/opponent-rim.svg") 0 0/auto no-repeat;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-opponent .canonical-v11-badge::after {
    inset:0 auto auto 0;width:112px;height:112px;
    background:url("graphics/fixture/opponent-mount.svg") 0 0/auto no-repeat;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .canonical-v11-badge :is(img,svg,.club-identity-badge,.club-badge-monogram) {
    position:absolute!important;
    z-index:2;
    inset:4.8%!important;
    width:90.4%!important;
    height:90.4%!important;
    max-width:none!important;
    max-height:none!important;
    padding:0!important;
    border:0!important;
    object-fit:contain!important;
    filter:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-opponent .canonical-v11-badge :is(img,svg,.club-identity-badge,.club-badge-monogram) {
    inset:6.3063%!important;
    width:87.3874%!important;
    height:87.3874%!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities .canonical-v11-v {
    grid-area:1 / 2!important;
    align-self:start!important;
    justify-self:center;
    margin-top:88px!important;
    font:700 1.9375rem/.98 var(--sh-display)!important;
    color:#fff!important;
    z-index:2;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-identities .canonical-v11-side>strong {
    grid-column:1/-1!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    text-align:left!important;
    color:#fff!important;
    z-index:2;
    overflow-wrap:anywhere;
    text-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-own>strong {
    grid-row:2!important;
    margin-top:24px!important;
    font:700 clamp(1.75rem,8.65vw,2.125rem)/.98 var(--sh-display)!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-opponent>strong {
    grid-row:3!important;
    margin-top:8px!important;
    font:600 1.125rem/1.4 Inter,system-ui,sans-serif!important;
    text-transform:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-timing {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:20px;
    margin-top:47px;
    min-width:0;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-kickoff {
    font:700 3.5625rem/.98 var(--sh-display)!important;
    color:#fff!important;
    min-width:0;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-time-context {
    display:grid;
    gap:6px;
    min-width:0;
    font:500 0.75rem/1.4 Inter,system-ui,sans-serif;
    color:rgba(255,255,255,.67);
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-time-label {
    font:700 0.6875rem/1.4 Inter,system-ui,sans-serif;
    color:#fff;
    text-transform:uppercase;
  }
  /* Keep the full canonical timestamp and calendar's native eligibility. */
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .fixture-date-copy {
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;overflow:hidden!important;
    clip-path:inset(50%);white-space:nowrap;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-match-grid {
    margin:0!important;padding:0 20px!important;min-height:0!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-match-grid>div {
    min-height:0!important;padding:0!important;border:0!important;background:transparent!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog :is(.next-fixture-venue,.fixture-confirmation-editor,.selkent-task-guide,.fixture-map-preview,.match-availability) {
    margin:0 20px 14px!important;
    min-width:0;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-venue {
    padding:0 0 14px!important;
    border:0!important;
    border-bottom:1px solid var(--sh-line)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-venue>div { gap:5px!important; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-venue>div>span {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-ground {
    font:600 0.875rem/1.4 Inter,system-ui,sans-serif!important;color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-address {
    font:400 0.75rem/1.4 Inter,system-ui,sans-serif!important;color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .fixture-map-preview {
    border-radius:10px!important;overflow:hidden;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .fixture-map-preview iframe { height:140px!important; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .match-availability {
    padding:20px 0!important;border:0!important;background:transparent!important;
    border-radius:0!important;box-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .match-availability-head {
    gap:16px!important;align-items:start!important;flex-wrap:wrap;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .match-availability-head>strong {
    flex:1 0 100%;font:700 1.375rem/1.2 Inter,system-ui,sans-serif!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-count {
    display:flex;align-items:center;gap:14px;
    background:transparent!important;border:0!important;padding:0!important;
    color:var(--sh-copy)!important;font:500 0.8125rem/1.4 Inter,system-ui,sans-serif!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-response-number {
    font:400 3.0rem/1.08 var(--sh-heading,Anton),sans-serif!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-summary-group {
    border:0!important;border-bottom:1px solid var(--sh-line)!important;
    border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-summary-group>summary {
    font:700 0.75rem/1.4 Inter,system-ui,sans-serif!important;min-height:48px!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-player-row {
    min-height:60px!important;box-sizing:border-box;padding:8px 12px!important;
    border:1px solid var(--sh-line)!important;border-radius:8px!important;
    background:var(--sh-action)!important;gap:12px!important;margin:0 0 8px!important;
    flex-wrap:wrap;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-player-row>span { flex:1 1 120px;min-width:0;overflow-wrap:anywhere; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .availability-player-row select { flex:1 1 152px;min-width:0;max-width:100%;min-height:44px!important; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-action-bar {
    padding:14px 20px max(14px,env(safe-area-inset-bottom))!important;
    gap:10px!important;background:var(--sh-canvas)!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-action-bar button {
    min-height:50px!important;font-size:13px!important;border-radius:10px!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-share {
    flex:1 1 160px!important;width:auto!important;
  }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-share svg { display:none; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-share::after { content:"Share details ↗"; }
  body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog .next-fixture-action-bar>button[data-close-dialog] {
    flex:1 0 100%;
  }
  @media(min-width:600px) {
    body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus { padding-inline:32px!important; }
  }
  @media(max-width:374px) {
    body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus { --dialog-scale:.84;padding-inline:20px!important; }
    body:not(.auth-open) #next-fixture-dialog.sunday-fixture-dialog #next-match-versus .sunday-dialog-timing { gap:12px;flex-wrap:wrap; }
  }
}
