.flw-widget {
  margin: 1.5rem 0;
  border: 1px solid rgba(76, 29, 149, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.flw-widget__head {
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(135deg, #172554 0%, #312e81 100%);
  position: relative;
}

.flw-widget__head::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 100%);
}

.flw-widget__title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
}

.flw-widget__subtitle {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.flw-table-wrap {
  overflow-x: auto;
}

.flw-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: auto;
  background: #0f172a;
}

.flw-table th,
.flw-table td {
  padding: clamp(0.62rem, 1vw, 0.85rem) clamp(0.55rem, 1vw, 0.9rem);
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 19px !important;
  line-height: 1.35;
  color: #ffffff !important;
}

.flw-table th {
  background: #1e1b4b !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flw-table th:first-child,
.flw-table td:first-child {
  width: 52px;
  text-align: center;
}

.flw-table td:first-child {
  font-weight: 700;
  color: #93c5fd;
}

.flw-table td:nth-child(2) {
  font-weight: 600;
}

.flw-player {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.flw-player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.flw-player-avatar--placeholder {
  background: rgba(255, 255, 255, 0.12);
}

.flw-player__name {
  display: inline-block;
}

.flw-table td:nth-child(n + 3),
.flw-table th:nth-child(n + 3) {
  text-align: right;
  white-space: nowrap;
}

.flw-table tbody tr:nth-child(odd) td {
  background: #172554 !important;
}

.flw-table tbody tr:nth-child(even) td {
  background: #312e81 !important;
}

.flw-table tbody tr:hover td {
  background: #3730a3 !important;
}

.flw-empty,
.flw-error {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  color: #ffffff;
}

.flw-empty {
  background: #172554;
}

.flw-error {
  background: #7c2d12;
}

.flw-tabs__nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1rem 0;
  flex-wrap: wrap;
}

.flw-tabs__button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: #1e1b4b;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  cursor: pointer;
}

.flw-tabs__button.is-active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

.flw-tabs__panel {
  display: none;
  padding: 0.9rem 1rem 1rem;
}

.flw-tabs__panel.is-active {
  display: block;
}

.flw-matchday__title,
.flw-schedule__title {
  color: #e2e8f0;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.flw-matchday__list,
.flw-schedule {
  display: grid;
  gap: 0.75rem;
}

.flw-match,
.flw-schedule__block {
  background: #172554;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.flw-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.flw-match__player {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.flw-match__player .flw-player {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  justify-content: center;
}

.flw-match__player:not(.flw-match__player--right) .flw-player {
  flex-direction: row-reverse;
}

.flw-match__player .flw-player__name {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1.1;
  white-space: nowrap;
}

.flw-match__player--right {
  justify-self: stretch;
}

.flw-match__score {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.flw-schedule__rows {
  display: grid;
  gap: 0.5rem;
}

.flw-schedule__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  color: #fff;
}

.flw-schedule__vs {
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .flw-widget {
    border-radius: 14px;
  }

  .flw-widget__head {
    padding: 0.9rem 1rem 0.75rem;
  }

  .flw-widget__title {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .flw-widget__subtitle {
    font-size: 0.95rem;
  }

  .flw-widget__head::before {
    left: 1rem;
    width: 56px;
  }

  .flw-table th,
  .flw-table td {
    padding: 0.62rem 0.5rem;
    font-size: 17px !important;
  }

  .flw-table th {
    font-size: 12px !important;
  }

  .flw-player {
    gap: 0;
    justify-content: center;
  }

  .flw-player__name {
    display: none;
  }

  .flw-player-avatar {
    width: 28px;
    height: 28px;
  }

  .flw-match {
    grid-template-columns: 1fr auto 1fr;
    text-align: center;
    gap: 0.45rem;
    padding: 0.72rem 0.62rem;
  }

  .flw-match__player {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flw-match__player .flw-player {
    gap: 0;
  }

  .flw-match__player .flw-player__name {
    display: none !important;
  }

  .flw-match__player--right {
    justify-self: stretch;
  }

  .flw-match__score {
    font-size: 22px;
    line-height: 1;
  }

  .flw-schedule__row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
