/* Match Celebration Overlay — mirrors MatchCelebrationView.swift */

.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.match-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.match-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 360px;
  width: 100%;
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.match-overlay.visible .match-content {
  transform: scale(1);
  opacity: 1;
}

.match-header {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-match);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.match-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: -8px;
}

.match-poster {
  width: auto;
  height: 300px;
  max-width: 100%;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: var(--shadow-glow-yellow);
}

.match-poster-placeholder {
  width: 200px;
  height: 300px;
  border-radius: 16px;
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.match-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.match-super {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.match-super-star {
  color: #FFD60A;
}

.match-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Provider pills on match overlay */
.match-providers {
  width: 100%;
  text-align: center;
}

.match-provider-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.match-provider-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.match-provider-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.match-provider-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

/* Watch This! button */
.match-btn-watch {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-button);
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  transition: background 0.2s;
}

.match-btn-watch:hover {
  background: var(--color-primary-hover);
}

/* Keep Swiping button */
.match-btn-dismiss {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-align: center;
  transition: background 0.2s;
}

.match-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* End Session button */
.match-btn-end {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-button);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: color 0.2s;
}

.match-btn-end:hover {
  color: rgba(255, 255, 255, 0.8);
}
