/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding-top: 60px; /* ruang untuk header fixed */
}

/* Header utama */
.main-header {
  background-color: #ffa500;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Area logo + nama */
.logo-area {
  display: flex;
  align-items: center;
}

.logo {
  width: 45px;
  height: 45px;
  margin-left: -4px;
  margin-right: 10px;
  object-fit: contain;
}

.site-name {
  font-size: 18px;
  font-weight: bold;
}

/* Tombol hamburger */
/* Hamburger (sesuai kamu buat) */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1002; /* di atas overlay */
  position: relative;
}

.bar {
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .bar:nth-child(2) {
  transform: rotate(0deg) translate(100px, 0px);
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Side menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px; /* dikit lebih lebar untuk ruang */
  height: 100%;
  background: linear-gradient(180deg, #222222 0%, #333333 100%);
  padding: 60px 0 40px 0;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.7);
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  overflow-y: auto;
  backdrop-filter: saturate(180%) blur(10px);
}

.top-box {
  width: 90%;
  margin: 0 auto 30px auto;
  padding: 12px 0;
  background: #ffa500;
  color: #222222;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(255, 165, 0, 0.5);
  letter-spacing: 1.2px;
  user-select: none;
}

.side-menu ul {
  list-style: none;
  padding: 0 15px;
  margin: 0;
}

.side-menu ul li {
  margin: 20px 0;
  opacity: 0;
  animation: slideInFade 0.5s forwards;
}

.side-menu ul li:nth-child(1) { animation-delay: 0.12s; }
.side-menu ul li:nth-child(2) { animation-delay: 0.22s; }
.side-menu ul li:nth-child(3) { animation-delay: 0.32s; }
.side-menu ul li:nth-child(4) { animation-delay: 0.42s; }

@keyframes slideInFade {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.side-menu ul li a {
  display: flex;
  align-items: center;
  padding: 14px 25px;
  border-radius: 12px;
  color: #eee;
  text-decoration: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.side-menu ul li a:hover {
  background-color: #ffa500;
  color: #222222;
  transform: translateX(-8px);
  box-shadow: 0 8px 15px rgba(255, 165, 0, 0.6);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.side-menu ul li a:hover .side-icon {
  transform: scale(1.25) rotate(10deg);
  filter: drop-shadow(0 0 5px #ffa500);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Saat aktif */
.side-menu.active {
  right: 0;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.welcome-text {
  text-align: center;
  color: #ffa500;
  font-size: 18px;
  margin: 5px 0 5px; /* margin top agar tidak terlalu mepet header fixed */
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.gray-box {
  background-color: #797777;
  color: #333;
  width: 100%;
  max-width: 700px;
  padding: 5px 0;
  padding-left: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px; /* jarak antara gambar dan box oranye */
}

/* gambar di kiri */
.box-img {
  height: 25px; /* sesuaikan tinggi */
  width: auto;
  border-radius: 5px;
  flex-shrink: 0; /* supaya ukuran gambar tidak menyusut */
}

/* box oranye di kanan gambar */
.orange-box {
  background-color: #ffa500;
  color: white;
  padding: 5px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  font-weight: bold;
  flex-grow: 1;
  overflow: hidden;      /* sembunyikan teks yang keluar box */
  white-space: nowrap;   /* supaya teks tidak wrap ke baris baru */
  position: relative;
}

.orange-box span {
  display: inline-block;
  padding-left: 100%;  /* mulai dari luar kanan */
  animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Untuk struktur layout sticky footer */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Footer styling */
.main-footer {
  background-color: #222;
  color: #ccc;
  padding: 20px 10px 10px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
}

.footer-section p {
  max-width: 300px;
  margin: 0 auto;
  font-size: 13px;
  color: #aaa;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-links a {
  color: #ffa500;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-card {
  background: linear-gradient(135deg, #ff9900, #ffcc66);
  color: white;
  text-decoration: none;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-cardsc {
  background: linear-gradient(135deg, #ff9900, #ffcc66);
  color: white;
  text-decoration: none;
  padding: 30px 20px;
  width: 320px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.menu-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.menu-title {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark-box {
  background-color: #2c2c2c;
  color: #fff;
  padding: 90px 20px 10px 20px;
  margin: 20px auto;
  width: 83%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.app-info {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
}

.circle-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.app-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-name {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.app-size {
  margin: 2px 0 0;
  font-size: 14px;
  color: #ccc;
}

.app-second-name {
  margin-top: -20px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 14px;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lottie-icon {
  width: 30px;
  height: 30px;
  margin: -10px;
}

.app-third-name {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: normal;
  margin-top: 0px;
  margin-top: -15px;
}

.lottie-icon2 {
  width: 56px;
  height: 56px;
  margin-left: -22px;
  margin-right: -24px;
}

.app-third-telegram {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: normal;
  color: inherit;
  margin-top: -15px;
}

.contact-label {
  font-weight: bold;
  text-decoration: none !important;
  color: inherit;
}

.app-third-telegram a {
  font-weight: normal !important;
  text-decoration: underline;
  color: #0088cc; /* warna biru Telegram */
}
.lottie-icontelegram {
  width: 56px;
  height: 56px;
  margin-left: -22px;
  margin-right: -24px;
}

.app-third-nameswitch {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 16px;
  margin-left: 15px;
}

.lottie-iconswitch {
  width: 25px;
  height: 26px;
  margin-left: -22px;
  margin-right: -5px;
}

.lottie-iconnote {
  width: 37px;
  height: 37px;
  margin-left: -13px;
  margin-right: -15px;
}

.quote-box {
  position: relative;
  background-color: rgba(255, 165, 0, 0.1); /* orange transparan */
  border-radius: 6px;
  margin-top: -17px;
  padding: 0px 10px 0px 5px;
  color: #fff;
}

.quote-boxakhir {
  position: relative;
  background-color: rgba(255, 165, 0, 0.1); /* orange transparan */
  border-radius: 6px;
  margin-top: -17px;
  padding: 0px 10px 0px 5px;
  color: #fff;
  margin-bottom: 9px;
}

.quote-boxnote {
  position: relative;
  background-color: rgba(255, 165, 0, 0.1); /* orange transparan */
  border-radius: 6px;
  margin-top: -17px;
  padding: 0px 10px 0px 5px;
  color: #fff;
  margin-top: -6px;
}

.quote-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background-color: #ffa500;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.quote-content {
  display: flex;
  flex-direction: column;
  gap: 0; /* hilangkan jarak antar quote-item */
}

.quote-content p {
  padding: 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.quote-item {
  display: flex;
  align-items: center;
  padding: 0;
}

.quote-contentnote p {
  padding: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  font-style: italic;
}

.quote-itemnote {
  display: flex;
  align-items: center;
  padding: 5px;
}

.quote-item + .quote-item {
  margin-top: -16px; /* semakin negatif, semakin rapat */
}

.lottie-iconos {
  width: 33px;
  height: 33px;
  transform: scaleX(-1); /* Membalik horizontal */
}

.download-button-container {
  margin-top: -10px;
  text-align: center;
}

.download-button {
  background-color: #ffa500;
  color: #2c2c2c;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
}

.download-button:hover {
  background-color: #ff8c00;
  transform: scale(1.05);
  color: white;
}

.paused {
  pointer-events: none;
  opacity: 0.4;
}

.like-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  background-color: #444;
  padding: 6px;
  border-radius: 50%; /* awal bulat */
  width: 35px;  /* ukuran bulat awal */
  height: 35px;
  cursor: pointer;
  transition:
    width 0.4s ease,
    border-radius 0.4s ease,
    background-color 0.3s;
  overflow: hidden;
}

.like-container.liked {
  width: 60px; /* melebar */
  border-radius: 30px; /* jadi kapsul */
  padding: 6px 10px;
  background-color: #666;
}

.like-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: margin-right 0.3s ease;
}

.like-container.liked .like-icon {
  margin-right: 8px; /* beri jarak ke angka saat melebar */
}

.like-count {
  font-size: 14px;
  font-weight: bold;
  color: #ffa500;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* supaya gak diklik */
  white-space: nowrap;
}

.like-count.visible {
  opacity: 1;
  transform: translateX(0);
}

.hidden {
  display: none;
}

.dark-boxthumb {
  background-color: #2c2c2c;
  color: #fff;
  padding: 0 20px 12px 17px;
  margin: 20px auto;
  width: 83%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  overflow: hidden;
}

.thumbnail-img {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: 0;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.content-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.lottie-iconthumb {
  width: 30px;
  height: 30px;
  margin: -10px;
}

.judul-bold {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.quote-boxthumb {
  position: relative;
  background-color: rgba(255, 165, 0, 0.1); /* orange transparan */
  border-radius: 6px;
  margin-top: -17px;
  padding: 0px 10px 0px 5px;
  color: #fff;
}

.quote-boxinfo {
  position: relative;
  background-color: rgba(255, 165, 0, 0.1); /* orange transparan */
  border-radius: 6px;
  margin-top: -17px;
  padding: 0px 10px 0px 5px;
  color: #fff;
  margin-bottom: 10px;
}

.download-area {
  position: relative;
  display: flex;
  justify-content: center; /* tombol download tetap di tengah */
  align-items: center;
  margin-top: -10px;
}

/* Like di kiri mutlak (tidak mengganggu layout) */
.like-containerthumb {
  position: absolute;
  left: 0;
  margin-left: -5px;
  display: flex;
  align-items: center;
  background-color: #444;
  padding: 6px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition:
    width 0.4s ease,
    border-radius 0.4s ease,
    background-color 0.3s;
  overflow: hidden;
}

.like-containerthumb.liked {
  width: 60px;
  border-radius: 30px;
  padding: 6px 10px;
  background-color: #666;
}

.like-iconthumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: margin-right 0.3s ease;
}

.like-containerthumb.liked .like-iconthumb {
  margin-right: 8px;
}

.like-countthumb {
  font-size: 14px;
  font-weight: bold;
  color: #ffa500;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.like-countthumb.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Agar tombol tetap di tengah */
.download-center {
  text-align: center;
}