/* Newspaper Theme Variables */
:root {
  --bg-color: #fdf6e3;       /* light cream paper */
  --text-color: #1b1b1b;     /* dark ink */
  --header-bg: #f0e8d8;      /* slightly darker cream */
  --button-bg: #e0d8c0;      /* faded button look */
  --button-text: #1b1b1b;
  --link-color: #4b2e2e;     /* muted brown for links */
}

/* Apply theme */
body {
  font-family: 'Times New Roman', Georgia, serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

header {
  background: var(--header-bg);
  padding: 2rem;
  border-bottom: 2px solid #ccc;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.3s;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

button#theme-toggle {
  margin-top: 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid #aaa;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0; /* newspaper look */
  font-family: 'Times New Roman', serif;
  transition: background 0.3s, color 0.3s;
}

/* Latest Episode Hero */
#latest-episode {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: left;
}

#latest-episode .hero-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  background: #f8f1e4;
}

#latest-episode .hero-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.episode-description {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
}

/* Social links */
#socials .social-links {
  margin: 1rem 0;
}
#socials .social-links a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--link-color);
  font-weight: normal;
  font-style: italic;
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 900px;
  position: relative;
}

.carousel-track {
  display: flex;
  overflow: hidden;
  width: 80%;
  transition: transform 0.4s ease-in-out;
  border-top: 1px dashed #bbb;
  border-bottom: 1px dashed #bbb;
  padding: 1rem 0;
}

.carousel-track iframe {
  min-width: 100%;
  height: 400px;
  border: 1px solid #ccc;
}

/* Carousel buttons */
button.prev, button.next {
  background: var(--button-bg);
  border: 1px solid #aaa;
  color: var(--button-text);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
button.prev { left: 0; }
button.next { right: 0; }

/* Chart */
#charts {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  border-top: 1px solid #ccc;
}

/* Footer */
footer {
  background: var(--header-bg);
  padding: 1rem;
  margin-top: 2rem;
  border-top: 2px solid #ccc;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .carousel-track iframe {
    height: 220px;
  }

  button.prev, button.next {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Video container styles */
.video-container {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Episodes header styles */
.episodes-header {
  text-align: center;
  margin-top: 20px;
  font-size: 3rem; /* adjust as needed */
  color: #000; /* or white if video is dark */
}

/* Responsive header adjustments */
@media (max-width: 1024px) {
  .episodes-header {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .episodes-header {
    font-size: 2rem;
  }
}
