/**
 * Characters Section Styles
 * All styles related to the characters section and character selection
 */

/* CSS Variables for Characters Section */
:root {
  --snk-red: #e31e24;
  --snk-orange: #ff6b00;
}

/* Character Selection Borders - Dynamic Character Color */
.characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
  border: 4px solid transparent !important;
  position: relative;
  z-index: 5;
  -webkit-transform: skew(-5deg, 0deg);
  -moz-transform: skew(-5deg, 0deg);
  -ms-transform: skew(-5deg, 0deg);
  -o-transform: skew(-5deg, 0deg);
  transform: skew(-5deg, 0deg);
}

/* Create pseudo-element for border to avoid being covered by image */
.characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 4px solid var(--char-color);
  box-shadow: 0 0 20px rgba(var(--char-color-rgb), 1.0),
              0 0 40px rgba(255, 107, 0, 0.6),
              inset 0 0 10px rgba(var(--char-color-rgb), 0.3),
              4px 4px 8px rgba(0, 0, 0, 0.8);
  z-index: 15;
  -webkit-transform: skew(-5deg, 0deg);
  -moz-transform: skew(-5deg, 0deg);
  -ms-transform: skew(-5deg, 0deg);
  -o-transform: skew(-5deg, 0deg);
  transform: skew(-5deg, 0deg);
  pointer-events: none;
}


/* Main Characters Section */
.characters-section {
  min-height: 100vh;
  background-color: #12161f;
}

.characters-section .container-lg {
  flex-direction: column;
  position: relative;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.characters-section .container-lg .main-full {
  min-height: 100vh;
  position: relative;
}

.characters-section .container-lg .main-full::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  background: -webkit-linear-gradient(
    180deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
  background: -moz-linear-gradient(
    180deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
  z-index: 2;
}

.characters-section .container-lg .main-full .main-swiper {
  position: relative;
  /* make sure absolutely-positioned children can't overflow and shift layout */
  overflow: hidden;
  box-sizing: border-box;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide {
  min-height: 100vh;
  padding-top: 50px;
  height: auto;
  position: relative;
  opacity: 0 !important;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  /* Ensure each slide itself doesn't overflow the main container (keeps layout stable) */
  overflow: hidden;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .color-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 0;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide.swiper-slide-active {
  opacity: 1 !important;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: -1;
  opacity: 0.08;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper {
  position: absolute;
  width: 62%;
  z-index: 1;
  left: -15%;
}

.characters-section.demo-slider .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper {
  bottom: 0;
}

.characters-section.demo-slider .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper img {
  /* prevent images from expanding past their wrapper (115% caused content shift) */
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper img {
  max-width: 100%;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper.fade-up {
  opacity: 0;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -o-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper.fade-up.active {
  /* -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px); */
  /* transform: translateY(0px); */
  opacity: 1;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
  width: 57%;
  margin-left: auto;
  z-index: 1;
  position: relative;
  /* padding-bottom: 380px; */
  padding-bottom: 250px;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  margin-bottom: 1.563rem;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name span {
  font-family: Alyrak-Regular;
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 3.125rem;
  letter-spacing: 0.025rem;
  color: #6b8088;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
  text-align: center;
  margin-top: 5px;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name .name {
  font-size: 4.25rem;
  line-height: 4.875rem;
  letter-spacing: 0.043rem;
  text-transform: uppercase;
  font-family: Alyrak-Regular;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .p-26 {
  max-width: 55.5rem;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .character-button {
  width: fit-content;
  padding: 0.938rem 3.563rem;
  position: relative;
  display: none;
  overflow: hidden;
  background: -webkit-linear-gradient(
    0deg,
    rgb(26, 26, 26) 0%,
    rgb(26, 26, 26) 15%,
    rgb(51, 51, 51) 100%
  );
  background: -moz-linear-gradient(
    0deg,
    rgb(26, 26, 26) 0%,
    rgb(26, 26, 26) 15%,
    rgb(51, 51, 51) 100%
  );
  background: linear-gradient(
    0deg,
    rgb(26, 26, 26) 0%,
    rgb(26, 26, 26) 15%,
    rgb(51, 51, 51) 100%
  );
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .character-button span {
  text-transform: uppercase;
  font-size: 1.625rem;
  line-height: 2.063rem;
  letter-spacing: 0.081rem;
  font-family: 'kof-main-font', Arial, sans-serif;
  z-index: 1;
  position: relative;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .character-button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/images/button-decorative-bg-dark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  left: 0;
  top: 0;
  z-index: 0;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .character-button::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.4;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .character-button:hover::after {
  -webkit-animation: shine 3s infinite linear;
  -moz-animation: shine 3s infinite linear;
  -o-animation: shine 3s infinite linear;
  animation: shine 3s infinite linear;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  z-index: 0;
  background: -webkit-linear-gradient(
    0deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
  background: -moz-linear-gradient(
    0deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(18, 22, 31, 0) 0%,
    rgb(18, 22, 31) 100%
  );
}

/* Individual Character Image Sizing */
.characters-section .container-lg .main-full .main-swiper .swiper-slide:first-child .main-character-wrapper img {
  width: 100%;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide:nth-child(2) .main-character-wrapper img {
  width: 130%;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide:nth-child(3) .main-character-wrapper img {
  width: 90%;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide:nth-child(4) .main-character-wrapper img {
  width: 130%;
}

.characters-section .container-lg .main-full .main-swiper .swiper-slide:nth-child(5) .main-character-wrapper img {
  width: 100%;
}

/* Character Controller/Thumbnail Navigation */
.characters-section .container-lg .controller-bottom {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 55%;
  z-index: 3;
}

/* Navigation Buttons Styling */
.characters-section .container-lg .controller-bottom .bottom .thumb-navigation {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: flex-end;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
  margin-right: 2rem;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg path {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation button:not(.disabled) svg path {
  fill: #9b3216;
  opacity: 1;
}

.characters-section .container-lg .controller-bottom .swiper {
  padding-left: 2rem;
  padding-right: 2rem;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
  padding-top: 40px;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
  height: auto;
  cursor: pointer;
  width: 120px !important; /* Fixed width for thumbnails */
}

/* Mobile thumbnail width fixes */
@media (max-width: 991px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 100px !important;
  }
}

@media (max-width: 767px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 85px !important;
  }
}

@media (max-width: 575px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 75px !important;
  }
}

@media (max-width: 480px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 70px !important;
  }
}

@media (max-width: 400px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 65px !important;
  }
}

@media (max-width: 360px) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 60px !important;
  }
}

/* Landscape orientation thumbnail fixes */
@media (max-width: 1024px) and (orientation: landscape) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 90px !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide {
    width: 80px !important;
  }
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
  height: 100%;
  padding: 3px;
  border: 3px solid transparent;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform: skew(-5deg, 0deg);
  -moz-transform: skew(-5deg, 0deg);
  -ms-transform: skew(-5deg, 0deg);
  -o-transform: skew(-5deg, 0deg);
  transform: skew(-5deg, 0deg);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
  height: 100%;
  width: 100%;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: end;
  background-color: #232e39;
  box-shadow: 0px 5px 5px 0px rgba(33, 33, 33, 0.75);
  -webkit-box-shadow: 0px 5px 5px 0px rgba(33, 33, 33, 0.75);
  -moz-box-shadow: 0px 5px 5px 0px rgba(33, 33, 33, 0.75);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper img {
  -webkit-transform: skew(5deg, 0deg) !important;
  -moz-transform: skew(5deg, 0deg) !important;
  -ms-transform: skew(5deg, 0deg) !important;
  -o-transform: skew(5deg, 0deg) !important;
  transform: skew(5deg, 0deg) !important;
  width: 126%;
  margin-left: -13%;
  object-fit: cover;
  position: relative;
  z-index: 0;
  display: block;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper img.placeholder {
  width: auto;
  margin: auto;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  max-width: 100%;
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide.placeholder {
  pointer-events: none;
}


/* Character Thumbnail Background Gradients */
.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:first-child .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(0, 118, 152) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(0, 118, 152) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(0, 118, 152) 100%
  );
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(2) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(128, 10, 97) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(128, 10, 97) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(22, 35, 46) 0%,
    rgb(128, 10, 97) 100%
  );
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(3) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(5, 4, 0) 0%,
    rgb(240, 180, 0) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(5, 4, 0) 0%,
    rgb(240, 180, 0) 100%
  );
  background: linear-gradient(130deg, rgb(5, 4, 0) 0%, rgb(240, 180, 0) 100%);
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(4) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(23, 35, 38) 0%,
    rgb(116, 144, 165) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(23, 35, 38) 0%,
    rgb(116, 144, 165) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(23, 35, 38) 0%,
    rgb(116, 144, 165) 100%
  );
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(5) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(0, 115, 150, 0) 0%,
    rgb(187, 56, 0) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(0, 115, 150, 0) 0%,
    rgb(187, 56, 0) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(0, 115, 150, 0) 0%,
    rgb(187, 56, 0) 100%
  );
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(6) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(122, 148, 152) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(122, 148, 152) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(122, 148, 152) 100%
  );
}

.characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide:nth-child(7) .other-wrapper {
  background: -webkit-linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(187, 58, 58) 100%
  );
  background: -moz-linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(187, 58, 58) 100%
  );
  background: linear-gradient(
    130deg,
    rgb(25, 30, 35, 0) 0%,
    rgb(187, 58, 58) 100%
  );
}

/* Navigation Controls */
.characters-section .container-lg .controller-bottom .bottom {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  margin-top: 1.625rem;
  width: 80%;
}

.characters-section .container-lg .controller-bottom .bottom .line {
  width: 100%;
  height: 4px;
  background-color: #5a5e65;
  margin-right: 1.688rem;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: flex-end;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
  margin-right: 2rem;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg path {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.characters-section .container-lg .controller-bottom .bottom .thumb-navigation button:not(.disabled) svg path {
  fill: #9b3216;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1599px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .p-26 {
    max-width: 46.5rem;
  }
}

@media (max-width: 1299px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    padding-bottom: 325px;
  }
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper img.placeholder {
    width: 30px;
    height: auto;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .p-26 {
    max-width: 42.5rem;
  }
}

@media (max-width: 1199px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .p-26 {
    max-width: 38.5rem;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper {
    width: 65%;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    width: 50%;
    padding-bottom: 270px;
  }
}

@media (max-width: 991px) {
  .characters-section .container-lg .controller-bottom .bottom {
    width: 100%;
    margin-top: 1rem;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper {
    position: relative;
  }

  .characters-section .container-lg .main-full .main-swiper .swiper-slide {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    min-height: auto;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    padding-bottom: 50px;
  }
  .characters-section,
  .characters-section .container-lg .main-full {
    min-height: auto;
  }
  .characters-section .container-lg .controller-bottom {
    position: relative;
    width: 100%;
    bottom: unset;
    padding-bottom: 3rem;
  }
  .characters-section .container-lg .main-full::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide {
    padding-top: 20px;
    padding-left: 1rem;
    padding-right: 1rem;
    flex-direction: column-reverse;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    width: 100%;
    margin-left: 0;
    padding-bottom: 2rem;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-character-wrapper {
    width: 100%;
    position: relative;
  }
  
  /* Carousel thumbnails responsive */
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 1.5rem;
    padding-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 30px;
  }
  
  /* Add left margin to prevent thumbnails from touching left edge */
  .characters-section .container-lg .controller-bottom {
    padding-left: 1rem;
  }
  
  /* Make thumbnails smaller on tablet - adjust shadow only */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 3px 4px 0px rgba(33, 33, 33, 0.6);
    -webkit-box-shadow: 0px 3px 4px 0px rgba(33, 33, 33, 0.6);
    -moz-box-shadow: 0px 3px 4px 0px rgba(33, 33, 33, 0.6);
  }
  
  /* Navigation line and buttons responsive */
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 1.2rem;
    width: 90%;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 3px;
    margin-right: 1.2rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 1.5rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 12px;
    height: 18px;
  }
}

@media (max-width: 575px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name .name {
    font-size: 2.8rem;
    line-height: 3.2rem;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name span {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  
  /* Fix title character responsive on mobile - keep it much larger than subname */
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .visually-h1 {
    font-size: 4.2rem !important;
    line-height: 4.6rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* Responsive active thumbnail border for mobile */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 2px solid transparent !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }

  /* Mobile pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--char-color);
    box-shadow: 0 0 10px rgba(var(--char-color-rgb), 0.8),
                0 0 20px rgba(255, 107, 0, 0.4),
                inset 0 0 5px rgba(var(--char-color-rgb), 0.3),
                2px 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 15;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on mobile */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }
  
  /* Carousel responsive for small screens */
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 1.2rem;
    padding-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 25px;
  }
  
  /* More left padding for mobile */
  .characters-section .container-lg .controller-bottom {
    padding-left: 1.2rem;
  }
  
  /* Smaller thumbnails on mobile - adjust shadow only */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.5);
    -webkit-box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.5);
    -moz-box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.5);
  }
  
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 1rem;
    width: 95%;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2.5px;
    margin-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 1.2rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 10px;
    height: 16px;
  }
}

/* Additional responsive fixes for very small screens */
@media (max-width: 480px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .visually-h1 {
    font-size: 3.8rem !important;
    line-height: 4.2rem !important;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name .name {
    font-size: 2.5rem;
    line-height: 2.9rem;
  }
  
  /* Strong active thumbnail border for 480px - EXACTLY like the image */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 3px solid transparent !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }

  /* 480px pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid var(--char-color);
    box-shadow: 0 0 15px rgba(var(--char-color-rgb), 1.0),
                0 0 25px rgba(var(--char-color-rgb), 0.8),
                0 0 35px rgba(255, 107, 0, 0.6),
                inset 0 0 6px rgba(var(--char-color-rgb), 0.3),
                3px 3px 6px rgba(0, 0, 0, 0.7);
    z-index: 15;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on 480px */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }
  
  /* Further reduce carousel elements for very small screens */
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 1rem;
    padding-right: 0.6rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 20px;
  }
  
  /* Extra left padding for very small screens */
  .characters-section .container-lg .controller-bottom {
    padding-left: 1.5rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2px;
    margin-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 9px;
    height: 14px;
  }
  
  /* Slightly smaller thumbnails for 480px screens */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
    min-height: 42px;
    padding: 1px;
    border-width: 2px;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
    position: relative;
    z-index: 1;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 2px 2px 0px rgba(33, 33, 33, 0.4);
    -webkit-box-shadow: 0px 2px 2px 0px rgba(33, 33, 33, 0.4);
    -moz-box-shadow: 0px 2px 2px 0px rgba(33, 33, 33, 0.4);
  }
  
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2px;
    margin-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 9px;
    height: 14px;
  }
}

@media (max-width: 400px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .visually-h1 {
    font-size: 3.4rem !important;
    line-height: 3.8rem !important;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name .name {
    font-size: 2.2rem;
    line-height: 2.6rem;
  }
  
  /* Strong active thumbnail border for 400px - EXACTLY like the image */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 2px solid transparent !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }

  /* 400px pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--char-color);
    box-shadow: 0 0 12px rgba(var(--char-color-rgb), 1.0),
                0 0 20px rgba(var(--char-color-rgb), 0.8),
                0 0 28px rgba(255, 107, 0, 0.6),
                inset 0 0 4px rgba(var(--char-color-rgb), 0.3),
                2px 2px 4px rgba(0, 0, 0, 0.6);
    z-index: 15;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on 400px */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }
  
  /* Carousel adjustments for 400px screens */
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2px;
    margin-right: 0.6rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 8px;
    height: 12px;
  }
  
  /* Smaller thumbnails for 400px screens */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
    min-height: 40px;
    padding: 1px;
    border-width: 1px;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    position: relative;
    z-index: 1;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 1px 2px 0px rgba(33, 33, 33, 0.3);
    -webkit-box-shadow: 0px 1px 2px 0px rgba(33, 33, 33, 0.3);
    -moz-box-shadow: 0px 1px 2px 0px rgba(33, 33, 33, 0.3);
  }
}

@media (max-width: 360px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .visually-h1 {
    font-size: 3rem !important;
    line-height: 3.4rem !important;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper .full-name .name {
    font-size: 2rem;
    line-height: 2.4rem;
  }
  
  /* Minimal active thumbnail border for 360px */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 1px solid transparent !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }

  /* 360px pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid var(--char-color);
    box-shadow: 0 0 5px rgba(var(--char-color-rgb), 0.5),
                0 0 8px rgba(255, 107, 0, 0.2),
                inset 0 0 2px rgba(var(--char-color-rgb), 0.1),
                1px 1px 1px rgba(0, 0, 0, 0.3);
    z-index: 15;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on 360px */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
  }
  
  /* Smallest screens - most compact carousel */
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 0.8rem;
    padding-right: 0.5rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 18px;
  }
  
  /* Maximum left padding for smallest screens */
  .characters-section .container-lg .controller-bottom {
    padding-left: 1.8rem;
  }
  
  /* Smallest thumbnails for 360px screens */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
    min-height: 38px;
    padding: 1px;
    border-width: 1px;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    position: relative;
    z-index: 1;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 1px 1px 0px rgba(33, 33, 33, 0.3);
    -webkit-box-shadow: 0px 1px 1px 0px rgba(33, 33, 33, 0.3);
    -moz-box-shadow: 0px 1px 1px 0px rgba(33, 33, 33, 0.3);
  }
  
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 0.6rem;
    width: 100%;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2px;
    margin-right: 0.5rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 0.6rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 7px;
    height: 11px;
  }
}

/* Mobile Landscape Orientation - Fix for character thumbnails */
@media (max-width: 1024px) and (orientation: landscape) {
  .characters-section .container-lg .controller-bottom {
    position: relative;
    width: 100%;
    bottom: unset;
    padding-bottom: 1.5rem;
    max-height: 120px; /* Limit height in landscape mode */
  }
  
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 15px;
  }
  
  /* Make thumbnails much smaller in landscape mode */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
    min-height: 50px;
    max-height: 60px;
    padding: 2px;
    border-width: 2px;
    -webkit-transform: skew(-5deg, 0deg);
    -moz-transform: skew(-5deg, 0deg);
    -ms-transform: skew(-5deg, 0deg);
    -o-transform: skew(-5deg, 0deg);
    transform: skew(-5deg, 0deg);
    position: relative;
    z-index: 1;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper {
    box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.4);
    -webkit-box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.4);
    -moz-box-shadow: 0px 2px 3px 0px rgba(33, 33, 33, 0.4);
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper img {
    width: 120%;
    margin-left: -10%;
    -webkit-transform: skew(5deg, 0deg) !important;
    -moz-transform: skew(5deg, 0deg) !important;
    -ms-transform: skew(5deg, 0deg) !important;
    -o-transform: skew(5deg, 0deg) !important;
    transform: skew(5deg, 0deg) !important;
  }
  
  /* Smaller active thumbnail border for landscape */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 2px !important;
    border-color: var(--char-color) !important;
    box-shadow: 0 0 8px rgba(var(--char-color-rgb), 0.7),
                0 0 15px rgba(255, 107, 0, 0.3),
                inset 0 0 4px rgba(var(--char-color-rgb), 0.2),
                2px 2px 3px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
  }

  /* Landscape pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--char-color);
    box-shadow: 0 0 8px rgba(var(--char-color-rgb), 0.7),
                0 0 15px rgba(255, 107, 0, 0.3),
                inset 0 0 4px rgba(var(--char-color-rgb), 0.2),
                2px 2px 3px rgba(0, 0, 0, 0.5);
    z-index: 15;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on landscape */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
  }
  
  /* Reduce navigation controls size in landscape */
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 0.5rem;
    width: 90%;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 2px;
    margin-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 10px;
    height: 16px;
  }
}

/* Mobile Landscape for smaller screens */
@media (max-width: 768px) and (orientation: landscape) {
  .characters-section .container-lg .controller-bottom {
    max-height: 100px; /* Even smaller height for smaller landscape screens */
    padding-bottom: 1rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper {
    padding-top: 12px;
  }
  
  /* Even smaller thumbnails for small landscape screens */
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper {
    min-height: 40px;
    max-height: 50px;
    padding: 1px;
    border-width: 1px;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
  }
  
  .characters-section .container-lg .controller-bottom .swiper .swiper-wrapper .swiper-slide .img-wrapper .other-wrapper img {
    width: 110%;
    margin-left: -5%;
    -webkit-transform: skew(5deg, 0deg) !important;
    -moz-transform: skew(5deg, 0deg) !important;
    -ms-transform: skew(5deg, 0deg) !important;
    -o-transform: skew(5deg, 0deg) !important;
    transform: skew(5deg, 0deg) !important;
  }
  
  /* Minimal active thumbnail border for small landscape */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper {
    border-width: 1px !important;
    border-color: var(--char-color) !important;
    box-shadow: 0 0 6px rgba(var(--char-color-rgb), 0.6),
                0 0 12px rgba(255, 107, 0, 0.25),
                inset 0 0 3px rgba(var(--char-color-rgb), 0.15),
                1px 1px 2px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    z-index: 5;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
  }

  /* Small landscape pseudo-element for border */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide.swiper-slide-thumb-active .img-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid var(--char-color);
    box-shadow: 0 0 6px rgba(var(--char-color-rgb), 0.6),
                0 0 12px rgba(255, 107, 0, 0.25),
                inset 0 0 3px rgba(var(--char-color-rgb), 0.15),
                1px 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 15;
    -webkit-transform: skew(-10deg, 0deg);
    -moz-transform: skew(-10deg, 0deg);
    -ms-transform: skew(-10deg, 0deg);
    -o-transform: skew(-10deg, 0deg);
    transform: skew(-10deg, 0deg);
    pointer-events: none;
  }
  
  /* Remove borders from non-active thumbnails on small landscape */
  .characters-section .controller-bottom .swiper .swiper-wrapper .swiper-slide:not(.swiper-slide-thumb-active) .img-wrapper {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
  }
  
  .characters-section .container-lg .controller-bottom .bottom {
    margin-top: 0.3rem;
    width: 95%;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .line {
    height: 1.5px;
    margin-right: 0.6rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation .custom-prev {
    margin-right: 0.8rem;
  }
  
  .characters-section .container-lg .controller-bottom .bottom .thumb-navigation button svg {
    width: 8px;
    height: 14px;
  }
}

/* Large Screen Responsive Styles */
@media (min-width: 2500px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide {
    padding-top: 130px;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    padding-bottom: 450px;
  }
}

@media (min-width: 3000px) {
  .characters-section .container-lg .main-full .main-swiper .swiper-slide {
    padding-top: 200px;
  }
  .characters-section .container-lg .main-full .main-swiper .swiper-slide .main-info-wrapper {
    padding-bottom: 550px;
  }
}

/* Fix swiper recalculation on orientation change */
@media screen and (orientation: portrait) {
  .characters-section .container-lg .controller-bottom .swiper {
    height: auto !important;
  }
}

@media screen and (orientation: landscape) {
  .characters-section .container-lg .controller-bottom .swiper {
    height: auto !important;
  }
  
  /* Force swiper to recalculate on orientation change */
  .characters-section .container-lg .controller-bottom .swiper-wrapper {
    display: flex;
    flex-shrink: 0;
    transition: none;
  }
}

/* Add styles to force swiper update on window resize */
.characters-section .container-lg .controller-bottom .swiper-slide {
  flex-shrink: 0;
}

/* Ensure swiper container respects fixed widths */
.characters-section .container-lg .controller-bottom .swiper-container {
  width: 100%;
  overflow: hidden;
}
