body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #15111f;
  color: #f7f5e9;
  font-family: "Courier New", Courier, monospace;
}

/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-family: fantasy;
  padding: 20px;
  position: relative;
  gap: 20px;
}

.left-space {
  width: 300px;
}

/* SIDE BAR (FORM AND LINK) */
.side-bar {
  display: flex;
  flex-direction: row;
  padding: 10px;
  gap: 20px;
  align-items: center;
}

/* TITLE */
.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 60px;
  text-align: center;
  white-space: nowrap;
}

.title2 {
  font-size: 30px;
  padding: 10px;
  margin-top: 5px;
}

.title a,
.title2 a {
  text-decoration: none;
  color: #f7f5e9;
}

/* HOMEPAGE INTRO */
.homepage-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 30px;
  color: #f7f5e9;
  animation: fadeInUp 1s ease-out;
}

.homepage-intro h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.homepage-intro h1 span {
  color: #fcde59;
  font-weight: bold;
}

.homepage-intro .quote {
  font-size: 22px;
  font-style: italic;
  color: #cccccc;
  margin-bottom: 15px;
  max-width: 600px;
}

.homepage-intro .subtext {
  font-size: 18px;
  color: #aaa;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVIGATION */
.navbar {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 5px;
}

.nav-links li a {
  text-decoration: none;
  font-size: 32px;
  color: antiquewhite;
  transition: color 0.3s;
  align-items: center;
}

.nav-links li a:hover {
  color: #fcde59;
}

/* SEARCH BAR */
.search-form {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background-color: #1f1b2e;
  border-radius: 50px;
  padding: 6px 10px;
  box-shadow: 0 0 8px rgba(252, 222, 89, 0.3);
  transition: box-shadow 0.3s ease;
}

.search-form:hover {
  box-shadow: 0 0 12px rgba(252, 222, 89, 0.6);
}

.search-form input {
  background: transparent;
  border: none;
  outline: none;
  color: #f7f5e9;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 50px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  width: 250px;
  transition: width 0.3s ease;
}

.search-form input::placeholder {
  color: #aaa;
  font-style: italic;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1f1b2e inset !important;
  -webkit-text-fill-color: #f7f5e9 !important;
  border-radius: 50px !important;
  caret-color: #fcde59 !important;
}

.search-form input:focus {
  width: 300px;
}

.search-form button {
  background-color: transparent;
  border: none;
  color: #fcde59;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  transition: transform 0.2s ease;
}

.search-form button:hover {
  transform: scale(1.2);
}

/* BACKGROUND IMAGE */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.1;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* SEARCH CONTENT */
.search-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  color: #f7f5e9;
}

/* Trending Section */
.trending-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background-color: #292040;
  max-height: 400px;
  display: block;
  margin: 0 auto;
}

.show-card .trending-img {
  object-fit: contain !important;
  background-color:transparent !important;
}

/* === HIGHLIGHT SHOW SECTION === */
.highlight-section {
  padding: 60px 20px;
  background-color: #292040;
  border-top: 1px solid #3a2f50;
  border-bottom: 1px solid #3a2f50;
}

.highlight-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: #1f1b2e;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(252, 222, 89, 0.15);
  padding: 30px;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: scale(1.02);
}

.highlight-image img,
.highlight-image .img-placeholder {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background-color: #292040;
}

.highlight-details {
  flex: 1;
}

.highlight-details h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fcde59;
}

.highlight-summary {
  font-size: 16px;
  line-height: 1.6;
  color: #e2e2e2;
  margin-bottom: 15px;
}

.highlight-btn {
  background-color: #fcde59;
  color: #1f1b2e;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.highlight-btn:hover {
  background-color: #ffe98f;
  transform: scale(1.05);
}

/* === DAILY QUOTE SECTION === */
.quote-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #15111f;
}

.daily-quote {
  font-size: 20px;
  font-style: italic;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto;
}

/* HOMEPAGE CATEGORY SECTION */
.category-section {
  text-align: center;
  padding: 40px 20px;
}

.category-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fcde59;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.pill {
  display: inline-block;
  background-color: #292040;
  color: #f7f5e9;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  border: 2px solid #fcde59;
  transition: all 0.3s ease;
}

.pill:hover {
  background-color: #fcde59;
  color: #1f1b2e;
  transform: scale(1.1);
}

/* OUTER DIV */
.outer-div {
  padding: 20px 50px;
  margin-right: 45px;
}

/* SHOW GRID STYLING */
.show-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 100px;
  padding: 20px;
}

/* SHOW CARD */
.show-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background-color: #1f1b2e;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 6 24px rgba(252, 222, 89, 0.12);
  height: 540px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  gap: 10px;
}

.show-card:hover {
  transform: scale(1.05);
}

.show-card h2 {
  margin-top: 0px;
  font-size: 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* IMAGE WRAPPER & PLACEHOLDER */
.img-wrapper {
  height: auto;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;

  display: flex;
}

.img-wrapper img {
  height: auto;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease-in-out;
  background-color: #292040;
}

.show-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.show-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.img-placeholder {
  height: 220px;
  width: 100%;
  background-color: #292040;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* SUMMARY */
.summary {
  font-size: 15px;
  color: #ddd;
  line-height: 1.5em;
  margin-bottom: 15px;
  overflow-wrap: break-word;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background-color: #fcde59;
  color: #1f1b2e;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 0px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #ffe98f;
  transform: scale(1.05);
}

/* SHOW DETAIL PAGE */
.outer-box {
  background-color: #1f1b2e;
  margin: 40px;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(252, 222, 89, 0.2);
}

.outer-box img {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

/* SEASON LIST SCROLLABLE */
.outer-box h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.season-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px 0;
}

.season-container::-webkit-scrollbar {
  height: 8px;
}

.season-container::-webkit-scrollbar-thumb {
  background-color: #fcde59;
  border-radius: 4px;
}

/* EPISODE CARD */
.episode-item {
  padding: 5px 0;
  color: #ddd;
  font-size: 16px;
}

.show-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.show-image img {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(252, 222, 89, 0.3);
}

.show-meta {
  flex: 1;
  min-width: 300px;
}

.cast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-evenly;
}

.cast-card {
  background-color: #292040;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  text-align: center;
  box-shadow: 0 0 10px rgba(252, 222, 89, 0.1);
}

.cast-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.episode-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7em;
  list-style-type: square;
}

/* FOOTER */
.content-wrapper {
  flex: 1;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  bottom: 0;
  left: 0;
  position: relative;

  border-top: 1px solid #292040;
}

/* MEDIA QUERIES */
@media (max-width: 1440px) {
  .title {
    font-size: 45px;
  }

  .nav-links li a {
    font-size: 28px;
  }

  .search-form input {
    width: 200px;
  }

  .search-form input:focus {
    width: 240px;
  }
}

@media (max-width: 1024px) {
  .show-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .title {
    margin-left: -200px;
  }
}

@media (max-width: 768px) {
 .title {
    font-size: 40px;
  }

  .show-details-grid {
    flex-direction: column;
    align-items: center;
  }

  .show-meta {
    text-align: center;
  }

  .show-image img {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .show-grid {
    grid-template-columns: 1fr;
  }
}
