/* =========================
   PROFILE LAYOUT ROOT
   ========================= */

.vc-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: flex-start;
}

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

/* LEFT: player + hints + auto-next */

.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;
  max-height: 70vh;
  object-fit: cover;
}

.vc-profile__hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--vc-muted);
}

/* RIGHT COLUMN WRAPPER */

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

/* =========================
   HERO + BADGES + META
   ========================= */

.vc-profile__hero-card {
  position: relative;
}

/* username line (now ABOVE avatar) */
.vc-profile__name {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.3vw, 1.2rem); /* smaller than grid cards */
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.vc-profile__name-text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* row with avatar (left) + meta (right) */
.vc-profile__hero {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
}

/* avatar column */
.vc-profile__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* avatar container – badges are absolutely positioned inside */
.vc-profile__avatar-wrap {
  position: relative;
  display: inline-block;
}

.vc-profile__avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--vc-radius);
  object-fit: cover;
  border: 1px solid var(--vc-border);
}

/* vertical stack OVER AVATAR, top-right */
.vc-profile__hero-badges {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  pointer-events: auto;
  z-index: 2;
}

/* status (LIVE / OFFLINE) */
.vc-profile__status-badge {
  font-size: 0.68rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  white-space: nowrap;
}

.vc-profile__status-badge--live {
  background: var(--vc-danger);
  color: #fff;
}

.vc-profile__status-badge--offline {
  background: var(--vc-offline);
  color: #fff;
}

/* country pill (clickable) */
.vc-profile__country-badge {
  max-width: 8.5rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-profile__country-badge img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.vc-profile__country-badge:hover {
  border-color: var(--vc-accent);
  color: var(--vc-accent);
}

/* Preference + Speaks in ONE centered line under avatar */
.vc-profile__avatar-pref {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--vc-muted);
  text-align: center;
  max-width: 180px;
}

/* meta (pills) on the right */
.vc-profile__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.vc-profile__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.vc-profile__line {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--vc-muted);
}

/* On-air pill styling */
.vc-onair-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.vc-onair-pill time {
  font-variant-numeric: tabular-nums;
}

/* responsive hero layout */
@media (max-width: 700px) {
  .vc-profile__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vc-profile__meta {
    align-items: center;
    text-align: center;
  }
}

/* =========================
   OFFLINE / STREAM STARTING
   ========================= */

.vc-profile__offline-card {
  text-align: left;
}

.vc-profile__offline-note {
  font-size: 0.85rem;
  color: var(--vc-muted);
}

/* offline placeholder block (profile.offline-grid.php) */
.vc-profile__offline-placeholder {
  padding: 0.7rem 0.8rem;
}

.vc-profile__offline-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  margin: 0.4rem 0;
}

.vc-offline-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
}

/* =========================
   GENERIC BOX / LISTS ON PROFILE
   ========================= */

.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;
  gap: 0.35rem;
}

.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;
  gap: 0.5rem;
}

.vc-info-list span:first-child {
  color: var(--vc-muted);
}

/* Stream info badges (gold party, verified etc) */

.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;
}

/* =========================
   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;
}

/* =========================
   AUTO-NEXT OVERLAY + SETTINGS
   ========================= */

/* floating countdown pill */
.vc-autonext {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 11000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  color: var(--vc-text);
}

.vc-autonext__label {
  color: var(--vc-muted);
}

.vc-autonext__timer {
  font-weight: 700;
  color: var(--vc-accent);
  min-width: 2.5rem;
  text-align: center;
}

.vc-autonext__cancel {
  border: 0;
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  line-height: 1;
}

.vc-autonext__cancel:hover {
  color: #f87171;
}

/* circular countdown */
.vc-autonext__progress {
  width: 26px;
  height: 26px;
}

.vc-autonext__svg {
  width: 100%;
  height: 100%;
}

.vc-autonext__circle-bg {
  fill: transparent;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 3;
}

.vc-autonext__circle {
  fill: transparent;
  stroke: var(--vc-accent);
  stroke-width: 3;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-linecap: round;
}

.vc-autonext__text {
  display: flex;
  flex-direction: column;
}

/* Settings pill under player */

.vc-autonext-box {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  background: var(--vc-card);
  border-radius: var(--vc-radius);
  border: 1px solid var(--vc-border);
  padding: 0.6rem 0.8rem;
  box-shadow: var(--vc-shadow-soft);
  display: flex;
  justify-content: center;
}

.vc-auto-next__bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  margin: 0 auto;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.6)
  );
}

.vc-auto-next__title {
  font-weight: 600;
  white-space: nowrap;
}

.vc-auto-next__label {
  font-size: 0.9rem;
  opacity: 0.85;
  white-space: nowrap;
}

.vc-auto-next__input {
  width: 4.5rem;
  text-align: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

@media (max-width: 480px) {
  .vc-auto-next__bar {
    flex-wrap: wrap;
  }
}

/* =========================
   SHORTCUTS BUTTON CARD
   ========================= */

.vc-shortcuts-box {
  margin-top: 0.6rem;
}

.vc-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.vc-shortcut-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
}

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

.vc-shortcut-btn--accent {
  border-color: var(--vc-accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

/* =========================
   SUGGEST / OFFLINE GRID CARDS
   (used by profile.offline-grid.php)
   ========================= */

.vc-suggest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

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

@media (max-width: 600px) {
  .vc-suggest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vc-suggest-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 0.9rem;
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vc-suggest-card__thumb-wrap {
  position: relative;
  display: block;
}

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

.vc-suggest-card__badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.96);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.vc-suggest-card__body {
  padding: 0.55rem 0.7rem 0.7rem;
}

.vc-suggest-card__name {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.vc-suggest-card__name a {
  color: var(--vc-text);
  text-decoration: none;
}

.vc-suggest-card__name a:hover {
  color: var(--vc-accent);
}

.vc-suggest-card__line {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  color: var(--vc-muted);
}

.vc-suggest-card__meta {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--vc-muted);
}
