:root{
  --gray: #1e1e1e;
  --orange: #df4e19;
  --light-orange: #fff4ee;
	--lighter-orange: #ffe3d8;
}


p.leaderboard-last-updated {
  margin: 0 0 10px 0;
  padding: 8px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
  color: #555555;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

div.event-card{
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  width: 100%;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

div.event-card-status-border{
  height: 3px;
  width: 100%;
  background: var(--orange);
}

div.event-card-status-container{
  display: flex;
  justify-content: center;
  width: 100%;

  margin-top: 10px;
  margin-bottom: 10px;
}

div.event-card-status{
  background-color: var(--light-orange);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 12px;
  color: var(--ongoing);
}

div.event-card-major-details{
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* SPORT DROPDOWN */
.games-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-filter-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.status-filter-select {
  -webkit-appearance: none;
  appearance: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 30px 5px 14px;
  border-radius: 4px;
  border: 1.5px solid #e2e2e2;
  background: #ffffff;
  color: #8a8a8a;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}
.status-filter-select:hover,
.status-filter-select:focus {
  border-color: var(--orange);
  color: var(--orange);
}

.status-filter-wrapper::after {
  content: '▾';
  position: absolute;
  right: 10px;
  font-size: 0.7rem;
  color: #8a8a8a;
  pointer-events: none;
}
.status-filter-wrapper:hover::after {
  color: var(--orange);
}

.games-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 400px;
}

.games-search-wrapper::before {
  content: '';
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  opacity: 0.65;
  color: #8a8a8a;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

#game-search {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 30px;
  border-radius: 8px;
  border: 1.5px solid #e2e2e2;
  background: #ffffff;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

#game-search::placeholder {
  color: #9b9b9b;
  font-weight: 500;
}

#game-search:hover {
  border-color: #d0d0d0;
}

#game-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(223, 78, 25, 0.12);
}

@media (max-width: 640px) {
  .games-search-wrapper {
    width: 100%;
    min-width: 0;
  }
}

.game-edit-trigger {
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #262626;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  border-left: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.game-edit-trigger:hover {
  background: #151515;
}

.game-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.game-edit-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.game-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.game-edit-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  border: 1px solid #e9e9e9;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  padding: 22px;
  z-index: 1;
}

.game-edit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dadada;
  background: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.game-edit-dialog h2 {
  margin: 0 34px 4px 0;
  color: #222222;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-edit-matchup {
  margin: 0 0 12px;
  color: #666666;
  font-size: 0.78rem;
  font-weight: 700;
}

.game-edit-form {
  display: grid;
  gap: 7px;
}

.game-edit-form label {
  margin-top: 6px;
  color: #4f4f4f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-edit-form input,
.game-edit-form select {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  color: #222222;
  background: #ffffff;
}

.game-edit-form select {
  padding-right: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b6b6b 50%),
    linear-gradient(135deg, #6b6b6b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.game-edit-form input.invalid-field,
.game-edit-form select.invalid-field {
  border-color: #d63b34;
  background: #fff5f5;
}

.game-edit-validation {
  min-height: 18px;
  margin: 6px 0 0;
  color: #b22b25;
  font-size: 0.74rem;
  font-weight: 700;
}

.game-edit-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.game-edit-cancel,
.game-edit-save {
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ffffff;
  cursor: pointer;
}

.game-edit-save {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

@media (max-width: 560px) {
  .game-edit-dialog {
    padding: 18px;
  }
}
