* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #222;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 20px 12px 40px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.topbar p {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
}

.day-section {
  margin-bottom: 18px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.day-title {
  background: #f0f2f5;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  display: flex;
  gap: 10px;
  align-items: center;
}

.match-list {
  width: 100%;
}

.match-item {
  padding: 18px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.match-item:nth-child(odd) {
  background-color: #f8f9fa;
}

.match-item:nth-child(even) {
  background-color: #ffffff;
}

.match-item:last-child {
  border-bottom: none;
}

.match-line {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  line-height: 1.4;
}

.match-time {
  font-weight: 700;
  color: #111;
  min-width: 60px;
}

.match-league {
  color: #666;
  min-width: 50px;
}

.match-line {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  line-height: 1.4;
  width: 100%;
}

.match-teams-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.team-a-section {
  flex: 1;
  text-align: right;
  padding-right: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-b-section {
  flex: 1;
  text-align: left;
  padding-left: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logos-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 90px;
  justify-content: center;
}

.team-a, .team-b {
  font-weight: 600;
  color: #111;
  display: block;
}

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}

.vs {
  color: #888;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.empty-box,
.error-box {
  padding: 18px 16px;
  font-size: 15px;
  color: #888;
}

.error-box {
  color: #d9534f;
}

@media (max-width: 640px) {
  .match-line {
    gap: 8px;
    font-size: 16px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  .match-time {
    min-width: 50px;
    font-size: 16px;
    font-weight: 700;
  }

  .match-league {
    min-width: 40px;
    font-size: 14px;
  }

  .match-teams-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .team-a-section, .team-b-section {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }

  .team-a, .team-b {
    font-size: 14px;
    font-weight: 600;
  }

  .logos-section {
    min-width: 70px;
    gap: 4px;
  }

  .team-logo {
    width: 20px;
    height: 20px;
  }

  .vs {
    font-size: 14px;
    font-weight: 700;
  }

  .day-title {
    font-size: 16px;
    padding: 12px 16px;
  }

  .match-item {
    padding: 14px 12px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .match-line {
    gap: 6px;
    font-size: 14px;
  }
  
  .match-time {
    min-width: 45px;
    font-size: 14px;
  }

  .match-league {
    min-width: 35px;
    font-size: 12px;
  }

  .team-a, .team-b {
    font-size: 12px;
  }

  .logos-section {
    min-width: 60px;
  }

  .team-logo {
    width: 18px;
    height: 18px;
  }

  .vs {
    font-size: 12px;
  }

  .day-title {
    font-size: 14px;
    padding: 10px 12px;
  }

  .match-item {
    padding: 12px 10px;
  }

  .page {
    padding: 16px 8px 30px;
  }
}

@media (max-width: 375px) {
  .match-line {
    gap: 4px;
    font-size: 13px;
  }
  
  .match-time {
    min-width: 40px;
    font-size: 13px;
  }

  .match-league {
    min-width: 30px;
    font-size: 11px;
  }

  .team-a, .team-b {
    font-size: 11px;
  }

  .logos-section {
    min-width: 50px;
  }

  .team-logo {
    width: 16px;
    height: 16px;
  }

  .vs {
    font-size: 11px;
  }

  .match-item {
    padding: 10px 8px;
  }
}