/**
 * Zajednički stilovi: tablica lige + tamni „match day” rezultati (Druga liga FBiH).
 * Uključuje se na druga-liga-fbih-sjever.html i klub.html.
 */

.fbih-liga-card {
  border-radius: 14px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.55) 0%, rgba(15, 23, 42, 0.92) 40%, rgba(15, 23, 42, 0.97) 100%);
  box-shadow:
    0 12px 40px -12px rgba(0, 0, 0, 0.65),
    0 0 56px -18px rgba(108, 59, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
html:not(.dark) .fbih-liga-card {
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.99) 100%);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow:
    0 12px 36px -12px rgba(15, 23, 42, 0.12),
    0 0 48px -16px rgba(108, 59, 255, 0.12);
}

.fbih-liga-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.65;
}
@media (min-width: 768px) {
  .fbih-liga-table {
    font-size: 0.875rem;
  }
}

.fbih-liga-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.7rem 0.45rem;
  text-align: center;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(71, 85, 105, 0.65);
}
html:not(.dark) .fbih-liga-table thead th {
  color: rgba(71, 85, 105, 0.95);
  background: rgba(241, 245, 249, 0.98);
  border-bottom-color: rgba(203, 213, 225, 0.9);
}
.fbih-liga-table thead th.fbih-th-team {
  text-align: left;
  padding-left: 0.75rem;
}

.liga-team {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .liga-team {
    align-items: center;
    min-width: 140px;
  }
}

.liga-team-name {
  flex: 1;
  min-width: 0;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .fbih-liga-card .liga-table .liga-team-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
@media (min-width: 768px) {
  .liga-team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.fbih-liga-table .fbih-col-team {
  max-width: 100%;
  vertical-align: middle;
}
@media (min-width: 768px) {
  .fbih-liga-table .fbih-col-team {
    min-width: 11rem;
  }
}

.fbih-liga-table tbody td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: rgba(226, 232, 240, 0.92);
  transition: background-color 0.2s ease, filter 0.15s ease;
}
html:not(.dark) .fbih-liga-table tbody td {
  border-bottom-color: rgba(226, 232, 240, 0.95);
  color: rgba(30, 41, 59, 0.95);
}

.fbih-liga-table tbody tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.25);
}
.fbih-liga-table tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.35);
}
html:not(.dark) .fbih-liga-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.7);
}
html:not(.dark) .fbih-liga-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.95);
}

.fbih-liga-row:hover td {
  background: rgba(67, 56, 202, 0.22) !important;
}
html:not(.dark) .fbih-liga-row:hover td {
  background: rgba(199, 210, 254, 0.45) !important;
}
.fbih-liga-row:active td {
  filter: brightness(1.08);
}

.fbih-liga-row--zone-blue td:first-child {
  box-shadow: inset 3px 0 0 0 rgb(59, 130, 246);
}
.fbih-liga-row--zone-amber td:first-child {
  box-shadow: inset 3px 0 0 0 rgb(245, 158, 11);
}
.fbih-liga-row--zone-green td:first-child {
  box-shadow: inset 3px 0 0 0 rgb(22, 163, 74);
}
html.dark .fbih-liga-row--zone-green td:first-child {
  box-shadow: inset 3px 0 0 0 rgb(34, 197, 94);
}
.fbih-liga-row--zone-red td:first-child {
  box-shadow: inset 3px 0 0 0 rgb(239, 68, 68);
}

.fbih-liga-row--current td {
  box-shadow: inset 3px 0 0 0 #6c3bff !important;
}
html:not(.dark) .fbih-liga-row--current td {
  background: rgba(199, 210, 254, 0.55) !important;
}
.dark .fbih-liga-row--current td {
  background: rgba(67, 56, 202, 0.35) !important;
}

.fbih-col-pos {
  text-align: center;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.95) !important;
  white-space: nowrap;
}
.fbih-col-stat {
  text-align: center;
}
.fbih-col-form {
  text-align: center;
}

.fbih-form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 800;
}
.fbih-form-dot--e {
  background: rgba(71, 85, 105, 0.75);
  color: rgba(148, 163, 184, 0.6);
}
.fbih-form-dot--w {
  background: rgba(22, 163, 74, 0.9);
  color: #fff;
}
html.dark .fbih-form-dot--w {
  background: rgba(34, 197, 94, 0.85);
}
.fbih-form-dot--l {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
html.dark .fbih-form-dot--l {
  background: rgba(248, 113, 113, 0.8);
}
.fbih-form-dot--d {
  background: rgba(100, 116, 139, 0.85);
  color: rgba(226, 232, 240, 0.95);
}
.fbih-next-crest {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(51, 65, 85, 0.65);
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.35);
}
.fbih-next-crest img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .fbih-liga-card .liga-table {
    table-layout: auto;
    font-size: 0.75rem;
  }
  .fbih-liga-card .liga-table thead th {
    padding: 0.45rem 0.2rem;
    font-size: 0.5rem;
  }
  .fbih-liga-card .liga-table thead th.fbih-th-team {
    padding-left: 0.45rem;
    font-size: 0.5625rem;
  }
  .fbih-liga-card .liga-table tbody td {
    padding: 0.5rem 0.2rem;
  }
  .fbih-liga-card .liga-table .fbih-col-team {
    padding-left: 0.45rem;
    padding-right: 0.35rem;
  }
  .fbih-liga-card .liga-table .fbih-col-pos,
  .fbih-liga-card .liga-table thead th.fbih-th-pos {
    width: 1%;
    max-width: 3.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 0.65rem;
  }
  .fbih-liga-card .liga-table .fbih-col-stat,
  .fbih-liga-card .liga-table thead th.fbih-th-stat {
    width: 1%;
    max-width: 2rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    font-size: 0.65rem;
    line-height: 1.3;
  }
  .fbih-liga-card .liga-table .fbih-col-stat.font-bold {
    font-size: 0.7rem;
  }
}

/* Tamni „match day” — rezultati */
.fbih-fixtures-shell {
  background: #000000;
}
html:not(.dark) .fbih-fixtures-shell {
  background: #0a0a0a;
  border-color: rgba(148, 163, 184, 0.22);
}
.fbih-fixtures-list {
  min-height: 2rem;
}

/* Datum/vrijeme iznad reda — isto kao Druga liga FBiH Sjever (blok + meta) */
.fbih-fixture-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fbih-fixture-block:last-child {
  border-bottom: none;
}
.fbih-fixture-meta {
  padding: 0.55rem 1rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48);
}
@media (min-width: 640px) {
  .fbih-fixture-meta {
    padding: 0.65rem 1.5rem 0;
    font-size: 0.75rem;
  }
}

.fbih-fixture-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fbih-fixture-block .fbih-fixture-row {
  border-bottom: none;
}
@media (min-width: 640px) {
  .fbih-fixture-row {
    padding: 1rem 1.5rem;
    gap: 1rem 1.25rem;
  }
}

/* Zebra: direktni redovi (npr. klub) ili blok s meta + redom */
.fbih-fixtures-list > .fbih-fixture-row:nth-child(odd) {
  background: #000000;
}
.fbih-fixtures-list > .fbih-fixture-row:nth-child(even) {
  background: #121212;
}
.fbih-fixture-block:nth-child(odd) .fbih-fixture-row {
  background: #000000;
}
.fbih-fixture-block:nth-child(even) .fbih-fixture-row {
  background: #121212;
}
.fbih-fixture-block:nth-child(odd) .fbih-fixture-meta {
  background: #000000;
}
.fbih-fixture-block:nth-child(even) .fbih-fixture-meta {
  background: #121212;
}
html:not(.dark) .fbih-fixtures-list > .fbih-fixture-row:nth-child(odd) {
  background: #0a0a0a;
}
html:not(.dark) .fbih-fixtures-list > .fbih-fixture-row:nth-child(even) {
  background: #141414;
}
html:not(.dark) .fbih-fixture-block:nth-child(odd) .fbih-fixture-row {
  background: #0a0a0a;
}
html:not(.dark) .fbih-fixture-block:nth-child(even) .fbih-fixture-row {
  background: #141414;
}
html:not(.dark) .fbih-fixture-block:nth-child(odd) .fbih-fixture-meta {
  background: #0a0a0a;
}
html:not(.dark) .fbih-fixture-block:nth-child(even) .fbih-fixture-meta {
  background: #141414;
}

.fbih-fixture-row--utakmica-link {
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}
.fbih-fixture-row--utakmica-link:hover {
  filter: brightness(1.06);
}
.fbih-fixture-row--utakmica-link:focus-visible {
  outline: 2px solid rgba(108, 59, 255, 0.65);
  outline-offset: 2px;
}
.fbih-fixture-side {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}
.fbih-fixture-side--home {
  justify-content: flex-start;
}
.fbih-fixture-side--away {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.fbih-fixture-crest {
  flex-shrink: 0;
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .fbih-fixture-crest {
    height: 2.25rem;
    width: 2.25rem;
  }
}
.fbih-fixture-crest img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/** Mjesto u tablici Prve županijske (#1 … #14) ispod grba u redu rezultata */
.fbih-fixture-liga-pos {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.fbih-fixture-name {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  text-align: inherit;
}
@media (min-width: 640px) {
  .fbih-fixture-name {
    font-size: 0.9375rem;
  }
}
.fbih-fixture-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/** Izravna poveznica na utakmica.html (klik na rezultat). */
a.fbih-fixture-score-link {
  display: inline-block;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  outline-offset: 2px;
  white-space: nowrap;
}
a.fbih-fixture-score-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fbih-fixture-mid {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  min-width: min-content;
}
.fbih-fixture-mid--score {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .fbih-fixture-mid--score {
    font-size: 1rem;
  }
  .fbih-fixture-mid--score .fbih-fixture-score-line {
    font-size: 1rem;
  }
}

.fbih-fixture-mid--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 3.5rem;
}
.fbih-fixture-round-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Klub: jake boje reda — pobjeda / poraz / neriješeno */
.fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-win {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.62) 0%,
    rgba(22, 163, 74, 0.38) 28%,
    rgba(6, 78, 59, 0.22) 52%,
    rgba(0, 0, 0, 0.88) 100%
  ) !important;
  box-shadow:
    inset 6px 0 0 0 #16a34a,
    inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}
.fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-loss {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.58) 0%,
    rgba(220, 38, 38, 0.42) 28%,
    rgba(127, 29, 29, 0.28) 52%,
    rgba(0, 0, 0, 0.88) 100%
  ) !important;
  box-shadow:
    inset 6px 0 0 0 #dc2626,
    inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}
.fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-draw {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.55) 0%,
    rgba(100, 116, 139, 0.4) 30%,
    rgba(71, 85, 105, 0.28) 55%,
    rgba(0, 0, 0, 0.88) 100%
  ) !important;
  box-shadow:
    inset 6px 0 0 0 #64748b,
    inset 0 0 0 1px rgba(203, 213, 225, 0.35);
}
html:not(.dark) .fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-win {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.52) 0%,
    rgba(22, 163, 74, 0.32) 30%,
    rgba(6, 78, 59, 0.18) 55%,
    rgba(10, 10, 10, 0.94) 100%
  ) !important;
}
html:not(.dark) .fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-loss {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.52) 0%,
    rgba(220, 38, 38, 0.36) 30%,
    rgba(127, 29, 29, 0.22) 55%,
    rgba(10, 10, 10, 0.94) 100%
  ) !important;
}
html:not(.dark) .fbih-fixtures-list .fbih-fixture-row.fbih-fixture-row--klub-draw {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.48) 0%,
    rgba(100, 116, 139, 0.34) 32%,
    rgba(71, 85, 105, 0.22) 58%,
    rgba(10, 10, 10, 0.94) 100%
  ) !important;
}

.fbih-fixture-row--klub-win .fbih-fixture-mid--score {
  color: #86efac !important;
  font-weight: 800 !important;
  text-shadow:
    0 0 12px rgba(34, 197, 94, 0.85),
    0 0 2px rgba(0, 0, 0, 0.9);
}
.fbih-fixture-row--klub-loss .fbih-fixture-mid--score {
  color: #fca5a5 !important;
  font-weight: 800 !important;
  text-shadow:
    0 0 12px rgba(239, 68, 68, 0.85),
    0 0 2px rgba(0, 0, 0, 0.9);
}
.fbih-fixture-row--klub-draw .fbih-fixture-mid--score {
  color: #e2e8f0 !important;
  font-weight: 800 !important;
  text-shadow:
    0 0 10px rgba(148, 163, 184, 0.75),
    0 0 2px rgba(0, 0, 0, 0.85);
}

.fbih-fixture-row--klub-win .fbih-fixture-round-label {
  color: rgba(187, 247, 208, 0.95) !important;
}
.fbih-fixture-row--klub-loss .fbih-fixture-round-label {
  color: rgba(254, 202, 202, 0.95) !important;
}
.fbih-fixture-row--klub-draw .fbih-fixture-round-label {
  color: rgba(226, 232, 240, 0.92) !important;
}

/* Mobilni gumb + modal — puna tablica (kao druga-liga-fbih-sjever) */
.fbih-liga-full-open {
  display: none;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(108, 59, 255, 0.45);
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
html:not(.dark) .fbih-liga-full-open {
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.18) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: rgba(108, 59, 255, 0.35);
  color: #1e293b;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12);
}
.fbih-liga-full-open:active {
  transform: scale(0.98);
}
@media (max-width: 767px) {
  .fbih-liga-full-open {
    display: block;
  }
}

body.fbih-liga-modal-open {
  overflow: hidden;
}

.fbih-liga-full-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.fbih-liga-full-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.fbih-liga-full-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.fbih-liga-full-modal.is-open .fbih-liga-full-modal__backdrop {
  opacity: 1;
}
.fbih-liga-full-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  border: none;
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.5) 0%, rgba(15, 23, 42, 0.97) 35%, #0f172a 100%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
html:not(.dark) .fbih-liga-full-modal__panel {
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.99) 0%, rgba(241, 245, 249, 1) 100%);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
}
.fbih-liga-full-modal.is-open .fbih-liga-full-modal__panel {
  transform: translateY(0);
}
.fbih-liga-full-modal__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.65rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.45);
}
html:not(.dark) .fbih-liga-full-modal__header {
  border-bottom-color: rgba(203, 213, 225, 0.85);
}
.fbih-liga-full-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
html:not(.dark) .fbih-liga-full-modal__title {
  color: #0f172a;
}
.fbih-liga-full-modal__close {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.65);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 300;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
html:not(.dark) .fbih-liga-full-modal__close {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(203, 213, 225, 0.95);
  color: #334155;
}
.fbih-liga-full-modal__close:hover {
  background: rgba(108, 59, 255, 0.35);
  color: #fff;
}

.fbih-liga-full-modal__fab-close {
  display: none;
}
@media (max-width: 768px) {
  .fbih-liga-full-modal__fab-close {
    display: flex;
    position: fixed;
    top: max(0.5rem, env(safe-area-inset-top));
    right: max(0.5rem, env(safe-area-inset-right));
    z-index: 2;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(145deg, #6c3bff 0%, #5528cc 100%);
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 0.12s ease,
      filter 0.15s ease;
  }
  .fbih-liga-full-modal__fab-close:active {
    transform: scale(0.94);
    filter: brightness(1.08);
  }
  html:not(.dark) .fbih-liga-full-modal__fab-close {
    background: linear-gradient(145deg, #6c3bff 0%, #5528cc 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
      0 4px 20px rgba(85, 40, 204, 0.45),
      0 0 0 1px rgba(0, 0, 0, 0.12);
  }
  .fbih-liga-full-modal .fbih-liga-full-modal__close {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, #6c3bff 0%, #5528cc 100%);
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 400;
    box-shadow: 0 2px 12px rgba(85, 40, 204, 0.4);
  }
  html:not(.dark) .fbih-liga-full-modal .fbih-liga-full-modal__close {
    background: linear-gradient(145deg, #6c3bff 0%, #5528cc 100%);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45);
  }
  html:not(.dark) .fbih-liga-full-modal__title {
    color: #0f172a;
    font-weight: 800;
  }
}

.fbih-liga-full-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 max(0.5rem, env(safe-area-inset-bottom));
}
.fbih-liga-full-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.65rem 1rem;
}
.fbih-liga-table--fullmodal {
  min-width: 720px;
}
.fbih-liga-full-modal__scroll .fbih-liga-table thead th {
  top: 0;
  box-shadow: 0 1px 0 rgba(71, 85, 105, 0.65);
}
html:not(.dark) .fbih-liga-full-modal__scroll .fbih-liga-table thead th {
  box-shadow: 0 1px 0 rgba(203, 213, 225, 0.9);
}

@media (max-width: 768px) {
  .table-scroll-full {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .liga-table-full {
    min-width: 900px;
    width: max-content;
    max-width: none;
  }
  .liga-table-full th,
  .liga-table-full td {
    white-space: nowrap;
  }
  .liga-table-full .liga-team {
    align-items: center;
    min-width: 140px;
  }
  .liga-table-full .liga-team-name {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .liga-table-full .fbih-col-team {
    max-width: none;
  }
}

/* Klub: gumbi Rezultati / Tablica */
.klub-fbih-liga-toggle--open {
  border-color: rgb(108 59 255) !important;
  background: rgba(108, 59, 255, 0.12) !important;
  color: rgb(67 56 202) !important;
}
html.dark .klub-fbih-liga-toggle--open {
  border-color: rgb(139 92 255) !important;
  background: rgba(108, 59, 255, 0.22) !important;
  color: rgb(248 250 252) !important;
}

.klub-posavina-liga-toggle--open {
  border-color: rgb(108 59 255) !important;
  background: rgba(108, 59, 255, 0.12) !important;
  color: rgb(67 56 202) !important;
}
html.dark .klub-posavina-liga-toggle--open {
  border-color: rgb(139 92 255) !important;
  background: rgba(108, 59, 255, 0.22) !important;
  color: rgb(248 250 252) !important;
}

.fbih-round-select option {
  background: #1e293b;
  color: #f8fafc;
}
