/* ===============================
   📌 전체 레이아웃
================================== */
.page--teams .teams-analysis-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.page--teams .page-title {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  color: #222;
  margin-bottom: 10px;
}
.page--teams .page-meta {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin-bottom: 30px;
}

/* ===============================
   📅 경기 일정 (왼쪽)
================================== */
.page--teams .weekly-schedule {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.9rem;
  height: fit-content;
}

.page--teams .weekly-schedule h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}

.page--teams .schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page--teams .schedule-day {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.page--teams .schedule-day:last-child {
  border-bottom: none;
}

.page--teams .schedule-day strong {
  display: block;
  margin-bottom: 6px;
}

.page--teams .schedule-day .match {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.page--teams .schedule-day .team-logo {
  width: 16px;
  height: 16px;
}

/* ===============================
   🏆 포디움 (오른쪽 상단)
================================== */
.page--teams .vote-podium-section {
  background: #fff;
  border: none;
  padding: 16px;
  margin-bottom: 20px;
}

.page--teams .vote-podium-section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  text-align: center;
}

.page--teams .podium-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page--teams .podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.page--teams .podium-card:hover {
  transform: translateY(-3px);
}

.page--teams .podium-card img.team-logo {
  height: 30px;
  margin-bottom: 4px;
}

.page--teams .podium-card h3 {
  margin: 0;
  font-size: 1rem;
  text-align: center;
  font-weight: 100;
}

.page--teams .podium-card p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #666;
}

/* podium 색상 */
.page--teams .podium-1 {
  background: #fff7d6;
  border-color: gold;
}
.page--teams .podium-2 {
  background: #f0f0f0;
  border-color: silver;
}
.page--teams .podium-3 {
  background: #f9ece3;
  border-color: #cd7f32;
}

/* ===============================
   📊 구단 카드 (2열 × 5줄)
================================== */
.page--teams .teams-card-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page--teams .team-card {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease,
    background-color 0.3s ease;
  gap: 12px;
}

.page--teams .team-card img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.page--teams .team-info {
  flex: 1 1 auto;
  min-width: 0;
}
.page--teams .team-info h3,
.page--teams .team-info p,
.page--teams .last-game,
.page--teams .vote-count {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page--teams .team-info h3 {
  margin: 0;
  font-size: 1.05rem;
}
.page--teams .team-info p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #555;
}
.page--teams .last-game {
  font-size: 0.75rem;
  color: #999;
}

/* ✅ 팀별 카드 hover 색상 */
.page--teams .team-lg:hover {
  border-color: #c30452;
  background: rgba(195, 4, 82, 0.05);
}
.page--teams .team-doosan:hover {
  border-color: #1a1748;
  background: rgba(26, 23, 72, 0.05);
}
.page--teams .team-lotte:hover {
  border-color: #041e42;
  background: rgba(4, 30, 66, 0.05);
}
.page--teams .team-samsung:hover {
  border-color: #074ca1;
  background: rgba(7, 76, 161, 0.05);
}
.page--teams .team-hanwha:hover {
  border-color: #fc4e00;
  background: rgba(252, 78, 0, 0.05);
}
.page--teams .team-kia:hover {
  border-color: #ea0029;
  background: rgba(234, 0, 41, 0.05);
}
.page--teams .team-ssg:hover {
  border-color: #ce0e2d;
  background: rgba(206, 14, 45, 0.05);
}
.page--teams .team-nc:hover {
  border-color: #315288;
  background: rgba(49, 82, 136, 0.05);
}
.page--teams .team-kt:hover {
  border-color: #000000;
  background: rgba(0, 0, 0, 0.05);
}
.page--teams .team-kiwoom:hover {
  border-color: #570514;
  background: rgba(87, 5, 20, 0.05);
}

/* ✅ 투표 버튼 */
.page--teams .vote-btn {
  margin-left: auto;
  padding: 6px 10px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
}

.page--teams .team-lg .vote-btn {
  background-color: #c30452;
}
.page--teams .team-doosan .vote-btn {
  background-color: #1a1748;
}
.page--teams .team-lotte .vote-btn {
  background-color: #041e42;
}
.page--teams .team-samsung .vote-btn {
  background-color: #074ca1;
}
.page--teams .team-hanwha .vote-btn {
  background-color: #fc4e00;
}
.page--teams .team-kia .vote-btn {
  background-color: #ea0029;
}
.page--teams .team-ssg .vote-btn {
  background-color: #ce0e2d;
}
.page--teams .team-nc .vote-btn {
  background-color: #315288;
}
.page--teams .team-kt .vote-btn {
  background-color: #000000;
}
.page--teams .team-kiwoom .vote-btn {
  background-color: #570514;
}

.page--teams .vote-btn:hover {
  opacity: 0.9;
}

/* ===============================
   반응형
================================== */
@media (max-width: 1024px) {
  .page--teams .teams-analysis-layout {
    grid-template-columns: 1fr;
  }
  .page--teams .teams-card-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .page--teams .teams-card-section {
    grid-template-columns: 1fr;
  }
  .page--teams .podium-card {
    width: 80px;
  }
}

/* 다크 모드 대비 */
@media (prefers-color-scheme: dark) {
  .page--teams .team-card {
    background: #1b1c20;
    border-color: #2a2a2e;
  }
  .page--teams .weekly-schedule,
  .page--teams .schedule-day {
    border-color: #2a2a2e;
  }
}