/*
Theme Name: Milo Theme
Description: A custom WordPress theme for Milo website
Author: Your Name
Version: 1.0
*/

/* ========================================
   FONT FACE DECLARATIONS - MIKADO FONT
   ======================================== */

/* Mikado Regular */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoRegular.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Mikado Regular Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoRegularItalic.woff2")
      format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoRegularItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Mikado Light */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoLight.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoLight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Mikado Light Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoLightItalic.woff2")
      format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoLightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Mikado Medium */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoMedium.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Mikado Medium Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoMediumItalic.woff2")
      format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoMediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Mikado Bold */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoBold.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mikado Bold Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoBoldItalic.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoBoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Mikado Black */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoBlack.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoBlack.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Mikado Black Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoBlackItalic.woff2")
      format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoBlackItalic.woff") format("woff");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Mikado Ultra */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoUltra.woff2") format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoUltra.woff") format("woff");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

/* Mikado Ultra Italic */
@font-face {
  font-family: "Mikado";
  src: url("assets/fonts/web/HVD Fonts  MikadoUltraItalic.woff2")
      format("woff2"),
    url("assets/fonts/web/HVD Fonts  MikadoUltraItalic.woff") format("woff");
  font-weight: 950;
  font-style: italic;
  font-display: swap;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #c8e2fb;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.site-header {
  background: transparent;
  padding: 30px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Add spacing to body to account for fixed header */
body {
  padding-top: 135px; /* header height (75px) + padding (30px * 2) */
}

/* Pages with full-screen hero sections - remove body padding */
body.home,
body.single-episode,
body.single-make,
body.single-digital_series,
body.post-type-archive-episode,
body.post-type-archive-make,
body.post-type-archive-digital_series,
body.post-type-archive-app,
body.post-type-archive-character {
  padding-top: 0;
}

/* Responsive body padding */
@media screen and (max-width: 768px) {
  body {
    padding-top: 115px; /* Smaller header on mobile */
  }

  body.home,
  body.single-episode,
  body.single-make,
  body.single-digital_series,
  body.post-type-archive-episode,
  body.post-type-archive-make,
  body.post-type-archive-digital_series,
  body.post-type-archive-app,
  body.post-type-archive-character {
    padding-top: 0;
  }
}

.header-container {
  height: 75px;
  padding: 0 49px;
  background: white;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-logo {
  flex-shrink: 0;
}

.site-logo a {
  display: block;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.site-logo a:hover {
  transform: scale(1.15) rotate(-5deg);
}

.site-logo a:hover .milo-logo {
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
}

.milo-logo {
  width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
  transition: filter 0.4s ease,
    transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media screen and (max-width: 768px) {
  .milo-logo {
    width: 150px;
  }

  .site-logo a:hover {
    transform: scale(1.1) rotate(-3deg);
  }
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Adjust header navigation items */
.nav-menu li a {
  color: #f3901f;
  font-size: 22px;
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.6rem 1.2rem;
  white-space: nowrap; /* Prevent line breaks */
  border-radius: 12px; /* Rounded square pill - better fits container */
}

.nav-menu li a:hover {
  color: #ffffff;
  background-color: #f3901f;
}

/* ========================================
   NEW MOBILE MENU STYLES
   ======================================== */

/* Hamburger Button - hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #f3901f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay - hidden by default */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay.open {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  font-size: 48px;
  color: #f3901f;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-menu-nav {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* Mobile menu - using ID for highest specificity */
#mobile-menu-overlay #mobile-menu,
#mobile-menu-overlay .mobile-nav-menu,
#mobile-menu-overlay ul,
.mobile-menu-overlay ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

#mobile-menu-overlay #mobile-menu > li,
#mobile-menu-overlay .mobile-nav-menu > li,
#mobile-menu-overlay ul > li,
.mobile-menu-overlay ul > li {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0.75rem 0 !important;
  float: none !important;
}

#mobile-menu-overlay #mobile-menu > li > a,
#mobile-menu-overlay .mobile-nav-menu > li > a,
#mobile-menu-overlay ul > li > a,
.mobile-menu-overlay ul > li > a {
  font-family: "Mikado", sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #f3901f !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  border-radius: 12px !important; /* Rounded square pill - matches desktop */
  white-space: nowrap !important;
}

#mobile-menu-overlay #mobile-menu > li > a:hover,
#mobile-menu-overlay .mobile-nav-menu > li > a:hover,
#mobile-menu-overlay ul > li > a:hover,
.mobile-menu-overlay ul > li > a:hover {
  background-color: #f3901f !important;
  color: white !important;
}

/* Hide sub-menus and dropdown toggles in mobile overlay */
#mobile-menu-overlay .sub-menu,
#mobile-menu-overlay .dropdown-toggle,
.mobile-menu-overlay .sub-menu,
.mobile-menu-overlay .dropdown-toggle {
  display: none !important;
}

/* Language switcher in mobile menu */
.mobile-language-switcher {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-language-switcher li {
  list-style: none;
}

.mobile-language-switcher a {
  font-family: "Mikado", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.mobile-language-switcher a:hover {
  color: #f3901f;
  background-color: rgba(243, 144, 31, 0.1);
}

/* Current language highlight */
.mobile-language-switcher .current-lang a {
  color: #f3901f;
  font-weight: 700;
}

/* Show hamburger on mobile */
@media screen and (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-navigation {
    display: none;
  }
}

/* Dropdown Menus */
.menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #f3901f;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  white-space: nowrap;
  width: 24px;
  height: 24px;
  position: relative;
}

.dropdown-toggle:after {
  content: "▼";
  display: block;
  font-size: 12px;
  color: #f3901f;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.menu-item-has-children:hover .dropdown-toggle:after {
  transform: rotate(180deg) translateY(-2px);
  animation: none;
  color: #d67709;
}

.menu-item-has-children:hover .dropdown-toggle {
  transform: scale(1.1);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.5rem; /* Added horizontal padding so hover bg doesn't reach edges */
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  display: block;
  width: 100%;
}

.sub-menu a {
  padding: 0.75rem 1rem;
  color: #555;
  font-weight: 400;
  border-radius: 8px; /* Rounded corners for hover effect */
  display: block;
  transition: all 0.2s ease;
  margin: 0.125rem 0; /* Small vertical margin between items */
}

.sub-menu a:hover {
  background-color: rgba(
    243,
    144,
    31,
    0.1
  ); /* Light orange background on hover */
  color: #f3901f;
  padding-left: 1.25rem; /* Slight left padding increase on hover */
}

/* Country Selector Styles */
.menu-item-country {
  position: relative;
  margin-right: 20px;
}

.country-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #f3901f;
  font-size: 0.8rem;
  font-family: "Mikado", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.country-switcher-toggle:hover {
  color: #d67709;
}

.current-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-country::after {
  content: "▼";
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.menu-item-country:hover .current-country::after {
  transform: rotate(180deg);
}

.country-switcher {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

.menu-item-country:hover .country-switcher {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-switcher li {
  padding: 0;
}

.country-switcher a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #555;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.country-switcher a:hover {
  background-color: #f5f5f5;
  color: #f3901f;
}

/* Adjust Language Switcher */
.menu-item-language {
  margin-left: auto; /* Push language switcher to the right */
}

/* Mobile Menu Toggle */
/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .header-container {
    gap: 1.5rem;
    padding-left: 30px;
    padding-right: 30px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-menu li a {
    font-size: 20px;
    padding: 0.5rem 1rem;
  }
}

/* Hide Home menu item on medium screens */
@media screen and (min-width: 1025px) and (max-width: 1400px) {
  .nav-menu li:first-child {
    display: none;
  }
}

/* Screen Reader Text */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Reset container widths for full-width sections */
.site {
  overflow-x: hidden;
  width: 100%;
}

.site-main {
  width: 100%;
  padding-top: 0;
  overflow-x: hidden;
}

/* Hero Section with Video */
.hero-section {
  width: 100vw;
  height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Fix for any potential horizontal scrollbar */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 800px;
  margin-top: 50px; /* Additional offset for header */
}

.hero-title {
  font-family: "Mikado", sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  position: relative;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
    2px 2px 0 #fff, 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title--large {
  font-size: 9.13913rem;
}

.hero-title--medium {
  font-size: 6rem;
}

.hero-title--small {
  font-size: 4rem;
}

.hero-description {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-button {
  padding: 15px 35px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-button.primary {
  background-color: #f3901f;
  color: white;
  border: 2px solid #f3901f;
}

.hero-button.primary:hover {
  background-color: #d67709;
  border-color: #d67709;
  transform: translateY(-2px);
}

.hero-button.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero-button.secondary:hover {
  background-color: white;
  color: #f3901f;
  transform: translateY(-2px);
}

/* Responsive Styles for Hero Section */
@media screen and (max-width: 768px) {
  .hero-section {
    height: 100vh;
  }

  .hero-content {
    margin-top: 30px;
  }

  .hero-title:not(.hero-title--large):not(.hero-title--medium):not(
      .hero-title--small
    ) {
    font-size: 64px;
  }

  .hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-button {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-title:not(.hero-title--large):not(.hero-title--medium):not(
      .hero-title--small
    ) {
    font-size: 52px;
  }
}

/* Responsive Hero Title */
@media screen and (max-width: 1200px) {
  .hero-title--large {
    font-size: 72px;
    -webkit-text-stroke: 1.5px white;
  }

  .hero-title--medium {
    font-size: 56px;
    -webkit-text-stroke: 1.5px white;
  }

  .hero-title--small {
    font-size: 36px;
    -webkit-text-stroke: 1px white;
  }
}

@media screen and (max-width: 768px) {
  .hero-title--large {
    font-size: 90px;
    -webkit-text-stroke: 8px white;
  }

  .hero-title--medium {
    font-size: 80px;
    -webkit-text-stroke: 7px white;
  }

  .hero-title--small {
    font-size: 60px;
    -webkit-text-stroke: 5px white;
  }
}

@media screen and (max-width: 480px) {
  .hero-title--large {
    font-size: 72px;
    -webkit-text-stroke: 6px white;
  }

  .hero-title--medium {
    font-size: 64px;
    -webkit-text-stroke: 5px white;
  }

  .hero-title--small {
    font-size: 48px;
    -webkit-text-stroke: 4px white;
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

.floating-element.music {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element.star {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.floating-element.heart {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.floating-element.rainbow {
  top: 60%;
  right: 25%;
  animation-delay: 3s;
}

.floating-element.book {
  bottom: 20%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Characters Hero Content Animation */
@keyframes heroContentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section Styling */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: bold;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Featured Series Home */
.featured-series-home {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.series-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.series-card-home {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-card-home:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.series-thumbnail-home {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.series-thumbnail-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.series-card-home:hover .series-thumbnail-home img {
  transform: scale(1.05);
}

.series-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  font-size: 4rem;
}

.series-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.series-card-home:hover .series-overlay {
  opacity: 1;
}

.series-play-icon {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.series-info-home {
  padding: 1.5rem;
}

.series-title-home {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.series-count-home {
  color: #666;
  font-size: 0.9rem;
}

/* Latest Episodes Home */
.latest-episodes-home {
  padding: 4rem 0;
}

.episodes-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.episode-card-home {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card-home:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.episode-thumbnail-home {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.episode-thumbnail-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.episode-series-badge-home {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.episode-overlay-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.episode-card-home:hover .episode-overlay-home {
  opacity: 1;
}

.episode-play-icon {
  color: white;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.episode-info-home {
  padding: 1.5rem;
}

.episode-title-home {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.episode-date-home {
  color: #666;
  font-size: 0.9rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffeb3b;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Characters Preview */
.characters-preview {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.character-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-5px);
}

.character-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.character-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.character-card p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section Home */
.cta-section-home {
  padding: 4rem 0;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
  text-align: center;
}

.cta-content-home h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content-home p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  color: #ffeb3b;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons-home {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* News Section Home */
.news-section-home {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.news-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card-home {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card-home:hover {
  transform: translateY(-5px);
}

.news-thumbnail-home {
  height: 180px;
  overflow: hidden;
}

.news-thumbnail-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content-home {
  padding: 1.5rem;
}

.news-title-home {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.news-excerpt-home {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.news-date-home {
  color: #999;
  font-size: 0.9rem;
}

/* Section CTA */
.section-cta {
  text-align: center;
}

/* Main Content (for other pages) */
.site-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  padding-top: 0;
}

/* Adjust content area spacing to account for new header padding */
.content-area {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 135px 49px 0; /* Increased to account for larger header spacing */
}

/* Posts */
.post {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  line-height: 1.2;
}

.post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #3498db;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem 0;
  color: #2c3e50;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Episode Cards */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.episode-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.episode-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover .episode-thumbnail img {
  transform: scale(1.05);
}

.episode-info {
  padding: 1.5rem;
}

.episode-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.episode-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Sidebar */
.sidebar {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.widget a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #3498db;
}

/* Footer */
.site-footer {
  background-color: #7dc2da;
  color: #000;
  text-align: left;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  font-size: 1rem;
}

.btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #3498db;
  color: #3498db;
}

.btn-outline:hover {
  background-color: #3498db;
  color: #fff;
}

.btn-primary {
  background-color: #e74c3c;
}

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

/* Pagination */
.pagination {
  margin: 3rem 0;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title:not(.hero-title--large):not(.hero-title--medium):not(
      .hero-title--small
    ) {
    font-size: 2.5rem;
  }

  .cta-stats {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa;
    border-radius: 0;
    padding-left: 1rem;
  }

  .dropdown-toggle {
    display: none;
  }

  .post-title {
    font-size: 2rem;
  }

  .site-main {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 2rem 0;
    min-height: 60vh;
  }

  .hero-title:not(.hero-title--large):not(.hero-title--medium):not(
      .hero-title--small
    ) {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .character-circle {
    width: 150px;
    height: 150px;
  }

  .character-emoji {
    font-size: 3rem;
  }

  .cta-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .floating-element {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem;
  }

  .site-logo h1 {
    font-size: 1.8rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .episode-info {
    padding: 1rem;
  }

  .sidebar {
    padding: 1.5rem;
  }

  .hero-title:not(.hero-title--large):not(.hero-title--medium):not(
      .hero-title--small
    ) {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons-home {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer Styles */
.site-footer {
  background: transparent;
  color: black;
  padding: 0;
  margin-top: 0;
}

/* Footer Top Shape */
.footer-top-shape {
  width: 100%;
  height: 126px;
  overflow: hidden;
  position: relative;
}

.footer-wave {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.footer-container {
  margin: 0 auto;
  padding: 60px 49px 0;
  background: #7dc2da;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo img {
  width: 260px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #f3901f;
  transform: translateY(-2px);
}

.social-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Navigation Sections */
.footer-nav-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-group h3 {
  color: black;
  font-family: "Mikado", sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-nav-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-group ul li {
  margin-bottom: 12px;
}

.footer-nav-group ul a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  font-family: "Mikado", sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav-group ul a:hover {
  color: #f3901f;
}

/* Legal Section */
.footer-legal {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.legal-links {
  display: flex;
  gap: 30px;
}

.legal-links a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: black;
}

.copyright {
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Follow Milo Section */
.follow-milo-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.follow-milo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.follow-milo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0.8;
}

.follow-milo-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.social-pill {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 20px 40px;
  display: inline-block;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.social-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.social-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-logo:hover {
  transform: translateY(-2px);
}

.social-icon-svg {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6193ff;
}

.social-icon-svg svg {
  width: 100%;
  height: 100%;
  fill: #6193ff;
}

.social-icon-svg svg g path {
  fill: #6193ff;
}

.image-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -20px;
  margin-top: 60px;
  margin-bottom: 180px;
  perspective: 1000px;
}

.image-card {
  width: 250px;
  height: 445px; /* 9:16 aspect ratio */
  border-radius: 20px;
  border: 8px solid white;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.image-card:nth-child(1) {
  transform: rotate(-8deg);
  z-index: 4;
}

.image-card:nth-child(2) {
  transform: rotate(5deg);
  z-index: 3;
  margin-left: -30px;
}

.image-card:nth-child(3) {
  transform: rotate(-3deg);
  z-index: 2;
  margin-left: -30px;
}

.image-card:nth-child(4) {
  transform: rotate(7deg);
  z-index: 1;
  margin-left: -30px;
}

.image-card:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Partner Logos Section */
.footer-partner-logos {
  padding: 20px 0;
}

.partner-logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
  .footer-container {
    padding: 0 30px;
  }

  .footer-content {
    gap: 40px;
  }

  .footer-nav-sections {
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    padding: 40px 30px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }

  .footer-nav-sections {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-nav-sections {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .footer-legal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
    align-items: start;
  }

  .legal-links {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .footer-partner-logos {
    grid-column: 2;
  }

  .copyright {
    grid-column: 3;
  }

  .partner-logos-container {
    gap: 15px;
    justify-content: flex-start;
  }

  .partner-logo {
    height: 35px;
  }

  .follow-milo-section {
    padding: 60px 0;
  }

  .social-pill {
    padding: 15px 30px;
    margin-top: 30px;
  }

  .social-logos {
    gap: 20px;
  }

  .social-logo {
    width: 45px;
    height: 45px;
  }

  .social-icon-svg {
    width: 28px;
    height: 28px;
  }

  .image-cards-container {
    margin-top: 40px;
    margin-bottom: 120px;
    gap: -15px;
  }

  .image-card {
    width: 180px;
    height: 320px; /* Maintain 9:16 ratio */
    border: 6px solid white;
  }

  /* Hide 3rd and 4th images on mobile */
  .image-card:nth-child(3),
  .image-card:nth-child(4) {
    display: none;
  }

  .image-card:nth-child(2) {
    margin-left: -25px;
  }
}

/* App Hero Section */
.hero-section-app {
  background-color: #c8e2fb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  overflow: hidden;
}

.hero-section-app__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 49px;
}

/* App Carousel */
/* New App Viewer Layout */
.app-heading {
  text-align: center;
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.app-icon img {
  width: 120px;
  height: 120px;
}

.app-viewer {
  position: relative;
  margin: 40px auto 8px;
  max-width: 980px;
}

.app-viewer__nav {
  background: #e6e9f3;
  color: #4f8ad1;
  border: 5px solid #ffffff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;
}

.app-viewer__nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.app-viewer__stage {
  width: 100%;
}

.app-viewer__nav--prev {
  left: 12px;
}

.app-viewer__nav--next {
  right: 12px;
}

.app-viewer__stage img {
  display: block;
  width: 100%;
  height: auto;
}

.app-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
}

.app-badge img {
  height: 48px;
  width: auto;
  display: block;
}

.app-carousel__container {
  padding: 20px 0 60px;
}

.app-carousel__image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Swiper Custom Styles */
.swiper-button-next,
.swiper-button-prev {
  color: #7676ae;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #7676ae;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #7676ae;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .hero-section-app {
    padding: 60px 0;
  }

  .hero-section-app__container {
    padding: 0 30px;
  }

  .app-viewer {
    margin: 30px auto 8px;
  }
  .app-viewer__nav {
    width: 48px;
    height: 48px;
  }
  .app-icon img {
    width: 100px;
    height: 100px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section-app {
    padding: 40px 0;
  }

  .hero-section-app__container {
    padding: 0 20px;
  }

  .app-viewer {
    margin: 24px auto 6px;
  }
  .app-badge img {
    height: 40px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }
}

/* Language Switcher Styles */
.menu-item-language {
  position: relative;
  margin-left: 1rem;
}

.language-switcher-toggle {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  color: #f3901f;
  font-size: 22px;
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 22px;
  border-radius: 50px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.current-language {
  display: flex;
  align-items: center;
}

.current-language::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f3901f;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.menu-item-language:hover .current-language::after {
  transform: rotate(180deg);
}

.language-switcher {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.menu-item-language:hover .language-switcher {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher li {
  padding: 0;
  list-style: none;
}

.language-switcher a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #555;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.language-switcher a:hover {
  background-color: #f5f5f5;
  color: #f3901f;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .menu-item-language {
    margin-left: 0;
  }

  .language-switcher {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    margin-top: 0.5rem;
    background: transparent;
    padding: 0;
  }

  .language-switcher-toggle {
    padding: 0.5rem 0;
    font-size: 14px;
  }

  .language-switcher a {
    padding: 0.5rem 0;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* Navigation Menu */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Language and Country Selectors */
.menu-item-language,
.menu-item-country {
  position: relative;
}

.language-switcher-toggle,
.country-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  color: #f3901f;
  font-size: 22px;
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 22px;
  border-radius: 50px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.current-language,
.current-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-language::after,
.current-country::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f3901f;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.menu-item-language:hover .current-language::after,
.menu-item-country:hover .current-country::after {
  transform: rotate(180deg);
}

.language-switcher,
.country-switcher {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

.menu-item-language:hover .language-switcher,
.menu-item-country:hover .country-switcher {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher li,
.country-switcher li {
  padding: 0;
  list-style: none;
}

.language-switcher a,
.country-switcher a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #555;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.language-switcher a:hover,
.country-switcher a:hover {
  background-color: #f5f5f5;
  color: #f3901f;
}

.language-switcher img {
  width: 20px;
  height: auto;
}

/* Mobile Adjustments - language/country switchers handled in main 1024px breakpoint */

/* Character Archive Page */
.characters-hero {
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  max-width: none;
}

.characters-hero-bg {
  width: 100vw;
  min-height: 100vh;
  background: #c8e2fb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Fix for any potential horizontal scrollbar */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.characters-container {
  position: relative;
  z-index: 2;
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.characters-hero-content {
  background: #f8f8fe;
  border-radius: 1.21856rem;
  border: 21.122px solid #fff;
  box-shadow: 0px 3.249px 17.303px 0px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  text-align: center;
  width: fit-content;
  min-width: 300px;
  max-width: min(600px, 100%);
  margin: 0 auto;

  /* Animation properties */
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: heroContentFadeIn 0.3s ease-out 0.1s forwards;
}

.characters-title {
  color: #7676ae;
  text-align: center;
  font-family: "Mikado", sans-serif;
  font-size: 6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 76%;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;

  /* text-shadow removed - Safari renders it blurry when combined with thick -webkit-text-stroke */
  text-shadow: none;
  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;

  /* Animation properties */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFadeIn 0.2s ease-out 0.3s forwards;
}

.characters-description {
  font-size: 1.25rem;
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-family: "Mikado", sans-serif;
  font-weight: 700;

  /* Animation properties */
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFadeIn 0.25s ease-out 0.5s forwards;
}

.see-all-btn {
  display: inline-block;
  background: #5a5a84;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 90, 132, 0.3);

  /* Animation properties */
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: buttonFadeIn 0.4s ease-out 0.7s forwards;
}

.see-all-btn:hover {
  background: #4a4a6e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 90, 132, 0.4);
}

/* Characters Grid Section */
.characters-grid-section {
  padding: 4rem 0;
  background: #c8e2fb;
  background-image: url("assets/images/clouds-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  justify-items: center;
}

/* Polaroid Card Styles */
.polaroid-card {
  background: white;
  padding: 25px 25px 80px 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 350px;
  height: 420px;
  transition: all 0.4s ease;
  transform: rotate(-2deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  position: relative;
}

.polaroid-card:nth-child(even) {
  transform: rotate(2deg);
}

.polaroid-card:nth-child(3n) {
  transform: rotate(-1deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  z-index: 10;
}

.character-link {
  text-decoration: none;
  display: block;
  height: 280px;
  overflow: hidden;
}

.polaroid-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 15px;
}

.polaroid-photo img {
  width: calc(120%);
  height: calc(120%);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.polaroid-card:hover .polaroid-photo img {
  transform: translateX(-50%) scale(1.05);
}

/* Specific positioning for Lark character */
.polaroid-card:has(.character-link[href*="lark"]) .polaroid-photo img,
.polaroid-card:has(.character-link[href*="Lark"]) .polaroid-photo img {
  top: -15px;
}

.polaroid-card:hover:has(.character-link[href*="lark"]) .polaroid-photo img,
.polaroid-card:hover:has(.character-link[href*="Lark"]) .polaroid-photo img {
  transform: translateX(-50%) scale(1.05);
  top: -15px;
}

.blur-overlay {
  position: absolute;
  left: 0;
  right: 0;
  height: 250px;
  z-index: 1;
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
}

.blur-top {
  top: 0;
  background: linear-gradient(to bottom, #c8e2fb, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.blur-bottom {
  bottom: 0;
  background: linear-gradient(to top, #c8e2fb, transparent);
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}

/* Placeholder for characters without images */
.placeholder-image {
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: absolute;
  top: 15px;
  left: 15px;
}

.character-initial {
  font-family: "Mikado", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.polaroid-caption {
  text-align: center;
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-name {
  margin: 0;
  font-family: "Mikado", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.polaroid-card-title {
  margin: 0;
  font-family: "Mikado", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Responsive Styles for Polaroid Cards */
@media (max-width: 768px) {
  .characters-title {
    font-size: 3.5rem;
    -webkit-text-stroke-width: 4px;
    letter-spacing: -0.02em;
  }

  .characters-container {
    max-width: 85%;
    padding: 1rem;
  }

  .characters-hero-content {
    padding: 2rem 1rem;
    border-width: 10px;
    min-width: 250px;
    width: 100%;
  }

  .characters-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .polaroid-card {
    width: 340px;
    height: 420px;
    padding: 20px 20px 70px 20px;
  }

  .character-link {
    height: 280px;
  }

  .polaroid-photo {
    padding: 10px;
  }

  .polaroid-photo img {
    width: calc(120%);
    height: calc(120%);
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .placeholder-image {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 10px;
    left: 10px;
  }

  .character-name {
    font-size: 1.2rem;
  }

  .polaroid-card-title {
    font-size: 2.4rem;
  }

  .character-initial {
    font-size: 4rem;
  }

  .polaroid-caption {
    bottom: 25px;
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .polaroid-card {
    width: calc(100% - 2rem);
    max-width: 340px;
    height: 400px;
    padding: 18px 18px 65px 18px;
  }

  .character-link {
    height: 260px;
  }

  .polaroid-card-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .characters-title {
    font-size: 6rem;
    -webkit-text-stroke-width: 8px;
    letter-spacing: -0.02em;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .polaroid-card {
    width: 320px;
    height: 380px;
  }

  .character-link {
    height: 250px;
  }

  .polaroid-photo {
    padding: 12px;
  }

  .polaroid-photo img {
    width: calc(120%);
    height: calc(120%);
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .placeholder-image {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    top: 12px;
    left: 12px;
  }
}

@media (min-width: 1025px) {
  .characters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Make Hero Styles */
.site-main.make-hero {
  min-height: 100vh;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  max-width: none;
  background: none;
}

.make-hero-bg {
  width: 100vw;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Fix for any potential horizontal scrollbar */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  padding-top: 0;
}

.make-container {
  position: relative;
  z-index: 2;
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.make-container:hover {
  transform: rotate(-2deg) scale(1.02);
}

.make-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.make-container {
  position: relative;
  z-index: 2;
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.make-hero-content {
  background: #f8f8fe;
  border-radius: 1.21856rem;
  border: 21.122px solid #fff;
  box-shadow: 0px 3.249px 17.303px 0px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  text-align: center;
  width: fit-content;
  min-width: 300px;
  max-width: min(600px, 100%);
  margin: 0 auto;

  /* Animation properties */
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  animation: heroContentFadeIn 0.3s ease-out 0.1s forwards;
}

.make-title {
  color: #7676ae;
  text-align: center;
  font-family: "Mikado", sans-serif;
  font-size: 6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 76%;
  letter-spacing: -0.35rem;
  margin: 0 0 1.5rem 0;

  -webkit-text-stroke: 8px #fff;
  paint-order: stroke fill;

  /* Animation properties */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFadeIn 0.2s ease-out 0.3s forwards;
}

.make-description {
  font-size: 1.25rem;
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-family: "Mikado", sans-serif;
  font-weight: 700;

  /* Animation properties */
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFadeIn 0.25s ease-out 0.5s forwards;
}

/* Make Projects Section */
.make-projects-section {
  padding: 4rem 0;
  background: #f8f9fa;
  position: relative;
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .make-hero-bg {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .make-container:hover {
    transform: rotate(-1deg) scale(1.01);
  }

  .make-container {
    max-width: 95%;
    padding: 0 0.5rem;
  }

  .make-hero-content {
    padding: 2.5rem 1.5rem;
    border-width: 10px;
    min-width: 250px;
    width: 100%;
  }

  .make-title {
    font-size: 3.5rem;
    -webkit-text-stroke-width: 4px;
    letter-spacing: -0.15rem;
  }
}

@media (max-width: 480px) {
  .make-container {
    max-width: 98%;
    padding: 0 0.25rem;
  }

  .make-hero-content {
    padding: 2rem 1rem;
  }

  .make-title {
    font-size: 2.5rem;
    -webkit-text-stroke-width: 3px;
    letter-spacing: -0.1rem;
  }

  .make-description {
    font-size: 1.1rem;
  }
}

/* Characters Section */
.characters-section {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 120px 0;
  /* Fix for any potential horizontal scrollbar */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.characters-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.characters-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

/* Characters Slider */
.characters-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.slider-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-container {
  width: 800px;
  height: 600px;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  align-items: center;
  position: relative;
}

.character-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  z-index: 1;
  text-align: center;
}

.character-slide.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.character-slide.prev {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(0.9) translateX(-200px);
  z-index: 2;
}

.character-slide.next {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(0.9) translateX(200px);
  z-index: 2;
}

.character-circle {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.character-circle:hover {
  transform: translateY(-5px);
}

.character-image {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 10px solid white;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 40px;
}

.character-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--character-bg-color);
  border-radius: 50%;
  z-index: -1;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.character-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #999;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.character-name {
  font-family: "Mikado", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  /* text-shadow removed - Safari renders it blurry when combined with thick -webkit-text-stroke */
  text-shadow: none;
  -webkit-text-stroke: 16px #fff;
  paint-order: stroke fill;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.3s ease;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  text-transform: none;
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.character-slide:not(.active) .character-name {
  opacity: 0;
  pointer-events: none;
}

/* Responsive Characters Slider */
@media screen and (max-width: 768px) {
  .characters-section {
    padding: 80px 0;
  }

  .slider-container {
    width: 500px;
    height: 450px;
  }

  .character-image {
    width: 400px;
    height: 400px;
    border-width: 8px;
    margin-bottom: 0;
    padding-top: 30px;
  }

  .character-name {
    margin-top: -2rem;
    font-size: 4rem;
    -webkit-text-stroke: 12px #fff;
  }

  .slider-arrow {
    display: none;
  }

  .character-slide.prev {
    transform: translate(-50%, -50%) scale(0.9) translateX(-150px);
  }

  .character-slide.next {
    transform: translate(-50%, -50%) scale(0.9) translateX(150px);
  }
}

@media screen and (max-width: 480px) {
  .characters-section {
    padding: 60px 0;
  }

  .slider-container {
    width: 350px;
    height: 350px;
  }

  .character-image {
    width: 350px;
    height: 350px;
    border-width: 6px;
    margin-bottom: 0;
    padding-top: 25px;
  }

  .character-name {
    margin-top: -1.5rem;
    font-size: 3.5rem;
    -webkit-text-stroke: 10px #fff;
  }

  .slider-arrow {
    display: none;
  }

  .characters-slider {
    gap: 1rem;
  }

  .character-slide.prev {
    transform: translate(-50%, -50%) scale(0.9) translateX(-120px);
  }

  .character-slide.next {
    transform: translate(-50%, -50%) scale(0.9) translateX(120px);
  }
}

/* ========================================
   LISTEN SECTION STYLES
   ======================================== */

.listen-section {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
  /* Fix for any potential horizontal scrollbar */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.listen-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Streaming Services Pill */
.streaming-pill {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.streaming-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.1rem 1.5rem;
}

.streaming-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 20px;
  min-height: 20px;
}

.streaming-logo:hover {
  transform: translateY(-2px);
}

.streaming-logo img {
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.streaming-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.streaming-icon-svg svg {
  width: 100%;
  height: 100%;
  max-width: 20px;
  max-height: 20px;
  fill: currentColor;
  color: #333;
}

.streaming-name {
  font-family: "Mikado", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

/* Spotify Embed Container */
.spotify-embed-container {
  margin-top: 2rem;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.spotify-embed-container:hover {
  transform: rotate(0deg);
}

.spotify-embed-container iframe {
  border-radius: 20px;
  width: 100%;
  height: 352px;
  border: none;
  display: block;
}

/* Featured Pages Grid */
.featured-pages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
  padding-left: 30px; /* Offset for overlap */
}

.featured-page-square {
  position: relative;
  width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #fff;
  margin-left: -30px; /* Overlap effect */
}

/* Random rotations for each card */
.featured-page-square:nth-child(1) {
  transform: rotate(-4deg);
}
.featured-page-square:nth-child(1):hover {
  transform: rotate(-6deg) translateY(-5px);
}
.featured-page-square:nth-child(2) {
  transform: rotate(3deg);
}
.featured-page-square:nth-child(2):hover {
  transform: rotate(5deg) translateY(-5px);
}
.featured-page-square:nth-child(3) {
  transform: rotate(-2deg);
}
.featured-page-square:nth-child(3):hover {
  transform: rotate(-4deg) translateY(-5px);
}
.featured-page-square:nth-child(4) {
  transform: rotate(5deg);
}
.featured-page-square:nth-child(4):hover {
  transform: rotate(7deg) translateY(-5px);
}
.featured-page-square:nth-child(5) {
  transform: rotate(-3deg);
}
.featured-page-square:nth-child(5):hover {
  transform: rotate(-5deg) translateY(-5px);
}
.featured-page-square:nth-child(6) {
  transform: rotate(2deg);
}
.featured-page-square:nth-child(6):hover {
  transform: rotate(4deg) translateY(-5px);
}
.featured-page-square:nth-child(7) {
  transform: rotate(-5deg);
}
.featured-page-square:nth-child(7):hover {
  transform: rotate(-7deg) translateY(-5px);
}
.featured-page-square:nth-child(8) {
  transform: rotate(4deg);
}
.featured-page-square:nth-child(8):hover {
  transform: rotate(6deg) translateY(-5px);
}

.featured-page-square:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.featured-page-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.featured-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-page-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.featured-page-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Large Display Optimization for Listen Section */
@media screen and (min-width: 1400px) {
  .listen-section {
    height: 100vh;
    min-height: 100vh;
  }

  .listen-content {
    padding: 0 40px;
  }

  .streaming-pill {
    border-radius: 60px;
  }

  .streaming-logos {
    gap: 0rem;
  }

  .streaming-logo {
    min-width: 30px;
    min-height: 30px;
    padding: 1.5rem;
  }

  .streaming-logo img {
    max-width: 30px;
    max-height: 30px;
  }

  .streaming-icon-svg {
    width: 30px;
    height: 30px;
  }

  .streaming-icon-svg svg {
    max-width: 30px;
    max-height: 30px;
  }

  .streaming-name {
    font-size: 1.2rem;
  }

  .spotify-embed-container {
    margin-top: 3rem;
    max-width: 700px;
  }

  .spotify-embed-container iframe {
    height: 400px;
  }

  .featured-pages-grid {
    padding-left: 40px;
  }

  .featured-page-square {
    width: 300px;
    max-width: 300px;
    border-radius: 25px;
    margin-left: -40px;
    border-width: 5px;
  }

  .featured-page-title {
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 1920px) {
  .listen-section {
    height: 100vh;
    min-height: 100vh;
  }

  .listen-content {
    gap: 1rem;
    padding: 0 60px;
  }

  .streaming-pill {
    padding: 2rem 2rem;
    border-radius: 70px;
  }

  .streaming-logos {
    gap: 0rem;
  }

  .streaming-logo {
    min-width: 60px;
    min-height: 60px;
    padding: 1rem;
  }

  .streaming-logo img {
    max-width: 60px;
    max-height: 60px;
  }

  .streaming-icon-svg {
    width: 60px;
    height: 60px;
  }

  .streaming-icon-svg svg {
    max-width: 60px;
    max-height: 60px;
  }

  .streaming-name {
    font-size: 1.4rem;
  }

  .spotify-embed-container {
    margin-top: 2rem;
    max-width: 800px;
  }

  .spotify-embed-container iframe {
    height: 450px;
  }

  .featured-pages-grid {
    padding-left: 50px;
  }

  .featured-page-square {
    width: 300px;
    max-width: 300px;
    border-radius: 30px;
    margin-left: -50px;
    border-width: 5px;
  }

  .featured-page-title {
    font-size: 1.6rem;
  }

  .featured-page-overlay {
    padding: 2rem;
  }
}

/* Responsive Design for Listen Section */
@media screen and (max-width: 768px) {
  .listen-section {
    padding: 80px 0;
  }

  .listen-content {
    gap: 1rem;
  }

  .streaming-pill {
    padding: 1.5rem 2rem;
    border-radius: 40px;
  }

  .streaming-logos {
    gap: 1.5rem;
  }

  .streaming-logo {
    min-width: 70px;
    min-height: 70px;
    padding: 0.8rem;
  }

  .streaming-logo img {
    max-width: 50px;
    max-height: 50px;
  }

  .streaming-icon-svg {
    width: 50px;
    height: 50px;
  }

  .streaming-icon-svg svg {
    max-width: 50px;
    max-height: 50px;
  }

  .streaming-name {
    font-size: 0.9rem;
  }

  .spotify-embed-container {
    margin-top: 1.5rem;
    max-width: 500px;
  }

  .spotify-embed-container iframe {
    height: 300px;
  }

  .featured-pages-grid {
    margin-top: 1.5rem;
    padding-left: 25px;
  }

  .featured-page-square {
    width: 200px;
    max-width: 200px;
    border-radius: 15px;
    margin-left: -25px;
    border-width: 3px;
  }

  .featured-page-title {
    font-size: 1rem;
  }

  .featured-page-overlay {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .listen-section {
    padding: 60px 0;
  }

  .listen-content {
    gap: 1rem;
    padding: 0 15px;
  }

  .streaming-pill {
    padding: 1rem 1.5rem;
    border-radius: 30px;
  }

  .streaming-logos {
    gap: 1rem;
  }

  .streaming-logo {
    min-width: 60px;
    min-height: 60px;
    padding: 0.6rem;
  }

  .streaming-logo img {
    max-width: 40px;
    max-height: 40px;
  }

  .streaming-icon-svg {
    width: 40px;
    height: 40px;
  }

  .streaming-icon-svg svg {
    max-width: 40px;
    max-height: 40px;
  }

  .streaming-name {
    font-size: 0.8rem;
  }

  .spotify-embed-container {
    margin-top: 1rem;
    max-width: 400px;
  }

  .spotify-embed-container iframe {
    height: 250px;
  }

  .featured-pages-grid {
    margin-top: 1rem;
    padding-left: 20px;
  }

  .featured-page-square {
    width: 140px;
    max-width: 140px;
    border-radius: 12px;
    margin-left: -20px;
    border-width: 3px;
  }

  .featured-page-title {
    font-size: 0.85rem;
  }

  .featured-page-overlay {
    padding: 0.75rem;
  }
}

/* ========================================
   EPISODE SINGLE PAGE STYLES
   ======================================== */

/* Episode Hero Section */
.site-main.episode-hero {
  min-height: 100vh;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
  background: none;
}

/* Episode Page Background */
body.single-episode {
  background-color: #c8e2fb;
}

.episode-desc-section {
  background: #c8e2fb;
  padding: 3rem 0 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.episode-desc-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.episode-desc-container .project-title {
  margin-bottom: 1rem;
}

.episode-desc-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #5a5a84;
  font-family: "mikado", sans-serif;
  font-weight: bold;
}

/* Decorative characters flanking the description section */
.episode-desc-section::before,
.episode-desc-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 60vw;
  max-width: 780px;
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
  transform-origin: bottom center;
}

/* Left: Lofty slightly out of frame */
.episode-desc-section::before {
  left: -24vw;
  background-image: url("assets/images/make-section/lofty.png");
  transform: rotate(12deg);
}

/* Right: Lark slightly out of frame */
.episode-desc-section::after {
  right: -22vw;
  background-image: url("assets/images/make-section/lark.png");
  transform: rotate(-12deg);
}

@media (max-width: 1024px) {
  .episode-desc-section::before,
  .episode-desc-section::after {
    width: 55vw;
    max-width: 620px;
    bottom: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  }
  .episode-desc-section::before {
    left: -16vw;
    transform: rotate(10deg);
  }
  .episode-desc-section::after {
    right: -16vw;
    transform: rotate(-10deg);
  }
}

@media (max-width: 768px) {
  .episode-desc-section::before,
  .episode-desc-section::after {
    width: 62vw;
    max-width: 480px;
    opacity: 0.7;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.1));
  }
  .episode-desc-section::before {
    left: -12vw;
    transform: rotate(8deg);
  }
  .episode-desc-section::after {
    right: -12vw;
    transform: rotate(-8deg);
  }
}

@media (max-width: 520px) {
  .episode-desc-section::before,
  .episode-desc-section::after {
    display: none;
  }
}

.episode-hero {
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.episode-hero-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: visible;
  width: 100vw;
  min-height: 100vh;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.episode-hero-bg .blur-overlay {
  height: 200px;
  z-index: 0;
}

.episode-container {
  position: relative;
  z-index: 1;
}

.episode-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding-top: 6rem;
}

/* Series Logo */
.episode-series-logo {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.series-logo {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.series-title {
  font-family: "Mikado", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Episode Title */
/* Episode title (copied from Make .project-title styling) */
.episode-hero .episode-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #7676ae;
  margin: 0 0 2rem 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-family: "Mikado", sans-serif;
  -webkit-text-stroke: 12px #fff;
  paint-order: stroke fill;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 50vw;
  margin-left: auto;
  margin-right: auto;
}

/* Episode Pills */
.episode-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 25px;
  font-family: "Mikado", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.pill-season {
  background: rgba(255, 193, 7, 0.9); /* Yellow */
}

.pill-episode {
  background: rgba(40, 167, 69, 0.9); /* Green */
}

/* Episode Video Section */
.episode-video-section {
  margin-bottom: 60px;
  position: relative;
  padding: 40px 0;
  background: url("<?php echo get_template_directory_uri(); ?>/assets/images/clouds-bg.png")
    no-repeat center center;
  background-size: cover;
  isolation: isolate;
}

.episode-video-section .container {
  background: transparent;
  position: relative;
  z-index: 2;
}

.episode-video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

.episode-video-wrapper {
  position: relative;
  width: min(760px, 75vw);
  height: 0;
  padding-bottom: calc(min(760px, 75vw) * 0.5625);
  background: #000;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 8px solid #fff;
}

.episode-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: white;
}

.play-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.placeholder-content p {
  font-family: "Mikado", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Episode Characters Section */
.episode-characters-section {
  margin-bottom: 60px;
  position: relative;
  padding: 40px 0;
  background: url("<?php echo get_template_directory_uri(); ?>/assets/images/clouds-bg.png")
    no-repeat center center;
  background-size: cover;
  isolation: isolate;
}

.episode-characters-section .container {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Episode Characters Slider - Simple & Clean */
.episode-characters-slider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.slider-header {
  text-align: center;
  margin-bottom: 2rem;
}

.characters-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.characters-slider-viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: 2rem 0;
}

/* Gradient fade on left side */
.characters-slider-viewport::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100px;
  background: linear-gradient(
    to right,
    rgba(200, 226, 251, 1),
    rgba(200, 226, 251, 0)
  );
  pointer-events: none;
  z-index: 2;
}

/* Gradient fade on right side */
.characters-slider-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100px;
  background: linear-gradient(
    to left,
    rgba(200, 226, 251, 1),
    rgba(200, 226, 251, 0)
  );
  pointer-events: none;
  z-index: 2;
}

.characters-slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.4s ease-out;
  /* Center the first card by default */
  padding-left: calc(50% - 175px);
  padding-right: calc(50% - 175px);
}

.character-polaroid-wrapper {
  flex-shrink: 0;
  width: 350px;
}

/* Random rotations for polaroid cards in slider */
.character-polaroid-wrapper:nth-child(1) .polaroid-card {
  transform: rotate(-2deg);
}

.character-polaroid-wrapper:nth-child(2) .polaroid-card {
  transform: rotate(1.5deg);
}

.character-polaroid-wrapper:nth-child(3) .polaroid-card {
  transform: rotate(-1deg);
}

.character-polaroid-wrapper:nth-child(4) .polaroid-card {
  transform: rotate(2deg);
}

.character-polaroid-wrapper:nth-child(5) .polaroid-card {
  transform: rotate(-1.5deg);
}

.character-polaroid-wrapper:nth-child(6) .polaroid-card {
  transform: rotate(1deg);
}

.character-polaroid-wrapper:nth-child(7) .polaroid-card {
  transform: rotate(-2.5deg);
}

.character-polaroid-wrapper:nth-child(8) .polaroid-card {
  transform: rotate(2.5deg);
}

.character-polaroid-wrapper:nth-child(9) .polaroid-card {
  transform: rotate(-1deg);
}

.character-polaroid-wrapper:nth-child(10) .polaroid-card {
  transform: rotate(1.5deg);
}

.character-polaroid-wrapper:nth-child(11) .polaroid-card {
  transform: rotate(-2deg);
}

.character-polaroid-wrapper:nth-child(12) .polaroid-card {
  transform: rotate(2deg);
}

/* Hover effect for slider polaroids - straighten and lift */
.character-polaroid-wrapper .polaroid-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
}

/* Navigation buttons */
.char-slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 3;
  position: relative;
}

.char-slider-btn:hover:not(:disabled) {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.char-slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.char-slider-btn svg {
  width: 24px;
  height: 24px;
}

/* Polaroid cards in slider use existing styles from archive-characters - no size override needed */

/* Character Activities Section */
.character-activities-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.character-activities-section .activities-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-family: "Mikado", sans-serif;
}

.activities-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.activities-carousel {
  overflow: hidden;
  border-radius: 15px;
}

.activities-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
}

.activity-card-new {
  flex: 0 0 300px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.activity-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.activity-card-inner {
  padding: 0;
}

.activity-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-card-new:hover .activity-image img {
  transform: scale(1.05);
}

.activity-content {
  padding: 1.5rem;
}

.activity-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.activity-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-family: "Mikado", sans-serif;
}

.activity-description {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: #f8f9fa;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  color: #2c3e50;
}

/* Responsive styles for activities carousel */
@media (max-width: 768px) {
  .character-activities-section .activities-section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .activities-carousel-container {
    padding: 0 1rem;
  }

  .activity-card-new {
    flex: 0 0 280px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: -20px;
  }

  .carousel-next {
    right: -20px;
  }

  .carousel-nav svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .character-activities-section {
    padding: 3rem 0;
  }

  .character-activities-section .activities-section-title {
    font-size: 1.75rem;
  }

  .activity-card-new {
    flex: 0 0 250px;
  }

  .activity-content {
    padding: 1rem;
  }

  .activity-title {
    font-size: 1.125rem;
  }

  .activity-description {
    font-size: 0.875rem;
  }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active {
  background: #5a5a84;
}

.slider-dot:hover {
  background: #999;
}

/* Episode Content Section */
.episode-content-section {
  margin-bottom: 60px;
  position: relative;
  padding: 40px 0;
  background: url("<?php echo get_template_directory_uri(); ?>/assets/images/clouds-bg.png")
    no-repeat center center;
  background-size: cover;
  isolation: isolate;
}

.episode-content-section .container {
  background: transparent;
  position: relative;
  z-index: 2;
}

.episode-content {
  padding: 2rem 0;
}

.episode-description h2 {
  font-family: "Mikado", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
}

.episode-highlights {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.episode-highlights h3 {
  font-family: "Mikado", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

/* Episode Actions */
.episode-actions {
  padding: 3rem 0;
  border-top: 1px solid #e9ecef;
}

.episode-share h4 {
  font-family: "Mikado", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Mikado", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-twitter {
  background: #1da1f2;
  color: white;
}

.btn-twitter:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
}

.btn-facebook {
  background: #4267b2;
  color: white;
}

.btn-facebook:hover {
  background: #365899;
  transform: translateY(-2px);
}

/* Related Episodes */
.related-episodes {
  padding: 4rem 0;
  background: #f8f9fa;
}

.related-episodes h3 {
  font-family: "Mikado", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #333;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.episode-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.episode-card a {
  text-decoration: none;
  color: inherit;
}

.episode-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover .episode-thumbnail img {
  transform: scale(1.05);
}

.episode-info {
  padding: 1.5rem;
}

.episode-card .episode-title {
  font-family: "Mikado", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.episode-excerpt {
  color: #666;
  line-height: 1.5;
}

/* Episode Navigation */
.episode-navigation {
  padding: 3rem 0;
  border-top: 1px solid #e9ecef;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  text-align: center;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.nav-subtitle {
  display: block;
  font-family: "Mikado", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-title {
  display: block;
  font-family: "Mikado", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .episode-hero {
    padding: 50px 20px;
    margin-bottom: 40px;
  }

  .episode-hero .episode-title {
    font-size: 2.5rem;
    max-width: 90vw;
    -webkit-text-stroke: 8px #fff;
  }

  .series-title {
    font-size: 2rem;
  }

  .pill {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .episode-video-container {
    padding: 0 1rem;
  }

  .episode-video-wrapper {
    width: calc(100% - 2rem);
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 9 / 14;
    position: relative;
    border-radius: 24px;
    border-width: 5px;
  }

  .episode-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 100%;
    min-width: 180%;
  }

  .episode-description h2 {
    font-size: 2rem;
  }

  .related-episodes h3 {
    font-size: 2rem;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-previous,
  .nav-next {
    text-align: center;
  }

  /* Episode Characters Slider Mobile */
  .characters-slider-wrapper {
    gap: 1rem;
  }

  .char-slider-btn {
    width: 40px;
    height: 40px;
  }

  .char-slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .character-polaroid-wrapper {
    width: 280px;
  }

  .characters-slider-track {
    /* Center the first card on mobile (280px card width) */
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
  }

  .characters-slider-viewport::before {
    width: 60px;
  }

  .characters-slider-viewport::after {
    width: 60px;
  }

  /* Episode slider polaroid cards inherit responsive styles from archive-characters */
}

/* ============================================
   EPISODES ARCHIVE STYLES
   ============================================ */

/* Episodes Archive Sections */
.episodes-by-season,
.episodes-all {
  margin: 3rem 0;
}

.section-title {
  font-family: "Mikado", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 2rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3498db;
}

.season-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: transparent;
  border-radius: 12px;
}

.season-section .season-title,
.season-section h3.season-title,
.season-section .season-title *,
.season-section h3.season-title * {
  font-family: "Mikado", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: white !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
}

.season-section .season-title,
.season-section h3.season-title {
  margin: 0 0 1.5rem 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  background: #3498db !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3) !important;
  cursor: default !important;
  pointer-events: none !important;
}

.season-section .season-title a,
.season-section h3.season-title a,
.season-section a.season-title,
a.season-title,
h3.season-title a {
  color: white !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

.season-section .season-title .episode-count,
.season-section h3.season-title .episode-count {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: white !important;
  font-family: "Mikado", sans-serif !important;
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
}

.episodes-all {
  padding-top: 2rem;
  border-top: 2px solid #ecf0f1;
}

/* Episode grid within season sections */
.season-section .episode-grid {
  margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .season-section .season-title,
  .season-section h3.season-title {
    font-size: 1.2rem !important;
    padding: 10px 20px !important;
    gap: 0.5rem !important;
  }

  .season-section .season-title .episode-count,
  .season-section h3.season-title .episode-count {
    font-size: 0.8rem !important;
    padding: 3px 10px !important;
  }

  .season-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .season-section .season-title,
  .season-section h3.season-title {
    font-size: 1rem !important;
    padding: 8px 16px !important;
    flex-wrap: wrap !important;
  }

  .season-section .season-title .episode-count,
  .season-section h3.season-title .episode-count {
    font-size: 0.75rem !important;
  }
}
