body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #2f4666;
  color: #111;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
  color: white;
}

.hero h1 {
  font-size: 64px;
  margin: 0;
}

.hero p {
  font-size: 24px;
  color: #4CAF50;
  margin-top: 10px;
}

/* CONTENT SECTION */
.content {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.content-card {
  background: #e5e5e5;
  max-width: 1100px;
  width: 100%;
  padding: 40px;
  display: flex;
  gap: 40px;
}

/* LEFT SIDE */
.left {
  flex: 1;
}

.left h2 {
  margin-top: 0;
}

.left ul {
  padding-left: 20px;
}

/* RIGHT SIDE */
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right img {
  max-width: 100%;
  border-radius: 8px;
}

/* CTA */
.cta {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.cta button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.cta button:hover {
  opacity: 0.9;
}

.cta-link {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.cta-link:hover {
  opacity: 0.9;
}
/* FORM SECTION */
.form-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px 40px;
}

/* CARD */
.form-card {
  background: #e5e5e5;
  padding: 30px 30px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* LABELS */
.form-card label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
}

/* HELPER TEXT */
.helper {
  font-size: 13px;
  color: #666;
  margin: 5px 0 8px;
}

/* INPUTS */
.form-card input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

/* BUTTON */
.form-card button {
  width: 100%;
  margin-top: 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.form-card button:hover {
  opacity: 0.9;
}
.players-section {
  padding: 20px;
}

.players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: white;
}

.players-header input {
  padding: 8px;
  border-radius: 6px;
  border: none;
}

/* GRID */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

/* PLAYER CARD */
.player-card {
  background: #e5e5e5;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.player-card img {
  width: 80px;
  height: 80px;
}

.player-card h4 {
  margin: 10px 0 5px;
}

.player-card p {
  margin: 0;
  font-size: 12px;
  color: #555;
}
.player-builder {
  display: flex;
  flex-direction: column; /* STACK */
  align-items: center;
  padding: 40px 20px;
  gap: 20px; /* space between form / list / tip */
}

.builder-card {
  background: #e5e5e5;
  width: 100%;
  max-width: 800px; /* increased from 700 */
  border-radius: 20px;
  padding: 25px;
}

.center {
  text-align: center;
}

/* SEARCH */
#search {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #aaa;
  margin: 15px 0;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.filter {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #aaa;
  background: transparent;
  cursor: pointer;
}

.filter.active {
  border: 2px solid #4a7bdc;
}

/* PLAYER ROW */
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f2;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-left img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.position-pill {
  background: #4a7bdc;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* SELECTED STATE */
.player-row.selected {
  border: 2px solid #4CAF50;
}

/* ACTIONS */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.primary {
  background: #4CAF50;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
}

.secondary {
  padding: 10px 16px;
  border-radius: 8px;
}
#players-list {
  max-height: 500px;
  overflow-y: auto;
  margin-top: 10px;
  overflow-y: auto;
  max-height: 500px;
}
* {
  box-sizing: border-box;
}
#picks-container {
  max-width: 700px;
  margin: 20px auto;
}

.pick-card {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 🔥 change this */
  gap: 24px; /* 🔥 THIS controls spacing */
  background: #e5e5e5;
  padding: 18px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.pick-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.remove-btn {
  border: 1px solid red;
  color: red;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.tip {
  background: #e5e5e5;
  padding: 10px;
  border-radius: 8px;
  max-width: 700px;
  margin: 20px auto;
  text-align: center;
  font-size: 14px;
}
.builder-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #aaa;
  font-size: 14px;
}

.picks-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}

.picks-form-actions .picks-actions__add {
  flex: 0 0 auto;
}

.picks-form-actions .picks-actions__done {
  margin-left: auto;
  background: #4a7bdc;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.picks-form-actions .picks-actions__done:hover {
  opacity: 0.92;
}

.picks-form-actions .picks-actions__done:focus-visible {
  outline: 2px solid #4a7bdc;
  outline-offset: 2px;
}
#picks-container {
  width: 100%;
  max-width: 800px; /* match form */
}
.pick-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e5e5e5;
  padding: 16px 20px; /* more breathing room */
  border-radius: 12px;
  margin-bottom: 12px;
}
.pick-info {
  display: flex;
  align-items: center;
  gap: 24px; /* 🔥 this is what you want */
  font-size: 16px;
  font-weight: 500;
}
.tip {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
#picks-container {
  margin-top: 10px;
}
#email-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.remove-btn {
  margin-left: auto; /* pushes it to the far right */
}
.review-container {
  max-width: 800px;
  margin: 40px auto;
}

.accordion {
  background: #e5e5e5;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  cursor: pointer;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.accordion-content {
  margin-top: 10px;
  display: none;
  font-size: 14px;
  color: #333;
}

/* ----- Final review (post-draft, owner) ----- */
.final-review-container {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 20px 40px;
}

.final-review-accordion {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 0;
  cursor: default;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.final-review-accordion-header {
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 12px;
}

.final-review-accordion-header:focus {
  outline: 2px solid #4a7bdc;
  outline-offset: 2px;
}

.final-review-accordion-body {
  padding: 0 18px 16px;
  margin-top: 0;
  line-height: 1.5;
  color: #222;
}

.final-review-accordion.accordion--open > .accordion-content {
  display: block;
}

.final-review-accordion:not(.accordion--open) > .accordion-content {
  display: none;
}

.accordion-chevron {
  font-size: 12px;
  color: #555;
  flex-shrink: 0;
}

.final-review-actions {
  margin-top: 28px;
}

.final-complete-btn {
  width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 10px;
}

.final-review-footnote {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px !important;
}

/* ----- Draft room (snake board + pool) ----- */
.draft-room-page {
  min-height: 100vh;
}

.owner-watch-hint {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  border: 1px solid #c8c0d8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  color: #222;
}

.owner-watch-hint__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.owner-watch-hint__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.owner-watch-hint__url {
  flex: 1;
  min-width: 200px;
  font-size: 12px;
  padding: 10px 12px;
  background: #f2f2f2;
  border-radius: 8px;
  word-break: break-all;
  color: #333;
}

.owner-watch-hint__copy {
  flex-shrink: 0;
}

.owner-watch-hint__dismiss {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: #4a7bdc;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.draft-room-page--spectator .draft-pool-side {
  background: #f0f4fa;
}

.draft-spectator-status {
  font-size: 15px;
  font-weight: 600;
  color: #2f4666;
  margin: 12px 0;
  line-height: 1.45;
}

.draft-spectator-status a {
  color: #4a7bdc;
}

.draft-spectator-footnote {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.draft-room-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
}

.draft-room-hero p {
  color: #4caf50;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

.draft-room-layout {
  display: flex;
  justify-content: center;
  padding: 0 20px 48px;
}

.draft-room-card {
  background: #fff;
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.draft-board-side {
  flex: 1 1 320px;
  padding: 20px 16px 24px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* Lets the scroll child shrink below intrinsic grid height inside this column flex. */
  overflow: hidden;
}

.draft-board-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.draft-room-vdivider {
  width: 1px;
  background: #ccc;
  flex: 0 0 1px;
  min-height: 200px;
}

.draft-pool-side {
  flex: 1 1 280px;
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fafafa;
}

.draft-pool-heading {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.draft-pool-helper {
  margin-top: 0;
}

.draft-search-wrap {
  position: relative;
  margin: 12px 0 10px;
}

.draft-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}

.draft-pool-search {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 10px;
  border: 1px solid #c8c0d8;
  background: #ece8f4;
  font-size: 14px;
}

.draft-pool-search:focus {
  outline: 2px solid #4a7bdc;
  outline-offset: 1px;
}

.draft-pool-filters {
  flex-wrap: wrap;
}

.draft-pool-list {
  flex: 1;
  min-height: 200px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 4px;
}

.draft-pool-empty {
  color: #666;
  font-size: 14px;
  margin: 16px 0;
}

.draft-pool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f2f2;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.draft-pool-row--selected {
  border-color: #4caf50;
  background: #eef8ee;
}

.draft-pool-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4caf50;
  cursor: pointer;
}

.draft-pool-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.draft-pool-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #555;
}

.draft-pool-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draft-pool-avatar--pick {
  color: #2f4666;
}

.pick-grad-cap-icon {
  display: block;
  flex-shrink: 0;
}

.pick-grad-cap-icon--board {
  width: 16px;
  height: 16px;
  color: #9fd4ff;
}

.pick-grad-cap-icon--pool {
  width: 22px;
  height: 22px;
  color: #2f4666;
}

.draft-pool-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.draft-pool-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-pool-info span {
  font-size: 13px;
  color: #555;
}

.draft-pool-footer {
  margin-top: auto;
  padding: 16px 0 20px;
  background: linear-gradient(to top, #ece8f4, transparent);
  display: flex;
  justify-content: flex-end;
}

.draft-submit-pick {
  padding: 12px 24px;
  font-size: 15px;
  cursor: pointer;
}

.draft-submit-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Nested flex: min-height:0 on scroll + board side allows the capped area to shrink and scroll. */
.snake-board-scroll {
  min-height: 0;
  flex: 1 1 auto;
}

.snake-board-scroll--many-rows {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Fixed scrollport ≈ 8 pick rows + header (row stride matches cell + gap). */
  --snake-scroll-viewport: calc(
    var(--snake-board-header-h, 44px) + 8 * (var(--snake-board-row-stride, 104px) + 6px)
  );
  height: min(var(--snake-scroll-viewport), 85vh);
  max-height: min(var(--snake-scroll-viewport), 85vh);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.snake-grid {
  --snake-cols: 4;
  --snake-board-header-h: 44px;
  --snake-board-row-stride: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.snake-grid-header-row,
.snake-grid-row {
  display: grid;
  grid-template-columns: 36px repeat(var(--snake-cols), minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.snake-board-scroll--many-rows .snake-grid-header-row {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding-top: 4px;
  margin-top: -4px;
  padding-bottom: 6px;
  margin-bottom: -2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.snake-board-scroll--many-rows .snake-grid-corner,
.snake-board-scroll--many-rows .snake-grid-header-cell {
  background: #fff;
}

.snake-grid-corner {
  min-height: 28px;
}

.snake-grid-header-cell {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  text-align: center;
  padding: 4px 2px;
  word-break: break-all;
  line-height: 1.2;
}

.snake-grid-row-label {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snake-cell {
  background: #2f4666;
  color: #fff;
  border-radius: 10px;
  border: 2px solid transparent;
  min-height: 64px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.snake-cell--active {
  border-color: #4caf50;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.35);
}

.snake-cell-flow {
  font-size: 18px;
  line-height: 1;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snake-cell-clock {
  font-size: 20px;
}

.snake-cell-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a2a40;
}

.snake-cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snake-cell-thumb--pick {
  display: flex;
  align-items: center;
  justify-content: center;
}

.snake-cell-caption {
  font-size: 10px;
  line-height: 1.2;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .draft-room-vdivider {
    width: 100%;
    height: 1px;
    min-height: 0;
    flex-basis: 100%;
  }
}