:root {
  --iptv-primary: #00B4D8;
  --iptv-bg: #f7fafc;
  --iptv-card: #fff;
  --iptv-border: #e3e9ef;
  --iptv-shadow: 0 4px 24px 0 rgba(0,0,0,0.06);
  --iptv-radius: 18px;
  --iptv-ok: #20c997;
  --iptv-bad: #e74c3c;
  --iptv-text: #22223b;
  --iptv-muted: #8d99ae;
  --iptv-btn-grad: linear-gradient(90deg,#00B4D8 0,#48CAE4 100%);
}
body {
  background: var(--iptv-bg);
}
.iptv-modern-card {
  max-width: 640px;
  margin: 48px auto;
  background: var(--iptv-card);
  border-radius: var(--iptv-radius);
  box-shadow: var(--iptv-shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  border: 1px solid var(--iptv-border);
}
.iptv-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  color: var(--iptv-primary);
  letter-spacing: 0.5px;
}
.iptv-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.iptv-input {
  flex: 1;
  border: 1.5px solid var(--iptv-primary);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-size: 1rem;
  transition: border 0.2s;
  background: #f8fafd;
  color: var(--iptv-text);
  outline: none;
}
.iptv-input:focus {
  border-color: #48CAE4;
}
.iptv-btn {
  padding: 0.75rem 1.6rem;
  background: var(--iptv-btn-grad);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 2px 6px 0 rgba(0,180,216,0.06);
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
  letter-spacing: 1px;
}
.iptv-btn:hover, .iptv-btn:focus {
  background: linear-gradient(90deg,#48CAE4 0,#00B4D8 100%);
  transform: translateY(-1px) scale(1.03);
}
.iptv-loader {
  text-align: center;
  padding: 2rem 0;
  color: var(--iptv-muted);
  font-weight: 500;
  font-size: 1.18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.iptv-spinner {
  width: 38px;
  height: 38px;
  border: 5px solid #e3e9ef;
  border-top: 5px solid var(--iptv-primary);
  border-radius: 50%;
  animation: iptv-spin 1s linear infinite;
  margin-bottom: 0.2rem;
}
@keyframes iptv-spin {
  to { transform: rotate(360deg);}
}
.iptv-table-wrap {
  overflow-x: auto;
}
.iptv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--iptv-border);
  margin-bottom: 1.1rem;
}
.iptv-table th, .iptv-table td {
  padding: 0.8em 0.7em;
  text-align: left;
}
.iptv-table th {
  background: #f1fbfd;
  color: var(--iptv-primary);
  font-weight: 700;
  border-bottom: 1.5px solid var(--iptv-border);
}
.iptv-table td {
  border-bottom: 1px solid var(--iptv-border);
  background: #fff;
  vertical-align: middle;
}
.iptv-table tr:last-child td {
  border-bottom: none !important;
}
.iptv-logo {
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0,180,216,0.07);
  background: #f8fafd;
}
.iptv-ok {
  color: var(--iptv-ok);
  font-weight: 700;
  font-size: 1.2em;
}
.iptv-bad {
  color: var(--iptv-bad) !important;
  font-weight: 700;
  font-size: 1.2em;
}
.iptv-counts {
  margin-top: 0.6rem;
  color: var(--iptv-muted);
  font-size: 1.05em;
  text-align: right;
  font-weight: 500;
}
@media (max-width: 600px) {
  .iptv-modern-card { padding: 1.2rem 0.7rem; }
  .iptv-table th, .iptv-table td { font-size: 0.97em; padding: 0.5em 0.3em;}
  .iptv-counts { text-align: left; }
}