* { box-sizing: border-box; }
body { margin: 0; background: #101b31; color: #fff; font: 1rem/1.5 system-ui, sans-serif; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cover {
  display: grid;
  grid-template-columns: clamp(12rem, 19vw, 18rem) minmax(0, 1fr) clamp(12rem, 19vw, 18rem);
  align-items: start;
  width: min(110rem, 100%);
  margin-inline: auto;
  padding: .65rem .65rem 0;
  gap: .55rem;
}
.cover a { display: block; max-width: 100%; }
.cover-poster { min-width: 0; width: 100%; }
.cover-poster img { display: block; width: 100%; height: auto; }
.cover-sidebar { width: 100%; display: grid; gap: 1rem; }
.cover-panel { color: #142440; background: #fff; border-radius: .75rem; overflow: hidden; border: 1px solid #dce3ed; }
.cover-panel h2 { margin: 0; padding: .6rem .75rem; font-size: 1.05rem; border-bottom: 1px solid #e2e7ef; }
.cover-news a { padding: .7rem 1rem; color: #8b1c37; font-weight: 700; text-underline-offset: .18em; }
.cover-panel :focus-visible { outline-color: #8b1c37; outline-offset: -2px; }
.cover-ephemeride h2 { border-top: .23rem solid #b62944; }
.ephemeride-day { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 1rem; background: #f1f4f8; font-weight: 750; }
.ephemeride-day[hidden] { display: none; }
.ephemeride-day button, .ephemeride-today { color: #8b1c37; background: white; border: 1px solid #c9d1de; border-radius: .4rem; font: inherit; cursor: pointer; }
.ephemeride-day button { min-width: 2.25rem; min-height: 2.25rem; font-size: 1.3rem; line-height: 1; }
.ephemeride-events { padding: 0 1rem; max-height: 23rem; overflow: auto; }
.ephemeride-events h3 { font-size: .9rem; margin: .8rem 0 .2rem; color: #8b1c37; }
.ephemeride-events ul { list-style: none; padding: 0; margin: 0 0 .75rem; }
.ephemeride-events li { padding: .3rem 0; border-bottom: 1px solid #e2e7ef; }
.ephemeride-events a { color: inherit; font-weight: 650; text-decoration-color: #9ba9bf; text-underline-offset: .15em; }
.ephemeride-events small { display: block; color: #4e5d72; }
.ephemeride-today { margin: .6rem 1rem .85rem; padding: .3rem .6rem; font-size: .85rem; }
.cover-left { align-self: start; }
.cover-fixtures h2 { border-top: .23rem solid #b62944; }
.cover-fixtures ol, .cover-club-news ul { list-style: none; padding: 0; margin: 0; }
.cover-fixtures li { border-bottom: 1px solid #dce3ed; }
.cover-fixtures li a { color: #142440; text-decoration: none; }
.cover-fixtures li a:hover { background: #f8f3f6; }
.cover-fixtures p { padding-inline: 1rem; }
.cover-pairing { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .45rem; align-items: start; padding: .55rem .4rem; text-align: center; }
.cover-pairing > span { display: grid; justify-items: center; gap: .3rem; font-weight: 750; font-size: .86rem; line-height: 1.2; overflow-wrap: anywhere; }
.cover-pairing > b { align-self: center; color: #8b1c37; }
.cover-pairing img { display: block; width: 2.1rem; height: 2.1rem; object-fit: contain; }
.cover-fixture-date { display: block; background: #f1f4f8; padding: .35rem .55rem; font-size: .76rem; text-align: center; }
.cover-fixture-date time { font-weight: 700; }
.cover-club-news li { padding: .55rem 1rem; border-bottom: 1px solid #e2e7ef; }
.cover-club-news li time { color: #526078; font-size: .77rem; }
.cover-club-news li a { font-weight: 650; color: #142440; text-underline-offset: .15em; }
.cover-panel-footer { padding: .65rem 1rem; color: #8b1c37; font-weight: 700; font-size: .86rem; }
@media (min-width: 951px) {
  body { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .cover {
    grid-template-rows: minmax(0, 1fr);
    --side-width: clamp(12rem, 19vw, 18rem);
    width: min(100%, calc((100dvh - 4rem) * .707 + 2 * var(--side-width) + 2.4rem));
    padding-bottom: .65rem;
  }
  .cover-poster { align-self: stretch; min-height: 0; }
  .cover-poster img { height: 100%; object-fit: contain; object-position: center top; }
}
@media (max-width: 950px) {
  .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cover-poster { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cover-sidebar, .cover-poster { grid-row: auto; }
  .cover-poster { order: 3; }
}
