@import url("https://fonts.googleapis.com/css2?family=Alegreya&family=Josefin+Sans&family=IBM+Plex+Mono:ital@1&family=Aboreto&family=Ubuntu+Condensed&family=Akronim&family=Bungee+Inline&display=swap");

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

body {
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: #ffffff;
  font-family: Times, serif;
  line-height: 1.6;
  color: #000;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #000;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  letter-spacing: -0.5px;
}

.content-section {
  margin-bottom: 3rem;
}

.embed-container {
  margin: 2rem 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.embed-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px dashed #dee2e6;
}

.embed-placeholder:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #adb5bd;
}

.placeholder-icon {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.placeholder-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #495057;
}

.placeholder-subtext {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  max-width: 300px;
}

.embed-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.embed-frame.loaded {
  display: block;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.loading-spinner.active {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.external-links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #f5f5f5;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.external-link:hover {
  background-color: #e5e5e5;
}

@media (max-width: 768px) {
  .embed-container {
    aspect-ratio: 16 / 9;
  }

  .external-links {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(24px, 6vw, 32px);
  }

  h2 {
    font-size: clamp(20px, 5vw, 24px);
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .embed-container {
    aspect-ratio: 4 / 3;
  }

  .placeholder-text {
    font-size: 1rem;
  }

  .placeholder-subtext {
    font-size: 0.8rem;
  }

  .external-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
