/* Center the YouTube Short embed */
.latest-youtube {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Center the YouTube Short embed */
.latest-youtube h2 {
  text-align: center;
  width: 100%;
}
.schedule h2 {
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 2rem;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #1e1e2f 0%, #23234a 100%);
  color: #fff;
}
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  animation: fadeIn 1s ease;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  animation: popIn 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}
.social img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.social:hover img {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 2px 12px #fff2;
}
.time-counter {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(35, 35, 74, 0.6);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  animation: fadeInUp 1.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.counter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-label {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.counter-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
  text-align: center;
}

.peepo-dig-gif {
  height: 100%;
  width: auto;
  min-height: 60px;
  max-width: 60px;
  object-fit: contain;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.peepo-dig-gif.clickable {
  cursor: pointer;
}

.peepo-dig-gif.clickable:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(145, 70, 255, 0.5));
}

.peepo-dig-gif.clickable:active {
  transform: scale(0.95);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.counter-display span {
  color: #9146ff;
}

@media (max-width: 600px) {
  .time-counter {
    margin-top: 1rem;
    padding: 0.75rem;
    max-width: 90%;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .peepo-dig-gif {
    min-height: 40px;
    max-width: 40px;
  }
  
  .counter-display {
    font-size: 1rem;
  }
  
  .counter-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .counter-display {
    font-size: 0.9rem;
  }
  
  .peepo-dig-gif {
    min-height: 30px;
    max-width: 30px;
  }
}

/* Games Section */
.games-links {
  max-width: 1400px;
  width: 95vw;
  margin: 1rem auto;
  padding: 0 1rem;
}

.games-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  min-width: 180px;
  border: 2px solid transparent;
}

.game-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(145, 70, 255, 0.4);
  border-color: rgba(255,255,255,0.2);
}

.game-link:active {
  transform: translateY(-2px);
}

.game-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.game-text {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.game-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.nes-link {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.nes-link:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

@media (max-width: 600px) {
  .games-container {
    flex-direction: column;
    align-items: center;
  }
  
  .game-link {
    width: 100%;
    max-width: 280px;
  }
}

.schedule {
  max-width: 1400px;
  width: 95vw;
  margin: 2rem auto;
  background: rgba(30,30,47,0.85);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 16px #0002;
  animation: fadeInUp 1.2s ease;
}

#schedule-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Schedule cards from JavaScript */
.schedule-card {
  background: #23234a;
  border-radius: 10px;
  box-shadow: 0 1px 8px #0001;
  padding: 0.75rem 1rem;
  animation: fadeInUp 0.7s ease;
  height: fit-content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.schedule-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.schedule-card p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive design for tablets and mobile */
@media (max-width: 1200px) {
  #schedule-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  #schedule-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Latest content section */
.latest-content {
  max-width: 1400px;
  width: 95vw;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .schedule {
    width: auto;
    max-width: none;
    margin: 0.5rem 1rem;
    padding: 1rem;
  }
  .profile-img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 400px) {
  .schedule {
    width: auto;
    margin: 0.5rem 0.75rem;
    padding: 0.75rem;
  }
  .hero {
    padding: 1.5rem 0.75rem 1rem 0.75rem;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { transform: scale(0.7); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Old times section */
.old-times {
  max-width: 1400px;
  width: 95vw;
  margin: 2rem auto;
  text-align: center;
}

.old-times h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.custom-video-player {
  position: relative;
  display: inline-block;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-overlay {
  position: relative;
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 50%, #5d1dd6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay:hover {
  background: linear-gradient(135deg, #a970ff 0%, #8b4aff 50%, #6e2ee6 100%);
  transform: scale(1.02);
}

.play-text {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

.custom-video-player video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .video-overlay {
    height: 280px;
  }
  
  .play-text {
    font-size: 1.2rem;
  }
  
  .old-times {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .video-overlay {
    height: 220px;
  }
  
  .play-text {
    font-size: 1rem;
  }
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 2rem;
  background: none;
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 2rem;
  color: #ccc;
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 2rem;
  background: #ff4444;
  border-radius: 8px;
  color: white;
  margin: 1rem;
}

.error-details {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.retry-button {
  background: #fff;
  color: #ff4444;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: bold;
}

.retry-button:hover {
  background: #f0f0f0;
}

.no-schedule {
  text-align: center;
  padding: 2rem;
  color: #ccc;
  font-style: italic;
}
