main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid #d8dae0;
  padding-bottom: 16px;
}

.calendar-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0d1117;
  line-height: 1.1;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-nav a {
  background: #ffffff;
  border: 1px solid #e2e4e9;
  color: #5a6170;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.month-nav a:hover {
  background: #f0f1f4;
  border-color: #c8ccd4;
  color: #1a1f2e;
}

.month-nav .month-label {
  font-size: 18px;
  font-weight: 700;
  min-width: 180px;
  text-align: center;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.day-header {
  background: #f5f6f8;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #8b919e;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #e2e4e9;
}

.calendar-cell {
  min-height: 130px;
  background: #ffffff;
  border-right: 1px solid #e2e4e9;
  border-bottom: 1px solid #e2e4e9;
  padding: 8px;
  position: relative;
  transition: background 0.15s;
}

.calendar-cell:nth-child(7n) {
  border-right: none;
}

.calendar-cell:hover {
  background: #f9fafb;
}

.calendar-cell.empty {
  background: #f0f1f4;
  opacity: 0.5;
}

.calendar-cell.empty:hover {
  background: #f0f1f4;
}

.calendar-cell.today {
  box-shadow: inset 0 0 0 2px var(--accent-blue);
}

.day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-cell.today .day-number {
  background: var(--accent-blue);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Game cards inside cells */
.game-release {
  display: block;
  background: #f5f6f8;
  border: 1px solid #e2e4e9;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}

.game-release:hover {
  border-color: #c8ccd4;
  transform: translateY(-1px);
}

.game-release .release-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-release .release-platforms {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-dot.ps   { background: #0070d1; }
.platform-dot.xbox  { background: #107c10; }
.platform-dot.pc    { background: #8a93a6; }
.platform-dot.nsw   { background: #e60012; }
.platform-dot.other { background: #6b7280; }

/* Featured release with cover */
.game-release.featured {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.game-release.featured .release-cover {
  width: 100%;
  height: 64px;
  overflow: hidden;
}

.game-release.featured .release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-release.featured .release-body {
  padding: 6px 8px;
}

.calendar-more-link {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  transition: background 0.15s;
}

.calendar-more-link:hover {
  background: rgba(59, 130, 246, 0.08);
}

.release-cover { position: relative; }
.cal-score {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.cal-score-green  { background: #3da66a; }
.cal-score-yellow { background: #d4911e; }
.cal-score-red    { background: #c94444; }

/* Upcoming list */
.upcoming-section {
  margin-top: 48px;
}

.upcoming-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e4e9;
  border-radius: 10px;
  padding: 14px 20px;
  gap: 16px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.upcoming-item:hover {
  background: #f9fafb;
  border-color: #c8ccd4;
}

.upcoming-date {
  text-align: center;
  flex-shrink: 0;
  width: 48px;
}

.upcoming-date .date-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upcoming-date .date-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.upcoming-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.upcoming-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upcoming-thumb .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dfe1e6, #e8eaef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-info .game-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.upcoming-info .game-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.upcoming-platforms {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.plat-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.plat-badge.ps    { background: rgba(0,112,209,0.1); color: #0060b8; }
.plat-badge.xbox  { background: rgba(16,124,16,0.1); color: #0d6b0d; }
.plat-badge.pc    { background: rgba(138,147,166,0.1); color: #5a6170; }
.plat-badge.nsw   { background: rgba(230,0,18,0.1); color: #cc0010; }
.plat-badge.other { background: rgba(107,114,128,0.1); color: #6b7280; }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.empty-state p {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .calendar-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .calendar-cell { min-height: 90px; padding: 6px; }
  .game-release .release-title { font-size: 10px; }
  .game-release.featured .release-cover { height: 40px; }
  .upcoming-platforms { display: none; }
}
