/* ============================================================
   CONTESTANT DETAIL PAGE – CLASSIC LAYOUT (USES THEME TOGGLE)
   ============================================================ */

/* Do NOT set body background here – let global/theme CSS handle it */

.content-detail {
  padding: 20px 0 40px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Two-column layout */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* LEFT COLUMN */
.detail-left .panel,
.detail-left .profile-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-1);
  margin-bottom: 18px;
}

/* Profile image */
.profile-image-wrap img,
.profile-img-placeholder {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.profile-img-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  color: var(--muted);
}

/* Profile info + basic data */
.profile-info {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Basic info rows (Nick name, From, Born, Profession) */
.c-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.c-row:last-child {
  border-bottom: none;
}

.c-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.c-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* On small screens: keep 2 columns (same line) but tighter */
@media (max-width: 480px) {
  .c-row {
    grid-template-columns: 1.1fr 1.4fr;
    gap: 6px;
  }
  .c-label {
    font-size: 11px;
  }
  .c-value {
    font-size: 13px;
    text-align: right;
    margin-top: 0;
  }
}

/* Social icons row inside card */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Small round icon buttons */
.social-pill {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s ease;
  padding: 0;
}

.social-pill:hover {
  transform: translateY(-2px);
  opacity: .95;
}

.social-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon size fix */
.social-ico svg,
.social-pill svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Hide extra text label (icon-only) */
.social-label {
  display: none;
}

/* Extra safety: any SVG in detail columns stays small */
.detail-left svg,
.detail-right svg {
  max-width: 32px;
  max-height: 32px;
}

/* RIGHT COLUMN */
.detail-right .panel {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-1);
}

.main-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Biography text */
.bio-panel h3 {
  margin-bottom: 10px;
}

.bio-text p {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15px;
}

/* Notification */
.notification-panel {
  margin-top: 22px;
}

.notification-panel h3 {
  margin-bottom: 10px;
}

.notification-text {
  line-height: 1.6;
  font-size: 15px;
  color: var(--text);
}

/* News block – distinct look */
.news-panel {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.news-panel h3 {
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.news-title {
  margin: 0;
}

.news-title a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.news-title a:hover {
  text-decoration: underline;
}

/* Ad slots */
.ad-slot {
  margin: 18px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .detail-left .panel,
  .detail-left .profile-card,
  .detail-right .panel {
    padding: 16px;
  }

  /* Hide repeated big name inside right column on mobile */
  .detail-right .main-title {
    display: none;
  }
}

/* ==========================
   Nominations wiki-table
   ========================== */

/* Keep the scroll confined inside the nominations area */
.nominations-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Base table – responsive */
.wiki-table {
  border-collapse: collapse;
  width: 100%;
}

/* Desktop / tablet: wide table with compact columns */
@media (min-width: 900px) {
  .wiki-table {
    min-width: 850px;
  }
  .wiki-table th,
  .wiki-table td {
    white-space: nowrap;
  }
}

/* Mobile: table fits screen; texts wrap instead of pushing width */
@media (max-width: 1200px) {
  .wiki-table {
    min-width: 100%;
    table-layout: fixed;
    font-size: 13px;
  }
  .wiki-table th,
  .wiki-table td {
    white-space: normal;
    word-wrap: break-word;
    padding: 8px 6px;
  }
}

/* Visual styles */
.wiki-table th {
  background: #1e293b;
  color: #38bdf8;
  padding: 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.wiki-table td {
  border: 1px solid #f1f5f9;
  padding: 10px;
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.5;
}

.wiki-table td a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.wiki-table td a:hover {
  text-decoration: underline;
}

.wk-week {
  background: #f8fafc;
  font-weight: 800;
  text-align: center;
  color: #4f46e5;
  border-left: 6px solid #4f46e5;
}

.st-nom {
  background: #fffbeb;
  color: #92400e;
  font-weight: bold;
  text-align: center;
  border: 1px solid #fde68a;
}

.st-win {
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
  text-align: center;
}

.st-none {
  background: #fafafa;
  color: #94a3b8;
  text-align: center;
  font-style: italic;
}

/* ==========================
   PROFILE DETAIL CARD (STUDIO)
   ========================== */

/* Card instance on contestant detail */
.bb-card--profile-details {
  margin-top: 0;
}

/* Base card */
.bb-card {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.card-header {
  background: linear-gradient(135deg,#1a1a1a,#000);
  padding: 35px 20px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: #444;
  color: #fff;
}

.status-badge.winner,
.status-badge[data-status="winner"],
.status-badge[data-status="Winner"] {
  background: #FFD700;
  color: #000;
}

.profile-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid #FFD700;
  overflow: hidden;
  background: #111;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-title {
  font-size: 24px;
  font-weight: 900;
  margin: 5px 0 0;
  text-transform: uppercase;
}

.series-info {
  color: #FFD700;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
}

.series-info a {
  color: inherit;
  text-decoration: none;
}

.series-info a:hover {
  text-decoration: underline;
}

.card-content {
  padding: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.lbl {
  font-size: 10px;
  color: #888;
  font-weight: 800;
  text-transform: uppercase;
}

.val {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  text-align: right;
}

.nom-history-box {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 12px;
  margin: 15px 0;
  border-left: 5px solid #111;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 10px;
}

.stat-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
}

.stat-n {
  font-size: 18px;
  font-weight: 900;
  display: block;
}

.stat-l {
  font-size: 9px;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Social footer under profile card */
.card-footer {
  background: #fdfdfd;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.social-link img {
  width: 18px;
  height: 18px;
}

/* Remove extra space above detail card when this template is used */
.content.content-detail {
  margin-top: 0;
  padding-top: 0;
}

.content.content-detail .detail-left > .bb-card:first-child,
.content.content-detail .detail-left > #result-card {
  margin-top: 0;
}

.bio-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bio-title {
  margin: 0;
}

.bio-translate-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.bio-translate-bar select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
}

/* ================================
   SAME SEASON PLAYERS – STYLING
   ================================ */

.same-season-panel {
  margin-top: 16px;
}

.same-season-panel h3 {
  margin-bottom: 12px;
}

.same-season-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.same-season-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.98),
    rgba(250,250,250,0.98)
  );
  box-shadow: 0 6px 18px rgba(11, 6, 20, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.same-season-item a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(11, 6, 20, 0.10);
}

.same-season-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.same-season-item span {
  font-size: 14px;
  font-weight: 600;
  color: #5b2cff; /* matches your link tone */
  line-height: 1.2;
}

/* Name summary pill (single, cleaned version) */
.name-summary {
  margin: 6px 0 14px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #f3e8ff, #ede9fe);
  color: #4c1d95;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.name-summary::before {
  content: "• ";
  color: #a855f7;
  font-weight: 700;
}

/* Optional info box under name summary */
.name-summary-box {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;                 /* soft dark */
  background: #f1f5f9;            /* light gray-blue */
  border-radius: 8px;
  line-height: 1.5;
}

/* Hide name summary on mobile (UX-friendly) */
@media (max-width: 640px) {
  .name-summary {
    display: none;
  }
}

/* Dark mode safe */
body.dark .name-summary-box {
  background: #1e293b;
  color: #cbd5f5;
}

.name-summary-box::before {
  content: "ⓘ ";
  opacity: 0.6;
}

/* ==========================
   COMMENT BOX – FUTURE STYLE EDITS
   ========================== */
/*
  Add new contestant-detail styling overrides below this line.
  Examples:
  - Custom colors per language
  - Season-specific gradients
  - Temporary experiments (test and then clean up)
*/

/* =========================================================
   CONTESTANT DETAIL – PROFILE DETAIL CARD (FINAL FIX)
   ========================================================= */

/* Base profile card (already dark, ensure consistency) */
html[data-theme="dark"] .bb-card {
  background: #020617;
  color: #e5e7eb;
}

/* Info rows (Hometown / Occupation / Born) */
html[data-theme="dark"] .bb-card .info-row,
html[data-theme="dark"] .bb-card .c-row {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

html[data-theme="dark"] .bb-card .lbl {
  color: #9ca3af; /* muted label */
}

html[data-theme="dark"] .bb-card .val {
  color: #e5e7eb; /* readable value */
}

/* Nomination history mini box */
html[data-theme="dark"] .bb-card .nom-history-box {
  background: #020617;
  border-left: 4px solid #6366f1;
  color: #e5e7eb;
}

/* Stats boxes (1st / 99 / 0) */
html[data-theme="dark"] .bb-card .stat-item {
  background: #020617;
  border: 1px solid rgba(255,255,255,.12);
}

html[data-theme="dark"] .bb-card .stat-n {
  color: #facc15; /* gold highlight */
}

html[data-theme="dark"] .bb-card .stat-l {
  color: #9ca3af;
}

/* Instagram / social footer */
html[data-theme="dark"] .bb-card .card-footer {
  background: #020617;
  border-top: 1px solid rgba(255,255,255,.12);
}

html[data-theme="dark"] .bb-card .social-link {
  color: #e5e7eb;
}

/* =========================================================
   CONTESTANT DETAIL – SAME SEASON PLAYERS (DARK MODE FIX)
   ========================================================= */

/* Panel background */
html[data-theme="dark"] .same-season-panel {
  background: #020617; /* slate-950 */
  border-radius: 14px;
  padding: 12px;
}

/* Each player row */
html[data-theme="dark"] .same-season-item a {
  background: #020617 !important;     /* remove white gradient */
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
}

/* Player name */
html[data-theme="dark"] .same-season-item span {
  color: #c7d2fe; /* soft blue */
}

/* Player avatar background */
html[data-theme="dark"] .same-season-item img {
  background: #020617;
}

/* =========================================================
   CONTESTANT DETAIL – NOMINATIONS HISTORY (DARK MODE FIX)
   ========================================================= */

/* Table outer panel already dark – fix cells only */
html[data-theme="dark"] .wiki-table {
  border-color: rgba(255,255,255,.12);
}

/* General table cells */
html[data-theme="dark"] .wiki-table td {
  background: #020617 !important;   /* slate-950 */
  color: #e5e7eb !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Table header */
html[data-theme="dark"] .wiki-table th {
  background: #020617 !important;
  color: #38bdf8 !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* WEEK column */
html[data-theme="dark"] .wk-week {
  background: #020617 !important;
  color: #818cf8 !important;
  border-left: 4px solid #818cf8 !important;
}

/* FINAL POSITION column – remove light yellow */
html[data-theme="dark"] .st-nom {
  background: rgba(251,191,36,.18) !important; /* muted amber */
  color: #fde68a !important;
  border-color: rgba(251,191,36,.35) !important;
}

html[data-theme="dark"] .st-win {
  background: rgba(34,197,94,.22) !important; /* muted green */
  color: #86efac !important;
  border-color: rgba(34,197,94,.35) !important;
}

/* No nominations rows */
html[data-theme="dark"] .st-none {
  background: #020617 !important;
  color: #9ca3af !important;
  font-style: italic;
}
