body {
  margin: 0;
  font-family: sans-serif;
  color: #fff;
  background: url('bg.png') repeat center center fixed;
  background-size: cover;
    backdrop-filter: blur(3px); /* Bisa disesuaikan */
  background-color: rgba(0, 0, 0, 0.4); /* Optional: kasih gelap dikit */

}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  
}

.logo {
  height: 40px;
}

.btn-app {
  background: #97b8ff;
  color: rgb(39, 39, 39);
  padding: 6px 15px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.main-content {
  padding: 16px;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: #4ab4de 0px 0px 5px ;
  border-radius: 10px;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details {
  margin-top: 2px;
  padding: 0 4px;
  
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin: 4px 0;
}

.meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.actions button {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Biar semua icon + teks sejajar rapi */
.actions button svg,
.actions button i {
  margin-right: 4px;
}

.comments {
  background: #07001493;
  padding: 12px;
  border-radius: 8px;
    box-shadow: #4ab4de 0px 0px 5px ;

}

.comments-title {
  font-weight: bold;
  margin-bottom: 10px;
    font-size: 12px;
}

.comment-box-scroll {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #2700832f;
  padding: 10px 12px;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease-in;
}

.avatar {
  background: #4ade80;
  color: #000;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-text {
  background: transparent;
  color: #eee;
  font-size: 8px;
  line-height: 1.5;
  max-width: 85%;
  word-break: break-word;
  position: relative;
}
.actions button i {
  color: #ffffff;
}

.actions button:hover {
  color: #fff;
}

.actions button i.fa-thumbs-down {
  color: #999;
}

.actions button i.fa-share-alt {
  color: #4ade80;
}

.actions button i.fa-save {
  color: #60a5fa;
}


.comment-text::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent #222 transparent transparent;
}
.comment:hover {
  background: #1f1f1f;
}

.comment-text::before {
  content: "";
  display: none;
}

.timestamp {
  font-size: 11px;
  color: #888;
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 10px;
}

.comment-form button {
  background: #00014e;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 10px;
}

.footer {
  text-align: center;
  padding: 12px 16px;
  font-size: 10px;
}
.popup-promo {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  position: relative;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  width: 80vw;
  max-width: 350px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.popup-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #ff2d55;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 18px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .details {
    padding: 0 8px;
  }
  .title {
    font-size: 16px;
  }
  .meta {
    font-size: 13px;
  }

  .btn-app {
    font-size: 12px;
    padding: 5px 10px;
  }

  .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .actions button {
    padding: 2px 4px;
    font-size: 13px;
  }
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
    transition: transform 0.2s ease;
  }

  .avatar:hover {
    transform: scale(1.1);
  }

  .comment-text {
    font-size: 13px;
    max-width: calc(100% - 45px);
  }

  .main-content {
    padding: 12px;
  }
}
