.page-section--highlights .page-section__bg {
  background-image: radial-gradient(
      ellipse 50% 42% at 100% 0%,
      rgba(212, 0, 0, 0.22) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 55% at 0% 100%,
      rgba(212, 0, 0, 0.14) 0%,
      transparent 55%
    );
}

.page-section__inner--highlights {
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  min-height: 0;
}

.highlights-top {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 0 calc(-1 * max(var(--page-gutter), 16px));
  padding: 0 max(var(--page-gutter), 16px) clamp(0.35rem, 1vh, 0.65rem);
}

.highlights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}

.highlights-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.highlights-title__accent {
  color: var(--color-red);
}

.highlights-title__rest {
  color: #fff;
}

.highlights-search {
  flex: 0 1 320px;
  min-width: 0;
  margin-left: auto;
}

.highlights-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.highlights-search__input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 1rem 0.55rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E")
    no-repeat 0.75rem center;
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  outline: none;
}

.highlights-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.highlights-search__input:focus {
  border-color: rgba(212, 0, 0, 0.55);
  background-color: rgba(255, 255, 255, 0.14);
}

.highlights-message {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.highlights-message[hidden] {
  display: none;
}

.highlights-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: calc(-1 * clamp(1.4rem, 4vh, 2.4rem));
  padding-top: clamp(1.4rem, 4vh, 2.4rem);
  padding-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 clamp(1.4rem, 4vh, 2.4rem),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 clamp(1.4rem, 4vh, 2.4rem),
    #000 100%
  );
}

.highlights-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  align-content: start;
}

.hl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.hl-card:hover,
.hl-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212, 0, 0, 0.5);
  outline: none;
}

.hl-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 0, 0, 0.35), transparent 55%),
    #121212;
}

.hl-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hl-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 0, 0, 0.92);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.hl-card:hover .hl-card__play,
.hl-card:focus-visible .hl-card__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.hl-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.hl-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.72rem 0.8rem 0.85rem;
}

.hl-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.hl-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.highlights-more {
  flex-shrink: 0;
  margin: 0.15rem auto 0.2rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.highlights-more[hidden] {
  display: none;
}

.highlights-more:hover {
  color: #fff;
}

.highlights-more:disabled {
  opacity: 0.45;
  cursor: wait;
}

.hl-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding:
    max(1rem, env(safe-area-inset-top))
    1rem
    max(1rem, env(safe-area-inset-bottom));
}

.hl-modal[hidden] {
  display: none;
}

.hl-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.84);
  cursor: pointer;
}

.hl-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 0.85rem;
  border-radius: 16px;
  background: #0c0c0c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hl-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.hl-modal__close:hover {
  background: var(--color-red);
}

.hl-modal__title {
  margin: 0 2.6rem 0.7rem 0.15rem;
  min-height: 1.3em;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.hl-modal__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.hl-modal__stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

html.hl-lock,
html.hl-lock body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .highlights-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .highlights-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    white-space: normal;
  }

  .highlights-search {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .highlights-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
  }

  .hl-card__title {
    font-size: 0.78rem;
  }

  .hl-card__play {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 900px) {
  .page-rail .page-section__inner--highlights {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-top: clamp(0.55rem, 1.6vh, 0.85rem);
    padding-left: max(16px, var(--page-gutter));
    padding-right: max(16px, var(--page-gutter));
  }

  .page-rail .highlights-top {
    margin-left: 0;
    margin-right: 0;
  }
}
