/* ===== Writer Picks: shared styles (homepage, Writer Picks page, admin picks page) ===== */

[hidden] { display: none !important; }


/* ----- Logos ----- */
.rzp .team-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.rzp .team-logo.tiny, .rzp .logo-fallback.tiny { width: 20px; height: 20px; }
.rzp .team-logo.big, .rzp .logo-fallback.big { width: 40px; height: 40px; }
.rzp .logo-fallback {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: .5rem;
  font-weight: 700;
}
.rzp .logo-fallback.tiny { font-size: .42rem; }

.rzp-empty {
  margin: 0;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.rzp-msg { margin: 0 0 1rem; font-weight: 600; }
.rzp-msg:empty { display: none; }
.rzp-msg.error { color: var(--red); }

/* ----- Writer tabs ----- */
.rzp-tabs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: .25rem;
}
.rzp-tab {
  flex-shrink: 0;
  padding: .5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rzp-tab:hover { border-color: var(--red); color: var(--red); }
.rzp-tab.active { background: var(--black); color: var(--white); }
.rzp-tab.active:hover { color: var(--white); }

/* ----- Writer summary (name + records) ----- */
.rzp-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
}
.rzp-writer { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.rzp-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}
.rzp-avatar.sm { width: 26px; height: 26px; margin-right: .5rem; font-size: .7rem; vertical-align: middle; }
.rzp-writer-name { font-size: 1.15rem; font-weight: 700; }
.rzp-writer-sub { font-size: .8rem; color: #bbb; }
.rzp-stats { display: flex; gap: 1.25rem; }
.rzp-stat { display: flex; flex-direction: column; align-items: center; }
.rzp-stat-num { font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.rzp-stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: #bbb; }

/* ----- Game list ----- */
.rzp-games { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rzp-game {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.rzp-game.win { border-left-color: var(--green); }
.rzp-game.loss { border-left-color: var(--red); }
.rzp-game.push { border-left-color: var(--line-strong); }
.rzp-game.pending { border-left-color: var(--ink); }

.g-status { font-size: .78rem; font-weight: 600; color: var(--muted); }
.g-neutral {
  display: inline-block;
  padding: 0 .3rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: .62rem;
  color: var(--subtle);
}
.g-teams { display: grid; gap: .2rem; min-width: 0; }
.g-team {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
  padding: .1rem .35rem;
  border-radius: 6px;
}
.g-team.picked { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.g-team.lost { color: var(--subtle); }
.g-abbr { font-weight: 700; width: 2.4rem; }
.g-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.g-score { font-weight: 700; font-size: 1.05rem; min-width: 1.6rem; text-align: right; }
.g-team.lost .g-score { font-weight: 600; }
.g-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

.pick-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: .75rem;
  white-space: nowrap;
}
.pick-badge.win { background: var(--green); }
.pick-badge.loss { background: var(--red); }
.pick-badge.push { background: #777; }
.pick-badge.none { background: var(--surface-2); color: var(--subtle); }
.g-link {
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.g-link:hover { text-decoration: underline; }

/* ----- Standings table ----- */
.rzp-table-wrap { overflow-x: auto; }
.rzp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rzp-table th, .rzp-table td {
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.rzp-table thead th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.rzp-table tbody th { font-weight: 700; }
.rzp-table .num { text-align: right; }
.rzp-table .strong { font-weight: 700; }
.rzp-table .rank { color: var(--red); font-weight: 700; width: 1.5rem; }
.rzp-table tbody tr:first-child .rank::after { content: " ★"; }
.rzp-table .wk { color: var(--muted); font-size: .85rem; }

/* ----- Phones ----- */
@media (max-width: 600px) {
  .rzp-game { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .6rem; }
  .g-status { grid-column: 1 / -1; }
  .g-name { display: none; }
  .rzp-stats { gap: .9rem; width: 100%; justify-content: space-around; }
}

/* ===== Writer Picks page ===== */
.wp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 1.25rem;
}
.wp-header .page-title { margin: 0; font-size: 2.8rem; }
.wp-season {
  margin-left: .4rem;
  padding: .15rem .35rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
  font: inherit;
  font-size: .8rem;
  color: var(--text);
}
.wp-kicker {
  margin: 0 0 .2rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.wp-intro { margin: 0; max-width: 28rem; color: var(--muted); }

.wp-card {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 10px;
}
.wp-card-title {
  margin: 0 0 .5rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}

.wp-week-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.wp-week-title { min-width: 14rem; text-align: center; }
.wp-week-title h2 {
  margin: 0;
  font-family: var(--display); font-stretch: 72%;
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}
.wp-week-title p { margin: .2rem 0 0; font-weight: 700; color: var(--red); }
.wp-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.wp-arrow:hover:not(:disabled) { background: var(--black); color: var(--white); }
.wp-arrow:disabled { opacity: .3; cursor: default; }

.wp-week-chips {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding: .25rem .1rem .5rem;
  justify-content: safe center;
}
.wp-chip {
  position: relative;
  flex: 0 0 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wp-chip:hover { border-color: var(--ink); }
.wp-chip.current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--red);
}
.wp-chip.active { background: var(--black); border-color: var(--ink); color: var(--white); }

.rzp-tab.compare { border-style: dashed; }
.rzp-tab.compare.active { border-style: solid; }

.wp-compare .c { text-align: center; }
.wp-compare tbody th { font-weight: 400; }
.wp-matchup { display: flex; align-items: center; gap: .35rem; font-weight: 700; }
.wp-matchup .at { color: var(--subtle); font-weight: 400; }
.wp-matchup b { margin-left: .15rem; }
.wp-when { font-size: .75rem; color: var(--subtle); }
.wp-compare tfoot th, .wp-compare tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }

@media (max-width: 600px) {
  .wp-header .page-title { font-size: 2.2rem; }
  .wp-week-title { min-width: 0; }
  .wp-week-title h2 { font-size: 1.6rem; }
  .wp-card { padding: .85rem; }
}

.wp-empty { display: grid; justify-items: center; gap: .6rem; }
.wp-empty p { margin: 0; }
