#bmbrc-schedule, #schedule-h2h {
        --yellow: #feed00;
        --yellow-soft: rgba(254, 237, 0, 0.12);
        --page-bg:
          radial-gradient(
            circle at top left,
            rgba(254, 237, 0, 0.22),
            transparent 34%
          ),
          linear-gradient(180deg, #fffbe0 0%, #fff 100%);
        --panel-bg: rgba(255, 255, 255, 0.96);
        --card-bg: #fff;
        --text: #080808;
        --muted: rgba(0, 0, 0, 0.62);
        --border: rgba(0, 0, 0, 0.14);
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
      }
body.dark #bmbrc-schedule, body.dark #schedule-h2h {
        --page-bg:
          radial-gradient(
            circle at top left,
            rgba(254, 237, 0, 0.14),
            transparent 34%
          ),
          linear-gradient(180deg, #000 0%, #111 100%);
        --panel-bg: rgba(21, 21, 21, 0.95);
        --card-bg: #151515;
        --text: #feed00;
        --muted: rgba(254, 237, 0, 0.72);
        --border: rgba(254, 237, 0, 0.22);
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
      }
:where(#bmbrc-schedule) * {
        box-sizing: border-box;
      }
#bmbrc-schedule {
        margin: 0;
        font-family: Montserrat, sans-serif;
        color: var(--text);
        background: var(--page-bg);
        min-height: 100vh;
      }
:where(#bmbrc-schedule) .rozpis-page {
        padding: 42px 18px 70px;
      }
:where(#bmbrc-schedule) .shell {
        max-width: 1180px;
        margin: 0 auto;
      }
:where(#bmbrc-schedule) .topbar, :where(#bmbrc-schedule) .panel {
        background: var(--panel-bg);
        border: 1px solid var(--border);
        border-radius: 28px;
        box-shadow: var(--shadow);
      }
:where(#bmbrc-schedule) .topbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 18px;
        padding: 24px 20px 22px;
        text-align: center;
      }
:where(#bmbrc-schedule) .panel {
        padding: 24px;
      }
:where(#bmbrc-schedule) h1, :where(#bmbrc-schedule) h2, :where(#bmbrc-schedule) h3 {
        margin: 0;
        line-height: 1.1;
        font-weight: 900;
      }
:where(#bmbrc-schedule) h1 {
        font-size: clamp(28px, 4vw, 44px);
      }
:where(#bmbrc-schedule) .text {
        color: var(--muted);
        line-height: 1.65;
        font-size: 14px;
        margin: 0;
      }
:where(#bmbrc-schedule) .toolbar {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
      }
:where(#bmbrc-schedule) .btn {
        min-height: 44px;
        padding: 11px 18px;
        border-radius: 999px;
        border: 1px solid var(--border) !important;
        background: rgba(255, 255, 255, 0.72) !important;
        color: var(--text) !important;
        font-weight: 900;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
        transition:
          transform 0.18s ease,
          background 0.18s ease,
          box-shadow 0.18s ease;
      }
body.dark :where(#bmbrc-schedule) .btn {
        background: rgba(255, 255, 255, 0.08) !important;
        color: rgba(235, 235, 235, 0.72) !important;
      }
:where(#bmbrc-schedule) .btn:hover {
        transform: translateY(-2px);
      }
:where(#bmbrc-schedule) .btn.is-active {
        background: var(--yellow) !important;
        color: #050505 !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 14px 30px rgba(254, 237, 0, 0.28);
      }
:where(#bmbrc-schedule) .match-grid {
        display: grid;
        gap: 14px;
      }
:where(#bmbrc-schedule) .match-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr) minmax(220px, 0.55fr) auto;
        gap: 18px;
        align-items: center;
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: var(--card-bg);
      }
:where(#bmbrc-schedule) .date-box {
        display: grid;
        place-items: center;
        min-height: 92px;
        border-radius: 22px;
        background: var(--yellow);
        color: #050505;
        text-align: center;
        padding: 12px;
      }
:where(#bmbrc-schedule) .date-day {
        font-size: 34px;
        font-weight: 900;
        line-height: 1;
      }
:where(#bmbrc-schedule) .date-suffix {
        font-size: 0.34em;
        line-height: 0;
        vertical-align: super;
        margin-left: 1px;
        position: relative;
        top: -0.18em;
      }
:where(#bmbrc-schedule) .date-month {
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 5px;
      }
:where(#bmbrc-schedule) .match-info {
        min-width: 0;
      }
:where(#bmbrc-schedule) .competition {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 5px 10px;
        border-radius: 999px;
        background: var(--yellow-soft);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 10px;
      }
:where(#bmbrc-schedule) .countdown-note {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        margin-left: 8px;
        margin-bottom: 10px;
        padding: 5px 11px;
        border-radius: 999px;
        background: var(--yellow);
        color: #050505;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.02em;
      }
:where(#bmbrc-schedule) .match-title {
        font-size: clamp(18px, 2.4vw, 26px);
        font-weight: 900;
        margin-bottom: 8px;
        color: var(--text);
      }
:where(#bmbrc-schedule) .meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.45;
      }
:where(#bmbrc-schedule) .opponent-card {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
        padding: 10px 4px;
      }
:where(#bmbrc-schedule) .club-logo {
        width: 74px;
        height: 74px;
        object-fit: contain;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        flex-shrink: 0;
      }
:where(#bmbrc-schedule) .opponent-label {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 4px;
      }
:where(#bmbrc-schedule) .opponent-name {
        display: block;
        color: var(--text);
        font-size: clamp(18px, 2.2vw, 28px);
        font-weight: 900;
        line-height: 1.12;
        overflow-wrap: anywhere;
      }
:where(#bmbrc-schedule) .time-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 86px;
        min-height: 44px;
        padding: 8px 14px;
        border-radius: 999px;
        background: #080808;
        color: var(--yellow);
        font-size: 18px;
        font-weight: 900;
      }
body.dark :where(#bmbrc-schedule) .time-pill {
        background: var(--yellow);
        color: #050505;
      }
:where(#bmbrc-schedule) .empty-state {
        padding: 26px;
        color: var(--muted);
        line-height: 1.65;
      }
      @media (max-width: 940px) {
:where(#bmbrc-schedule) .match-card {
          grid-template-columns: 92px 1fr auto;
        }
:where(#bmbrc-schedule) .opponent-card {
          grid-column: 2 / -1;
          padding-top: 0;
        }
      }
      @media (max-width: 760px) {
:where(#bmbrc-schedule) .rozpis-page {
          padding: 32px 10px 50px;
        }
:where(#bmbrc-schedule) .panel {
          padding: 16px;
        }
:where(#bmbrc-schedule) .match-card {
          grid-template-columns: 72px minmax(0, 1fr);
          gap: 12px;
          align-items: start;
          padding: 16px;
        }
:where(#bmbrc-schedule) .date-box {
          min-height: 72px;
          padding: 8px;
          border-radius: 18px;
        }
:where(#bmbrc-schedule) .date-day {
          font-size: 24px;
        }
:where(#bmbrc-schedule) .date-month {
          font-size: 10px;
        }
:where(#bmbrc-schedule) .match-info {
          min-width: 0;
          width: 100%;
        }
:where(#bmbrc-schedule) .match-title {
          font-size: 18px;
          line-height: 1.2;
        }
:where(#bmbrc-schedule) .meta {
          gap: 4px 10px;
          font-size: 12px;
        }
:where(#bmbrc-schedule) .opponent-card {
          grid-column: 1 / -1;
          padding-top: 2px;
        }
:where(#bmbrc-schedule) .club-logo {
          width: 58px;
          height: 58px;
        }
:where(#bmbrc-schedule) .opponent-name {
          font-size: 20px;
        }
:where(#bmbrc-schedule) .time-pill {
          grid-column: 1 / -1;
          width: 100%;
          min-height: 40px;
          font-size: 16px;
        }
      }

      @media (max-width: 440px) {
:where(#bmbrc-schedule) .match-card {
          grid-template-columns: 64px minmax(0, 1fr);
          gap: 10px;
          padding: 14px;
        }
:where(#bmbrc-schedule) .date-box {
          min-height: 64px;
          padding: 6px;
        }
:where(#bmbrc-schedule) .date-day {
          font-size: 21px;
        }
:where(#bmbrc-schedule) .date-month {
          font-size: 9px;
        }
:where(#bmbrc-schedule) .match-title {
          font-size: 16px;
        }
:where(#bmbrc-schedule) .meta {
          flex-direction: column;
          align-items: flex-start;
          gap: 2px;
        }
:where(#bmbrc-schedule) .opponent-card {
          gap: 12px;
        }
:where(#bmbrc-schedule) .club-logo {
          width: 52px;
          height: 52px;
        }
:where(#bmbrc-schedule) .opponent-name {
          font-size: 18px;
        }
:where(#bmbrc-schedule) .time-pill {
          font-size: 15px;
        }
      }
:where(#bmbrc-schedule) .rozpis-page .h2h-button, #schedule-h2h .h2h-close {
        border: 1px solid var(--border) !important;
        background: var(--yellow) !important;
        color: #080808 !important;
        font:
          900 13px Montserrat,
          sans-serif;
        border-radius: 999px;
        padding: 9px 15px;
        min-height: 40px;
        cursor: pointer;
      }
:where(#bmbrc-schedule) .rozpis-page .h2h-button {
        margin-top: 10px;
      }
:where(#bmbrc-schedule) .rozpis-page .h2h-button:hover, #schedule-h2h .h2h-close:hover {
        background: #e9da00 !important;
        color: #080808 !important;
      }
:where(#bmbrc-schedule) .rozpis-page .h2h-button:focus-visible, #schedule-h2h button:focus-visible, #schedule-h2h select:focus-visible {
        outline: 3px solid var(--text);
        outline-offset: 3px;
      }
#schedule-h2h[hidden] {
        display: none !important;
      }
#schedule-h2h {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(0, 0, 0, 0.78);
        font-family: Montserrat, sans-serif;
        color: var(--text);
      }
#schedule-h2h .h2h-dialog {
        width: 100%;
        max-width: 840px;
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 26px;
        border: 1px solid var(--border);
        border-radius: 26px;
        background: var(--card-bg);
        box-shadow: var(--shadow);
      }
#schedule-h2h .h2h-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 22px;
      }
#schedule-h2h h2 {
        font-size: clamp(20px, 3vw, 28px);
        color: var(--text);
        margin: 0;
      }
#schedule-h2h .h2h-close {
        flex-shrink: 0;
        font-size: 24px;
        line-height: 1;
        width: 44px;
        height: 44px;
        padding: 0;
      }
#schedule-h2h .h2h-teams {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 18px;
        margin-bottom: 24px;
        text-align: center;
      }
#schedule-h2h .h2h-team {
        min-width: 0;
        font-weight: 900;
        overflow-wrap: anywhere;
      }
#schedule-h2h .h2h-team img {
        display: block;
        width: 76px;
        height: 76px;
        object-fit: contain;
        margin: 0 auto 10px;
      }
#schedule-h2h .h2h-vs {
        font-weight: 900;
        color: var(--muted);
      }
#schedule-h2h .h2h-filter {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
        font-weight: 800;
        font-size: 13px;
      }
#schedule-h2h select {
        min-height: 44px;
        max-width: 100%;
        flex: 1;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--card-bg);
        color: var(--text);
        padding: 10px 12px;
        font:
          700 14px Montserrat,
          sans-serif;
      }
#schedule-h2h .h2h-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
      }
#schedule-h2h .h2h-stat {
        padding: 17px 10px;
        border: 1px solid var(--border);
        border-radius: 18px;
        text-align: center;
        background: var(--yellow-soft);
      }
#schedule-h2h .h2h-stat strong {
        display: block;
        color: var(--text);
        font-size: clamp(19px, 3vw, 26px);
        font-weight: 900;
        overflow-wrap: anywhere;
      }
#schedule-h2h .h2h-stat span {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.5;
        margin-top: 6px;
      }
#schedule-h2h h3 {
        font-size: 17px;
        color: var(--text);
        margin: 24px 0 12px;
      }
#schedule-h2h .h2h-result {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
      }
#schedule-h2h .h2h-result span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
      }
#schedule-h2h .h2h-result strong {
        color: var(--text);
        font-size: 20px;
        white-space: nowrap;
      }
#schedule-h2h .h2h-message {
        color: var(--muted);
        padding: 16px 0;
        font-size: 14px;
        line-height: 1.6;
      }
      @media (max-width: 600px) {
#schedule-h2h {
          padding: 12px;
        }
#schedule-h2h .h2h-dialog {
          padding: 18px;
          border-radius: 20px;
          max-height: 94vh;
          max-height: 94dvh;
        }
#schedule-h2h .h2h-stats {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 10px;
        }
#schedule-h2h .h2h-teams {
          gap: 10px;
          font-size: 13px;
        }
#schedule-h2h .h2h-team img {
          width: 62px;
          height: 62px;
        }
      }
:where(#bmbrc-schedule) .rozpis-page .competition.has-competition-logo { gap: 8px; max-width: 100%; min-width: 0; vertical-align: middle; text-align: left; }
:where(#bmbrc-schedule) .rozpis-page .competition-logo { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
:where(#bmbrc-schedule) .rozpis-page .competition.has-competition-logo span { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
      @media (max-width: 760px) {
:where(#bmbrc-schedule) .rozpis-page .competition-logo { width: 28px; height: 28px; flex-basis: 28px; } }

      @media (max-width: 760px) {
:where(#bmbrc-schedule) .rozpis-page .match-info { display: contents; }
:where(#bmbrc-schedule) .rozpis-page .match-heading { grid-column: 2; grid-row: 1; min-width: 0; text-align: center; align-self: center; }
:where(#bmbrc-schedule) .rozpis-page .date-box { grid-column: 1; grid-row: 1; }
:where(#bmbrc-schedule) .rozpis-page .match-context { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: safe center; gap: 10px; min-width: 0; white-space: nowrap; overflow-x: auto; }
:where(#bmbrc-schedule) .rozpis-page .match-context .match-title { flex: 0 0 auto; margin-bottom: 0; }
:where(#bmbrc-schedule) .rozpis-page .match-context .meta { flex: 0 0 auto; flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 10px; text-align: center; }
:where(#bmbrc-schedule) .rozpis-page .match-context .meta span { white-space: nowrap; }
:where(#bmbrc-schedule) .rozpis-page .opponent-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-content: center; align-items: center; width: 100%; min-height: 100px; }
:where(#bmbrc-schedule) .rozpis-page .opponent-details { display: contents; }
:where(#bmbrc-schedule) .rozpis-page .opponent-card .club-logo { grid-column: 1; grid-row: 1 / 3; justify-self: center; transform: scale(1.35); transform-origin: center bottom; }
:where(#bmbrc-schedule) .rozpis-page .opponent-label { grid-column: 2; grid-row: 1; margin: 0; text-align: center; align-self: end; }
:where(#bmbrc-schedule) .rozpis-page .opponent-name { grid-column: 2; grid-row: 2; text-align: center; align-self: start; }
:where(#bmbrc-schedule) .rozpis-page .opponent-card .h2h-button { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 9px 12px; justify-self: end; }
      }
      @media (max-width: 440px) {
:where(#bmbrc-schedule) .rozpis-page .opponent-card { grid-template-columns: 68px minmax(0, 1fr) auto; column-gap: 8px; }
:where(#bmbrc-schedule) .rozpis-page .opponent-name { font-size: 16px; line-height: 1.2; }
      }
#schedule-h2h .h2h-result-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
#schedule-h2h .h2h-video-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--border) !important; border-radius: 10px; background: var(--yellow) !important; color: #050505 !important; font: 800 11px Montserrat, sans-serif; cursor: pointer; white-space: nowrap; }
#schedule-h2h .h2h-video-button svg { width: 16px; height: 16px; }
#schedule-video[hidden] { display: none !important; }
#schedule-video { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.88); }
#schedule-video .video-dialog { width: min(100%, 960px); position: relative; padding-top: 48px; }
#schedule-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 100px); border: 0; background: #000; border-radius: 12px; }
#schedule-video-close { position: absolute; right: 0; top: 0; width: 38px; height: 38px; padding: 0; border: 0 !important; border-radius: 50%; background: #ffe100 !important; color: #050505 !important; font-size: 24px; cursor: pointer; }
#schedule-video-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
      @media (max-width: 440px) {
#schedule-h2h .h2h-result { gap: 8px; }
#schedule-h2h .h2h-result-actions { gap: 7px; } }
    
#schedule-h2h *, #schedule-video * { box-sizing: border-box; }

/* Keep the original title font when Elementor applies global heading styles. */
#bmbrc-schedule .topbar h1 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 900 !important;
}
