body {
  background: #181818;
}

#server-status {
  font-family: sans-serif;
  max-width: 400px;
  margin: 2em auto;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 8px #000a;
  background: #232323;
  color: #f0f0f0;
}

@media (max-width: 500px) {
  #server-status {
    max-width: 98vw;
    padding: 1em;
  }
  table {
    font-size: 0.97em;
  }
  h2 {
    font-size: 1.2em !important;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #f0f0f0;
  word-break: break-word;
}

th, td {
  padding: 4px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #333;
}

tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

ul {
  margin: 0 0 0 1.5em;
  padding: 0;
}

details summary {
  cursor: pointer;
  color: #aaa;
  outline: none;
  user-select: none;
}

details summary:hover {
  color: #fff;
}

#schedule-notice {
  background: #5a1a1a;
  border: 1px solid #ff5555;
  color: #ffcccc;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  display: none;
}

.schedule-reason {
  font-size: 0.9em;
  color: #ccc;
}

.favicon-wrap {
  text-align: center;
  margin-bottom: 1em;
}

.server-favicon {
  width: 64px;
  height: 64px;
  display: none;
  border-radius: 8px;
  background: #181818;
}

.page-title {
  text-align: center;
  margin: 0 0 1em 0;
  color: #fff;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #333;
}

.quick-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-link-label {
  margin-right: 6px;
}

.hover-link {
  color: #fff;
  text-decoration: underline;
}

.hover-link:hover {
  color: gold;
}

.hover-link-bold {
  font-weight: bold;
}

.status-icon-box {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
  position: relative;
}

.status-icon-img {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0.5);
  transform-origin: top left;
  border: none;
  outline: none;
}

.footer-text {
  text-align: right;
  font-size: 0.85em;
  color: #888;
  margin-top: 12px;
}

.muted {
  color: #888;
}

.players-list {
  margin: 0 0 0 1.5em;
  padding: 0;
  color: #fff;
}

.status-online {
  color: #43d675;
}

.status-offline {
  color: #ff5555;
}

.status-offline-bold {
  color: #ff5555;
  font-weight: bold;
}

.cache-live {
  color: #43d675;
  margin-left: 4px;
}

.cache-cached {
  color: #888;
  margin-left: 4px;
}