body { font-family: Arial, sans-serif; margin: 0; }
h1 { text-align: center; }
.schedule-container { display: flex; flex-direction: row; -webkit-overflow-scrolling: touch; }
.day-column { flex: 1 0 12%; min-width: 150px; border-right: 1px solid #ddd; }
.time-col-wrapper.time-slot.time-col { margin-left: 20px; }
.day-header { background-color: #f2f2f2; padding: 10px; text-align: center; font-weight: normal; position: sticky; top: 0; z-index: 1; }
div.day-column.time-col-wrapper .time-slot { border-left: 1px solid #eee; }
.time-slot { justify-content: center; display: flex; border-bottom: 1px solid #eee; padding: 0px; min-height: 30px; align-items: center; position: relative; }
.time-col { width: 60px; flex-shrink: 0; }
.day-column:not(.time-col-wrapper) .time-col { display: none; }
.events-container { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; flex-grow: 1; align-items: center; position: relative; z-index: 10; }
.event { display: inline-block; border-radius: 5px; padding: 4px 6px; margin: 2px; color: #333; font-size: 12px; flex-shrink: 0; white-space: nowrap; position: relative; z-index: 1; }
.slot { background-color: #90ee90; }
.public-match { background-color: #ffff96; border: 1px solid #ccc; cursor: pointer; }
.match-popup { position: absolute; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,0.2); padding: 8px 10px; display: none; z-index: 1000; max-width: 260px; }
.match-popup .popup-header { display: flex; justify-content: space-between; align-items: center; font-weight: normal; font-size: 12px; margin-bottom: 6px; }
.match-popup #popupClose { background: #eee; border: 0; border-radius: 4px; padding: 2px 6px; cursor: pointer; }
.match-popup #popupBody { font-size: 12px; text-align: left; }
@media screen and (max-width: 768px) {
  .schedule-container { flex-direction: column; }
  .day-column { border-right: none; border-bottom: 2px solid #000; margin-bottom: 20px; }
  .time-col-wrapper { display: none; }
  .day-column:not(.time-col-wrapper) .time-col { display: flex; align-items: center; }
  .events-container { justify-content: center; flex-wrap: wrap; }
  .time-slot.empty { display: none; }
}
.timestamp { padding: 6px 10px; font-size: 12px; color: #555; }
.footer { text-align: center; margin: 20px 0; }
.refresh-button { background: #4CAF50; border: none; color: #fff; padding: 12px 22px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.refresh-button:hover { background: #45a049; }
.slot-weather { position: absolute; right: 0; display: flex; align-items: center; gap: 4px; padding-right: 6px; z-index: 0; height: 100%; top: 0; }
.weather-icon { width: 14px; height: 14px; display: inline-block; }
.weather-temp { font-size: 12px; color: #555; }
