        :root {
          --dark-navy: #0a192f;
          --navy: #112240;
          --light-navy: #233554;
          --lightest-navy: #303c55;
          --slate: #8892b0;
          --light-slate: #a8b2d1;
          --lightest-slate: #ccd6f6;
          --white: #e6f1ff;
          --accent: #64ffda;
          --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }



        body {
          background-image: url("../assets/raiden.png") !important;
          background-position: center;
          background-size: contain;
          /* background-repeat: no-repeat; */
        }

        body::after {
          content: "";
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(10, 25, 47, 0.9);
          backdrop-filter: blur(5px);
          z-index: -1;
        }



        /* I N D E X */
        .update-container {
          cursor: pointer;
          flex: 0 0 100%;
          height: 500px;
          border-radius: 10px;
          overflow: hidden;
          background-size: cover;
          background-position: center center;
          position: relative;
          box-shadow: 0px 5px 10px rgba(0, 0, 0);
        }

        .filter {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 0 40px;
          background-color: rgba(27, 27, 27, 0.562);
          backdrop-filter: blur(2px);
          width: 100%;
          height: 100%;
        }

        .left-up {
          flex: 1;
          max-width: 60%;
          color: #ffffff;
        }

        .chapter {
          color: white;
          font-size: 2rem;
          padding: 5px 10px;
          display: inline-block;
          margin-bottom: 15px;
          font-weight: bold;
          border-bottom: 1px solid white;
        }

        .left-up h1 {
          font-size: 1.5rem;
          margin-bottom: 15px;
          line-height: 1.2;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .keterangan {
          font-size: 1rem;
          margin-bottom: 20px;
          line-height: 1.5;
        }

        .genres {
          display: flex;
          gap: 10px;
          color: var(--accent);
        }

        .genres p {
          border: 1px solid var(--accent);
          padding: 6px 12px;
          border-radius: 10px;
          font-size: 0.7rem;
          background-color: #1b1b1b00;
          transition: 0.2s;
        }

        .genres p:hover {
          background-color: #64ffda25;
          color: rgb(255, 255, 255);
        }

        .reading-now {
          display: inline-block;
          background-color: #65ffdb;
          font-size: 1.2rem;
          padding: 8px 30px;
          margin: 20px 0px;
          border-radius: 5px;
          box-shadow: 0px 0px 8px 5px #00eaff55;
          transition: 0.3s;
          color: #05423c;
        }

        .reading-now:hover {
          transform: scale(1.02) translateY(2px);
        }

        .right-up {
          flex-basis: 30%;
          margin-right: 50px;
          height: 100%;
          position: relative;
          overflow: hidden;
          transform: skewX(-15deg);
          transition: 0.4s ease-in-out;
          cursor: grab;
        }

        /* .right-up:hover {
        transform: skewX(0deg) scale(1.1);
      } */

        .right-up img {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          transition: opacity 0.4s ease-in-out;
        }

        /* 
      .right-up .cov2 {
        opacity: 0;
      }
      .right-up:hover .cov1 {
        opacity: 0;
      }
      .right-up:hover .cov2 {
        opacity: 1;
      } */

        .slider {
          position: relative;
          width: 1150px;
          margin: 40px auto;
          height: 500px;
        }

        .slider-items {
          display: flex;
          overflow-x: auto;
          scroll-behavior: smooth;
          scrollbar-width: none;
          -ms-overflow-style: none;
          height: 100%;
          /* Make sure it inherits the parent's height */
          position: relative;
        }

        /* Ensure update-container respects the responsive heights */
        .update-container {
          height: 100% !important;
          /* Override any JavaScript inline styles */
        }

        .btn-slide {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          z-index: 10;
          width: 50px;
          height: 50px;
          border-radius: 50%;
          border: none;
          background-color: rgba(255, 255, 255, 0.7);
          color: rgb(0, 0, 0);
          font-size: 2rem;
          cursor: pointer;
          transition: background-color 0.2s;
        }

        .btn-slide:hover {
          background-color: rgb(209, 209, 209);
        }

        #next-btn {
          right: -25px;
        }

        #prev-btn {
          left: -25px;
        }


        /* K O M I K  P O P U L A R */
        .container-comic {
          width: 1150px;
          margin: 40px auto;
          border-radius: 6px;
          background: linear-gradient(to bottom, #131c2e55, #2f486b35);
          /* backdrop-filter: blur(5px); */
          padding-bottom: 20px;
          padding: 0 20px 20px 20px;
          border: 1px solid #ffffff25;
          box-shadow: 0px 2px 5px #1b1b1b35;
        }



        .header-popular {
          display: inline-block;
          padding: 0px 15px;
          margin: 15px 0px 15px 0px;
          border-left: 5px solid var(--accent)
        }

        .header-popular-terbaru {
          margin-left: 30px;
        }

        .header-popular h1 {
          font-size: 2rem;
        }


        .items-popular {
          display: flex;
          overflow-x: auto;
          scroll-behavior: smooth;
          gap: 15px;
          padding: 0 20px;
        }

        .items-popular::-webkit-scrollbar {
          background-color: #29213f;
          height: 5px;
        }

        .items-popular::-webkit-scrollbar-thumb {
          cursor: pointer;
          background-color: #293755;
          border-radius: 10px;
        }



        .card {
          display: flex;
          flex-direction: column;
          flex-shrink: 0;
          overflow: hidden;
          animation: inAnimation 0.5s ease-in-out;
          cursor: pointer;
        }

        .logo-komik {
          width: 240px;
          height: 150px;
          overflow: hidden;
          border-radius: 10px;
          position: relative;
        }

        .card .logo-komik img {
          border-radius: 10px;
          width: 100%;
          height: 100%;
          object-fit: cover;
          /* transition: 0.2s ease; */
          transition: .3s cubic-bezier(.4, 2, .6, 1);
        }

        .peringkat {
          position: absolute;
          z-index: 20;
          font-size: 1.5rem;
          color: var(--light-navy);
          top: 5px;
          left: 5px;
          border-radius: 3px;
          background-color: var(--accent);
          padding: 10px 25px;
          box-shadow: 0px 2px 5px #00000025;
        }


        .card .logo-komik img:hover {
          transform: scale(1.1);
        }

        .deskripsi-komik h3 {
          font-size: 1rem;
          width: 240px;
          margin-bottom: 10px;
          margin-top: 8px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          transition: 0.2s ease;
          cursor: pointer;
        }

        .deskripsi-komik h3:hover {
          color: var(--accent);
        }


        /* T E R B A R U  */

        .container-terbaru {
          width: 1150px;
          margin: 40px auto;
          border-radius: 6px;
          background: linear-gradient(to bottom, #131c2e55, #2f486b35);
          padding-bottom: 20px;
          border: 1px solid #ffffff25;
        }



        .items-terbaru {
          width: 95%;
          margin: 0 auto;
          /* background-color: blueviolet; */
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          gap: 15px
        }


        .card-terbaru {
          display: flex;
          background-color: #131c2e;
          width: 49%;
          padding: 18px;
          border-radius: 8px;
          animation: inAnimation 0.5s ease-in-out;
          transition: 0.3s ease;
        }

        .card-terbaru:hover {
          box-shadow: 0px 0px 8px 2px #375184;
          transform: scale(1.006);
        }

        .logo-terbaru {
          width: 170px;
          height: 120px;
          border-radius: 5px;
          overflow: hidden;
        }

        .logo-terbaru img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .judul-terbaru {
          width: 300px;
          font-size: 1.1rem;
          margin-left: 10px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          transition: 0.2s ease;
        }

        .judul-terbaru:hover {
          color: var(--accent);
        }

        .card-terbaru-info {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
        }

        .card-terbaru-info p {
          font-size: 0.8rem;
          margin-left: 14px;
        }

        .card-terbaru-info .chapter-terbaru {
          text-align: center;
          background-color: #27385b;
          width: 150px;
          font-size: 1rem;
          margin-left: 10px;
          padding: 8px 0px;
          border-radius: 5px;
          color: white;
          margin-bottom: 4px;
        }



        /*REKOMENDASI*/
        .tag-info {
          margin-top: -9px;
          margin-bottom: 5px;
          font-size: 0.8rem;
        }

        .bulat {
          width: 230px;
          height: 140px;
        }

        .cont-ch {
          margin: 2px 0px 10px 0px;
          padding: 10px;
          border-radius: 4px;
          text-align: center;
          background-color: #293755;
          transition: 0.3s ease;
        }

        .cont-ch:hover {
          box-shadow: 0px 0px 4px 1px #37518477;
          transform: translateY(-2px);
        }

        .ch-rekomendasi {
          padding: 2px 7px;
          font-weight: 500;
        }




        /* F O O T E R */

        /* TABLET STYLES (768px - 1024px) */
        @media screen and (max-width: 1024px) {
          .slider {
            width: 90%;
            height: 400px;
          }

          .slider-items {
            height: 400px !important;
          }

          .update-container {
            height: 400px !important;
          }

          .filter {
            padding: 0 20px;
            flex-direction: column;
            text-align: center;
          }

          .genres {
            gap: 5px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 30px;
            margin-top: 20px;
          }

          .left-up {
            max-width: 100%;
            margin-bottom: 20px;
          }

          .right-up {
            flex-basis: 30%;
            margin-right: 0;
            transform: none;
          }

          .right-up:hover {
            transform: scale(1.05);
          }

          .container-comic,
          .container-terbaru {
            width: 90%;
          }

          .items-popular {
            gap: 10px;
          }

          .card {
            min-width: 200px;
          }

          .logo-komik {
            width: 200px;
            height: 130px;
          }

          .card-terbaru {
            width: 100%;
            margin-bottom: 15px;
          }

          .items-terbaru {
            flex-direction: column;
          }
        }

        /* MOBILE STYLES (max-width: 768px) */
        @media screen and (max-width: 768px) {


          /* Slider Mobile - FIXED */
          .slider {
            width: 95%;
            height: 300px !important;
            /* Force the height on mobile */
            margin: 20px auto;
          }

          .slider-items {
            height: 300px !important;
          }

          .update-container {
            height: 300px !important;
          }

          .filter {
            padding: 15px;
            flex-direction: column;
            text-align: center;
            justify-content: center;
            border-radius: 10px;
          }

          .left-up {
            max-width: 100%;
          }

          .chapter {
            font-size: 1.2rem;
            margin-bottom: 10px;
          }

          .left-up h1 {
            font-size: 1.2rem;
            margin-bottom: 10px;
          }

          .keterangan {
            font-size: 0.8rem;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
          }

          .genres {
            gap: 5px;
            flex-wrap: wrap;
            justify-content: center;
          }

          .genres p {
            font-size: 0.6rem;
            padding: 4px 8px;
          }

          .reading-now {
            font-size: 1rem;
            padding: 6px 20px;
            margin: 15px 0 0 0;
          }

          .right-up {
            display: none;
            /* Hide cover image on mobile untuk save space */
          }

          /* Slider buttons mobile */
          .btn-slide {
            width: 40px;
            height: 40px;
            font-size: 1.5rem;
          }

          #next-btn {
            right: -20px;
          }

          #prev-btn {
            left: -20px;
          }

          .container-comic,
          .container-terbaru {
            width: 95%;
            margin: 20px auto;
            min-height: 0px;
            /* background-color: wheat; */
          }

          .header-popular {
            margin: 10px 0 10px 0px;
            font-size: 0.9rem;
          }


          .items-popular {
            padding: 0 15px;
            gap: 10px;
          }


          .card {
            min-width: 150px;

          }

          .logo-komik {
            width: 150px;
            height: 100px;
          }

          .logo-komik img {
            height: 100px;
          }

          .deskripsi-komik h3 {
            font-size: 0.8rem;
            width: 150px;
            margin-top: 5px;
          }

          /* Latest Comics Mobile */
          .items-terbaru {
            width: 100%;
            padding: 0 15px;
            flex-direction: column;
          }

          .card-terbaru {
            width: 100%;
            padding: 12px;
            margin-bottom: 10px;
          }

          .logo-terbaru {
            width: 120px;
            height: 80px;
          }

          .judul-terbaru {
            font-size: 0.9rem;
            width: 200px;
            margin-left: 10px;
          }

          .card-terbaru-info p {
            font-size: 0.7rem;
            margin-left: 10px;
          }

          .card-terbaru-info .chapter-terbaru {
            width: 120px;
            font-size: 0.8rem;
            margin-left: 8px;
            padding: 6px 0;
          }
        }

        .peringkat {
          font-size: 0.5rem;
          padding: 4px 10px;
        }

        .judul-terbaru{
          margin-left: 5px !important;
        }

        .header-popular-terbaru {
          margin-left: 20px !important;
        }

        @media screen and (max-width: 480px) {

          .peringkat {
            font-size: 0.5rem;
            padding: 4px 10px;
          }

          .header-popular {
            justify-content: center;
          }

          .header-popular h1 {
            text-align: center;
            font-size: 1.2rem;
          }

          .cont-ch a {
            font-size: 0.8rem;
          }

          /* Slider Small Mobile - FIXED */
          .slider {
            height: 250px !important;
            /* Force the height on small mobile */
          }

          .slider-items {
            height: 250px !important;
          }

          .update-container {
            height: 250px !important;
          }

          .chapter {
            font-size: 1rem;
          }

          .left-up h1 {
            font-size: 1rem;
          }

          .keterangan {
            font-size: 0.7rem;
            -webkit-line-clamp: 2;
          }

          .reading-now {
            font-size: 0.9rem;
            padding: 5px 15px;
          }

          .card {
            min-width: 130px;
          }

          .items-popular {
            width: 100%;
            margin-left: -10px;
          }

          .logo-komik {
            width: 130px;
            height: 90px;
          }

          .logo-komik img {
            height: 90px;
          }

          .deskripsi-komik h3 {
            font-size: 0.7rem;
            width: 130px;
          }

          .card-terbaru {
            padding: 10px;
          }

          .logo-terbaru {
            width: 100px;
            height: 70px;
          }

          .judul-terbaru {
            font-size: 0.8rem;
            width: 180px;
          }

          .chapter-terbaru {
            width: 100px !important;
            font-size: 0.7rem !important;
          }
        }