/* Tournament Team of the Week — editorial shell + pitch */
.ttotw {
  --tw-lime: #acdd00;
  --tw-lime-dark: #8bb100;
  --tw-ink: #0a0a0a;
  --tw-muted: #9ca3af;
  --tw-line: rgba(0, 0, 0, 0.06);
  --tw-card: #ffffff;
  --tw-bg: #f7f7f8;
  --tw-navy: #060b1b;
  --tw-font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --tw-font-body: Montserrat, Inter, system-ui, sans-serif;
  font-family: var(--tw-font-body);
}

.ttotw-board {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.ttotw-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tw-lime);
}

.ttotw-title {
  font-family: var(--tw-font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tw-ink);
  margin: 0;
  line-height: 0.95;
}

.ttotw-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  background: rgba(6, 11, 27, 0.04);
  border: 1px solid var(--tw-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tw-ink);
}

.ttotw-count .tdash-lucide {
  color: var(--tw-lime);
  font-size: 0.9rem;
}

.ttotw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 0.85rem;
  align-items: start;
}

.ttotw-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ttotw-card {
  background: var(--tw-card);
  border: 1px solid var(--tw-line);
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 16px rgba(10, 10, 10, 0.05);
  overflow: hidden;
}

.ttotw-card-head {
  padding: 0.8rem 1rem 0.75rem;
  border-bottom: 1px solid var(--tw-line);
  position: relative;
}

.ttotw-card-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tw-lime) 0%, rgba(172, 221, 0, 0.35) 55%, transparent 100%);
}

.ttotw-card-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tw-lime);
}

.ttotw-card-title {
  font-family: var(--tw-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tw-ink);
  margin: 0;
  line-height: 1;
}

.ttotw-card-meta {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

.ttotw-card-body {
  padding: 1rem 0.85rem 1.1rem;
}

.ttotw-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--tw-muted);
}

.ttotw-empty .tdash-lucide {
  font-size: 2rem;
  color: var(--tw-lime);
  margin-bottom: 0.75rem;
}

.ttotw-empty-title {
  font-family: var(--tw-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tw-ink);
  margin: 0 0 0.35rem;
}

.ttotw-empty-text {
  margin: 0;
  font-size: 0.85rem;
}

/* Pitch — portrait 4:5 (matches futsalground art), diamond formation */
.ttotw-field-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.ttotw-field {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: visible;
}

.ttotw-field-bg {
  position: absolute;
  inset: 0;
  background-image: var(--ttotw-field-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0;
  z-index: 1;
}

/* Diamond: FW / LW–RW / DEF / GK — centres only, no stack overlap */
.ttotw-pos {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: max-content;
}

.ttotw-pos--fw { top: 34%; z-index: 24; }
.ttotw-pos--lw { top: 52%; left: 17%; z-index: 23; }
.ttotw-pos--rw { top: 52%; left: 83%; z-index: 23; }
.ttotw-pos--def { top: 70%; z-index: 22; }
.ttotw-pos--gk { top: 88%; z-index: 21; }

.ttotw-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 0;
  padding: 0.35rem 0.35rem 0.3rem;
  width: 86px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ttotw-player::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tw-lime);
}

.ttotw-player:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(172, 221, 0, 0.55);
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.2);
  z-index: 30;
}

.ttotw-player-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.28rem;
  flex-shrink: 0;
}

.ttotw-player-avatar,
.ttotw-player-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.ttotw-player-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tw-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.ttotw-player-rating {
  position: absolute;
  right: -5px;
  bottom: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--tw-lime);
  color: var(--tw-ink);
  font-size: 0.52rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

.ttotw-player-rating--gk {
  background: var(--tw-navy);
  color: #fff;
}

.ttotw-player-name {
  font-family: var(--tw-font-display);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tw-ink);
  line-height: 1.05;
  margin: 0 0 0.12rem;
  max-width: 100%;
}

.ttotw-player-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttotw-player-sub {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tw-muted);
  line-height: 1.15;
  margin: 0;
}

.ttotw-player-role {
  color: var(--tw-lime-dark);
}

/* Sidebar */
.ttotw-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.ttotw-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.ttotw-chip {
  background: var(--tw-card);
  border: 1px solid var(--tw-line);
  border-radius: 0;
  padding: 0.85rem 0.7rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 16px rgba(10, 10, 10, 0.05);
}

.ttotw-chip-label {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

.ttotw-chip-value {
  margin: 0;
  font-family: var(--tw-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: var(--tw-ink);
  line-height: 1;
}

.ttotw-side-list {
  padding: 0.35rem 0 0.55rem;
}

.ttotw-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid var(--tw-line);
}

.ttotw-side-row:last-child {
  border-bottom: 0;
}

.ttotw-side-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tw-ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttotw-side-row-value {
  font-family: var(--tw-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--tw-ink);
  flex-shrink: 0;
}

.ttotw-latest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.9rem 1.1rem 1.05rem;
}

.ttotw-latest-item {
  text-align: center;
}

.ttotw-latest-value {
  margin: 0 0 0.15rem;
  font-family: var(--tw-font-display);
  font-size: 1.35rem;
  color: var(--tw-ink);
  line-height: 1;
}

.ttotw-latest-label {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tw-muted);
}

@media (max-width: 1099.98px) {
  .ttotw-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .ttotw-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .ttotw-field-wrap {
    max-width: 340px;
  }

  .ttotw-player {
    width: 72px;
    padding: 0.28rem 0.28rem 0.25rem;
  }

  .ttotw-player-avatar,
  .ttotw-player-avatar-fallback {
    width: 32px;
    height: 32px;
  }

  .ttotw-player-rating {
    min-width: 16px;
    height: 16px;
    font-size: 0.48rem;
  }

  .ttotw-player-name {
    font-size: 0.6rem;
  }

  .ttotw-player-sub {
    font-size: 0.48rem;
  }

  .ttotw-pos--fw { top: 33%; }
  .ttotw-pos--lw { top: 51%; left: 16%; }
  .ttotw-pos--rw { top: 51%; left: 84%; }
  .ttotw-pos--def { top: 69%; }
  .ttotw-pos--gk { top: 87%; }

  .ttotw-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 419.98px) {
  .ttotw-field-wrap {
    max-width: 100%;
  }

  .ttotw-player {
    width: 64px;
    padding: 0.22rem 0.2rem 0.2rem;
  }

  .ttotw-player-avatar,
  .ttotw-player-avatar-fallback {
    width: 28px;
    height: 28px;
  }

  .ttotw-player-name {
    font-size: 0.54rem;
  }

  .ttotw-pos--lw { left: 15%; }
  .ttotw-pos--rw { left: 85%; }
}
