@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap');

.nbfc-dofa-widget {
  --nbfc-blue: #0b2d5b;
  --nbfc-red: #d7262b;
  --bg-1: #071a33;
  --bg-2: #0b2d5b;
  --card: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.72);
  --text: #0a1730;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --nbfc-bg-dark: var(--bg-1);
  --nbfc-card: var(--card);
  --nbfc-muted: var(--muted);
  --nbfc-text: #f8fafc;
  --nbfc-border: rgba(11, 45, 91, 0.18);
  --nbfc-control-bg: rgba(255, 255, 255, 0.1);
  --nbfc-control-border: rgba(255, 255, 255, 0.5);
  --nbfc-radius: var(--radius);
  --nbfc-logo-size: 44px;
  --nbfc-logo-size-mini: 30px;
  --nbfc-logo-size-standings: 26px;
  --nbfc-inner-max-width: 100%;
  --nbfc-font-sans: "Sora", "Avenir Next", "Fira Sans", "Noto Sans", sans-serif;
  --nbfc-font-display: "Fraunces", "Sora", serif;
  font-family: var(--nbfc-font-sans);
  color: var(--nbfc-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  min-width: 0;
}

.nbfc-dofa-widget img {
  max-width: 100%;
  height: auto;
}

.nbfc-widget-embed {
  width: 100%;
}

.nbfc-dofa-widget,
.nbfc-dofa-widget * {
  box-sizing: border-box;
}

.nbfc-dofa-widget [hidden] {
  display: none !important;
}

.nbfc-dofa-widget .nbfc-card {
  background: linear-gradient(145deg, var(--bg-2), var(--bg-1));
  border-radius: max(10px, calc(var(--nbfc-radius) - 6px));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  overflow: hidden;
  position: relative;
  animation: nbfcFadeUp 0.4s ease both;
  max-width: 100%;
  color: var(--nbfc-text);
}

.nbfc-dofa-widget .nbfc-card::before,
.nbfc-dofa-widget .nbfc-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.nbfc-dofa-widget .nbfc-card::before {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--bg-2), transparent 70%);
}

.nbfc-dofa-widget .nbfc-card::after {
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle, var(--nbfc-red), transparent 70%);
}

.nbfc-dofa-widget .nbfc-card > * {
  position: relative;
  z-index: 1;
}

.nbfc-dofa-widget .nbfc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7, 20, 42, 0.9), rgba(11, 45, 91, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nbfc-dofa-widget .nbfc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nbfc-dofa-widget .nbfc-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nbfc-blue), var(--nbfc-red));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(11, 45, 91, 0.35);
  position: relative;
}

.nbfc-dofa-widget .nbfc-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.nbfc-dofa-widget .nbfc-hero-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  position: absolute;
}

.nbfc-dofa-widget .nbfc-logo.has-team-logo .nbfc-ball {
  opacity: 0;
}

.nbfc-dofa-widget .nbfc-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.nbfc-dofa-widget .nbfc-subtitle {
  color: var(--nbfc-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nbfc-dofa-widget .nbfc-card-subtitle {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
  color: #64748b;
}

.nbfc-dofa-widget .nbfc-refresh {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--nbfc-red);
  color: #fff;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(215, 38, 43, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nbfc-dofa-widget .nbfc-header-actions {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  justify-content: end;
}

.nbfc-dofa-widget .nbfc-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.nbfc-dofa-widget .nbfc-club-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.nbfc-dofa-widget .nbfc-club-option {
  border: 1px solid var(--nbfc-control-border);
  background: var(--nbfc-control-bg);
  color: var(--nbfc-text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nbfc-dofa-widget .nbfc-club-option.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nbfc-blue);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.nbfc-dofa-widget .nbfc-club-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.nbfc-dofa-widget .nbfc-club-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.nbfc-dofa-widget .nbfc-club-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 45, 91, 0.25);
  overflow: hidden;
  flex: 0 0 auto;
}

.nbfc-dofa-widget .nbfc-club-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nbfc-dofa-widget .nbfc-club-logo-fallback {
  font-size: 11px;
  font-weight: 700;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-club-name {
  font-size: 12px;
  white-space: nowrap;
}

.nbfc-dofa-widget .nbfc-fullscreen-toggle {
  border: 1px solid var(--nbfc-control-border);
  background: var(--nbfc-control-bg);
  color: var(--nbfc-text);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nbfc-dofa-widget .nbfc-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(215, 38, 43, 0.35);
  filter: saturate(1.05);
}

.nbfc-dofa-widget .nbfc-fullscreen-toggle:hover,
.nbfc-dofa-widget .nbfc-compact-more:hover,
.nbfc-dofa-widget .nbfc-retry:hover,
.nbfc-dofa-widget .nbfc-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.nbfc-dofa-widget .nbfc-refresh:focus-visible,
.nbfc-dofa-widget .nbfc-retry:focus-visible,
.nbfc-dofa-widget .nbfc-fullscreen-toggle:focus-visible,
.nbfc-dofa-widget .nbfc-compact-more:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.nbfc-dofa-widget .nbfc-tab:focus-visible,
.nbfc-dofa-widget .nbfc-select:focus-visible,
.nbfc-dofa-widget .nbfc-map:focus-visible {
  outline: 2px solid rgba(11, 45, 91, 0.7);
  outline-offset: 2px;
}

.nbfc-dofa-widget .nbfc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.nbfc-dofa-widget .nbfc-filters {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.nbfc-dofa-widget .nbfc-filters-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nbfc-dofa-widget .nbfc-filters-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--nbfc-muted);
  line-height: 1.3;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nbfc-dofa-widget .nbfc-filters-toggle {
  border: 1px solid var(--nbfc-control-border);
  background: var(--nbfc-control-bg);
  color: var(--nbfc-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nbfc-dofa-widget .nbfc-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nbfc-dofa-widget .nbfc-filters.is-open .nbfc-chevron {
  transform: rotate(-135deg);
}

.nbfc-dofa-widget .nbfc-filters-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nbfc-dofa-widget .nbfc-filters.is-open .nbfc-filters-panel {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nbfc-dofa-widget .nbfc-filters-panel .nbfc-controls {
  margin-bottom: 0;
}

.nbfc-dofa-widget .nbfc-compact-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.nbfc-dofa-widget .nbfc-compact-bar label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nbfc-muted);
  display: grid;
  gap: 6px;
}

.nbfc-dofa-widget .nbfc-compact-select {
  min-width: 200px;
}

.nbfc-dofa-widget .nbfc-compact-more {
  border: 1px solid var(--nbfc-control-border);
  background: var(--nbfc-control-bg);
  color: var(--nbfc-text);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nbfc-dofa-widget .nbfc-controls label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nbfc-muted);
  display: grid;
  gap: 6px;
}

.nbfc-dofa-widget select optgroup {
  font-weight: 700;
  color: #0b2d5b;
}

.nbfc-dofa-widget .nbfc-select {
  border-radius: 12px;
  border: 1px solid rgba(11, 45, 91, 0.22);
  padding: 7px 32px 7px 12px;
  background-color: var(--card);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4l3 3 3-3' fill='none' stroke='%230b2d5b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-select:focus-visible {
  border-color: rgba(11, 45, 91, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.18);
}

.nbfc-dofa-widget .nbfc-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.75);
}

.nbfc-dofa-widget .nbfc-state {
  background: rgba(11, 45, 91, 0.35);
  color: var(--nbfc-text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nbfc-dofa-widget .nbfc-compact-only {
  display: none;
}

.nbfc-dofa-widget .nbfc-full-only {
  display: block;
}

.nbfc-dofa-widget[data-compact-mode="1"] .nbfc-compact-only {
  display: block;
}

.nbfc-dofa-widget .nbfc-details {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.nbfc-dofa-widget[data-details-open="1"] .nbfc-details {
  max-height: 9999px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-top: 12px;
}

.nbfc-dofa-widget:not([data-compact-mode="1"])[data-details-open="1"] .nbfc-details {
  margin-top: 0;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-details,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-details {
  max-height: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-top: 0;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-compact-only,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-compact-only {
  display: none;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-full-only,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-full-only {
  display: block;
}

.nbfc-dofa-widget .nbfc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 24, 0.6);
  backdrop-filter: blur(2px);
  z-index: 99998;
}

.nbfc-dofa-widget .nbfc-modal,
.nbfc-dofa-widget .nbfc-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  touch-action: pan-y;
}

.nbfc-dofa-widget .nbfc-modal__backdrop,
.nbfc-dofa-widget .nbfc-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.nbfc-dofa-widget .nbfc-modal__sheet,
.nbfc-dofa-widget .nbfc-overlay__sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 100%);
  max-height: min(90dvh, 720px);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  z-index: 1;
}

.nbfc-dofa-widget .nbfc-modal__header,
.nbfc-dofa-widget .nbfc-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.nbfc-dofa-widget .nbfc-modal__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-modal__body,
.nbfc-dofa-widget .nbfc-overlay__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-overlay__content *,
.nbfc-dofa-widget .nbfc-overlay__content {
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-overlay-close {
  border: 1px solid rgba(11, 45, 91, 0.2);
  background: rgba(11, 45, 91, 0.08);
  color: var(--nbfc-blue);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-overlay-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.2);
}

.nbfc-dofa-widget .nbfc-overlay-close:focus-visible {
  outline: 2px solid rgba(11, 45, 91, 0.4);
  outline-offset: 2px;
}

.nbfc-dofa-widget .nbfc-overlay-section {
  display: grid;
  gap: 12px;
}

.nbfc-dofa-widget .nbfc-overlay-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nbfc-dofa-widget .nbfc-overlay-section-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-overlay-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nbfc-dofa-widget .nbfc-overlay__content .nbfc-card-subtitle {
  color: #64748b;
}

.nbfc-dofa-widget .nbfc-overlay-standings-body {
  overflow: visible;
  padding-top: 0;
}

.nbfc-dofa-widget .nbfc-overlay__content .nbfc-standings-table {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.nbfc-dofa-widget.nbfc-fullscreen,
.nbfc-dofa-widget.nbfc-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 99997;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  overflow-x: hidden;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-card,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-card {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 99999;
  border-radius: 0;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: none;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-card > *,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-card > * {
  width: min(1200px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-header,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-header {
  position: sticky;
  top: 0;
  z-index: 5;
}

.nbfc-dofa-widget.nbfc-fullscreen .nbfc-standings-table,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-standings-table {
  max-height: none;
  overflow: visible;
}

.nbfc-dofa-widget .nbfc-state-message {
  flex: 1;
}

.nbfc-dofa-widget .nbfc-debug {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--nbfc-text);
}

.nbfc-dofa-widget .nbfc-debug summary {
  cursor: pointer;
  font-weight: 600;
}

.nbfc-dofa-widget .nbfc-debug pre {
  margin: 8px 0 0;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

.nbfc-dofa-widget .nbfc-retry {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: var(--nbfc-blue);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-content {
  display: grid;
  gap: 14px;
}

.nbfc-dofa-widget .nbfc-layout {
  display: grid;
  gap: 16px;
  align-items: stretch;
  min-height: 500px;
}

.nbfc-dofa-widget .nbfc-layout > * {
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 500px;
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-col-right {
  display: flex;
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-next-card {
  flex: 0 0 auto;
  min-height: 150px;
}

.nbfc-dofa-widget .nbfc-results-card {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(11, 45, 91, 0.16);
  padding: 10px;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tabs-header {
  justify-content: flex-start;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-top: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 45, 91, 0.35) transparent;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panels::-webkit-scrollbar {
  width: 8px;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panels::-webkit-scrollbar-thumb {
  background: rgba(11, 45, 91, 0.28);
  border-radius: 999px;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panel:hover {
  transform: none;
  box-shadow: none;
}

.nbfc-dofa-widget .nbfc-standings-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(11, 45, 91, 0.16);
  padding: 10px;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
}

.nbfc-dofa-widget .nbfc-standings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nbfc-dofa-widget .nbfc-expand {
  border: 1px solid rgba(11, 45, 91, 0.2);
  background: rgba(11, 45, 91, 0.08);
  color: var(--nbfc-blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-expand:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 45, 91, 0.2);
}

.nbfc-dofa-widget .nbfc-expand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.2);
}

.nbfc-dofa-widget .nbfc-standings-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-standings-subtitle {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nbfc-dofa-widget .nbfc-tab-panel .nbfc-expand {
  margin-bottom: 10px;
}

.nbfc-dofa-widget .nbfc-tab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.nbfc-dofa-widget .nbfc-tab-panel-head .nbfc-expand {
  margin-bottom: 0;
}

.nbfc-dofa-widget .nbfc-tab-panel-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-expand {
  display: none;
}

.nbfc-dofa-widget .nbfc-standings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-top: 6px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 45, 91, 0.45) transparent;
}

.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-standings-body {
  overflow: visible;
  padding-right: 0;
}

.nbfc-dofa-widget .nbfc-standings-body::-webkit-scrollbar {
  width: 8px;
}

.nbfc-dofa-widget .nbfc-standings-body::-webkit-scrollbar-thumb {
  background: rgba(11, 45, 91, 0.35);
  border-radius: 999px;
}

.nbfc-dofa-widget .nbfc-standings-body .nbfc-standings-table {
  max-height: none;
  padding-right: 0;
  overflow: visible;
}

.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-layout,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-col-left,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-col-right,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-results-card,
.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-standings-card {
  min-width: 0;
  max-width: 100%;
}

.nbfc-dofa-widget.nbfc-mode-overlay .nbfc-results-card .nbfc-tab-panels {
  overflow: visible;
  padding-right: 0;
}

.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-layout {
  grid-template-columns: 1fr;
  min-height: 0;
}

.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-col-left,
.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-results-card {
  display: none;
}

.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-filters {
  display: none;
}

.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-col-right {
  display: flex;
  width: 100%;
}

.nbfc-dofa-widget.nbfc-overlay-standings .nbfc-standings-card {
  width: 100%;
  max-width: 100%;
}

.nbfc-dofa-widget.nbfc-overlay-next .nbfc-layout,
.nbfc-dofa-widget.nbfc-overlay-last .nbfc-layout {
  grid-template-columns: 1fr;
  min-height: 0;
}

.nbfc-dofa-widget.nbfc-overlay-next .nbfc-filters,
.nbfc-dofa-widget.nbfc-overlay-last .nbfc-filters {
  display: none;
}

.nbfc-dofa-widget.nbfc-overlay-next .nbfc-results-card,
.nbfc-dofa-widget.nbfc-overlay-next .nbfc-col-right {
  display: none;
}

.nbfc-dofa-widget.nbfc-overlay-next .nbfc-col-left {
  width: 100%;
}

.nbfc-dofa-widget.nbfc-overlay-last .nbfc-summary,
.nbfc-dofa-widget.nbfc-overlay-last .nbfc-col-right {
  display: none;
}

.nbfc-dofa-widget.nbfc-overlay-last .nbfc-col-left,
.nbfc-dofa-widget.nbfc-overlay-last .nbfc-results-card {
  width: 100%;
}

.nbfc-dofa-widget .nbfc-summary {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(11, 45, 91, 0.16);
  padding: 16px;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 150px;
}

.nbfc-dofa-widget .nbfc-summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.nbfc-dofa-widget[data-active-tab="a_venir"] .nbfc-summary {
  padding: 16px;
}

.nbfc-dofa-widget[data-active-tab="a_venir"] .nbfc-summary-score {
  font-size: 22px;
}

.nbfc-dofa-widget .nbfc-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nbfc-dofa-widget .nbfc-summary-header .nbfc-card-subtitle {
  flex-basis: 100%;
}

.nbfc-dofa-widget .nbfc-summary-header .nbfc-expand {
  margin-left: auto;
}

.nbfc-dofa-widget .nbfc-summary-header h3 {
  margin: 0;
  font-size: 15px;
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-summary-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nbfc-dofa-widget .nbfc-team-name {
  max-width: 140px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nbfc-dofa-widget .nbfc-summary-score {
  font-weight: 800;
  font-size: 24px;
  color: var(--nbfc-blue);
  min-width: 72px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  background: rgba(11, 45, 91, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.nbfc-dofa-widget .nbfc-summary-meta {
  font-size: 13px;
  color: #0b1f3b;
  margin-bottom: 6px;
}

.nbfc-dofa-widget .nbfc-summary-venue {
  font-size: 13px;
  color: #475569;
  display: grid;
  gap: 4px;
}

.nbfc-dofa-widget .nbfc-compact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.nbfc-dofa-widget .nbfc-compact-row > .nbfc-compact-card:not(:last-child) {
  position: relative;
}

.nbfc-dofa-widget .nbfc-compact-row > .nbfc-compact-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -5px;
  width: 1px;
  height: calc(100% - 36px);
  background: rgba(15, 23, 42, 0.08);
  opacity: 0;
}

.nbfc-dofa-widget .nbfc-compact-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(11, 45, 91, 0.12);
  padding: 14px;
  color: #0f172a;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-compact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.nbfc-dofa-widget .nbfc-compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0.6;
}

.nbfc-dofa-widget .nbfc-compact-title {
  font-weight: 700;
  font-size: 14px;
  color: #0b2d5b;
  margin-bottom: 8px;
}

.nbfc-dofa-widget .nbfc-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.nbfc-dofa-widget .nbfc-compact-head .nbfc-compact-title {
  margin-bottom: 0;
}

.nbfc-dofa-widget .nbfc-compact-body {
  display: grid;
  gap: 6px;
  flex: 1;
}

.nbfc-dofa-widget .nbfc-compact-card[data-compact="standings"] .nbfc-compact-body {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.nbfc-dofa-widget .nbfc-compact-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.nbfc-dofa-widget .nbfc-compact-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-compact-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.nbfc-dofa-widget .nbfc-compact-logo {
  width: var(--nbfc-logo-size);
  height: var(--nbfc-logo-size);
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b2d5b;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(11, 45, 91, 0.22);
}

.nbfc-dofa-widget .nbfc-compact-logo.nbfc-logo-fallback {
  font-size: 11px;
}

.nbfc-dofa-widget .nbfc-compact-score {
  font-weight: 800;
  font-size: 22px;
  color: #0b2d5b;
  font-variant-numeric: tabular-nums;
}

.nbfc-dofa-widget .nbfc-compact-meta {
  font-size: 13px;
  color: #334155;
}

.nbfc-dofa-widget .nbfc-compact-standings-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

.nbfc-dofa-widget .nbfc-compact-badge {
  background: rgba(11, 45, 91, 0.12);
  color: var(--nbfc-blue);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

.nbfc-dofa-widget .nbfc-compact-standing {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nbfc-dofa-widget .nbfc-compact-standing:last-child {
  border-bottom: none;
}

.nbfc-dofa-widget .nbfc-highlight-row {
  color: var(--nbfc-blue);
  font-weight: 700;
}

.nbfc-dofa-widget .nbfc-venue-address {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.nbfc-dofa-widget .nbfc-map {
  display: inline-flex;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 45, 91, 0.08);
  color: var(--nbfc-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nbfc-dofa-widget .nbfc-map:hover {
  background: rgba(11, 45, 91, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.nbfc-dofa-widget .nbfc-tabs {
  display: grid;
  gap: 12px;
}

.nbfc-dofa-widget .nbfc-tabs-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nbfc-dofa-widget .nbfc-tab {
  border: 1px solid rgba(11, 45, 91, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: #0b2d5b;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nbfc-dofa-widget .nbfc-tab[aria-selected="true"] {
  background: var(--nbfc-red);
  color: #fff;
  border-color: rgba(215, 38, 43, 0.5);
  box-shadow: 0 10px 18px rgba(215, 38, 43, 0.22);
}

.nbfc-dofa-widget .nbfc-tab-panels {
  display: grid;
  gap: 10px;
}

.nbfc-dofa-widget .nbfc-tab-panel {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(11, 45, 91, 0.16);
  padding: 12px;
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-tab-panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.nbfc-dofa-widget .nbfc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nbfc-dofa-widget .nbfc-badge-home {
  background: rgba(11, 45, 91, 0.12);
  color: var(--nbfc-blue);
}

.nbfc-dofa-widget .nbfc-badge-away {
  background: rgba(215, 38, 43, 0.12);
  color: var(--nbfc-red);
}

.nbfc-dofa-widget .nbfc-badge-warning {
  background: rgba(234, 179, 8, 0.2);
  color: #92400e;
}

.nbfc-dofa-widget .nbfc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nbfc-dofa-widget .nbfc-team-name {
  font-weight: 700;
  font-size: 13px;
  color: #0b1f3b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.nbfc-dofa-widget .nbfc-team-logo {
  width: var(--nbfc-logo-size);
  height: var(--nbfc-logo-size);
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b2d5b;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(11, 45, 91, 0.22);
}

.nbfc-dofa-widget .nbfc-logo-fallback {
  width: var(--nbfc-logo-size);
  height: var(--nbfc-logo-size);
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b2d5b;
  border: 1px solid rgba(11, 45, 91, 0.22);
}

.nbfc-dofa-widget .nbfc-mini-logo {
  width: var(--nbfc-logo-size-mini);
  height: var(--nbfc-logo-size-mini);
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #0b2d5b;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(11, 45, 91, 0.2);
}

.nbfc-dofa-widget .nbfc-mini-logo.nbfc-logo-fallback {
  width: var(--nbfc-logo-size-mini);
  height: var(--nbfc-logo-size-mini);
  font-size: 9px;
}

.nbfc-dofa-widget .nbfc-standings-logo.nbfc-logo-fallback {
  width: var(--nbfc-logo-size-standings);
  height: var(--nbfc-logo-size-standings);
  font-size: 10px;
}

.nbfc-dofa-widget .nbfc-standings-logo {
  width: var(--nbfc-logo-size-standings);
  height: var(--nbfc-logo-size-standings);
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #0b2d5b;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(11, 45, 91, 0.2);
}

.nbfc-dofa-widget .nbfc-match-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 45, 91, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-match-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.12);
}

.nbfc-dofa-widget .nbfc-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.nbfc-dofa-widget .nbfc-match-date {
  font-size: 11px;
  color: #475569;
}

.nbfc-dofa-widget .nbfc-match-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #0f172a;
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-match-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.nbfc-dofa-widget .nbfc-score {
  font-weight: 700;
  color: var(--nbfc-blue);
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.nbfc-dofa-widget .nbfc-match-meta {
  color: #475569;
  font-size: 11px;
  margin-top: 4px;
  display: grid;
  gap: 4px;
}

.nbfc-dofa-widget .nbfc-standings-table {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 45, 91, 0.45) transparent;
}

.nbfc-dofa-widget .nbfc-standings-table::-webkit-scrollbar {
  width: 8px;
}

.nbfc-dofa-widget .nbfc-standings-table::-webkit-scrollbar-thumb {
  background: rgba(11, 45, 91, 0.35);
  border-radius: 999px;
}

.nbfc-dofa-widget .nbfc-standings-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px 28px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nbfc-dofa-widget .nbfc-standings-row > span:nth-child(1),
.nbfc-dofa-widget .nbfc-standings-row > span:nth-child(3),
.nbfc-dofa-widget .nbfc-standings-row > span:nth-child(4) {
  text-align: center;
}

.nbfc-dofa-widget .nbfc-standings-row:not(.nbfc-standings-header):hover {
  background: rgba(11, 45, 91, 0.1);
}

.nbfc-dofa-widget .nbfc-standings-team {
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-standings-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-width: 160px;
}

.nbfc-dofa-widget .nbfc-standings-row:nth-child(even) {
  background: rgba(11, 45, 91, 0.06);
}

.nbfc-dofa-widget .nbfc-standings-header {
  font-weight: 700;
  color: #0b2d5b;
  background: rgba(11, 45, 91, 0.12);
  position: sticky;
  top: 0;
  z-index: 1;
}

.nbfc-dofa-widget .nbfc-standings-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nbfc-dofa-widget .nbfc-standings-team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.nbfc-dofa-widget .nbfc-highlight {
  background: rgba(11, 45, 91, 0.12);
  border: 1px solid rgba(215, 38, 43, 0.5);
  box-shadow: inset 3px 0 0 rgba(215, 38, 43, 0.75);
}

.nbfc-dofa-widget .nbfc-empty {
  font-size: 12px;
  color: #64748b;
}

.nbfc-dofa-widget .nbfc-section-error {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 38, 43, 0.28);
  background: rgba(215, 38, 43, 0.08);
  color: #7f1d1d;
  display: grid;
  gap: 6px;
}

.nbfc-dofa-widget .nbfc-section-error-title {
  font-weight: 700;
  font-size: 13px;
}

.nbfc-dofa-widget .nbfc-section-error-text {
  font-size: 12px;
}

.nbfc-dofa-widget .nbfc-section-error-meta {
  font-size: 11px;
  opacity: 0.7;
}

.nbfc-dofa-widget .nbfc-retry-section {
  justify-self: flex-start;
  border: 1px solid rgba(11, 45, 91, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--nbfc-blue);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nbfc-dofa-widget .nbfc-retry-section:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.nbfc-dofa-widget .nbfc-retry-section:focus-visible {
  outline: 2px solid rgba(11, 45, 91, 0.7);
  outline-offset: 2px;
}

.nbfc-dofa-widget .nbfc-standings-body .nbfc-empty {
  padding: 8px 6px;
}

.nbfc-dofa-widget .nbfc-error-fallback {
  background: rgba(255, 255, 255, 0.92);
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(185, 28, 28, 0.4);
}

.nbfc-dofa-widget .nbfc-fallback {
  background: rgba(255, 255, 255, 0.92);
  color: #0b2d5b;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px dashed rgba(11, 45, 91, 0.4);
  position: relative;
  overflow: hidden;
}

.nbfc-dofa-widget .nbfc-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(11, 45, 91, 0.15), transparent);
  transform: translateX(-100%);
  animation: nbfcShimmer 1.4s ease-in-out infinite;
}

@media (min-width: 900px) {
  .nbfc-dofa-widget {
    --nbfc-logo-size-mini: 34px;
    --nbfc-inner-max-width: 1200px;
  }
  .nbfc-dofa-widget[data-compact-mode="1"][data-details-open="1"] .nbfc-compact-only {
    display: none;
  }
  .nbfc-dofa-widget[data-compact-mode="1"][data-details-open="1"] .nbfc-details {
    margin-top: 0;
  }
  .nbfc-dofa-widget:not(.nbfc-fullscreen) .nbfc-card > * {
    width: min(1200px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .nbfc-dofa-widget .nbfc-card {
    padding: 28px 26px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(9, 33, 69, 0.98), rgba(7, 21, 44, 0.95) 45%, rgba(12, 38, 74, 0.95) 100%);
    box-shadow: 0 28px 60px rgba(7, 15, 32, 0.3);
    align-items: stretch;
  }
  .nbfc-dofa-widget .nbfc-card::before,
  .nbfc-dofa-widget .nbfc-card::after {
    width: 420px;
    height: 420px;
    filter: blur(60px);
    opacity: 0.55;
  }
  .nbfc-dofa-widget:not(.nbfc-fullscreen):not([data-compact-mode="1"]) .nbfc-card {
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .nbfc-dofa-widget:not(.nbfc-fullscreen):not([data-compact-mode="1"]) .nbfc-details {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .nbfc-dofa-widget:not(.nbfc-fullscreen):not([data-compact-mode="1"]) .nbfc-full-only {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .nbfc-dofa-widget .nbfc-header {
    padding: 14px 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nbfc-dofa-widget .nbfc-header::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  }
  .nbfc-dofa-widget .nbfc-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .nbfc-dofa-widget .nbfc-hero-logo {
    width: 24px;
    height: 24px;
  }
  .nbfc-dofa-widget .nbfc-title {
    font-family: var(--nbfc-font-display);
    font-size: 20px;
    letter-spacing: 0.4px;
  }
  .nbfc-dofa-widget .nbfc-subtitle {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .nbfc-dofa-widget .nbfc-refresh,
  .nbfc-dofa-widget .nbfc-fullscreen-toggle,
  .nbfc-dofa-widget .nbfc-filters-toggle {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 32px;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }
  .nbfc-dofa-widget .nbfc-fullscreen-toggle {
    background: rgba(255, 255, 255, 0.12);
  }
  .nbfc-dofa-widget .nbfc-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    align-items: start;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nbfc-dofa-widget .nbfc-col-left {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
    min-height: 0;
  }
  .nbfc-dofa-widget .nbfc-col-right {
    min-height: 0;
    align-self: start;
  }
  .nbfc-dofa-widget .nbfc-summary {
    padding: 18px;
    min-height: 140px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 252, 0.95));
    border: 1px solid rgba(11, 45, 91, 0.1);
    border-top: 3px solid rgba(215, 38, 43, 0.75);
  }
  .nbfc-dofa-widget .nbfc-summary-header h3 {
    font-size: 16px;
  }
  .nbfc-dofa-widget .nbfc-summary-score {
    font-size: 24px;
    background: linear-gradient(90deg, rgba(11, 45, 91, 0.12), rgba(215, 38, 43, 0.12));
  }
  .nbfc-dofa-widget .nbfc-summary-meta {
    font-weight: 600;
  }
  .nbfc-dofa-widget .nbfc-results-card {
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(11, 45, 91, 0.12);
    border-top: 3px solid rgba(11, 45, 91, 0.8);
  }
  .nbfc-dofa-widget .nbfc-standings-card {
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 252, 0.92));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(11, 45, 91, 0.12);
    border-top: 3px solid rgba(11, 45, 91, 0.8);
    min-height: 0;
    max-height: 100%;
    position: sticky;
    top: 110px;
  }
  .nbfc-dofa-widget .nbfc-standings-body {
    max-height: 100%;
  }
  .nbfc-dofa-widget .nbfc-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  .nbfc-dofa-widget[data-layout="stacked"] .nbfc-layout {
    grid-template-columns: 1fr;
  }
  .nbfc-dofa-widget[data-layout="wide"] .nbfc-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  .nbfc-dofa-widget .nbfc-results-card .nbfc-tab[data-tab="classement"] {
    display: none;
  }
  .nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panel[data-tab-panel="classement"] {
    display: none;
  }
  .nbfc-dofa-widget .nbfc-tabs-header {
    justify-content: flex-end;
    background: rgba(11, 45, 91, 0.08);
    border-radius: 999px;
    padding: 6px;
    gap: 8px;
  }
  .nbfc-dofa-widget .nbfc-tab {
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 14px;
  }
  .nbfc-dofa-widget .nbfc-tab[aria-selected="true"] {
    background: var(--nbfc-blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 45, 91, 0.25);
  }
  .nbfc-dofa-widget .nbfc-tab:hover {
    background: rgba(11, 45, 91, 0.12);
  }
  .nbfc-dofa-widget .nbfc-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nbfc-dofa-widget .nbfc-filters-bar {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .nbfc-dofa-widget .nbfc-filters-panel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px;
  }
  .nbfc-dofa-widget .nbfc-controls label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .nbfc-dofa-widget .nbfc-select {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
  }
  .nbfc-dofa-widget .nbfc-compact-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nbfc-dofa-widget .nbfc-compact-row > .nbfc-compact-card:not(:last-child)::before {
    opacity: 1;
  }
  .nbfc-dofa-widget .nbfc-compact-card {
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  }
  .nbfc-dofa-widget .nbfc-compact-title {
    font-size: 15px;
  }
  .nbfc-dofa-widget .nbfc-standings-row {
    border-radius: 12px;
    margin-bottom: 6px;
    background: rgba(11, 45, 91, 0.04);
  }
  .nbfc-dofa-widget .nbfc-standings-row:nth-child(even) {
    background: rgba(11, 45, 91, 0.08);
  }
  .nbfc-dofa-widget .nbfc-match-item {
    border-radius: 16px;
  }
  .nbfc-dofa-widget.nbfc-mode-wide {
    max-width: none !important;
    width: 100%;
    margin: 0 auto;
  }
  .nbfc-dofa-widget.nbfc-mode-wide .nbfc-card {
    height: auto;
    max-height: none;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nbfc-dofa-widget.nbfc-mode-wide .nbfc-card::after,
  .nbfc-dofa-widget.nbfc-mode-wide .nbfc-card::before {
    opacity: 0.4;
  }
  .nbfc-dofa-widget.nbfc-mode-wide .nbfc-card > * {
    width: min(var(--nbfc-inner-max-width), 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 899px) {
  .nbfc-dofa-widget[data-compact-mode="1"][data-details-open="1"] .nbfc-compact-row {
    display: none;
  }
  .nbfc-dofa-widget .nbfc-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .nbfc-dofa-widget .nbfc-col-right {
    display: flex;
  }
  .nbfc-dofa-widget .nbfc-col-left {
    min-height: 0;
  }
  .nbfc-dofa-widget .nbfc-standings-card {
    min-height: 0;
    height: auto;
  }
  .nbfc-dofa-widget .nbfc-modal__sheet,
  .nbfc-dofa-widget .nbfc-overlay__sheet {
    top: 8dvh;
    transform: translate(-50%, 0);
  }
  .nbfc-dofa-widget .nbfc-header,
  .nbfc-dofa-widget.nbfc-fullscreen .nbfc-header,
  .nbfc-dofa-widget.nbfc-mode-overlay .nbfc-header {
    position: static;
    top: auto;
  }
  .nbfc-dofa-widget .nbfc-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nbfc-dofa-widget .nbfc-compact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nbfc-dofa-widget .nbfc-refresh {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .nbfc-dofa-widget {
    font-size: 15px;
    --nbfc-logo-size: 40px;
    --nbfc-logo-size-mini: 28px;
  }
  .nbfc-dofa-widget .nbfc-club-switch {
    flex-direction: column;
    align-items: stretch;
  }
  .nbfc-dofa-widget .nbfc-club-option {
    width: 100%;
    justify-content: flex-start;
  }
  .nbfc-dofa-widget .nbfc-modal,
  .nbfc-dofa-widget .nbfc-overlay {
    padding: 8px;
  }
  .nbfc-dofa-widget .nbfc-modal__sheet,
  .nbfc-dofa-widget .nbfc-overlay__sheet {
    width: 100%;
    max-height: 92dvh;
    border-radius: 16px;
  }
  .nbfc-dofa-widget .nbfc-modal__body,
  .nbfc-dofa-widget .nbfc-overlay__content {
    padding: 14px;
  }
  .nbfc-dofa-widget .nbfc-layout {
    min-height: 0;
    gap: 16px;
  }
  .nbfc-dofa-widget .nbfc-col-left {
    min-height: 0;
    gap: 16px;
  }
  .nbfc-dofa-widget .nbfc-next-card {
    min-height: 0;
  }
  .nbfc-dofa-widget .nbfc-card {
    padding: 16px;
  }
  .nbfc-dofa-widget .nbfc-header {
    padding: 10px 12px;
    gap: 10px;
  }
  .nbfc-dofa-widget .nbfc-title {
    font-size: 17px;
  }
  .nbfc-dofa-widget .nbfc-subtitle {
    font-size: 10px;
  }
  .nbfc-dofa-widget .nbfc-summary {
    padding: 16px;
    margin-bottom: 16px;
  }
  .nbfc-dofa-widget .nbfc-summary-header h3 {
    font-size: 16px;
  }
  .nbfc-dofa-widget .nbfc-summary-meta,
  .nbfc-dofa-widget .nbfc-summary-venue {
    font-size: 14px;
  }
  .nbfc-dofa-widget .nbfc-summary-score {
    font-size: 24px;
  }
  .nbfc-dofa-widget .nbfc-results-card {
    padding: 16px;
    flex: 0 0 auto;
    margin-bottom: 16px;
  }
  .nbfc-dofa-widget .nbfc-results-card .nbfc-tab-panels {
    overflow: visible;
  }
  .nbfc-dofa-widget .nbfc-tab-panel .nbfc-standings-table {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nbfc-dofa-widget[data-active-tab="classement"] .nbfc-results-card .nbfc-tab-panels {
    overflow: visible;
  }
  .nbfc-dofa-widget .nbfc-standings-row {
    padding: 10px 10px;
    font-size: 12px;
    min-height: 44px;
  }
  .nbfc-dofa-widget .nbfc-standings-title {
    font-size: 16px;
  }
  .nbfc-dofa-widget .nbfc-standings-subtitle {
    font-size: 10px;
  }
  .nbfc-dofa-widget .nbfc-standings-header {
    background: #f8fafc;
    z-index: 2;
  }
  .nbfc-dofa-widget .nbfc-standings-logo,
  .nbfc-dofa-widget .nbfc-standings-logo.nbfc-logo-fallback {
    width: var(--nbfc-logo-size-standings);
    height: var(--nbfc-logo-size-standings);
    font-size: 12px;
  }
  .nbfc-dofa-widget .nbfc-mini-logo,
  .nbfc-dofa-widget .nbfc-mini-logo.nbfc-logo-fallback {
    width: var(--nbfc-logo-size-mini);
    height: var(--nbfc-logo-size-mini);
    font-size: 12px;
    border-width: 1px;
  }
  .nbfc-dofa-widget .nbfc-match-item {
    padding: 12px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    border-radius: 14px;
  }
  .nbfc-dofa-widget .nbfc-match-header {
    margin-bottom: 8px;
  }
  .nbfc-dofa-widget .nbfc-match-date {
    font-size: 12px;
  }
  .nbfc-dofa-widget .nbfc-match-meta {
    font-size: 12px;
  }
  .nbfc-dofa-widget .nbfc-tab-panels,
  .nbfc-dofa-widget .nbfc-standings-table {
    -webkit-overflow-scrolling: touch;
  }
  .nbfc-dofa-widget .nbfc-standings-table::-webkit-scrollbar {
    width: 6px;
  }
  .nbfc-dofa-widget .nbfc-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .nbfc-dofa-widget .nbfc-controls {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }
  .nbfc-dofa-widget .nbfc-filters-bar {
    padding: 10px 12px;
  }
  .nbfc-dofa-widget .nbfc-filters-summary {
    font-size: 13px;
  }
  .nbfc-dofa-widget .nbfc-filters-panel {
    max-height: 0;
  }
  .nbfc-dofa-widget .nbfc-filters.is-open .nbfc-filters-panel {
    max-height: 520px;
  }
  .nbfc-dofa-widget .nbfc-compact-select,
  .nbfc-dofa-widget .nbfc-compact-more {
    width: 100%;
  }
  .nbfc-dofa-widget .nbfc-header-actions {
    width: 100%;
    grid-auto-flow: row;
    justify-content: stretch;
    gap: 8px;
  }
  .nbfc-dofa-widget .nbfc-fullscreen-toggle,
  .nbfc-dofa-widget .nbfc-refresh {
    width: 100%;
  }
  .nbfc-dofa-widget .nbfc-refresh,
  .nbfc-dofa-widget .nbfc-fullscreen-toggle,
  .nbfc-dofa-widget .nbfc-compact-more,
  .nbfc-dofa-widget .nbfc-filters-toggle,
  .nbfc-dofa-widget .nbfc-tab {
    min-height: 44px;
    font-size: 14px;
  }
  .nbfc-dofa-widget .nbfc-select {
    min-height: 44px;
    font-size: 14px;
  }
  .nbfc-dofa-widget .nbfc-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .nbfc-dofa-widget .nbfc-tabs-header {
    position: sticky;
    top: 0;
    padding: 6px 0;
    background: linear-gradient(135deg, rgba(11, 45, 91, 0.95), rgba(8, 19, 38, 0.9));
    z-index: 2;
    gap: 10px;
    justify-content: stretch;
  }
  .nbfc-dofa-widget .nbfc-tab {
    flex: 1 1 120px;
    text-align: center;
  }
  .nbfc-dofa-widget .nbfc-summary-teams {
    flex-direction: column;
    align-items: flex-start;
  }
  .nbfc-dofa-widget .nbfc-team-name {
    font-size: 14px;
  }
  .nbfc-dofa-widget .nbfc-compact-row {
    grid-template-columns: 1fr;
  }
  .nbfc-dofa-widget .nbfc-compact-title {
    font-size: 16px;
  }
  .nbfc-dofa-widget .nbfc-compact-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 16px;
  }
  .nbfc-dofa-widget .nbfc-compact-logo,
  .nbfc-dofa-widget .nbfc-compact-logo.nbfc-logo-fallback,
  .nbfc-dofa-widget .nbfc-team-logo,
  .nbfc-dofa-widget .nbfc-logo-fallback {
    width: var(--nbfc-logo-size);
    height: var(--nbfc-logo-size);
    font-size: 12px;
    border-width: 1px;
  }
  .nbfc-dofa-widget .nbfc-col-left > :last-child,
  .nbfc-dofa-widget .nbfc-compact-row > :last-child {
    margin-bottom: 0;
  }
}

@keyframes nbfcFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nbfcShimmer {
  0% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nbfc-dofa-widget *,
  .nbfc-dofa-widget *::before,
  .nbfc-dofa-widget *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nbfc-dofa-modal-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}
