*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: linear-gradient(90deg, #DC143C 0%, #C41E3A 100%);
  border-bottom: 3px solid #B22222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-ball {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  color: #DC143C;
  font-size: 24px;
  border: 2px solid #DC143C;
}

.logo-text h1 {
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
  font-weight: bold;
}

.logo-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease-out;
  font-weight: 500;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-main {
  flex: 1;
  padding: 20px 5vw 32px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC143C 0%, #C41E3A 100%);
  z-index: 1;
}

.card h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #DC143C;
  font-weight: bold;
  border-bottom: 2px solid #DC143C;
  padding-bottom: 8px;
}

.card-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.card-today {
  grid-row: span 2;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #DC143C;
  position: relative;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.plan-item:hover {
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.15);
  border-left-color: #B22222;
}

.plan-league {
  font-size: 13px;
  color: #DC143C;
  margin-bottom: 8px;
  font-weight: 600;
}

.plan-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.plan-match .team {
  max-width: 45%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.plan-match .vs {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 13px;
  color: #666;
}

.plan-pick {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.pick-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  background: #DC143C;
  color: #fff;
  border: none;
  font-weight: 600;
}

.pick-win {
  color: #fff;
}

.plan-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
}

.hint {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  border-left: 3px solid #DC143C;
  padding-left: 12px;
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 4px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}

.schedule-table th,
.schedule-table td {
  padding: 6px 8px;
  text-align: left;
}

.schedule-table thead {
  background: #DC143C;
  color: #fff;
}

.schedule-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.schedule-table tbody tr:nth-child(odd) {
  background: #fff;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.status-has-plan {
  background: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}

.card-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stats-item {
  border-radius: 6px;
  padding: 16px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border: 1px solid #e0e0e0;
  border-top: 3px solid #DC143C;
  text-align: center;
  transition: all 0.2s ease;
}

.stats-item:hover {
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.15);
  transform: translateY(-2px);
}

.stats-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.stats-value {
  font-size: 24px;
  font-weight: 700;
  color: #DC143C;
}

.stats-note {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.site-footer {
  text-align: center;
  font-size: 13px;
  padding: 20px 10px;
  background: #2c2c2c;
  color: #fff;
  border-top: 3px solid #DC143C;
  margin-top: auto;
}

.site-footer p + p {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .page-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-today {
    grid-row: auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-inline: 16px;
  }

  .page-main {
    padding-inline: 16px;
  }

  .logo-text h1 {
    font-size: 18px;
  }
}


