/* ============================================================
   where-to-watch.css — Where to Watch full-page tab
   ============================================================ */

/* ── Detected country banner ─────────────────────────────── */
.wtw-detected {
  background: linear-gradient(135deg, rgba(200, 168, 75, .08), rgba(200, 168, 75, .03));
  border: 1px solid rgba(200, 168, 75, .2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: none;
}

.wtw-detected.visible {
  display: block;
}

.wtw-detected-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.wtw-detected-country {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wtw-detected-flag {
  font-size: 28px;
}

.wtw-detected-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.wtw-detected-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wtw-detected-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.wtw-detected-links .wtw-link-free {
  background: rgba(42, 173, 106, .15);
  color: var(--win);
  border: 1px solid rgba(42, 173, 106, .3);
}
.wtw-detected-links .wtw-link-free:hover {
  background: rgba(42, 173, 106, .3);
  text-decoration: none;
}

.wtw-detected-links .wtw-link-paid {
  background: rgba(200, 168, 75, .12);
  color: var(--accent);
  border: 1px solid rgba(200, 168, 75, .25);
}
.wtw-detected-links .wtw-link-paid:hover {
  background: rgba(200, 168, 75, .25);
  text-decoration: none;
}

.wtw-link-tag {
  font-size: 9px;
  opacity: .7;
  font-style: italic;
}

/* ── Search ───────────────────────────────────────────────── */
.wtw-search-wrap {
  margin-bottom: 12px;
}

.wtw-search {
  width: 100%;
  max-width: 360px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.wtw-search::placeholder {
  color: var(--muted);
}
.wtw-search:focus {
  border-color: var(--accent);
}

/* ── Legend ────────────────────────────────────────────────── */
.wtw-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 11px;
}

.wtw-legend-free {
  color: var(--win);
}
.wtw-legend-free::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42, 173, 106, .4);
  margin-right: 5px;
  vertical-align: middle;
}

.wtw-legend-paid {
  color: var(--accent);
}
.wtw-legend-paid::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(200, 168, 75, .4);
  margin-right: 5px;
  vertical-align: middle;
}

/* ── Country grid ─────────────────────────────────────────── */
.wtw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.wtw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .15s;
}
.wtw-card:hover {
  border-color: var(--muted);
}

.wtw-card-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wtw-card-flag {
  font-size: 22px;
}

.wtw-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.wtw-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wtw-card-links a {
  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;
}

.wtw-card-links .wtw-link-free {
  background: rgba(42, 173, 106, .15);
  color: var(--win);
  border: 1px solid rgba(42, 173, 106, .25);
}
.wtw-card-links .wtw-link-free:hover {
  background: rgba(42, 173, 106, .3);
  text-decoration: none;
}

.wtw-card-links .wtw-link-paid {
  background: rgba(200, 168, 75, .12);
  color: var(--accent);
  border: 1px solid rgba(200, 168, 75, .2);
}
.wtw-card-links .wtw-link-paid:hover {
  background: rgba(200, 168, 75, .25);
  text-decoration: none;
}

/* ── No results ───────────────────────────────────────────── */
.wtw-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .wtw-grid {
    grid-template-columns: 1fr;
  }
  .wtw-search {
    max-width: 100%;
  }
}
