/* Liga Highlights – Kacheln im Nav-Sticker-Look. Inhalte bleiben die bestehenden Highlights. */
#liga-highlights.portfolio-grid {
  --c: 155, 92, 255;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 10px 4px 22px;
  overflow: visible;
  perspective: none;
}

.highlights-shell.top-moments-shell {
  width: min(1150px, 94vw);
  padding: 0;
}

.highlights-shell .top-moments-shell-frame {
  display: none;
}

#liga-highlights .hl-tile {
  --c: 155, 92, 255;
  --p: 0;
  position: relative;
  aspect-ratio: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.6s;
}

#liga-highlights .hl-tile:hover {
  transform: scale(1.03);
}

#liga-highlights .hl-tile:hover .hl-ring {
  color: rgb(185, 135, 255);
}

#liga-highlights .hl-tile:focus-visible {
  outline: 2px solid #ffd54a;
  outline-offset: 4px;
}

#liga-highlights .hl-ring {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  color: rgb(var(--c));
  filter: drop-shadow(0 0 6px rgba(var(--c), 0.35));
  pointer-events: none;
  transition: color 0.3s;
}

#liga-highlights .hl-photo {
  position: absolute;
  inset: 0;
  border-radius: 10%;
  background: #111 center / cover no-repeat;
  overflow: hidden;
}

#liga-highlights .hl-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
}

#liga-highlights .hl-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  border: 3px solid #ff1e46;
  animation: hl-tri 9s ease-in-out infinite;
}

#liga-highlights .hl-tile.is-ph .hl-photo {
  background-size: contain;
  background-color: #0d0a16;
  filter: grayscale(0.5) brightness(0.6);
}

@keyframes hl-tri {
  0%, 100% {
    border-color: #ff1e46;
    box-shadow: 0 0 6px rgba(255, 30, 70, 0.7), inset 0 0 6px rgba(255, 30, 70, 0.5);
  }
  16.7% {
    border-color: #ff3a5c;
    box-shadow: 0 0 12px rgba(255, 30, 70, 0.95), inset 0 0 10px rgba(255, 30, 70, 0.7);
  }
  33.3% {
    border-color: #1ee66e;
    box-shadow: 0 0 6px rgba(30, 230, 110, 0.7), inset 0 0 6px rgba(30, 230, 110, 0.5);
  }
  50% {
    border-color: #3dff8a;
    box-shadow: 0 0 12px rgba(30, 230, 110, 0.95), inset 0 0 10px rgba(30, 230, 110, 0.7);
  }
  66.7% {
    border-color: #ffd21e;
    box-shadow: 0 0 6px rgba(255, 210, 30, 0.7), inset 0 0 6px rgba(255, 210, 30, 0.5);
  }
  83.3% {
    border-color: #ffe04a;
    box-shadow: 0 0 12px rgba(255, 210, 30, 0.95), inset 0 0 10px rgba(255, 210, 30, 0.7);
  }
}

#liga-highlights .hl-lbl {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font: 800 var(--hl-fs, 16px) Orbitron, sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  pointer-events: none;
}

#liga-highlights .hl-lbl span {
  white-space: nowrap;
  text-shadow:
    0.04em 0 0 #000, -0.04em 0 0 #000, 0 0.04em 0 #000, 0 -0.04em 0 #000,
    0.028em 0.028em 0 #000, -0.028em 0.028em 0 #000, 0.028em -0.028em 0 #000, -0.028em -0.028em 0 #000,
    2px 2px 4px rgba(0, 0, 0, 0.85);
}

#liga-highlights .hl-tile.is-ph .hl-lbl {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

#liga-highlights .hl-badge {
  position: absolute;
  top: 7%;
  left: 7%;
  z-index: 3;
  font: 800 10px Orbitron, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(var(--c), 0.8);
  color: #fff;
  pointer-events: none;
}

#liga-highlights .hl-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  mix-blend-mode: soft-light;
  animation: hl-shine 14s ease-in-out infinite;
  animation-delay: calc(var(--d) * 1.2s - 10.3s);
}

@keyframes hl-shine {
  0%, 74% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

#liga-highlights .hl-prog {
  color: #e6d4ff;
  filter: drop-shadow(0 0 4px rgb(var(--c))) drop-shadow(0 0 10px rgb(var(--c)));
  -webkit-mask: conic-gradient(#000 calc(var(--p, 0) * 1%), transparent 0);
  mask: conic-gradient(#000 calc(var(--p, 0) * 1%), transparent 0);
}

#liga-highlights .hl-tile.loading .hl-ring:not(.hl-prog) {
  opacity: 0.45;
}

#liga-highlights .hl-tile.win {
  --c: 255, 30, 70;
  box-shadow: 0 0 30px 4px rgba(255, 30, 70, 0.5), 0 0 70px 8px rgba(255, 30, 70, 0.2);
}

#liga-highlights .hl-tile.win .hl-ring {
  color: #ff1e46;
}

#liga-highlights .hl-tile.win .hl-prog {
  -webkit-mask: none;
  mask: none;
}

#liga-highlights .hl-tile.win .hl-photo {
  filter: brightness(0.45) sepia(1) hue-rotate(-50deg) saturate(3);
}

#liga-highlights .hl-photo::before,
#liga-highlights .hl-tile::after,
#liga-highlights .hl-badge {
  transition: opacity 0.4s;
}

#liga-highlights .hl-tile.loading .hl-photo::before,
#liga-highlights .hl-tile.win .hl-photo::before,
#liga-highlights .hl-tile.loading::after,
#liga-highlights .hl-tile.win::after,
#liga-highlights .hl-tile.loading .hl-badge,
#liga-highlights .hl-tile.win .hl-badge {
  opacity: 0;
}

#liga-highlights .hl-tile.loading .hl-lbl,
#liga-highlights .hl-tile.win .hl-lbl {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
}

#liga-highlights .hl-tile.loading .hl-lbl span,
#liga-highlights .hl-tile.win .hl-lbl span {
  font-size: 1.35em;
}

#liga-highlights .hl-tile.win .hl-lbl span {
  color: #ff2a50;
  text-shadow: 0 0 8px #ff1e46, 0 0 22px #ff1e46, 1px 1px 0 #000, 2px 2px 3px #000;
}

#liga-highlights.is-fx-paused .hl-photo::before,
#liga-highlights.is-fx-paused .hl-tile::after {
  animation-play-state: paused;
}

@media (max-width: 900px) {
  #liga-highlights.portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .highlights-shell.top-moments-shell {
    width: min(100% - 12px, 94vw);
    overflow-x: clip;
  }

  #liga-highlights.portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    padding-inline: 8px;
  }
}

@media (max-width: 899px) {
  .highlights-shell.top-moments-shell {
    padding: 0;
    border-radius: 0;
  }

  .highlights-shell .top-moments-shell-frame {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #liga-highlights .hl-photo::before,
  #liga-highlights .hl-tile::after {
    animation: none;
  }
}
