/* Plugin Styles */
.nhl-plugin-container {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #000;
  max-width: 900px;
  margin: 20px auto;
  padding: 20px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  -webkit-user-select: none; /* Disable text select */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.nhl-plugin-container .header {
  text-align: center;
  margin-bottom: 15px;
}
.nhl-plugin-container .season_title {
  font-size: 28px;
  font-weight: bold;
}
.nhl-plugin-container .game_day_date {
  font-size: 16px;
  color: #555;
  margin-top: 6px;
}
.nhl-plugin-container .timezone-selector {
  text-align: center;
  margin: 20px 0 30px;
}
.nhl-plugin-container select {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  min-width: 220px;
}
.nhl-plugin-container .schedule-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nhl-plugin-container .game-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 60px; /* Ensure consistent height for alignment */
}
.nhl-plugin-container .game-time {
  font-weight: 700;
  font-family: monospace;
  font-size: 16px;
  min-width: 70px;
  text-align: left;
  color: #222;
  flex-shrink: 0;
}
.nhl-plugin-container .time-team-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}
.nhl-plugin-container .team-block {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  justify-content: center;
  flex-shrink: 0;
}
.nhl-plugin-container .team-name {
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nhl-plugin-container .team-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.nhl-plugin-container .connector-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
}
.nhl-plugin-container .connector-text {
  font-weight: 900;
  font-size: 20px;
  color: #555;
  user-select: none;
}
.nhl-plugin-container .connector-text.live-badge {
  font-size: 12px; /* Smaller size */
  color: red;
  animation: smoothBlink 4s infinite ease-in-out; /* Even slower and smoother: 4s with ease-in-out */
  background: rgba(255,0,0,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.nhl-plugin-container .connector-text.final-badge {
  font-size: 12px;
  color: red;
  background: rgba(255,0,0,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  /* No animation for FT */
}
.nhl-plugin-container .period-desc {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nhl-plugin-container .clock-desc {
  font-size: 12px;
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes smoothBlink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.nhl-plugin-container .score-display {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
}
.nhl-plugin-container .btn-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.nhl-plugin-container .schedule_watch {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nhl-plugin-container .schedule_watch:hover {
  background-color: #333;
}
@media (max-width: 600px) {
  .nhl-plugin-container .game-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 8px 12px;
    gap: 8px;
    min-height: 50px;
  }
  .nhl-plugin-container .game-time {
    min-width: 60px;
    font-size: 14px;
  }
  .nhl-plugin-container .time-team-center {
    flex-direction: row;
    gap: 6px;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }
  .nhl-plugin-container .team-block {
    min-width: auto;
    gap: 4px;
    justify-content: center;
  }
  .nhl-plugin-container .team-name {
    display: none;
  }
  .nhl-plugin-container .connector-wrapper {
    gap: 0.5px;
  }
  .nhl-plugin-container .connector-text {
    font-size: 18px;
  }
  .nhl-plugin-container .connector-text.live-badge {
    font-size: 10px;
  }
  .nhl-plugin-container .period-desc {
    font-size: 9px;
    max-width: 60px;
  }
  .nhl-plugin-container .clock-desc {
    font-size: 10px;
    max-width: 60px;
  }
  .nhl-plugin-container .score-display {
    font-size: 12px;
  }
  .nhl-plugin-container .btn-container {
    gap: 6px;
    min-width: auto;
  }
  .nhl-plugin-container .schedule_watch {
    padding: 6px 10px;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .nhl-plugin-container .connector-text.final-badge {
    font-size: 10px;
  }
}