/* Video Stream Final Plugin Styles */
.vsc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ===== Category Filter Bar ===== */
.vsc-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vsc-cat-btn {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vsc-cat-btn:hover {
  background: #e5f0ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.vsc-cat-active {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

/* GRID – 3 columns desktop */
.vsc-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, 1fr);
}

/* CARD */
.vsc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.vsc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  border-color: #3b82f6;
}

/* TIME / DATE / LIVE PILL (top-right) */
.vsc-time {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  line-height: 1;
  min-height: 1.1rem;
}

/* LIVE dot + text */
.vsc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  display: inline-block;
  animation: vsc-pulse 1.1s infinite;
}

.vsc-live-text {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CARD TOP – LEAGUE / CATEGORY ROW */
.vsc-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.72rem;
  font-weight: 500;
  color: #4b5563;
}

.vsc-league-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* League text marquee (1 line scroll) */
.vsc-league-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.vsc-league-text {
  display: inline-block;
  padding-right: 32px;
  animation: vsc-marquee 10s linear infinite;
}

/* CENTER AREA – TEAMS */
.vsc-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem;
}

.vsc-team {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.vsc-team-name {
  font-weight: 500;
  color: #111827;
  font-size: 0.8rem;
  line-height: 1.15;
  text-align: center;
}

/* logos */
.vsc-team-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  padding: 0.2rem;
}

.vsc-vs {
  font-weight: 600;
  font-size: 0.78rem;
  color: #6b7280;
}

/* FOOTER BUTTON */
.vsc-footer {
  font-size: 0.76rem;
  text-align: center;
  padding: 0.5rem;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.15s ease;
}

.vsc-card:hover .vsc-footer {
  background: #2563eb;
}

/* Loader + Empty */
.vsc-loader {
  text-align: center;
  padding: 1.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.vsc-loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.8rem;
}
.vsc-no-streams, .vsc-no-matches {
  color: #6b7280;
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
  font-size: 0.85rem;
}

.vsc-error-message h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #b91c1c;
}

/* Modal (popup) */
.vsc-modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  display: none;
  z-index: 9998;
  animation: vscFadeIn 0.25s ease;
}

.vsc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 14px;
  display: none;
  z-index: 9999;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 20px 45px -15px rgba(15,23,42,0.7);
  animation: vscSlideIn 0.25s ease;
}

.vsc-modal-title {
  color: #111827;
  margin: 0 0 1.1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.vsc-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vsc-stream-link {
  display: block;
  background: #10b981;
  color: white;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.vsc-stream-link:hover {
  background: #059669;
  transform: translateY(-1px);
}

.vsc-close {
  background: #ef4444;
  color: white;
  border: none;
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.vsc-close:hover {
  background: #dc2626;
}

/* Stream Page */
.vsc-stream {
  background: #fff;
  max-width: 1000px;
  margin: 1.5rem auto;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.vsc-back {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.vsc-back:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.vsc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.vsc-team-logo-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsc-match-title {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.vsc-match-info {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.vsc-league-name {
  font-weight: 600;
  color: #3b82f6;
}

.vsc-kickoff-time {
  font-weight: 600;
  color: #ef4444;
}

.vsc-live-badge {
  font-size: 0.8rem;
}

/* Animations */
@keyframes vscFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vscSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* LIVE dot pulse */
@keyframes vsc-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    transform: scale(1.6);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* League marquee animation */
@keyframes vsc-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive columns */
@media (max-width: 1024px) {
  .vsc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Extra responsive tweaks */
@media (max-width: 768px) {
  .vsc-team-logo {
    width: 42px;
    height: 42px;
  }
  .vsc-match-title {
    font-size: 1.1rem;
  }
  .vsc-hero {
    flex-direction: column;
    padding: 1.2rem;
    gap: 0.8rem;
  }
  .vsc-team-logo-container {
    width: 70px;
    height: 70px;
  }
  .vsc-modal {
    width: 94%;
    padding: 1.1rem;
  }
  .vsc-stream-link {
    font-size: 0.85rem;
    padding: 0.7rem;
  }
}