:root {
  --black: #111111;
  --dark: #1c1c1c;
  --panel: #252525;
  --gold: #d4a72c;
  --light-gold: #f0cf70;
  --white: #ffffff;
  --gray: #a7a7a7;
  --border: #404040;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 6%;
  background: #080808;
  border-bottom: 3px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 2px;
}

.brand p {
  margin: 3px 0 0;
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 2px;
}

.coach-label,
.status-pill {
  padding: 7px 11px;
  border: 1px solid var(--gold);
  color: var(--light-gold);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.container {
  width: min(1050px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 55px 0 40px;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
}

.hero > p:last-child {
  max-width: 560px;
  color: #bdbdbd;
  font-size: 15px;
}

.panel {
  padding: 28px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
}

.section-heading,
.dashboard-heading,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.section-heading h2,
.dashboard-heading h3,
.detail-header h3 {
  margin: 0;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 13px;
  background: #101010;
  border: 1px solid #494949;
  border-radius: 5px;
  color: white;
  font: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button {
  padding: 12px 18px;
  background: var(--gold);
  border: 0;
  border-radius: 5px;
  color: #111;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: var(--light-gold);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--light-gold);
}

.secondary:hover {
  background: #39301a;
}

#login-button {
  width: 100%;
  margin-top: 14px;
}

.message {
  min-height: 20px;
  color: var(--light-gold);
  font-size: 13px;
}

.inline-form {
  display: flex;
  gap: 10px;
}

.inline-form button {
  white-space: nowrap;
}

#add-pitcher-form {
  margin-bottom: 25px;
}

#pitcher-list {
  display: grid;
  gap: 12px;
}

.pitcher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 5px;
}

.pitcher-card h4 {
  margin: 0 0 5px;
  font-size: 16px;
}

.pitcher-card p {
  margin: 3px 0;
  color: var(--gray);
  font-size: 12px;
}

.empty-state {
  padding: 25px;
  color: var(--gray);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 5px;
}

#bullpen-detail {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.progress-summary {
  margin-bottom: 25px;
}

.progress-summary p {
  color: var(--light-gold);
  font-weight: bold;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #080808;
  border-radius: 20px;
}

.progress-fill {
  width: 12.5%;
  height: 100%;
  background: var(--gold);
  border-radius: 20px;
  transition: width 0.25s ease;
}

#script-content > h3 {
  margin-bottom: 5px;
}

.script-total {
  color: var(--light-gold);
  font-size: 13px;
  font-weight: bold;
}

.script-block {
  margin: 15px 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.script-block h4 {
  margin: 0 0 12px;
  color: var(--light-gold);
}

.script-block ul,
.legend-list {
  margin: 0;
  padding-left: 20px;
}

.script-block li,
.legend-list li {
  margin: 7px 0;
  color: #dedede;
  font-size: 13px;
}

#script-content > h4 {
  margin-top: 25px;
  color: var(--gold);
}

.coach-decision {
  margin-top: 30px;
  padding: 22px;
  background: #151515;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 5px;
}

.coach-decision h3 {
  margin-top: 0;
}

.decision-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.history-section {
  margin-top: 30px;
}

.history-section h3,
.cues-section h3 {
  color: var(--light-gold);
}

#pitcher-history {
  display: grid;
  gap: 10px;
}

.history-card {
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.history-card h4 {
  margin: 0 0 5px;
  color: var(--light-gold);
}

.history-card p {
  margin: 5px 0;
  color: var(--gray);
  font-size: 12px;
  white-space: pre-wrap;
}

.cues-section {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

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

.cues-section li {
  margin: 8px 0;
  color: #dedede;
  font-size: 13px;
}

footer {
  padding: 35px 0;
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}

footer p:last-child {
  color: var(--gold);
  font-weight: bold;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .site-header {
    padding: 15px 4%;
  }

  .coach-label {
    display: none;
  }

  .panel {
    padding: 20px;
  }

  .inline-form,
  .pitcher-card {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form button,
  .pitcher-card button {
    width: 100%;
  }

  .decision-buttons {
    flex-direction: column;
  }

  .decision-buttons button {
    width: 100%;
  }
}
/* PLAYER-FACING ROSTER GRID */

.public-roster {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.roster-description {
  margin-top: -12px;
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 13px;
}

#public-pitcher-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.public-pitcher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  padding: 15px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.public-pitcher-card:hover {
  background: #303030;
  border-color: var(--gold);
}

.public-pitcher-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: bold;
}

.public-bullpen-label {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  background: #3a3019;
  border-radius: 4px;
  color: var(--light-gold);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  #public-pitcher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  #public-pitcher-list {
    grid-template-columns: 1fr;
  }
}
