/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f3f3f3;
  color: #000;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.header {
  text-align: center;
  padding: 15px 10px;
  background: #f0f0f0;
  border-bottom: 3px solid #ddd;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #000;
  margin: 0;
}

.logo span {
  color: #555;
  font-weight: normal;
}

.subtext {
  font-size: 11px;
  color: #000;
  margin-top: 5px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer {
  background: linear-gradient(to right, #e74c3c, #c0392b);
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  margin: 10px 0;
}

.updated {
  text-align: center;
  background: #16a085;
  color: white;
  padding: 8px;
  font-weight: bold;
  font-size: 14px;
}

/* Results Section */
.results {
  width: 94%;
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-header {
  background: #16a085;
  color: white;
  padding: 12px 15px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.days {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
}

.days span {
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Section Styling */
.section {
  margin-top: 0;
}

.section:first-child {
  border-top: none;
}

.section-title {
  background: #444;
  color: white;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Result Rows */
.result-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr 1fr;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row .name {
  font-weight: bold;
  color: #000;
}

.result-row .time {
  font-size: 13px;
  color: #333;
}

.result-row .time a {
  color: #0066cc;
  text-decoration: none;
  font-weight: normal;
}

.result-row .time a:hover {
  text-decoration: underline;
}

.result-row .number {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #000;
}

.result-row .xx {
  text-align: center;
  color: #999;
  font-style: italic;
}

.result-row.highlight {
  background: #ffcc00 !important;
  font-weight: bold;
  border-left: 5px solid #e67e22;
}

/* Show Game Banner */
.show-game, .banner {
  text-align: center;
  background: #ffcc00;
  padding: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
  margin: 15px auto;
  width: 94%;
  max-width: 1000px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.show-game p, .banner a {
  margin-top: 5px;
  font-size: 13px;
}

.show-game a, .banner a {
  color: #0066cc;
  text-decoration: none;
}

.show-game a:hover, .banner a:hover {
  text-decoration: underline;
}

/* Monthly Table Section */
.table-section {
  width: 94%;
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-title {
  background: #34495e;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}

.table-container h3 {
  background: #16a085;
  color: white;
  padding: 12px;
  margin: 0;
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: #f39c12;
  color: white;
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ddd;
}

table td {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #ddd;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #fff3cd;
}

.month-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #34495e;
}

.month-nav button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.month-nav button:hover {
  background: #1abc9c;
}

.latest-chart {
  text-align: center;
  padding: 12px;
  background: #3498db;
}

.latest-chart a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.latest-chart a:hover {
  text-decoration: underline;
}

.selector {
  text-align: center;
  padding: 15px;
  background: #f1c40f;
  color: #000;
  font-weight: bold;
}

.select-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.select-group select,
.select-group button {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.select-group button {
  background: #2c3e50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.select-group button:hover {
  background: #1abc9c;
}

/* Responsive */
@media (max-width: 768px) {
  .result-row {
    grid-template-columns: 1.5fr 2.5fr 1fr 1fr;
    font-size: 14px;
    padding: 8px;
  }

  .result-row .number {
    font-size: 1.1rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .subtext {
    font-size: 10px;
  }

  table {
    font-size: 12px;
  }

  .select-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .results-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .days {
    justify-content: center;
  }

  .result-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5px;
    padding: 10px;
  }

  .result-row .name {
    font-size: 1rem;
  }

  .result-row .time {
    font-size: 12px;
  }
}