:root {
  --bc-bg-1: #ffffff;
  --bc-bg-2: #ffffff;
  --bc-bg-3: #ffffff;
  --bc-surface: #ffffff;
  --bc-surface-soft: #f8fafc;
  --bc-border: rgba(15, 23, 42, 0.14);
  --bc-text: #0f172a;
  --bc-muted: #334155;
  --bc-accent: #0d6efd;
  --bc-accent-strong: #1d4ed8;
  --bc-highlight: #f59e0b;
  --bc-success: #16a34a;
  --bc-warning: #ea580c;
  --bc-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

body.byteclash-index,
body.byteclash-scoreboard {
  font-family: "Sora", sans-serif;
  background: #ffffff;
  color: var(--bc-text);
  min-height: 100vh;
}

body.byteclash-index a,
body.byteclash-scoreboard a {
  color: #1d4ed8;
}

body.byteclash-index a:hover,
body.byteclash-scoreboard a:hover,
body.byteclash-index a:focus,
body.byteclash-scoreboard a:focus {
  color: #1e40af;
}

body.byteclash-index .back-to-top,
body.byteclash-scoreboard .back-to-top {
  background: #f82249;
  color: #ffffff !important;
  border: 0;
  box-shadow: none;
  z-index: 9999;
}

body.byteclash-index .back-to-top:hover,
body.byteclash-scoreboard .back-to-top:hover,
body.byteclash-index .back-to-top:focus,
body.byteclash-scoreboard .back-to-top:focus {
  background: #e0072f;
  color: #ffffff !important;
}

/* Keep top navigation readable on the dark header bar */
body.byteclash-index #header .nav-menu a,
body.byteclash-scoreboard #header .nav-menu a {
  color: rgba(202, 206, 221, 0.8) !important;
}

body.byteclash-index #header #idioma_selecionado,
body.byteclash-scoreboard #header #idioma_selecionado {
  color: #ffffff !important;
}

body.byteclash-index #header .nav-menu a:hover,
body.byteclash-scoreboard #header .nav-menu a:hover,
body.byteclash-index #header .nav-menu .menu-active a,
body.byteclash-scoreboard #header .nav-menu .menu-active a {
  color: #ffffff !important;
}

body.byteclash-index h1,
body.byteclash-index h2,
body.byteclash-index h3,
body.byteclash-scoreboard h1,
body.byteclash-scoreboard h2,
body.byteclash-scoreboard h3,
body.byteclash-scoreboard h4,
body.byteclash-scoreboard h5 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
  color: #0f172a;
}

body.byteclash-index #speakers-details {
  padding: 24px 0 48px;
}

body.byteclash-index .byteclash-index-shell,
body.byteclash-scoreboard .byteclash-stage {
  width: min(1240px, calc(100% - 30px));
  margin: 0 auto;
}

body.byteclash-index .byteclash-hero-grid {
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

body.byteclash-index .byteclash-poster-card,
body.byteclash-index .byteclash-intro-panel,
body.byteclash-scoreboard .byteclash-hero,
body.byteclash-scoreboard .byteclash-section-card,
body.byteclash-scoreboard .fresh-table,
body.byteclash-scoreboard .stats-card,
body.byteclash-scoreboard .admin-panel {
  background: linear-gradient(165deg, var(--bc-surface), var(--bc-surface-soft));
  border: 1px solid var(--bc-border);
  border-radius: 20px;
  box-shadow: var(--bc-shadow);
}

body.byteclash-index .byteclash-poster-card {
  padding: 14px;
}

body.byteclash-index .byteclash-poster-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

body.byteclash-index .byteclash-intro-panel {
  padding: 28px;
}

body.byteclash-index .byteclash-kicker,
body.byteclash-scoreboard .byteclash-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111827;
  background: linear-gradient(100deg, var(--bc-highlight), #fde68a);
}

body.byteclash-index .byteclash-intro-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

body.byteclash-index .byteclash-intro-copy,
body.byteclash-scoreboard .byteclash-meta {
  color: var(--bc-muted);
  line-height: 1.65;
}

body.byteclash-index .byteclash-counter {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
}

body.byteclash-index .byteclash-search-wrap {
  margin: 10px 0 22px;
}

body.byteclash-index .byteclash-search-wrap input {
  height: 52px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  padding: 0 16px;
}

body.byteclash-index .byteclash-search-wrap input::placeholder {
  color: #64748b;
}

body.byteclash-index .byteclash-search-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
  border-color: var(--bc-accent);
}

body.byteclash-index #event-cards-container {
  row-gap: 14px;
}

body.byteclash-index .event-card {
  display: block;
}

body.byteclash-index .event-card-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

body.byteclash-index .event-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.14);
  border-color: #93c5fd;
}

body.byteclash-index .event-card-image-container {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  max-width: none;
  max-height: none;
}

body.byteclash-index .event-card-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 0 !important;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

body.byteclash-index .event-card-inner:hover .event-card-image-container img {
  transform: scale(1.08);
}

body.byteclash-index .event-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

body.byteclash-index .event-status.is-open {
  background: linear-gradient(120deg, var(--bc-success), #22c55e);
}

body.byteclash-index .event-status.is-finished {
  background: linear-gradient(120deg, #64748b, #475569);
}

body.byteclash-index .event-card-body {
  border: 0;
  padding: 18px 16px 16px;
  background: transparent;
  align-items: flex-start;
}

body.byteclash-index .event-card-date {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

body.byteclash-index .event-card-title {
  color: #0f172a;
  font-size: 20px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
}

body.byteclash-index .event-card-location {
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

body.byteclash-index .event-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

body.byteclash-index .event-profile-link {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

body.byteclash-index .event-profile-link:hover {
  color: #1e40af;
  text-decoration: none;
}

body.byteclash-index .event-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(120deg, var(--bc-accent), var(--bc-accent-strong));
}

body.byteclash-index .event-primary-link:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.07);
}

body.byteclash-index .grayscale {
  filter: grayscale(100%) contrast(0.95);
}

body.byteclash-index .byteclash-empty-results {
  display: none;
  margin: 10px 0 0;
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  color: #334155;
  background: #f8fafc;
}

body.byteclash-index .byteclash-ad-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: var(--bc-shadow);
}

body.byteclash-scoreboard .byteclash-stage {
  padding: 26px 0 46px;
}

body.byteclash-scoreboard .byteclash-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 22px;
  padding: 20px;
  margin-bottom: 16px;
}

body.byteclash-scoreboard .byteclash-hero-poster img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.byteclash-scoreboard .byteclash-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

body.byteclash-scoreboard .byteclash-subtitle {
  margin: 4px 0 10px;
  color: #334155;
  font-weight: 600;
}

body.byteclash-scoreboard .byteclash-meta,
body.byteclash-scoreboard .byteclash-meta i,
body.byteclash-scoreboard .byteclash-meta a {
  color: #334155;
}

body.byteclash-scoreboard .byteclash-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.byteclash-scoreboard .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

body.byteclash-scoreboard .share-btn:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.06);
}

body.byteclash-scoreboard .share-btn.facebook {
  background: linear-gradient(130deg, #2563eb, #1d4ed8);
}

body.byteclash-scoreboard .share-btn.twitter {
  background: linear-gradient(130deg, #0ea5e9, #0284c7);
}

body.byteclash-scoreboard .share-btn.whatsapp {
  background: linear-gradient(130deg, #22c55e, #16a34a);
}

body.byteclash-scoreboard .nav-tabs {
  border: 0;
  margin: 0 0 16px;
  justify-content: center;
  display: flex;
}

body.byteclash-scoreboard .nav-tabs > li > a,
body.byteclash-scoreboard .nav-tabs > li.active > a {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
}

body.byteclash-scoreboard .fresh-table {
  border-radius: 20px;
  overflow: hidden;
  padding: 14px 14px 4px;
  margin-bottom: 20px;
}

body.byteclash-scoreboard .fixed-table-container {
  border: 0 !important;
}

body.byteclash-scoreboard #fresh-table {
  margin-bottom: 0;
}

body.byteclash-scoreboard #fresh-table thead th {
  background: #1d4ed8;
  color: #ffffff;
  border-bottom: 1px solid #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 800;
  padding: 12px 8px;
}

body.byteclash-scoreboard #fresh-table tbody td {
  border-top: 1px solid #e2e8f0;
  padding: 10px 8px;
  color: #0f172a;
  vertical-align: middle;
  background: #ffffff;
}

body.byteclash-scoreboard #fresh-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

body.byteclash-scoreboard #fresh-table img {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  object-fit: cover;
}

body.byteclash-scoreboard .table a {
  color: #1d4ed8;
  font-weight: 600;
}

body.byteclash-scoreboard .table a:hover {
  color: #1e40af;
}

body.byteclash-scoreboard .ads-dark {
  border-radius: 18px;
  margin: 0 0 20px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  box-shadow: var(--bc-shadow);
}

body.byteclash-scoreboard .stats-card {
  margin: 0 auto 24px;
  max-width: 760px;
  padding: 24px;
}

body.byteclash-scoreboard .stats-card h5 {
  margin: 0 0 14px;
  font-size: 24px;
  color: #0f172a;
}

body.byteclash-scoreboard .stats-card p {
  margin: 0 0 10px;
  color: #1f2937;
}

body.byteclash-scoreboard .admin-panel {
  margin-top: 18px !important;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid #f5d08f !important;
  background: linear-gradient(155deg, #ffffff, #fffaf0);
  color: #1f2937;
}

body.byteclash-scoreboard .admin-panel > h4 {
  margin-top: 0;
  margin-bottom: 14px;
}

body.byteclash-scoreboard .admin-panel > h5 {
  margin-top: 12px;
  margin-bottom: 10px;
}

body.byteclash-scoreboard .admin-panel > hr {
  margin: 16px -24px;
  border-top-color: #f1dfba;
}

body.byteclash-scoreboard .admin-panel .table-responsive {
  margin-top: 8px;
}

body.byteclash-scoreboard .admin-panel h4,
body.byteclash-scoreboard .admin-panel h5,
body.byteclash-scoreboard .admin-panel label,
body.byteclash-scoreboard .admin-panel p,
body.byteclash-scoreboard .admin-panel strong {
  color: #1f2937;
}

body.byteclash-scoreboard .admin-panel .table {
  color: #1f2937;
  background: #ffffff;
}

body.byteclash-scoreboard .admin-panel .table th {
  background: #fff3dc;
  color: #5b3a05;
  border-color: #f5d08f;
}

body.byteclash-scoreboard .admin-panel .table td {
  border-color: #f1e3c8;
}

body.byteclash-scoreboard .admin-panel .btn-primary {
  border: 0;
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

body.byteclash-scoreboard .admin-panel .btn-default {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1f2937;
}

body.byteclash-scoreboard .admin-panel .btn-danger {
  border: 0;
  background: linear-gradient(120deg, #ef4444, #dc2626);
  color: #ffffff;
}

body.byteclash-scoreboard .admin-panel .form-control {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

body.byteclash-scoreboard .text-muted,
body.byteclash-scoreboard .admin-panel .text-muted,
body.byteclash-scoreboard .admin-panel small {
  color: #64748b !important;
}

body.byteclash-scoreboard .bootstrap-table .pagination > li > a,
body.byteclash-scoreboard .bootstrap-table .pagination > li > span {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1f2937;
}

body.byteclash-scoreboard .bootstrap-table .pagination > .active > a,
body.byteclash-scoreboard .bootstrap-table .pagination > .active > span {
  background: linear-gradient(120deg, var(--bc-accent-strong), var(--bc-accent));
  border-color: transparent;
  color: #ffffff;
}

@media (max-width: 992px) {
  body.byteclash-index .byteclash-hero-grid,
  body.byteclash-scoreboard .byteclash-hero {
    grid-template-columns: 1fr;
  }

  body.byteclash-scoreboard .byteclash-hero {
    padding: 16px;
  }

  body.byteclash-scoreboard .byteclash-hero-poster img {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  body.byteclash-index #speakers-details {
    padding-top: 6px;
  }

  body.byteclash-index .byteclash-intro-panel {
    padding: 20px 18px;
  }

  body.byteclash-index .event-card-title {
    font-size: 18px;
  }

  body.byteclash-scoreboard .byteclash-stage {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  body.byteclash-scoreboard #fresh-table thead th {
    font-size: 10px;
    padding: 10px 6px;
  }

  body.byteclash-scoreboard #fresh-table tbody td {
    font-size: 12px;
    padding: 8px 6px;
  }

  body.byteclash-scoreboard #fresh-table img {
    width: 70px !important;
    height: 70px !important;
  }
}

@media (max-width: 540px) {
  body.byteclash-scoreboard .fresh-table,
  body.byteclash-scoreboard .byteclash-section-card,
  body.byteclash-scoreboard .stats-card,
  body.byteclash-scoreboard .admin-panel,
  body.byteclash-index .byteclash-poster-card,
  body.byteclash-index .byteclash-intro-panel {
    border-radius: 14px;
  }

  body.byteclash-scoreboard .share-btn {
    width: 100%;
    justify-content: center;
  }

  body.byteclash-scoreboard .admin-panel {
    padding: 16px 14px;
  }

  body.byteclash-scoreboard .admin-panel > hr {
    margin-left: -14px;
    margin-right: -14px;
  }
}
