main {
  flex: 1;
}

.search-result-header {
  margin: 2rem 0 0.6rem;
  text-align: center;
}

.search-result-label {
  font-family: 'VT323', monospace;
  font-size: 1.75rem;
  color: #aaa;
  letter-spacing: 0.02em;
}

.searched-name-value {
  color: #4ade80;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.05rem;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.results-summary {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.availability-panel {
  background-color: rgba(0, 0, 0, 0.45);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04),
    inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
  padding: 16px 20px;
  margin-bottom: 1.5rem;
}

.availability-panel--locked {
  border-color: #000;
  box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04),
    inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.avail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 8px 24px;
  align-items: start;
}

.avail-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.avail-label {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #4ade80;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.avail-status {
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  line-height: 1.3;
}

.avail-status.locked {
  color: #f87171;
}

.avail-status.possibly-available {
  color: #86efac;
}

.avail-time {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: #9ca3af;
  line-height: 1.4;
  white-space: nowrap;
}

.player-card {
  background-color: rgba(0, 0, 0, 0.35);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04),
    inset -3px -3px 0px rgba(0, 0, 0, 0.3), 4px 4px 0px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.player-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background-color: rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid #111;
}

.player-avatar {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border: 2px solid #4ade80;
  border-radius: 0;
  flex-shrink: 0;
}

.player-card-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  color: #4ade80;
  text-decoration: none;
  line-height: 1.4;
}

.player-card-name:hover {
  color: #86efac;
  text-decoration: underline;
}

.name-history-table {
  width: 100%;
}

.name-row {
  display: grid;
  grid-template-columns: 38px minmax(120px, 2fr) auto 64px;
  align-items: center;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'VT323', monospace;
  gap: 10px;
  transition: background-color 0.1s;
}

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

.name-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.name-row.searched-name-row {
  background-color: rgba(74, 222, 128, 0.07);
}

.name-index {
  color: #444;
  font-size: 1rem;
  text-align: right;
  padding-right: 4px;
  flex-shrink: 0;
}

.name-value {
  color: #ccc;
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-value.highlighted {
  color: #4ade80;
}

.name-date {
  color: #555;
  font-size: 0.95rem;
  white-space: nowrap;
}

.name-date--first-recorded {
  color: #86efac;
}

.name-duration {
  color: #777;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.player-card--current-owner {
  border-color: #4ade80;
  box-shadow: inset 3px 3px 0px rgba(74, 222, 128, 0.08),
    inset -3px -3px 0px rgba(0, 0, 0, 0.3), 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.player-card--current-owner .player-card-header {
  background-color: rgba(74, 222, 128, 0.07);
  border-bottom-color: rgba(74, 222, 128, 0.2);
}

.current-owner-badge {
  margin-left: auto;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #4ade80;
  border: 3px solid #4ade80;
  padding: 1px 10px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.no-results-message {
  text-align: center;
  padding: 25px;
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: #666;
  background-color: rgba(0, 0, 0, 0.3);
  border: 3px solid #000;
  position: relative;
  box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 16px;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  background-color: rgba(0, 0, 0, 0.35);
  color: #aaa;
  border: 3px solid #000;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
  outline: none;
}

.page-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 #000;
}

.page-btn.active {
  background-color: #4ade80;
  color: #000;
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
}

.page-btn:active:not(.active) {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000;
}

.loading-container {
  margin-top: 4rem;
}


/* Footer styles removed - using global-auth.css */

@media screen and (max-width: 768px) {
  .name-row {
    grid-template-columns: 30px minmax(90px, 2fr) auto;
    padding: 6px 12px;
    gap: 7px;
  }

  .name-duration {
    display: none;
  }

  .name-date {
    font-size: 0.88rem;
  }

  .searched-name-value {
    font-size: 0.9rem;
  }

  .search-result-label {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 480px) {
  .name-row {
    grid-template-columns: 26px 1fr auto;
    padding: 5px 10px;
    gap: 6px;
  }

  .name-date {
    font-size: 0.82rem;
  }

  .player-card-name {
    font-size: 0.75rem;
  }

  .player-card-header {
    gap: 10px;
    padding: 8px 12px;
  }
}

#custom-support-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background-color: #5cb85c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 0;
    box-shadow: 4px 4px 0 #000;
    border: 2px solid #000;
    font-family: 'VT323', monospace;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.1s, box-shadow 0.1s;
}

#custom-support-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

#custom-support-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

#custom-support-button img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    #custom-support-button {
        bottom: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 18px;
    }

    #custom-support-button img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    #custom-support-button {
        bottom: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 16px;
    }

    #custom-support-button span {
        display: none;
    }

    #custom-support-button img {
        width: 24px;
        height: 24px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    border-top: 4px solid #4ade80;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.2rem;
}

.cookie-accept-btn {
    background: #4ade80;
    color: #000;
    border: 2px solid #000;
    font-size: 1.1rem;
    padding: 8px 22px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: 'VT323', monospace;
}

.cookie-accept-btn:hover {
    background: #66BB6A;
    color: #fff;
    font-family: 'VT323', monospace;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1rem;
        padding: 14px 8px;
    }

    .cookie-accept-btn {
        width: 100%;
        margin-top: 8px;
        padding: 10px;
        font-family: 'VT323', monospace;
    }
}