#draft_live_content {
  --draft-clock-row-height: 7rem;
  --draft-sticky-clock-top: 4.6rem;
  --draft-scroll-controls-top: calc(var(--draft-sticky-clock-top) + var(--draft-clock-row-height));
}

.draft-board {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  width: max-content;
}

.draft-board-wrapper {
  max-width: 100%;
  padding: 0 1rem 1rem;
}

.draft-section-card {
  background: #ffffff;
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 -4px 14px rgb(17 24 39 / 0.08), 0 2px 8px rgb(17 24 39 / 0.06);
  overflow: hidden;
}

.draft-clock-row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.draft-sticky-clock-row {
  background: #ffffff;
  padding: 0.35rem 0 0.55rem;
  position: sticky;
  top: var(--draft-sticky-clock-top);
  z-index: 950;
}

.draft-clock-stack {
  display: flex;
  flex: 0 1 100%;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.draft-current-team,
.draft-countdown {
  box-sizing: border-box;
  min-height: 6.25rem;
  padding: 1rem 1.1rem 0.9rem;
  position: relative;
}

.draft-current-team {
  flex: 0 0 34rem;
}

.draft-countdown {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  justify-content: space-between;
  width: max-content;
}

.draft-current-team::before,
.draft-countdown::before,
.draft-recent-pick::before {
  background: var(--draft-team-primary-color, #1f2937);
  content: "";
  height: 0.4rem;
  inset: 0 0 auto;
  position: absolute;
}

.draft-board-section {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
}

.draft-board-section::-webkit-scrollbar {
  display: none;
}

.draft-countdown-expired .draft-current-team,
.draft-countdown-expired .draft-countdown {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.draft-countdown-expired .draft-current-team h2,
.draft-countdown-expired .draft-countdown-pick,
.draft-countdown-expired .draft-countdown-controls label {
  color: #991b1b;
}

.draft-countdown-team {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.draft-countdown-team img {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 4.8rem;
  object-fit: contain;
  width: 4.8rem;
}

.draft-current-team h2 {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.15rem;
  overflow-wrap: anywhere;
}

.draft-countdown-team-name {
  display: block;
  font-size: 1.9rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.draft-countdown-pick {
  display: block;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.draft-countdown-pick strong {
  font-size: 1.05rem;
}

.draft-countdown-display {
  display: block;
  font-size: 2.55rem;
  font-variant-numeric: tabular-nums;
  font-weight: bold;
  line-height: 1;
  margin-left: auto;
  min-width: 6.25rem;
  text-align: right;
}

.draft-countdown-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.draft-countdown-controls label {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.draft-countdown-controls input {
  box-sizing: border-box;
  width: 4.75rem;
}

.draft-countdown-icon-button {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  width: 2.25rem;
}

@media (max-width: 820px) {
  .draft-clock-stack {
    width: 100%;
  }

  .draft-countdown-team img {
    height: 3.6rem;
    width: 3.6rem;
  }

  .draft-countdown-team-name {
    font-size: 1.45rem;
  }

  .draft-countdown-display {
    font-size: 1.45rem;
    min-width: 3.75rem;
  }
}

.draft-board-shell {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  max-width: 100%;
}

.draft-scroll-controls {
  background: #ffffff;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  padding: 0 0 0.35rem;
  position: sticky;
  top: var(--draft-scroll-controls-top);
  z-index: 940;
}

.draft-scroll-controls::before {
  background: #ffffff;
  content: "";
  height: 1.25rem;
  inset: -1.25rem 0 auto;
  pointer-events: none;
  position: absolute;
}

.draft-scroll-button {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #e5eefb);
  border: 1px solid #c4d1e5;
  border-radius: 6px;
  color: #12366f;
  cursor: pointer;
  display: flex;
  flex: 0 0 2.15rem;
  font: inherit;
  height: 2.15rem;
  justify-content: center;
  padding: 0;
  transition: background 140ms ease, color 140ms ease;
  width: 2.15rem;
}

.draft-scroll-button[hidden] {
  display: none;
}

.draft-scroll-button::before {
  border-left: 0.16rem solid currentColor;
  border-top: 0.16rem solid currentColor;
  content: "";
  height: 0.58rem;
  width: 0.58rem;
}

.draft-scroll-button:hover {
  background: var(--tlfl-blue-dark);
  color: #ffffff;
}

.draft-scroll-button:focus-visible {
  outline: 2px solid var(--tlfl-blue);
  outline-offset: 2px;
}

.draft-scroll-left::before {
  transform: rotate(-45deg);
}

.draft-scroll-right::before {
  transform: rotate(135deg);
}

.draft-round {
  border-left: 1px solid currentColor;
  padding-left: 1rem;
  padding-right: 1rem;
}

.draft-round:first-child {
  border-left: 0;
  padding-left: 0;
}

.draft-round-top-border {
  background: #000000;
  display: block;
  height: 0.4rem;
  margin: 0 -1rem 0.6rem;
}

.draft-round:first-child .draft-round-top-border {
  border-top-left-radius: 10px;
}

.draft-round:last-child .draft-round-top-border {
  border-top-right-radius: 10px;
}

.draft-round-heading {
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 4px 8px rgb(17 24 39 / 0.08);
  margin: 0 0 0.55rem;
  padding: 0.35rem 0 0.45rem;
}

.draft-round table {
  min-width: 100%;
  width: max-content;
}

.draft-round th,
.draft-round td {
  padding: 0.25rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.draft-round th:last-child,
.draft-round td:last-child {
  text-align: center;
}

.draft-round tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.draft-round button,
.draft-pick-modal button,
.draft-pick-modal input[type="submit"],
.draft-pick-modal input[type="radio"],
.draft-pick-modal label {
  cursor: pointer;
}

.draft-team-cell {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
}

.draft-recent-picks {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
}

.draft-recent-picks-section {
  margin-bottom: 2rem;
}

.draft-recent-picks-section h2 {
  margin: 0;
  padding: 1rem 1rem 0.75rem;
}

.draft-recent-pick {
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 -4px 14px rgb(17 24 39 / 0.08), 0 2px 8px rgb(17 24 39 / 0.06);
  display: flex;
  flex: 0 0 34rem;
  gap: 1.15rem;
  overflow: hidden;
  padding: 1.2rem 1.1rem 1rem;
  position: relative;
}

.draft-recent-pick-number {
  display: grid;
  flex: 0 0 auto;
  gap: 0.25rem;
  white-space: nowrap;
}

.draft-recent-pick-number strong {
  font-size: 1.5rem;
}

.draft-recent-pick-images {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.draft-recent-pick-images img {
  border-radius: 50%;
  height: 4.35rem;
  object-fit: cover;
  width: 4.35rem;
}

.draft-recent-pick-images img+img {
  margin-left: -0.75rem;
}

.draft-recent-pick-player {
  display: grid;
  flex: 1 1 auto;
  gap: 0.25rem;
  min-width: 0;
}

.draft-recent-pick-player div {
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 0;
}

.draft-recent-pick-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
