/* ============================================================
   watch-live.css — Watch Live button + all-countries modal
   ============================================================ */

/* ── Button inside live match card ─────────────────────── */
.wl-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wl-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
}

.wl-btn-primary {
  background: var(--live);
  color: #fff;
  border: 1px solid var(--live);
}
.wl-btn-primary:hover {
  background: #e03030;
  box-shadow: 0 0 12px rgba(255, 59, 59, .35);
}

.wl-btn-all {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.wl-btn-all:hover {
  background: var(--accent);
  color: #000;
}

.wl-link-all {
  font-size: 10px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.wl-link-all:hover {
  color: var(--text);
}

/* ── Modal overlay ─────────────────────────────────────── */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wl-fade-in .15s ease-out;
}

@keyframes wl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wl-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  max-width: 820px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  animation: wl-slide-up .2s ease-out;
}

@keyframes wl-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.wl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.wl-modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
  margin: 0;
}

.wl-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .15s;
}
.wl-modal-close:hover {
  color: var(--text);
}

.wl-modal-body {
  overflow-y: auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* ── Country card inside modal ─────────────────────────── */
.wl-country-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.wl-country-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wl-country-flag {
  font-size: 20px;
}

.wl-country-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.wl-bc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wl-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.wl-bc-free {
  background: rgba(42, 173, 106, .15);
  color: var(--win);
  border: 1px solid rgba(42, 173, 106, .25);
}
.wl-bc-free:hover {
  background: rgba(42, 173, 106, .3);
}

.wl-bc-paid {
  background: rgba(200, 168, 75, .12);
  color: var(--accent);
  border: 1px solid rgba(200, 168, 75, .2);
}
.wl-bc-paid:hover {
  background: rgba(200, 168, 75, .25);
}

.wl-bc-tag {
  font-size: 9px;
  opacity: .7;
  font-style: italic;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 500px) {
  .wl-modal {
    max-height: 90vh;
  }
  .wl-modal-body {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}
