body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #2d2d2d;
  color: #FFA000;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

h1 {
  color: orange;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

/* Row layout (like the other page) */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Make the buttons match the other page's ovals */
.circle {
  /* OVERRIDE the old circle sizing */
  width: auto;
  height: auto;
  padding: 28px 70px;        /* more width than height → oval */
  border-radius: 999px;      /* pill/oval */
  background: #333333;       /* dark fill */
  border: 3px solid #FF8C00; /* orange outline */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);  /* soft 3D shadow */
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

/* Hover like the other page: orange tint + slight zoom */
.circle:hover {
  background: #FF8C00;
  box-shadow: 0 12px 20px rgba(0,0,0,0.4);
  transform: scale(1.05);
}

/* Active press effect */
.circle:active {
  background: #E07B00;
  transform: scale(0.98);
}

/* Stack on narrow screens */
@media (max-width: 600px) {
  .button-container { gap: 16px; }
  .circle { width: 85%; padding: 24px 0; }
}


.season-btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  background-color: #ff5733;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.2s;
}

.season-btn:hover {
  background-color: #ff704d;
}

.season-btn.active {
  background-color: orange;
  color: white;
}

.back-btn-fixed {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  z-index: 999;
  transition: background-color 0.2s;
}

.back-btn-fixed:hover {
  background-color: #ff704d;
}

.ep-button-thumb {
  width: 240px;
  height: 140px;
  margin: 10px;
  background-color: #333;
  color: white;
  border: 2px solid #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ep-button-thumb:hover {
  background-color: orange;
}

/* Movie player popup styles */
#overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

#playerContainer {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: 90%;
  max-width: 1000px;
  background-color: #2d2d2d;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.player-box {
  position: relative;
  width: 100%;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.now-playing {
  color: #ff5733;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

#movieTitle {
  color: #FFA000;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 5px;
}

#moviePlayer {
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}

/* Thumbnail styles */
.thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px;
  cursor: pointer;
  width: 220px;
}

.thumb img {
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
}

.thumb img:hover {
  transform: scale(1.05);
}

.thumb-title {
  margin-top: 5px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layout container for thumbs */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.search-bar {
  text-align: center;
  margin-bottom: 20px;
}

.search-bar input {
  padding: 8px 15px;
  border-radius: 20px;
  border: 2px solid orange;
  background-color: #333;
  color: white;
  font-size: 16px;
  width: 80%;
  max-width: 500px;
}

/* Scrollbar for episode buttons if needed */
#episodeButtons {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#episodeButtons::-webkit-scrollbar {
  width: 10px;
}

#episodeButtons::-webkit-scrollbar-track {
  background: #2d2d2d;
}

#episodeButtons::-webkit-scrollbar-thumb {
  background-color: orange;
  border-radius: 6px;
  border: 2px solid #2d2d2d;
}

#episodeButtons::-webkit-scrollbar-thumb:hover {
  background-color: #ff9900;
}

/* Plain, centered home icon under the H1 */
.home-icon-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;  /* small gap below title */
}

.home-icon {
  display: inline-flex;
  padding: 0;
  margin: 0;
  text-decoration: none;    /* keep it purely icon */
}

.home-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Ensure no hover background or underline appears */
.home-icon:hover {
  background: transparent;
  text-decoration: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
  body.main-page .container {
    padding: 0 10px;
    max-width: 100%;
  }

  body.main-page .circle {
    padding: 18px 20px;
    font-size: 1rem;
    min-width: 140px;
  }

  body.main-page .thumb {
    width: 45%;
  }

  body.main-page .thumb img {
    width: 100%;
    height: auto;
  }

  body.main-page .search-bar input {
    width: 95%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  body.main-page .thumb {
    width: 90%;
  }

  body.main-page .circle {
    width: 60%;
  }
}


.banner-img {
  max-width: 25%;
  height: auto;
  border-radius: 8px;
}

/* For smaller screens */
@media (max-width: 768px) {
  .banner-img {
    max-width: 80%;
  }
}
