/* Sports Repack — shared video tile styles */

/* Active state — when a tile is playing with sound, dim siblings */
.sr-video-tile.sr-active {
  outline: 2px solid rgba(236,72,153,0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(236,72,153,0.3), 0 28px 70px -20px rgba(236,72,153,0.7);
  z-index: 10;
}
.sr-video-tile.sr-active::after {
  content: '🔊 SOUND ON';
  position: absolute; top: 10px; right: 10px; z-index: 6;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 1.5px; font-weight: 800;
  color: #fff; padding: 4px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 0 14px rgba(236,72,153,0.7);
  pointer-events: none;
}

.sr-video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 32px 0;
}
.sr-video-grid.portrait { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sr-video-grid.wide     { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.sr-video-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #07071a;
  border: 1px solid rgba(168,85,247,0.25);
  box-shadow: 0 20px 50px -25px rgba(168,85,247,0.55), 0 6px 18px -6px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  aspect-ratio: 9 / 16;
}
.sr-video-tile.landscape { aspect-ratio: 16 / 9; }
.sr-video-tile.square    { aspect-ratio: 1 / 1; }

.sr-video-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(236,72,153,0.55);
  box-shadow: 0 28px 70px -25px rgba(236,72,153,0.7), 0 10px 24px -8px rgba(0,0,0,0.6);
}

.sr-video-tile video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.sr-video-tile .sr-video-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
  display: flex; align-items: end; justify-content: space-between; gap: 10px;
}
.sr-video-tile .sr-video-label {
  font-family: 'JetBrains Mono', monospace, system-ui;
  font-size: 11px; letter-spacing: 2.5px;
  color: #f5f0e1; text-transform: uppercase; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.sr-video-tile .sr-video-badge {
  font-family: 'JetBrains Mono', monospace, system-ui;
  font-size: 9px; letter-spacing: 2px;
  padding: 4px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff; font-weight: 800; text-transform: uppercase;
  box-shadow: 0 0 14px rgba(236,72,153,0.5);
}

.sr-video-tile .sr-rec-dot {
  position: absolute; top: 12px; left: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff3344;
  box-shadow: 0 0 12px rgba(255,51,68,0.9);
  animation: sr-rec-pulse 1.4s ease-in-out infinite;
  z-index: 3;
}
.sr-video-tile .sr-rec-text {
  position: absolute; top: 10px; left: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 3px;
  color: #ff3344; font-weight: 800;
  text-shadow: 0 0 8px rgba(255,51,68,0.6);
  z-index: 3;
}
@keyframes sr-rec-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.4; transform:scale(0.85); }
}

/* Inline single video (hero overlays etc.) */
.sr-video-inline {
  width: 100%; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(168,85,247,0.3);
  box-shadow: 0 30px 80px -30px rgba(168,85,247,0.6);
}
.sr-video-inline video { width:100%; height:100%; object-fit:cover; display:block; }

/* Hero background loop */
.sr-hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; border-radius: inherit;
  pointer-events: none;
}
.sr-hero-video-bg video {
  width:100%; height:100%; object-fit:cover; opacity: 0.18;
  filter: blur(1px) saturate(1.2) hue-rotate(-10deg);
  mix-blend-mode: screen;
}
