/* —— Live page section —— */
.page-section--live .page-section__inner {
  justify-content: flex-start;
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

.page-section--live .page-section__title--live {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 1.35rem;
  letter-spacing: 0.04em;
}

.page-section--live.has-live-streams .page-section__title--live {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-section--live.has-live-streams .page-section__title--live::before {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-red, #e02020);
  box-shadow: 0 0 10px rgba(224, 32, 32, 0.65);
  animation: live-section-dot 2s ease-in-out infinite;
}

@keyframes live-section-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(224, 32, 32, 0.45);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(224, 32, 32, 0);
  }
}

.page-section--live .page-section__bg {
  background-image: radial-gradient(
      ellipse 70% 50% at 100% 20%,
      rgba(180, 0, 0, 0.2) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 95% 80% at 0% 0%,
      rgba(220, 25, 25, 0.35) 0%,
      transparent 55%
    );
}

.live-broadcasts {
  width: min(100%, 1120px);
  margin: 0;
}

.live-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, 286px);
  gap: 1.5rem;
  justify-content: start;
}

.live-broadcasts__empty {
  margin: 0.5rem 0 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Card: even red ring + inner surface */
.live-card {
  width: 286px;
  max-width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.live-card__ring {
  padding: 2px;
  border-radius: 22px;
  background: #6e2424;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  animation: live-card-ring-glow 2.4s ease-in-out infinite;
}

@keyframes live-card-ring-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.live-card:hover .live-card__ring,
.live-card:focus-visible .live-card__ring {
  background: #943030;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.live-card.is-hot .live-card__ring {
  background: linear-gradient(135deg, #ffe08a, #c47a12 48%, #fff1c2);
  box-shadow: 0 14px 36px rgba(196, 122, 18, 0.38);
}

.live-card.is-hot:hover .live-card__ring,
.live-card.is-hot:focus-visible .live-card__ring {
  background: linear-gradient(135deg, #fff1c2, #e0a01a 48%, #ffe08a);
}

.live-card__hot {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #e0a01a);
  color: #3a2200;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.live-card__hot[hidden] {
  display: none !important;
}

.live-card__badge {
  position: absolute;
  top: -20px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(18, 0, 0, 0.72);
  border: 1px solid rgba(255, 90, 90, 0.45);
  color: #ff8a8a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  pointer-events: none;
}

.live-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3535;
  box-shadow: 0 0 6px rgba(255, 53, 53, 0.85);
  animation: live-card-badge-dot 1.5s ease-in-out infinite;
}

@keyframes live-card-badge-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.live-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.live-card__views svg {
  width: 18px;
  height: 18px;
  color: #d7e8ff;
}

.live-card:focus-visible {
  outline: none;
}

.live-card__surface {
  border-radius: 20px;
  overflow: hidden;
  background: #101010;
}

.live-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 12px;
  background: #181818;
}

.live-card__head-text {
  min-width: 0;
  flex: 1;
}

.live-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2a;
  flex-shrink: 0;
}

.live-card__avatar--empty {
  display: block;
  background: linear-gradient(145deg, #444, #262626);
}

.live-card.is-main .live-card__avatar {
  object-fit: cover;
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.live-card__name {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card__title {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: #e5a1a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card__body {
  position: relative;
  width: 100%;
  aspect-ratio: 286 / 178;
  height: auto;
  background: #000;
  overflow: hidden;
}

.live-card__poster,
.live-card__video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-card__poster {
  z-index: 1;
  background-color: #140a0a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.22s ease;
}

.live-card__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(8, 4, 4, 0.72) 82%,
    rgba(6, 3, 3, 0.88) 100%
  );
  pointer-events: none;
}

.live-card__match-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 16px 14px;
  box-sizing: border-box;
}

.live-card__match {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 4px;
  row-gap: 6px;
  align-items: center;
}

.live-card__logo-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.live-card__logo-cell--home {
  grid-column: 1;
  grid-row: 1;
}

.live-card__logo-cell--away {
  grid-column: 3;
  grid-row: 1;
}

.live-card__logo-frame {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-card__logo-frame--empty {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.live-card__team-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.live-card__score {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 0 2px;
  min-width: 4.5rem;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.live-card__score .live-card__score-home {
  color: #c9ff2e;
}

.live-card__score .live-card__score-away {
  color: #ff3a3a;
}

.live-card__score-sep {
  color: #ffffff;
  font-weight: 700;
  font-size: 30px;
  padding: 0 1px;
}

.live-card__team-name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-card__team-name--home {
  grid-column: 1;
  grid-row: 2;
  padding: 0 2px;
}

.live-card__team-name--away {
  grid-column: 3;
  grid-row: 2;
  padding: 0 2px;
}

.live-card__stats-side {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding-top: 4px;
}

.live-card__stats-side--home {
  grid-column: 1;
  grid-row: 3;
}

.live-card__stats-side--away {
  grid-column: 3;
  grid-row: 3;
}

.live-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 16px;
}

.live-card__stat img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
}

.live-card__stat span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.live-card__video-layer {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  background: #000;
}

.live-card__video-layer:not([hidden]) {
  display: block;
}

.live-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.live-card.is-hover-preview .live-card__poster {
  opacity: 0;
  pointer-events: none;
}

.live-card.is-hover-preview .live-card__video-layer {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .live-card__body {
    aspect-ratio: auto;
    height: auto;
  }

  .live-card__poster {
    position: relative;
    inset: auto;
    height: auto;
  }

  .live-card__match-wrap {
    position: relative;
    padding: 18px 14px 12px;
  }
  .live-card__badge {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(18, 0, 0, 0.72);
    border: 1px solid rgba(255, 90, 90, 0.45);
    color: #ff8a8a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-section--live.has-live-streams .page-section__title--live::before,
  .live-card__ring,
  .live-card__badge-dot {
    animation: none;
  }
}
