/* Same treatment as the match page and the panel: no Android tap flash on the
   cards. Scoped to the shelf so it cannot affect the rest of the landing page. */
.houseCatchupShelf button,
.houseCatchupShelf a,
.houseCatchupShelf [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

body.house-catchup-open {
  overflow: hidden;
}

/* Landing confirmations share the Match Player exit-dialog treatment. */
.landing-signout-confirm .confirmBackdrop {
  background: rgba(2, 7, 12, 0.78);
  backdrop-filter: blur(8px);
}

.landing-signout-confirm .confirmCard {
  width: min(420px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(var(--level-blue-rgb, 20, 121, 190), 0.2), transparent 52%),
    #0a1521;
  color: #fff;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-signout-confirm .confirmCard::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--level-red, #ed1c24), var(--level-blue, #1479be));
  content: "";
}

.landing-signout-eyebrow {
  color: #62b6ee;
  font-family: "Chakra Petch", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-signout-confirm .confirmIcon {
  display: none;
}

.landing-signout-confirm .confirmTitle {
  margin: 10px 0 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.landing-signout-confirm .confirmText {
  margin: 9px auto 0;
  color: #aebccc;
  font-size: 13px;
  line-height: 1.5;
}

.landing-signout-confirm .confirmActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 23px;
}

.landing-signout-confirm .confirmActions button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  cursor: pointer;
}

.landing-signout-confirm #landingCancelSignOut {
  background: rgba(255, 255, 255, 0.07);
}

.landing-signout-confirm #landingConfirmSignOut {
  border-color: rgba(255, 81, 88, 0.55);
  background: linear-gradient(145deg, #ed1c24, #a80d14);
}

.landing-signout-confirm .confirmActions button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  filter: brightness(1.08);
}

.landing-signout-confirm .confirmActions button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 761px) {
  .public-landing-body .landing-catchup-nav {
    position: relative;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }

  .public-landing-body .landing-nav > .landing-nav-anchor:hover,
  .public-landing-body .landing-nav > .landing-nav-anchor:focus-visible {
    background: transparent;
    color: #fff;
    outline: 0;
  }

  .public-landing-body .landing-nav > .landing-nav-anchor {
    position: relative;
  }

  .public-landing-body .landing-nav > .landing-nav-anchor::after {
    position: absolute;
    right: 14px;
    bottom: 6px;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--level-red, #ed1c24);
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .public-landing-body .landing-nav > .landing-nav-anchor:hover::after,
  .public-landing-body .landing-nav > .landing-nav-anchor:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

.landing-house-catchup-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 360ms;
}

.landing-house-catchup-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.landing-house-catchup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #080b0f;
  opacity: 0;
  transition: opacity 320ms ease;
}

.landing-house-catchup-overlay.is-open .landing-house-catchup-backdrop {
  opacity: 1;
}

.landing-house-catchup-panel {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(var(--level-blue-rgb, 25, 117, 188), 0.2), transparent 29%),
    radial-gradient(circle at 4% 96%, rgba(var(--level-red-rgb, 237, 28, 36), 0.11), transparent 27%),
    #0c1219;
  color: #fff;
  opacity: 0;
  outline: 0;
  transform: translateY(20px);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.22, 0.78, 0.2, 1);
}

.landing-house-catchup-overlay.is-open .landing-house-catchup-panel {
  opacity: 1;
  transform: translateY(0);
}

.landing-house-catchup-header {
  flex: 0 0 auto;
  min-height: 210px;
  border-bottom-color: rgba(255, 255, 255, 0.11);
  padding-right: clamp(24px, 5vw, 72px);
  padding-left: clamp(24px, 5vw, 72px);
  background: transparent;
}

.landing-house-catchup-heading {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px !important;
}

.landing-house-catchup-logo {
  width: clamp(280px, 25vw, 360px);
  height: 94px;
  margin: 0 0 -2px -99px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}

.landing-house-catchup-actions {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px !important;
}

#houseCatchupRefresh {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 17px;
  background: rgba(8, 11, 15, 0.64);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

#houseCatchupRefresh:hover,
#houseCatchupRefresh:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
  outline: 0;
}

.landing-house-catchup-actions svg {
  width: 18px;
  height: 18px;
}

.landing-house-catchup-close {
  width: 44px;
  height: 44px;
}

.landing-house-catchup-filters {
  flex: 0 0 auto;
  position: relative;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  padding-right: clamp(24px, 5vw, 72px);
  padding-left: clamp(24px, 5vw, 72px);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 12, 18, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(30px) saturate(140%);
}

.landing-house-catchup-filters .videoFilter {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  padding: 0 38px 0 13px;
  background: rgba(17, 23, 32, 0.68);
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.landing-house-catchup-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 20px 26px 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 26px 28px 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008) 46%, transparent 72%),
    rgba(12, 17, 24, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 58px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(135%);
  scrollbar-color: var(--level-red, #ed1c24) #080b0f;
  scrollbar-width: thin;
}

.landing-house-catchup-content .catchupShelfHeader h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 23px;
}

.houseCatchupShelf__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 26px 18px;
}

.houseCatchupCard {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transition: transform 180ms ease;
}

.houseCatchupCard:hover {
  z-index: 2;
  transform: translateY(-5px);
}

.houseCatchupCard__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0;
  background:
    linear-gradient(116deg, transparent 0 43%, rgba(255, 255, 255, 0.035) 43.4% 44%, transparent 44.4% 68%, rgba(255, 255, 255, 0.026) 68.4% 69%, transparent 69.4%),
    radial-gradient(circle at 12% 8%, rgba(133, 49, 126, 0.34), transparent 35%),
    radial-gradient(circle at 98% 92%, rgba(var(--level-blue-rgb, 25, 117, 188), 0.34), transparent 46%),
    linear-gradient(135deg, #181b22, #0d1720);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.houseCatchupCard:hover .houseCatchupCard__thumb {
  border-color: rgba(var(--level-red-rgb, 237, 28, 36), 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.houseCatchupCard__thumb > span.houseCatchupCard__replay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(8, 11, 15, 0.78);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.houseCatchupCard__thumb > span.houseCatchupCard__sport {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(194, 136, 255, 0.56);
  border-radius: 7px;
  padding: 0 8px;
  background: rgba(93, 42, 118, 0.68);
  color: #d7a8ff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

.houseCatchupCard__sport svg {
  width: 12px;
  height: 12px;
}

.houseCatchupCard__teams {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 41px 15px 28px;
}

.houseCatchupCard__team {
  min-width: 0;
  display: block;
  text-align: center;
}

.houseCatchupCard__team img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(190, 225, 216, 0.74);
  padding: 4px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.houseCatchupCard__team strong,
.houseCatchupCard__team small {
  display: block;
}

.houseCatchupCard__team strong {
  overflow: hidden;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.houseCatchupCard__team small {
  width: max-content;
  max-width: 100%;
  margin: 5px auto 0;
  border: 1px solid rgba(146, 207, 195, 0.28);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(34, 75, 77, 0.7);
  color: #dce9e7;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.houseCatchupCard__centre {
  min-width: 52px;
  display: grid;
  place-items: center;
}

.houseCatchupCard__centre > strong {
  position: relative;
  z-index: 2;
  margin-top: -7px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.houseCatchupCard__play {
  position: static;
  inset: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #090c10;
  opacity: 0.9;
  transform: none;
}

.houseCatchupCard__play svg {
  width: 20px;
  height: 20px;
}

.houseCatchupCard__thumb > span.houseCatchupCard__date {
  position: absolute;
  right: 70px;
  bottom: 7px;
  left: 70px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.houseCatchupCard__body {
  padding: 11px 3px 0;
}

.houseCatchupCard__body .videoTileHeader h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.houseCatchupCard__body p {
  margin: 7px 0 0;
  color: #91a0b6;
  font-size: 11px;
  line-height: 1.4;
}

.houseCatchupShelf__status {
  margin: 18px 0 0;
  color: #91a0b6;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .landing-house-catchup-header {
    position: sticky;
    top: 0;
    z-index: 32;
    box-sizing: border-box;
    height: 48px;
    min-height: 0;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 14px 8px;
    background:
      radial-gradient(circle at 88% 0, rgba(var(--level-blue-rgb, 25, 117, 188), 0.2), transparent 34%),
      rgba(8, 12, 18, 0.82);
  }

  .landing-house-catchup-logo {
    display: none;
  }

  .landing-house-catchup-header h2 {
    font-size: 22px;
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .landing-house-catchup-heading {
    flex: 1 1 auto;
    gap: 1px !important;
  }

  .landing-house-catchup-heading > span {
    display: none;
  }

  .landing-house-catchup-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px !important;
    margin-left: auto;
  }

  #houseCatchupRefresh {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    overflow: hidden;
    border-radius: 10px;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  #houseCatchupRefresh svg {
    width: 15px;
    height: 15px;
    color: #fff;
  }

  .landing-house-catchup-close,
  .public-landing-body .landing-house-catchup-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .landing-house-catchup-close svg {
    width: 15px;
    height: 15px;
  }

  .landing-house-catchup-filters {
    position: sticky;
    top: 48px;
    z-index: 31;
    box-sizing: border-box;
    height: 48px;
    min-height: 34px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    border-top: 0;
    padding: 6px 14px 8px;
  }

  .landing-house-catchup-filters .catchupFilterField {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(17, 23, 32, 0.68);
  }

  .landing-house-catchup-filters .catchupFilterField::before {
    position: absolute;
    inset: 8px;
    background: var(--level-red, #ed1c24);
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
  }

  .landing-house-catchup-filters .catchupFilterField:has([data-house-catchup-school-filter])::before {
    background: var(--level-blue, #1975bc);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10 12 4l9 6M5 9v10h14V9M9 19v-6h6v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10 12 4l9 6M5 9v10h14V9M9 19v-6h6v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .landing-house-catchup-filters .catchupFilterField:has([data-house-catchup-team-filter])::before {
    background: #cbd4de;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 19a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M17 13a5 5 0 0 1 4 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 19a6 6 0 0 1 12 0M16 5a3 3 0 0 1 0 6M17 13a5 5 0 0 1 4 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .landing-house-catchup-filters .catchupFilterField.has-selection {
    border-color: rgba(var(--level-red-rgb, 237, 28, 36), 0.48);
    background: rgba(var(--level-red-rgb, 237, 28, 36), 0.12);
  }

  .landing-house-catchup-filters .catchupFilterField label {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .landing-house-catchup-filters .catchupFilterField .videoFilter {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 34px;
    padding: 0;
    opacity: 0;
    cursor: pointer;
  }

  .landing-house-catchup-content {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 8px 14px calc(22px + env(safe-area-inset-bottom));
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .landing-house-catchup-content .catchupShelfHeader {
    display: none;
  }

  .houseCatchupShelf__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .houseCatchupCard,
  .houseCatchupCard:hover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    padding: 7px;
    background: rgba(12, 17, 24, 0.55);
    transform: none;
  }

  .houseCatchupCard__thumb {
    height: 120px;
    aspect-ratio: auto;
    border-radius: 11px;
  }

  .houseCatchupCard__thumb > span.houseCatchupCard__sport {
    top: 8px;
    left: 10px;
    min-height: 21px;
    padding: 0 7px;
    font-size: 7px;
  }

  .houseCatchupCard__thumb > span.houseCatchupCard__replay {
    top: 8px;
    right: 9px;
    padding: 4px 7px;
    font-size: 7px;
  }

  .houseCatchupCard__teams {
    height: 100%;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 4px;
    padding: 32px 10px 9px;
  }

  .houseCatchupCard__team img {
    width: 40px;
    height: 40px;
  }

  .houseCatchupCard__team strong {
    min-height: 19px;
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.15;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .houseCatchupCard__team small {
    margin-top: 2px;
    padding: 1px 4px;
    font-size: 8px;
    line-height: 1;
  }

  .houseCatchupCard__centre {
    min-width: 44px;
  }

  .houseCatchupCard__centre > strong {
    margin-top: -5px;
    font-size: 12px;
  }

  .houseCatchupCard__play {
    width: 34px;
    height: 34px;
  }

  .houseCatchupCard__play svg {
    width: 16px;
    height: 16px;
  }

  .houseCatchupCard__thumb > span.houseCatchupCard__date {
    display: none;
  }

  .houseCatchupCard__body {
    padding: 7px 2px 1px;
  }

  .houseCatchupCard__body .videoTileHeader h3 {
    min-height: 29px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .houseCatchupCard__body p {
    margin-top: 2px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .houseCatchupShelf__status {
    margin: 5px 0 0;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-house-catchup-overlay,
  .landing-house-catchup-backdrop,
  .landing-house-catchup-panel {
    transition-duration: 0.01ms;
  }
}
