/* Schedule page layout repair: isolate feed sections from the generic .fixture-cards grid */
.schedule-hero-wide,
.schedule-page-intro {
  width: min(1480px, calc(100% - 48px)) !important;
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.schedule-hero-wide > .wrap { width: 100%; max-width: none; }
.schedule-page-intro { padding-top: 34px; padding-bottom: 48px; }
.schedule-page-intro > h2 { margin-top: 28px; }
#schedule-live-fixtures.fixture-cards {
  display: block !important;
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 18px 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#schedule-live-fixtures > .feed-head {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #2d4133;
  border-radius: 16px 16px 0 0;
  background: #101914;
  color: #f3f7f3;
  box-sizing: border-box;
}
#schedule-live-fixtures > .feed-head small { color: #bdcbbf; }
#schedule-live-fixtures > .fixture-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px 24px 12px;
  border-inline: 1px solid #dce4db;
  background: #f5f8f3;
}
#schedule-live-fixtures .fixture-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d5e0d2;
  border-radius: 999px;
  background: #fff;
  color: #173322;
  font: 800 .84rem/1.2 Inter, Arial, sans-serif;
  cursor: pointer;
}
#schedule-live-fixtures .fixture-tabs button.active { background: #c5f477; border-color: #c5f477; }
#schedule-live-fixtures > .fixture-tab-note {
  margin: 0;
  padding: 8px 24px 18px;
  border-inline: 1px solid #dce4db;
  background: #f5f8f3;
  color: #5c6b60;
  font-size: .9rem;
}
#schedule-live-fixtures > .schedule-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 22px;
  border: 1px solid #dce4db;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #f5f8f3;
  box-sizing: border-box;
}
#schedule-live-fixtures .schedule-match {
  display: flex;
  min-width: 0;
  min-height: 290px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #2d4133;
  border-radius: 14px;
  background: linear-gradient(145deg, #14251b, #0d1711);
  color: #f5f8f5;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
#schedule-live-fixtures .schedule-match h3 { margin: 8px 0 14px; color: #f7faf5; font-size: 1.2rem; line-height: 1.25; }
#schedule-live-fixtures .schedule-match p { margin: 8px 0; font-size: .86rem; line-height: 1.5; }
#schedule-live-fixtures .schedule-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: center; margin: 18px 0; }
#schedule-live-fixtures .schedule-team { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
#schedule-live-fixtures .schedule-team strong { color: #f5f8f2; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
#schedule-live-fixtures .schedule-crest { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #c5f477; color: #102016; font-size: .8rem; font-weight: 900; }
#schedule-live-fixtures .schedule-vs { color: #c5f477; font-weight: 900; }
#schedule-live-fixtures .schedule-date { color: #c5f477; font-size: .76rem; font-weight: 800; }
#schedule-live-fixtures .schedule-comp { color: #d3ded4; }
#schedule-live-fixtures .schedule-venue { color: #b8c7ba; }
#schedule-live-fixtures .schedule-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #34473a; }
#schedule-live-fixtures .schedule-foot strong { color: #c5f477; }
#schedule-live-fixtures .schedule-foot > span { color: #c5f477; font-size: .72rem; font-weight: 900; }
#schedule-live-fixtures .feed-empty { display: flex; gap: 12px; padding: 24px; border: 1px solid #dce4db; border-radius: 0 0 16px 16px; background: #f5f8f3; color: #173322; }
#schedule-live-fixtures .feed-empty strong { display: block; color: #173322; font-size: 1rem; }
#schedule-live-fixtures .feed-empty small { display: block; margin-top: 6px; color: #5c6b60; font-size: .9rem; }
#schedule-live-fixtures .source-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0 24px 20px; border: 1px solid #dce4db; border-top: 0; border-radius: 0 0 16px 16px; background: #f5f8f3; }
#schedule-live-fixtures .source-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border-radius: 6px; background: #142018; color: #c5f477; font-weight: 800; }
#schedule-live-fixtures > .small-note { margin: 0; padding: 14px 20px; color: #637168; font-size: .82rem; }
@media (max-width: 1000px) { #schedule-live-fixtures > .schedule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .schedule-hero-wide, .schedule-page-intro { width: calc(100% - 28px) !important; }
  .schedule-hero-wide .page-hero h1 { font-size: clamp(2.8rem, 13vw, 4.3rem); }
  #schedule-live-fixtures > .feed-head { align-items: flex-start; flex-direction: column; padding: 16px; }
  #schedule-live-fixtures > .fixture-tabs { padding: 14px 12px 8px; gap: 7px; }
  #schedule-live-fixtures .fixture-tabs button { min-height: 38px; padding: 9px 11px; font-size: .76rem; }
  #schedule-live-fixtures > .fixture-tab-note { padding: 8px 12px 14px; }
  #schedule-live-fixtures > .schedule-grid { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 12px; }
  #schedule-live-fixtures .schedule-match { min-height: 250px; padding: 18px; }
  #schedule-live-fixtures .source-actions { padding: 0 12px 14px; }
}

/* V29: restore the tinted matchday section and ensure badges render consistently */
.schedule-page-intro { background: #edf2e8; border-radius: 0 0 18px 18px; padding-left: clamp(18px, 3vw, 42px); padding-right: clamp(18px, 3vw, 42px); }
.schedule-page-intro + .schedule-page-intro { margin-top: 24px; border-radius: 18px; background: #e4ecdf; }
#schedule-live-fixtures .schedule-crest { overflow:hidden; border: 1px solid #a9d66f; }
#schedule-live-fixtures .schedule-crest img { display:block; width:100%; height:100%; object-fit:contain; padding:7px; box-sizing:border-box; }
