@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

.delete-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: color 0.2s ease;
}

.delete-btn:hover {
  color: #dc3545;
}

select {
  min-height: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
      linear-gradient(45deg, transparent 50%, var(--navy) 50%),
      linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
      calc(100% - 18px) 19px,
      calc(100% - 12px) 19px;
  background-size:
      6px 6px,
      6px 6px;
  background-repeat: no-repeat;

  padding-right: 40px;
}

/* ---------- VARIABLES ---------- */
:root {
  --navy: #001f3f;
  --light-gray: #f4f4f4;
  --text-dark: #222;
}

/* ---------- RESET ---------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}


/* ---------- PROFILE PAGE ---------- */
.profile-page {
  min-height: calc(100vh - 70px);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  background: var(--light-gray);
}

.profile-main {
  text-align: center;
}

/* ---------- PROFILE IMAGE ---------- */
.profile-large {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}
.profile-small {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}


/* ---------- PLAYER NAME ---------- */
.player-name {
  font-size: 36px;
  color: var(--navy);
  margin: 10px 0 30px;
}

/* ---------- STATS GRID ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 20px;
  justify-content: center;
}

.stat {
  background: white;
  padding: 18px;
  border-radius: 10px;
  border-top: 4px solid var(--navy);

  text-decoration: none;
  color: var(--text-dark);

}

.stat h2 {
  font-size: 14px;
  margin: 0;
  color: #666;
}

.stat p {
  font-size: 22px;
  font-weight: bold;
  margin-top: 5px;
  color: var(--navy);
}

/* ---------- PLAYERS PAGE ---------- */
.players-page {
  padding: 40px 0;
  background: var(--light-gray);
  min-height: calc(100vh - 70px);
}

.page-title {
  text-align: center;
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 40px;
}

/* GRID */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PLAYER CARD */
.player-card {
  background: white;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  border-top: 4px solid var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* PLAYER IMAGE */
.player-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* PLAYER NAME */
.player-card h2 {
  margin: 10px 0 5px;
  color: var(--navy);
}

/* TEAM NAME */
.player-card p {
  margin: 0;
  color: #666;
}

/* ---------- TEAMS PAGE ---------- */
.teams-page {
  padding: 40px 20px;
  background: var(--light-gray);
  min-height: calc(100vh - 70px);
}

.teams-table {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ROWS */
.teams-row {
  display: grid;
  grid-template-columns: 70px 1.5fr repeat(5, 1fr);
  padding: 15px 20px;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.teams-row:last-child {
  border-bottom: none;
}


/* TEAM ROW STYLING */
.teams-row:not(.header-row):hover {
  background: #f5f7fa;
}

.rank {
  font-weight: bold;
  color: var(--navy);
}

.team-name {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- TEAM PROFILE PAGE ---------- */
.team-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* TEAM HEADER */
.team-header {
  text-align: center;
  margin-bottom: 40px;
}

.team-name {
  font-size: 40px;
  color: var(--navy);
}

.team-rank {
  color: #555;
  font-size: 18px;
}

/* TEAM STATS */
.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border-top: 4px solid var(--navy);
}

.stat-label {
  display: block;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 26px;
  font-weight: bold;
  color: var(--navy);
}

/* TEAM PLAYERS */
.team-players h2 {
  margin-bottom: 20px;
  color: var(--navy);
}

.players-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.team-player {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  border-left: 4px solid var(--navy);
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-player:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.player-name {
  font-weight: 600;
}

/* ---------- SCHEDULE PAGE ---------- */
.schedule-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.week {
  margin-bottom: 40px;
}

.week-title {
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 5px;
}

/* GAME ROW */
.game {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;

  background: white;
  padding: 15px;
  border-radius: 10px;

  margin-bottom: 10px;

  max-width: 800px;
  margin-left: auto;
  margin-right: auto;

  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}



/* MATCHUP */
.matchup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.vs {
  color: #777;
  font-weight: bold;
}

/* TEAM LINKS */
.team-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.team-link:hover {
  background: #f0f4fa;
}

/* ---------- MATCH PAGE ---------- */
.match-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.match-title {
  text-align: center;
  color: var(--navy);
  margin-bottom: 20px;
}

.match-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.match-meta a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

/* SCORE TABLE */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
}

.score-table th,
.score-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.score-table th {
  background: var(--navy);
  color: white;
}

.score-table td a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

/* RESULTS */
.match-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.result-box {
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-top: 4px solid var(--navy);
  text-align: center;
  font-weight: 600;
}

.result-box.highlight {
  background: #f0f4fa;
}

/* ---------- HEADER ---------- */

   header {
    width: 100%;
    height: 70px;
    background-color: #0a2342; /* navy */
  }
  
  .header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 0 32px;
    box-sizing: border-box;
  }
  
  /* LOGO */
  .header-container .logo {
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .header-container .logo a {
    display: inline-flex;
    align-items: center;
    height: 100%;
  }
  
  .header-container .logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    display: flex;
  }
  
  /* NAVIGATION */
  .header-container nav {
    display: flex;
    gap: 24px;
  }
  
  .header-container nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
    padding: 12px 0;
    white-space: nowrap;
  }
  
  .header-container nav a:hover {
    border-bottom: 2px solid #ffffff;
  }
  
  /* MOBILE SAFETY (NO WRAP / NO STRETCH) */
  .header-container * {
    flex-shrink: 0;
  }
  

/* ADMIN LINK (slight emphasis) */
.admin-link {
  border: 2px solid var(--navy);
  padding: 6px 14px;
}

.admin-link:hover {
  background: var(--navy);
  color: white;
}

/* LOGIN PAGE */

.login-container {
  width: 350px;
  margin: 80px auto;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 25px;
}

.login-container input,
.login-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 15px;
  box-sizing: border-box;
}


.login-container select {
  width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.login-container button {
  width: 100%;
  padding: 12px;
  background: #0a2342;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.login-container button:hover {
  background: #163a6b;
}

.error {
  color: red;
  margin-bottom: 15px;
}


/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;

  background-image: linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url('/static/images/index_background.jpeg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #efefefef;
}

.hero-buttons {
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

.btn.primary {
  background: #1f3a5f; /* navy */
  color: white;
}

.btn.secondary {
  border: 2px solid #1f3a5f;
  color: #1f3a5f;
}

/* QUICK LINKS */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h2 {
  margin-bottom: 10px;
}

.card a {
  display: inline-block;
  margin-top: 15px;
  color: #1f3a5f;
  font-weight: bold;
  text-decoration: none;
}

/* ADMIN PAGE */
.admin-panel {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

.admin-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.admin-card {
  padding: 40px;
  background: #0a2342;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
}

.admin-card:hover {
  background: #163a6b;
}

.player-search{
  text-align:center;
  margin-bottom:30px;
}

/* SEARCH BAR */
.search-input{
  padding:10px;
  width:250px;
  border-radius:6px;
  border:1px solid #ccc;
  font-size:16px;
}

.search-btn{
  padding:10px 20px;
  background:#111;
}

/* ---------- DART SHEET ---------- */

.dart-page{

  background:var(--light-gray);
  padding:40px;
  min-height:calc(100vh - 70px);
  
}
  
.dart-card{
  
  background:white;
  padding:30px;
  border-radius:12px;
  max-width:1300px;
  margin:auto;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  overflow-x: auto;
  
}
  
.dart-title{
  
  text-align:center;
  font-size:42px;
  color:var(--navy);
  margin-bottom:25px;
  border-bottom:3px solid var(--navy);
  padding-bottom:10px;
  
}
  
.dart-info{
  
  display:flex;
  justify-content:space-between;
  margin-bottom:25px;
  font-weight:600;
  
}
  
.edit-line{
  
  border-bottom:2px solid #333;
  min-width:220px;
  display:inline-block;
  margin-left:10px;
}
  
.edit-small{
  
  border-bottom:2px solid #333;
  min-width:120px;
  display:inline-block;
  margin-left:10px;
  
}
  
  /* TABLE */
  
.dart-table{
  
  width:100%;
  border-collapse:collapse;
  margin-bottom:25px;
  
}
  
.dart-table th{
  
  background:var(--navy);
  color:white;
  padding:8px;
  border:1px solid #333;
  
}
  
.dart-table td{
  
  border:1px solid #333;
  height:42px;
  text-align:center;
  
}
  
.dart-table td:focus{
  
  background:#e6f0ff;
  outline:none;
  
}
  
.row-label {
  
  text-align: left;
  padding-left: 10px;
  font-weight: 600;
  font-size: 23px;

}
  
.gray{
  
  background:#cfcfcf;
  
}
  
  
/* DIAGONAL CELL */
.diag-cell {
  position: relative;
  padding: 0;
}

.diag-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 48%,
    black 49%,
    black 51%,
    transparent 52%
  );
  pointer-events: none;
}

/* WRAP CONTENT */
.cell-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* INPUT (TOP LEFT) */
.score-field {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 22px;
  height: 16px;
  font-size: 10px;
  border: none;
  text-align: left;
  background: transparent;
}
.score-field.egg {
  background-color: #FFFED1;
  border: 2px solid #F7C319;
  font-weight: bold;
}

/* RUNNING TOTAL (BOTTOM RIGHT) */
.cell-total {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
}
/* winner boxes */
  
.dart-footer{
  
  display:flex;
  justify-content:space-between;
    margin-top:20px;
  
}
  
.dart-box{
  
  border:2px solid var(--navy);
  padding:12px;
  width:120px;
  text-align:center;
  font-weight:bold;
  background:white;
  
}
  
.beer{
  
  width:70px;

}

/* ---------- TEAM PLAYER CARDS ---------- */

.team-player-card {
  display: flex;
  align-items: center;
  gap: 12px;

  background: white;
  padding: 12px 15px;
  border-radius: 10px;

  text-decoration: none;
  color: var(--text-dark);

  border-left: 4px solid var(--navy);

  transition: all 0.2s ease;
}

.team-player-card:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.team-player-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}


.team-player-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
}

.game-block {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.date {
  font-size: 30px;   
  font-weight: 700;
  color: var(--navy);
}

.time {
  font-size: 30px;
  color: #666;
  white-space: nowrap;
  font-weight: bold;
  color: var(--navy);
}

.date-header {
  max-width: 800px;
  margin: 25px auto 10px;

  font-size: 22px;
  font-weight: 700;
  color: var(--navy);

  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
}
.games-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ---------- DART TABLE HORIZONTAL SCROLL ---------- */

.game-card {
  background: white;
  border: 1px solid #333;
  padding: 10px;
  width: 95%;
  max-width: 900px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: auto;
}

.dart-table.compact {
  width: max-content;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}

.dart-table.compact th,
.dart-table.compact td {
  border: 1px solid #333;
  padding: 2px;
  height: 42px;
  text-align: center;
}



.score-input {
  height: 22px;
  border: none;
  text-align: center;
  font-size: 18px;
  position: absolute;
  top: 1px;
  left: 1px;
  width: 50px;
  background: transparent;
  
}

.row-label {
  font-weight: bold;
  white-space: nowrap;
  padding-left: 4px;
}

.compact-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.dart-box {
  border: 1px solid #000;
  padding: 4px;
  font-size: 15px;
  width: 80px;
  text-align: center;
}

.status {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 18px;
}

.submitted {
  background: #d4edda;
  color: #155724;
}

.accepted {
  background: #cce5ff;
  color: #004085;
}

.pending {
  background: #f8d7da;
  color: #721c24;
}

.passcode-input {
  margin-bottom: 10px;
  padding: 6px;
}

.photo-form {
  margin-bottom: 12px;
}

.inning-total-row td,
.grand-total-row td {
  font-weight: bold;
  background: #f5f7fa;
}

.grand-total-all {
  font-weight: bold;
  font-size: 26px;
  color: var(--navy);
}

.inning-total,
.grand-total {
  font-weight: bold;
  font-size: 26px;
  color: var(--navy);
}

.player-total{
  font-weight: bold;
  font-size: 26px;
  color: var(--navy);
}



.mismatch {
  background-color: #ffcccc;
  border: 2px solid red;
}

.game-select-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.game-select-buttons a {
  background: #0a2342;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}

.game-select-buttons a:hover {
  background: #163a6b;
}

.date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.handicap-cell {
  font-weight: bold;
  text-align: center;
  color: #163a6b
}

.news-page{
  max-width:1200px;
  margin:auto;
  padding:40px 20px;
}

.section-title{
  font-size:2rem;
  color:var(--navy);
  margin:50px 0 25px;
  border-left:6px solid var(--navy);
  padding-left:15px;
}

/* PLAYER OF WEEK */

.pow-section{
  background:white;
  border-top:6px solid var(--navy);
  border-radius:15px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
  padding:40px;
}

.section-label{
  color:#888;
  font-size:.9rem;
  letter-spacing:2px;
}

.pow-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:35px;
}

.pow-header h1{
  color:var(--navy);
  font-size:3rem;
  margin-bottom:5px;
}

.pow-header h3{
  color:#777;
}

.pow-award{
  font-size:1.8rem;
  font-weight:bold;
  color:var(--navy);
}

.pow-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:20px;
}

.pow-stat{
  background:var(--light-gray);
  border-radius:12px;
  padding:25px;
  text-align:center;
}

.pow-stat span{
  color:#888;
  font-size:.9rem;
}

.pow-stat h2{
  margin-top:10px;
  color:var(--navy);
}

.pow-footer{
  margin-top:30px;
  color:#777;
  font-size:1.1rem;
}


/* RECORDS */

.record-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.record-card{
  background:white;
  border-radius:15px;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
  padding:35px;
  text-align:center;
  transition:.3s;
}

.record-card:hover{
  transform:translateY(-4px);
}

.record-value{
  color:var(--navy);
  font-size:2.5rem;
  font-weight:bold;
}

.record-name{
  color:#666;
  margin-top:15px;
}


/* LEADERBOARD */

.leaderboard{
  background:white;
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.leader-row{
  display:flex;
  align-items:center;
  padding:20px 30px;
  border-bottom:1px solid #eee;
}

.rank-number{
  width:60px;
  font-size:1.5rem;
  font-weight:bold;
  color:var(--navy);
}

.leader-player{
  flex:1;
  font-weight:bold;
}

.leader-player span{
  display:block;
  color:#777;
  font-weight:normal;
  margin-top:5px;
}

.leader-total{
  font-size:1.4rem;
  color:var(--navy);
  font-weight:bold;
}


/* NEWS */

.news-feed{
  display:flex;
  flex-direction:column;
  gap:25px;
}

.news-card{
  background:white;
  border-left:6px solid var(--navy);
  border-radius:12px;
  padding:30px;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.news-date{
  color:#888;
  font-size:.9rem;
  margin-bottom:10px;
}

.news-card h2{
  color:var(--navy);
  margin-bottom:15px;
}

.news-card p{
  color:#555;
  line-height:1.7;
}


/* MOBILE */

@media (max-width:768px){

  .pow-header{
      flex-direction:column;
      align-items:flex-start;
      gap:20px;
  }

  .pow-header h1{
      font-size:2.2rem;
  }

}

.game-wrapper{
  display:flex;
  align-items:flex-start;
  gap:20px;
}

/* ---------- MATCH ACTION BUTTONS ---------- */

.submission-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
}

.passcode-input {
  width: 180px;
  padding: 10px 14px;
  border: 1px solid #c7d2e2;
  border-radius: 8px;
  font-size: 15px;
}

.action-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,.15);
}

.action-btn:active {
  transform: translateY(0);
}

/* Submit */

.submit-btn {
  background: #0a2342;
  color: white;
}

.submit-btn:hover {
  background: #163a6b;
}

/* Overtime */

.ot-button {
  background: #f5a623;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.ot-button:hover {
  background: #db8d11;
  transform: translateY(-2px);
}

/* Remove OT */

.remove-ot-btn {
  background: #7b1e1e;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.remove-ot-btn:hover {
  background: #991b1b;
  transform: translateY(-2px);
}

/* Reset */

.reset-game-btn {
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

.reset-game-btn:hover {
  background: #c9302c;
  transform: translateY(-2px);
}

/* ---------- FLASH MESSAGES ---------- */

.flash-container {
  max-width: 900px;
  margin: 20px auto;
}

.flash {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 20px;
  margin-bottom: 15px;

  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);

  font-weight: 600;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;

  font-size: 22px;
  color: #777;
  font-weight: bold;
}

.flash-close:hover {
  color: black;
}

/* PLAYER IMAGE */
.pow-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.score-display {
  position: absolute;
  top: 1px;
  left: 1px;

  width: 37px;
  height: 22px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 18px;
  font-weight: bold;

  background: transparent;
  user-select: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.match-summary {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.match-summary-box {
  flex: 1;
  padding: 0;
  text-align: center;
}

.summary-title {
  padding: 10px;
  font-weight: bold;
  border-bottom: 2px solid #000;
}

.summary-stats {
  padding: 10px;
  line-height: 1.6;
}

/* ---------- ADMIN FORMS ---------- */

.form-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.admin-form {
  display: flex;
  flex-direction: column;
}

.admin-form label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  box-sizing: border-box;

  border: 1px solid #dcdcdc;
  border-radius: 8px;

  font-size: 15px;
  background: white;
  color: var(--text-dark);
}

.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(0, 31, 63, 0.1);
}

.admin-form button {
  width: 100%;
  padding: 12px;

  background: #0a2342;
  color: white;

  border: none;
  border-radius: 8px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-form button:hover {
  background: #163a6b;
  transform: translateY(-1px);
}

/* ==========================================
   MANAGE NEWS
   ========================================== */

   .admin-section {
    background: white;
    border-top: 6px solid var(--navy);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    padding: 30px;
    margin-bottom: 30px;
}

.admin-section h2 {
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 25px;
}


/* News form */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form label {
    font-weight: bold;
    color: var(--navy);
    margin-top: 10px;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.admin-form textarea {
    resize: vertical;
    min-height: 150px;
}

.admin-form button {
    width: fit-content;
    margin-top: 15px;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.admin-form button:hover {
    opacity: .9;
}


/* Existing news */

.admin-news-card {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
}

.admin-news-card:first-of-type {
    padding-top: 0;
}

.admin-news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-news-info {
    flex: 1;
}

.admin-news-info h3 {
    color: var(--navy);
    margin: 8px 0;
    font-size: 1.4rem;
}

.admin-news-info p {
    margin: 10px 0 0;
    line-height: 1.6;
    white-space: pre-line;
}

.news-category {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eee;
    font-size: .85rem;
    font-weight: bold;
}

.delete-button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #b22222;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.delete-button:hover {
    opacity: .9;
}


/* Mobile */

@media (max-width: 700px) {

    .admin-section {
        padding: 20px;
    }

    .admin-news-card {
        flex-direction: column;
    }

    .delete-button {
        width: 100%;
    }
}