/* ==============================================
   RESET & BASE STYLES
   ============================================== */
body {
  font-family: Arial, sans-serif;
  background-color: #2c3e50;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* ==============================================
   SCROLLBAR STYLES
   ============================================== */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 10px;
}

*::-webkit-scrollbar-track {
  background-color: #34495e;
}

/* ==============================================
   LAYOUT & CONTAINERS
   ============================================== */
.container {
  max-width: 800px;
  margin: 20px auto;
  background-color: #34495e;
  padding: 20px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  text-align: center;
}

.title-container a {
  text-decoration: none;
  color: inherit;
}

/* ==============================================
   TITLES & HEADINGS
   ============================================== */
.elevated-water-title {
  font-size: 48px;
  color: #3498db;
  background-color: #2ecc71;
  padding: 8px 10px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #3498db, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 50px;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
}

.elevated-water-title:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  transition: all 0.3s ease-in-out;
}

.main-title {
  font-size: 3em;
  padding: 00px 0;
  text-align: center;
  background: linear-gradient(to right, #3498db, #2ecc71);
  -webkit-background-clip: text;
  color: transparent;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 45px;
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */
input {
  width: 70%;
  padding: 8px;
  background-color: #3d5268;
  margin-right: 0px;
  color: #fff;
  border-radius: 10px;
}

input[id="yearInput"] {
  width: 30%;
}

button {
  padding: 8px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

button#homeButton,
button#searchButton {
  background-color: #3498db;
  margin-left: 5px;
  color: #fff;
  border: none;
}

button#homeButton {
  position: absolute;
  top: 10px;
  left: 10px;
}

select {
  padding: 8px;
  margin: 5px;
}

#searchOption {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* ==============================================
   DROPDOWN SELECTS
   ============================================== */
#videoOptions select {
  background-color: #34495e;
  color: #fff;
  border: 1px solid #2ecc71;
  border-radius: 5px;
  padding: 8px;
  width: auto;
  cursor: pointer;
}

#videoOptions select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

#videoOptions {
  margin-top: 15px;
  padding: 10px 0;
  text-align: center;
}

#providerSelect {
  background-color: #34495e;
  color: #fff;
  border: 1px solid #2ecc71;
  padding: 9px;
  border-radius: 5px;
  margin-bottom: 0px;
  margin-top: 0px;
  cursor: pointer;
  width: auto;
}

#providerSelect:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

/* ==============================================
   WATCH OPTIONS & PROVIDER SELECTION
   ============================================== */
.provider-selection {
  display: flex;
  align-items: center;
}

.provider-selection label {
  margin-right: 5px;
  color: #3498db;
}

.watch-options {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
  padding: 0 20px;
}

#watchNowButton {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#watchNowButton:hover {
  background-color: #3498dbdd;
}

/* ==============================================
   RESULTS & SEARCH
   ============================================== */
#results,
#details {
  margin-top: 20px;
}

#results {
  max-height: 400px;
  overflow-y: scroll;
  margin-top: 20px;
  border: 1px solid #34495e;
  padding: 10px;
  background-color: #2c3e50;
  color: #ffffff;
}

#results p.noResults {
  color: red;
}

.result-card {
  border: 1px solid #455a75;
  padding: 10px;
  margin: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: #455a75;
  border-radius: 10px;
}

.result-card img {
  width: 50px;
  height: 75px;
  margin-right: 10px;
}

.result-card p.title {
  color: #2ecc71;
}

.result-card p {
  margin: 0;
}

/* ==============================================
   POPULAR SECTIONS
   ============================================== */
.popular-section {
  background-color: #34495e;
  margin-top: 20px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border: 1px solid #455a75;
  border-radius: 10px;
}

.popular-section h2 {
  margin-bottom: 15px;
  font-size: 1.5em;
  color: #2ecc71;
  cursor: pointer;
  text-align: center;
  padding: 10px;
  background-color: #3d5268;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.popular-section h2:hover {
  background-color: #455a75;
}

.popular-section h2.active {
  background-color: #2ecc71;
  color: #2c3e50;
}

.popular-container {
  display: none;
  padding-top: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.popular-container.show {
  display: block;
}

.popular-container .result-card {
  border: 1px solid #455a75;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  background-color: #3d5268;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popular-container .result-card:hover {
  background-color: #455a75;
}

.popular-container .result-card img {
  width: 50px;
  height: 75px;
  margin-right: 15px;
}

.popular-container .result-card .title {
  font-size: 1.2em;
  color: #2ecc71;
}

.popular-container .result-card p {
  margin: 0;
  color: #fff;
}

.popular-container .result-card p.rating {
  color: #3498db;
  margin-top: 5px;
}

/* ==============================================
   FAQ & FEATURES SECTIONS
   ============================================== */
.faq-section,
.features-section {
  margin-top: 40px;
}

.faq-section h2,
.features-section h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #2ecc71;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #3498db;
}

.faq-section a {
  color: #2ecc71;
  text-decoration: none;
}

.faq-section a:hover {
  text-decoration: underline;
}

.featuresection ul {
  list-style-type: decimal;
  padding: 0;
}

.featuresection {
  text-align: left;
}

.features-section li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #3498db;
  font-weight: bold;
}

/* ==============================================
   FILTER ELEMENTS
   ============================================== */
.filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  border-radius: 10px;
}

.filter-label {
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 6px;
  font-size: 18px;
  color: #ffffff;
  background-color: #3498db;
  white-space: nowrap;
  cursor: pointer;
}

.filter-description {
  margin-right: 13px;
}

.note-info {
  font-size: 14px;
  color: #adabab;
  text-align: center;
  margin-top: 10px;
}

/* ==============================================
   VIDEO & MEDIA ELEMENTS
   ============================================== */
#videoContainer {
  margin-top: 10px;
  padding-top: 10px;
  position: relative;
}

#videoContainer.loading iframe {
  display: none;
}

#videoContainer .loading-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#details img {
  width: 45%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   TRAILER FUNCTIONALITY
   ============================================== */
.trailer-button-container {
  text-align: center;
  margin: 20px 0;
}

.trailer-button {
  display: block;
  margin: 25px auto 15px;
  padding: 8px 12px;
  background-color: #34495e;
  color: #fff;
  border: 1px solid #3498db;
  border-radius: 5px;
  cursor: pointer;
  width: auto;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.trailer-button:hover {
  background-color: #2c3e50;
}

.trailer-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.trailer-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 2% auto;
  background: transparent;
}

.close-trailer {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.no-trailer-message {
  color: white;
  text-align: center;
  padding: 20px;
  background: rgba(52, 73, 94, 0.8);
  border-radius: 10px;
}

.no-trailer-message h3 {
  margin-bottom: 10px;
  color: #3498db;
}

/* ==============================================
   COMMENTS FUNCTIONALITY
   ============================================== */
#showCommentsButton {
  display: block;
  margin: 25px auto 15px;
  padding: 8px 12px;
  background-color: #34495e;
  color: #fff;
  border: 1px solid #3498db;
  border-radius: 5px;
  cursor: pointer;
  width: auto;
}

#disqus_thread {
  margin-top: 5px;
  padding: 10px;
  background-color: #34495e;
  border-radius: 5px;
  border: 1px solid #2ecc71;
}

/* ==============================================
   POPUP MODALS
   ============================================== */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #34495e;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #2ecc71;
  width: 70%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #3498db;
  text-decoration: none;
  cursor: pointer;
}

.popup h2 {
  text-align: center;
  margin-top: 0;
}

/* ==============================================
   LOADING ANIMATIONS
   ============================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.loading-dot {
  width: 20px;
  height: 20px;
  background-color: #3498db;
  border-radius: 50%;
  margin: 0 10px;
  animation: pulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  background-color: #2c3e50;
  color: #2ecc71;
  text-align: center;
  padding: 10px;
  bottom: 10;
}

footer p {
  margin: 0;
  border-radius: 10px;
}

.custom-footer {
  max-width: 800px;
  background-color: #2c3e50;
  color: #2ecc71;
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  border-top: 1px solid #455a75;
  box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
}

.custom-footer p {
  margin: 5px 0;
  font-size: 1.1em;
}

.custom-footer p:first-of-type {
  font-size: 1.3em;
  font-weight: bold;
  color: #3498db;
}

.custom-footer .disclaimer {
  font-size: 0.5em;
  color: #c9b458;
}

/* ==============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================== */
@media only screen and (max-width: 768px) {
  #details img {
    width: 70%;
  }

  .trailer-content {
    width: 95%;
    margin: 10% auto;
  }

  .trailer-popup {
    padding: 10px;
  }

  .close-trailer {
    top: -35px;
    right: 0;
    font-size: 24px;
  }
}

@media only screen and (max-width: 600px) {
  .popular-section h2 {
    font-size: 1.2em;
    padding: 8px;
  }

  .provider-selection,
  #watchNowButton {
    flex: 0 0 auto;
  }
}

/* ==============================================
   AI REVIEW STYLES
   ============================================== */
.trailer-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.trailer-button,
.ai-review-button {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  background-color: #34495e;
  color: #fff;
  border: 1px solid #3498db;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.trailer-button:hover,
.ai-review-button:hover {
  background-color: #2c3e50;
}

.ai-review-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #34495e;
  border: 1px solid #2ecc71;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  overflow: auto;
  max-height: 400px;
  -webkit-overflow-scrolling: touch;
}

.ai-review-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2ecc71;
  text-align: center;
  font-size: 1.3em;
}

.ai-review-text {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 15px;
}

.ai-review-text p {
  margin-bottom: 10px;
}

.ai-review-container table {
  border-collapse: collapse;
}

.ai-review-container th,
.ai-review-container td {
  border: 1px solid #455a75;
  padding: 8px 12px;
}

.ai-review-footer {
  text-align: center;
  border-top: 1px solid #455a75;
  padding-top: 10px;
}

.ai-review-footer small {
  color: #bdc3c7;
  font-size: 0.85em;
}

.ai-review-loading {
  text-align: center;
  padding: 20px;
}

.ai-review-loading p {
  margin-top: 15px;
  color: #3498db;
  font-style: italic;
}

.ai-review-error {
  text-align: center;
  padding: 20px;
}

.ai-review-error h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}

.ai-review-error p {
  color: #bdc3c7;
  margin-bottom: 15px;
}

.ai-review-error details {
  margin-top: 10px;
  text-align: left;
}

.ai-review-error summary {
  cursor: pointer;
  color: #3498db;
  font-size: 0.9em;
}

.ai-review-loading .loading-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

/* Watchlist Remove Button */
.remove-watchlist-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
  font-size: 1.2rem;
  /* Ensure symbol is centered and sized */
  line-height: 1;
}

.remove-watchlist-btn:hover {
  background-color: #c0392b;
}

/* Watchlist Add/Remove Button (Details Page) */
.watchlist-btn {
  background-color: transparent;
  border: 2px solid #2ecc71;
  color: #2ecc71;
  border-radius: 50%;
  width: 35px;
  /* Adjusted to match typical title size */
  height: 35px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
  /* Spacing from title */
  padding: 0;
  /* Reset padding */
}

.watchlist-btn:hover {
  transform: scale(1.1);
  background-color: rgba(46, 204, 113, 0.1);
}

.watchlist-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Top Right Logout Button */
.logout-btn-top {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 15px;
  background-color: rgba(231, 76, 60, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  z-index: 100;
}

.logout-btn-top:hover {
  background-color: #c0392b;
}

/* User ID Display */
#userIdDisplay {
  position: absolute;
  top: 15px;
  left: 10px;
  z-index: 100;
  color: #3498db;
  font-size: 0.9em;
  display: none;
}

@media (max-width: 600px) {
  .logout-btn-top {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* Cast Section */
.cast-container {
  display: flex;
  overflow-x: auto;
  /* gap: 15px;
  padding-bottom: 15px; */
  scrollbar-width: thin;
  scrollbar-color: #3498db #1a1a1a;
}

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

.cast-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.cast-container::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 4px;
}

.cast-card {
  flex: 0 0 120px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

@media (max-width: 600px) {
  .cast-card {
    flex: 0 0 70px;
  }

  .cast-card img {
    width: 60px;
    height: 60px;
  }

  .cast-name {
    font-size: 0.7rem;
  }

  .cast-character {
    font-size: 0.65rem;
  }

  /* Smaller watchlist button on mobile */
  .watchlist-btn {
    width: 25px;
    height: 25px;
    font-size: 1.5rem;
    margin-left: 8px;
  }

  /* Smaller remove button on mobile */
  .remove-watchlist-btn {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
}

.cast-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3498db;
  margin-bottom: 8px;
}

.cast-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-character {
  font-size: 0.8rem;
  color: #bdc3c7;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================
   LOGIN PAGE STYLES
   ============================================== */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at center, #2c3e50 0%, #1a252f 100%);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  background: rgba(52, 73, 94, 0.95);
  padding: 50px 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
}

.tmdb-logo {
  width: 120px;
  margin-bottom: 25px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.login-btn {
  background: linear-gradient(135deg, #01b4e4 0%, #00d373 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(1, 180, 228, 0.4);
  width: 100%;
  margin-top: 10px;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 211, 115, 0.6);
  filter: brightness(1.1);
}

.login-btn:disabled {
  background: #7f8c8d;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.error-message {
  color: #e74c3c;
  margin-top: 20px;
  display: none;
  background: rgba(231, 76, 60, 0.1);
  padding: 10px;
  border-radius: 5px;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==============================================
   TERMS OF USE STYLES
   ============================================== */
@keyframes pulse-red {
  0% {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
  }

  50% {
    border-color: rgba(231, 76, 60, 1);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
  }

  100% {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
  }
}

.terms-container {
  background-color: rgba(44, 62, 80, 0.8);
  border: 2px solid #e74c3c;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
  max-height: 120px;
  overflow-y: auto;
  text-align: left;
  animation: pulse-red 2s infinite;
}

.terms-text {
  font-size: 0.85em;
  color: #bdc3c7;
  margin: 0;
  line-height: 1.5;
}

/* Custom Scrollbar for Terms */
.terms-container::-webkit-scrollbar {
  width: 6px;
}

.terms-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.terms-container::-webkit-scrollbar-thumb {
  background: #e74c3c;
  border-radius: 3px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: #ecf0f1;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
}

.checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.checkbox-container input[type="checkbox"]:checked {
  background: #2ecc71;
  border-color: #2ecc71;
}

.checkbox-container input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-container label {
  cursor: pointer;
  font-size: 0.95em;
  user-select: none;
}

@media (max-width: 600px) {
  body.login-page {
    padding-top: 5vh;
    align-items: flex-start;
  }

  .login-container {
    width: 85%;
    padding: 30px 20px;
  }

  .terms-container {
    max-height: 140px;
  }
}

/* ==============================================
   EPISODE NAVIGATION
   ============================================== */
.episode-nav-container {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  /* Reduced from 15px */
  margin-bottom: 5px;
  padding: 0 5px;
}

.nav-btn {
  background-color: #34495e;
  color: #fff;
  border: 1px solid #3498db;
  padding: 5px 15px;
  /* Reduced padding */
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  /* Increased for the arrow */
  font-weight: bold;
  line-height: 1;
}

.nav-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
  transform: translateY(0);
}