.replay-page {
  max-width: 1120px;
  margin: 0 auto;
}

.replay-days {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 1.75rem;
  padding: 0;
}

.replay-page .date-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(8, 20, 82, 0.14);
  background: #fff;
  color: var(--kv-primary, #081452);
  box-shadow: var(--kv-shadow, 0 8px 32px rgba(4, 13, 50, 0.08));
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.replay-page .date-switch:hover {
  border-color: rgba(8, 20, 82, 0.28);
  transform: translateY(-1px);
}

.replay-page .date-switch.active {
  background: var(--kv-gradient-primary, linear-gradient(102deg, #071453 0%, #0d37c3 100%));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(7, 20, 83, 0.22);
}

.replay-page .date-switch__icon {
  font-size: 1.25rem;
  color: var(--kv-accent, #f3e32c);
  flex-shrink: 0;
}

.replay-page .date-switch.active .date-switch__icon {
  color: #fff;
}

.replay-page .date-switch__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.replay-page .date-switch__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-page .date-switch__date {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2px;
}

.replay-day {
  display: none;
}

.replay-day.is-active {
  display: block;
}

.replay-empty {
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  color: var(--kv-muted, #5c6478);
  font-weight: 600;
}

.replay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.replay-tile {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  box-shadow: var(--kv-shadow, 0 8px 32px rgba(4, 13, 50, 0.08));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.replay-tile__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #081452;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}

.replay-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.replay-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 82, 0.28);
  color: #fff;
  font-size: 3rem;
  transition: background 0.15s ease;
}

.replay-tile__thumb:hover .replay-tile__play {
  background: rgba(8, 20, 82, 0.42);
}

.replay-tile__play i {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.replay-tile__stage {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 20, 82, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.replay-tile__meta {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.replay-tile__time {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--kv-muted, #5c6478);
}

.replay-tile__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--kv-primary, #081452);
}

.replay-tile__people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.replay-tile__person {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #081452;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(8, 20, 82, 0.18);
}

.replay-tile__person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.replay-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.replay-lightbox[hidden] {
  display: none !important;
}

.replay-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 50, 0.72);
}

.replay-lightbox__dialog {
  position: relative;
  width: min(960px, 100%);
  background: #081452;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.replay-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.replay-lightbox__title {
  margin: 0 2rem 0.7rem 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.replay-lightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.replay-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .replay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .replay-grid {
    grid-template-columns: 1fr;
  }

  .replay-page .date-switch {
    width: 100%;
    justify-content: center;
  }
}
