/* =========================================================
   BASE STYLE
   ========================================================= */
body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

h1 {
  margin-bottom: 10px;
}

h2 {
  margin: 30px 0 12px;
}


/* =========================================================
   HEADER (GLASS + STICKY)
   ========================================================= */
.top-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 14px 8px;

  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: transform .4s ease, opacity .4s ease;
}

/* Header disembunyikan saat scroll */
.top-header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

/* Baris utama header */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Brand 
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}*/

.site-logo {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 6px rgba(139,92,246,.6));
}

.glow-purple {
  font-size: 18px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8b5cf6;
  text-shadow:
    0 0 4px rgba(139,92,246,.8),
    0 0 12px rgba(124,58,237,.6);
  animation: softGlow 2s ease-in-out infinite alternate;
}

/* Animasi glow judul */
@keyframes softGlow {
  from {
    text-shadow:
      0 0 4px #6d28d9,
      0 0 12px #5b21b6;
  }
  to {
    text-shadow:
      0 0 8px #8b5cf6,
      0 0 18px #7c3aed;
  }
}

/* Search di header */
.header-search {
  flex: 1;
  max-width: 320px;
}

.header-search input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
}


/* =========================================================
   GENRE (TAB & HEADER GENRE)
   ========================================================= */
.genres,
.header-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.genres {
  margin: -15px 0 25px;
}

/* Genre link */
.genres a,
.header-genres a {
  padding: 8px 14px;
  background: #222;
  border-radius: 20px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
}

.genres a:hover,
.header-genres a:hover {
  background: #8b5cf6;
}

.header-genres a.active {
  background: #8b5cf6;
}

/* Header genre scroll horizontal */
.header-genres {
  margin-top: 8px;
  overflow-x: auto;
}

.header-genres::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   HAMBURGER MENU (MOBILE)
   ========================================================= */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}


/* =========================================================
   VIDEO LIST / CARD
   ========================================================= */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  gap: 14px;
}

.video-item {
  text-decoration: none;
  color: #fff;
}

/* Thumbnail */
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.thumb img {
  width: 100%;
  transition: .3s;
}

/* Overlay hover */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: .3s;
}

.overlay .logo {
  width: 60px;
}

.overlay .play {
  font-size: 30px;
}

/* Hover effect */
.video-item:hover .overlay {
  opacity: 1;
}

.video-item:hover img {
  transform: scale(1.05);
}

/* Judul video */
.video-item h4 {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   WATCH PAGE
   ========================================================= */
.video-wrapper {
  aspect-ratio: 16 / 9;
}

video {
  width: 100%;
  height: 100%;
}

.watch-title {
  font-size: 22px;
  font-weight: 600;
  margin: 14px 0 12px;
  color: #eee;
}

/* Video info box */
.video-info {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 8px;
  background: #1a1a1a;
  border-radius: 10px;
}

.video-thumb img {
  width: 110px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}

.meta-row {
  display: flex;
  margin-bottom: 4px;
  font-size: 12px;
}

.meta-row .label {
  width: 90px;
  color: #999;
}

.meta-row .value {
  font-weight: 500;
}


/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a {
  padding: 6px 12px;
  background: #222;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

.pagination a.active {
  background: #8b5cf6;
}

.pagination a:hover {
  background: #333;
}


/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 40px;
  padding: 15px 10px;
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #222;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .glow-purple {
    font-size: 18px;
  }

  h2 {
    font-size: 18px;
  }

  .header-genres {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15,15,15,.95);
    flex-direction: column;
  }

  .header-genres.show {
    display: flex;
  }

  .watch-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {

  .glow-purple {
    font-size: 16px;
  }

  .watch-title {
    font-size: 16px;
  }

  .video-item h4 {
    font-size: 11px;
  }
}

/* =========================================================
   Featured Slider
   ========================================================= */
.featured-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.featured-slider .video-item {
  width: 260px;
  flex-shrink: 0;
}
.slider {
  scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
  display: none;
}

/* ========================= */
/* WATCH – RELATED VIDEO */
/* ========================= */
@media (max-width: 600px) {

  .related-videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .related-videos .video-item h4 {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 6px;
  }

  .related-videos .thumb {
    border-radius: 6px;
  }

  .related-videos .overlay .logo {
    width: 40px;
  }
}

/* =========================================================
   Download Button
   ========================================================= */
.download-row {
  margin-top: 15px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg,#7c3aed,#9333ea);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.download-btn img {
  width: 22px;
  height: 22px;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(147,51,234,.6);
}
.video-thumb {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-thumb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg,#7c3aed,#9333ea);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.25s;
}

.download-thumb-btn img {
  width: 20px;
  height: 20px;
}

.download-thumb-btn {
  padding: 8px 15px; /* atas-bawah | kiri-kanan */
}

/* =========================================================
 marquee warning watch
   ========================================================= */
  .marquee {
  width: 100vw;
  height: 100px;          
  display: flex;
  align-items: center;   
  justify-content: center;
  background: #000;
}
.marquee h3 {
  margin: 0;          
  line-height: 1.2;  
}
.marquee {
  height: 30px;  
}
.marquee h3 {
  font-weight: bold;
  animation: marquee 12s linear infinite, rgbGlow 4s linear infinite;
}
@keyframes rgbGlow {
  0% { text-shadow: 0 0 10px red; color: red; }
  33% { text-shadow: 0 0 10px lime; color: lime; }
  66% { text-shadow: 0 0 10px cyan; color: cyan; }
  100% { text-shadow: 0 0 10px red; color: red; }
}

@media (max-width:600px){
  .btn-group{
    flex-direction:column;
    align-items:center;
  }
}

/* ================================
   VIDEO DESCRIPTION BOX
================================ */
.video-description {
  max-width: 1200px;
  margin: 15px auto 25px;
  padding: 15px;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(140, 0, 255, 0.2);
}

.video-description h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #c77dff;
}

.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  white-space: normal;
}

/* =========================================================

   ========================================================= */