:root {
  --vc-bg: #040612;
  --vc-bg-soft: #0b1020;
  --vc-card: #101626;
  --vc-border: #263043;
  --vc-accent: #00ffa3;
  --vc-accent-soft: rgba(0, 255, 163, 0.15);
  --vc-text: #f9fafb;
  --vc-muted: #9ca3af;
  --vc-danger: #ef4444;
  --vc-offline: #6b7280;
  --vc-radius: 0.85rem;
  --vc-radius-pill: 999px;
  --vc-shadow-soft: 0 20px 40px rgba(0,0,0,0.6);
  --vc-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--vc-font-main);
  background: radial-gradient(circle at top, #101828 0, #020617 55%);
  color: var(--vc-text);
}

/* Layout */
.vc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Header */
.vc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(12px);
}
.vc-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.vc-logo__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--vc-accent);
  box-shadow: 0 0 14px var(--vc-accent);
}
.vc-logo__text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vc-text);
  font-size: 0.95rem;
}

.vc-nav {
  display: flex;
  gap: 1rem;
}
.vc-nav__link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--vc-muted);
}
.vc-nav__link:hover {
  color: var(--vc-text);
}

/* Hero */
.vc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}
.vc-hero__text h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
}
.vc-hero__text p {
  margin: 0;
  color: var(--vc-muted);
}
.vc-hero__meta {
  text-align: right;
}

/* Pills and tags */
.vc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--vc-radius-pill);
  font-size: 0.75rem;
  background: rgba(148, 163, 184, 0.25);
  color: var(--vc-text);
  margin-right: 0.25rem;
}
.vc-pill--soft {
  background: rgba(148, 163, 184, 0.15);
  color: var(--vc-muted);
}
.vc-pill--flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.vc-tag {
  font-size: 0.7rem;
  border-radius: var(--vc-radius-pill);
  padding: 0.1rem 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Flag icons */
.vc-flag {
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Cards grid */
.vc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.vc-card {
  background: var(--vc-card);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow-soft);
  border: 1px solid var(--vc-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vc-card__thumb-wrap {
  position: relative;
  display: block;
}
.vc-card__thumb {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.vc-card__live-dot {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--vc-radius-pill);
  background: rgba(220, 38, 38, 0.95);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
}

/* NEW ribbon */
.vc-card__ribbon {
  position: absolute;
  top: 0.6rem;
  right: -2.1rem;
  background: #f97316;
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  transform: rotate(45deg);
  padding: 0.15rem 1.6rem;
  pointer-events: none;
}

.vc-card__body {
  padding: 0.6rem 0.7rem 0.7rem;
}
.vc-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vc-card__name {
  font-weight: 600;
  color: var(--vc-text);
  text-decoration: none;
}
.vc-card__name:hover {
  color: var(--vc-accent);
}
.vc-card__viewers {
  font-size: 0.8rem;
  color: var(--vc-muted);
}
.vc-card__meta {
  margin-top: 0.4rem;
}
.vc-card__tags {
  margin-top: 0.4rem;
}

/* Pagination */
.vc-pagination {
  margin: 1.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.vc-page-link {
  padding: 0.25rem 0.75rem;
  border-radius: var(--vc-radius-pill);
  border: 1px solid var(--vc-border);
  color: var(--vc-muted);
  text-decoration: none;
}
.vc-page-link:hover {
  color: var(--vc-text);
  border-color: var(--vc-accent);
}
.vc-page-link--disabled {
  opacity: 0.4;
  pointer-events: none;
}
.vc-page-status {
  color: var(--vc-muted);
}

/* Footer */
.vc-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
}
.vc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--vc-muted);
}
.vc-footer__small {
  margin: 0.3rem 0 0;
}

/* Profile layout */
.vc-profile__hero {
  display: flex;
  gap: 1.2rem;
  margin: 1.2rem 0 1rem;
}
.vc-profile__left {
  display: flex;
  gap: 1rem;
}
.vc-profile__avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--vc-radius);
  object-fit: cover;
  border: 1px solid var(--vc-border);
}
.vc-profile__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vc-profile__name {
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vc-profile__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.vc-profile__line {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  color: var(--vc-muted);
}

.vc-badge {
  padding: 0.1rem 0.5rem;
  border-radius: var(--vc-radius-pill);
  font-size: 0.7rem;
}
.vc-badge--live {
  background: var(--vc-danger);
  color: #fff;
}
.vc-badge--offline {
  background: var(--vc-offline);
  color: #fff;
}

/* Player + side */
.vc-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: flex-start;
}
.vc-profile__player-wrap {
  background: var(--vc-card);
  border-radius: var(--vc-radius);
  border: 1px solid var(--vc-border);
  padding: 0.6rem;
  box-shadow: var(--vc-shadow-soft);
}
.vc-profile__player {
  width: 100%;
  border-radius: 0.6rem;
  background: #020617;
  aspect-ratio: 16 / 9;      /* keep same frame ratio for all */
  max-height: 70vh;          /* don’t get taller than viewport */
  object-fit: cover;         /* fill frame nicely (like good camsites) */
}

.vc-profile__hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--vc-muted);
}
.vc-profile__offline-placeholder {
  padding: 1.5rem;
  text-align: center;
  color: var(--vc-muted);
}

.vc-profile__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vc-box {
  background: var(--vc-card);
  border-radius: var(--vc-radius);
  border: 1px solid var(--vc-border);
  padding: 0.7rem 0.8rem;
  box-shadow: var(--vc-shadow-soft);
}
.vc-box__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.vc-tags-list {
  display: flex;
  flex-wrap: wrap;
}
.vc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.vc-info-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.vc-info-list span:first-child {
  color: var(--vc-muted);
}

/* Empty state */
.vc-empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--vc-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .vc-profile__content {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .vc-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .vc-hero__meta {
    text-align: left;
  }
  .vc-profile__hero {
    flex-direction: column;
  }
}

/* =========================
   FILTERS – PRO VERSION
   ========================= */

.vc-filters {
  margin: 0 0 1.2rem;
}

.vc-filters__form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--vc-radius);
  border: 1px solid var(--vc-border);
  padding: 0.75rem 0.9rem;
  box-shadow: var(--vc-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vc-filters__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vc-filters__group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex: 1 1 180px;
}

.vc-filters__group label {
  font-size: 0.75rem;
  color: var(--vc-muted);
  margin-bottom: 0.25rem;
}

.vc-filters__group select {
  border-radius: 0.5rem;
  border: 1px solid var(--vc-border);
  background: rgba(15,23,42,0.9);
  color: var(--vc-text);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

/* Toggles */
.vc-filters__toggles {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--vc-muted);
}

.vc-toggle input {
  display: none;
}

.vc-toggle__fake {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--vc-border);
  background: rgba(15,23,42,0.9);
  position: relative;
  transition: all 0.18s ease;
}

.vc-toggle__fake::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--vc-muted);
  transition: all 0.18s ease;
}

.vc-toggle input:checked + .vc-toggle__fake {
  border-color: var(--vc-accent);
  background: var(--vc-accent-soft);
}

.vc-toggle input:checked + .vc-toggle__fake::after {
  transform: translateX(12px);
  background: var(--vc-accent);
}

.vc-toggle__label {
  white-space: nowrap;
}

/* Filter actions + count */
.vc-filters__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vc-filters__count {
  font-size: 0.8rem;
  color: var(--vc-muted);
}

/* Buttons used in filters */
.vc-btn {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-btn--primary {
  background: var(--vc-accent);
  color: #020617;
}

.vc-btn--primary:hover {
  filter: brightness(1.05);
}

.vc-btn--ghost {
  border-color: var(--vc-border);
  background: transparent;
  color: var(--vc-muted);
}

.vc-btn--ghost:hover {
  border-color: var(--vc-accent);
  color: var(--vc-text);
}

/* Responsive filters */
@media (max-width: 700px) {
  .vc-filters__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* Mini grids for offline/suggestions */
.vc-mini-grid {
  display: grid;
  gap: 0.5rem;
}

.vc-mini-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vc-mini-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vc-mini-card {
  display: block;
  background: rgba(15,23,42,0.9);
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--vc-border);
  text-decoration: none;
}

.vc-mini-card__thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.vc-mini-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.35rem 0.3rem;
  font-size: 0.75rem;
}

.vc-mini-card__name {
  color: var(--vc-text);
}

.vc-mini-card:hover .vc-mini-card__name {
  color: var(--vc-accent);
}

.vc-mini-card__flag img {
  display: block;
}

.vc-suggest-section {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .vc-mini-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vc-mini-grid--3,
  .vc-mini-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Country cloud card */
.vc-box--countries {
  margin-top: 1.5rem;
}

.vc-box__header--countries {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.vc-country-filter {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.vc-country-filter__search {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--vc-border);
  background: rgba(15,23,42,0.9);
  color: var(--vc-text);
  font-size: 0.8rem;
}

.vc-country-filter__sort {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--vc-border);
  background: rgba(15,23,42,0.9);
  color: var(--vc-muted);
  font-size: 0.8rem;
}

.vc-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 0.45rem 0.75rem;
}

.vc-country-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.35);
  text-decoration: none;
  color: var(--vc-text);
  font-size: 0.8rem;
}

.vc-country-pill:hover {
  border-color: var(--vc-accent);
}

.vc-country-pill__flag img {
  display: block;
  border-radius: 2px;
}

.vc-country-pill__name {
  flex: 1;
}

.vc-country-pill__count {
  font-weight: 600;
  color: var(--vc-muted);
}

@media (max-width: 700px) {
  .vc-box__header--countries {
    flex-direction: column;
    align-items: flex-start;
  }
  .vc-country-filter {
    width: 100%;
  }
  .vc-country-filter__search {
    flex: 1;
  }
}
/* QR avatar fallback */
.vc-avatar-qr {
  width: 140px;
  height: 140px;
  border-radius: var(--vc-radius);
  background: radial-gradient(circle at 10% 0, rgba(0,255,163,0.2), transparent 60%),
              #020617;
  border: 1px solid var(--vc-border);
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  box-shadow: var(--vc-shadow-soft);
}

.vc-avatar-qr__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--vc-muted);
}

.vc-avatar-qr__flag img {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

.vc-avatar-qr__qr {
  flex: 1;
  margin: 0.25rem 0;
  border-radius: 0.4rem;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-avatar-qr__qr canvas {
  width: 100%;
  height: 100%;
}

.vc-avatar-qr__name {
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* Accent pill used for "On air" */
.vc-pill--accent {
  background: var(--vc-accent);
  color: #020617;
}

/* Stream info badges for positive flags */
.vc-stream-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.vc-stream-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--vc-radius-pill);
  background: var(--vc-accent-soft);
  color: var(--vc-text);
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: help;
}
