
/* ================================
   VIDEO PLAYER PRO - MEDIA NKBT
   ================================ */

:root {
  --bg:#deedffbd;
  --card:#e1efff; 
  --text:#0c98cb; 
  --muted:#a1a1a1; 
  --plyr:#e1efff;
  --avatar:#e1efff;
}
*{box-sizing:border-box} 

body {
  margin: 0;
  font-family: 'Poppins', 'Montserrat', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 100px; /* sesuaikan dengan tinggi footer */
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  padding: 12px 20px; /* ⬅ bikin header turun & lega */
  background: var(--bg);
  z-index: 2;
}

/* Tambahkan garis premium sebagai pseudo-element */
.header::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, #e0f7ff, #007BFF, #e0f7ff);
  background-size: 600% 600%;
  animation: moveGradient 15s ease infinite;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Animasi gradasi */
@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



.logo {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0c98cb;
  letter-spacing: 1px;
   text-decoration: none; /* hilangkan garis link */
}

.search {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  position: relative; /* parent relative */
}

.search input {
  width: 100%;
  padding: 10px 44px 10px 14px; /* kanan lebih besar buat tombol */
  border: 1px solid #0c98cb;
  border-radius: 20px;
  background: #e1efff;
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
}

.search button {
  position: absolute; /* masuk ke dalam input */
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: #e1efff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  position: relative;
  overflow: hidden; /* penting supaya ripple nggak keluar dari tombol */
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #0c98cb;
  background: linear-gradient(135deg, #e6f4ff, #d0e8ff);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 
    background 0.4s ease, 
    color 0.4s ease, 
    transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #0c98cb, #0077b6);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  animation: glowPulse 1.8s infinite alternate;
}

/* Ripple effect */
.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.btn:active::after {
  width: 300%;
  height: 300%;
  opacity: 1;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.8s ease;
}
.btn:active {
  transform: scale(0.97); /* sedikit mengecil saat ditekan */
}

/* Glow breathing */
@keyframes glowPulse {
  from {
    box-shadow: 
      0 6px 15px rgba(12,152,203,0.5),
      0 0 12px rgba(12,152,203,0.6),
      0 0 25px rgba(12,152,203,0.4);
  }
  to {
    box-shadow: 
      0 6px 20px rgba(12,152,203,0.7),
      0 0 18px rgba(12,152,203,0.8),
      0 0 35px rgba(12,152,203,0.6);
  }
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px;
  padding:16px
}

.card{
  background:var(--card);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 2px 16px rgba(0,0,0,.25)
}

.card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#111
}

.card .meta{padding:10px 12px}

.row{
  display:flex;
  gap:8px;
  align-items:center
}

.badge{
  font-size:12px;
  padding:4px 8px;
  border:1px solid #0c98cb;
  border-radius:999px;
  color:var(--muted)
}

.menu{position:relative}

.menu-panel{
  position:absolute;
  right:0;
  top:48px;
  width:320px;
  background:#e1efff;
  border:1px solid #0c98cb;
  border-radius:16px;
  padding:12px;
  display:none
}

.menu.open .menu-panel{display:block}

.avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  background: var(--avatar);
}

@media (max-width:640px){ .grid{grid-template-columns:1fr 1fr} }

.progress{
  height:10px;
  background:#333;
  border-radius:999px;
  overflow:hidden
}

.progress>div{
  height:100%;
  background:#4ade80;
  width:0%
}

.small{
  font-size:12px;
  color:var(--muted)
}

.link{
  color:#0c98cb;
  text-decoration:none
}

/* --- Skip indicator animasi --- */
.skip-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: bold;
  color: white;
  background: rgb(116 217 247 / 70%);
  padding: 10px 18px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  user-select: none;
}

.skip-indicator.show {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

.skip-indicator.left {
  left: 20%;
}

.skip-indicator.right {
  right: 20%;
}

footer {
  padding: 2px 4px;
  text-align: center;
  font-size: 15px;
  color: #1a4d9e; /* biru teks */
  background: rgba(230, 245, 255, 0.9); /* putih agak biru */
  border-top: 1px solid #cce0ff;
  letter-spacing: 0.5px;

  /* sticky */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;

  /* animasi fade-in */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInFooter 1s ease forwards;
}

/* garis biru di atas footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1a73e8, transparent);
  animation: slideLight 4s linear infinite;
}

/* teks brand */
footer span {
  color: #1a73e8; /* biru Google style */
  font-weight: bold;
  text-shadow: 0 0 6px rgba(26, 115, 232, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer span:hover {
  color: #0b57d0;
  text-shadow: 0 0 12px rgba(26, 115, 232, 0.6);
}

/* ikon sosial */
.footer-social {
  margin-top: 4px;
  display: flex;
  justify-content: space-between; /* 👉 bikin ikon nempel kiri & kanan */
  align-items: center;
  gap: 12px;
  max-width: 260px;   /* biar nggak terlalu kepisah jauh */
  margin-left: auto;
  margin-right: auto;
}

.footer-social a {
  color: #1a73e8;
  font-size: 22px;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.footer-social a:hover {
  color: #0b57d0;
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(26, 115, 232, 0.6);
}

/* animasi cahaya */
@keyframes slideLight {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* animasi fade-in */
@keyframes fadeInFooter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* default (desktop) */
.page-layout {
  max-width: 1100px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 0 10px;
}

/* untuk layar kecil (misalnya < 768px) */
@media (max-width: 768px) {
  .page-layout {
    grid-template-columns: 1fr;   /* jadi 1 kolom */
  }

  .related-list {
    margin-top: 16px;
  }

  .video-container video {
    border-radius: 8px; /* biar ga makan layar penuh */
  }

}


.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1001;
    max-width: 320px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
  }
  .overlay.show {
    display: block;
  }

  .popup button {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
  }


/* Overlay premium */
.recommendation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(1.05);
  border-radius: 12px;
  z-index: 10;
}

.recommendation-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Grid rekomendasi */
.recommend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 90%;
  max-width: 900px;
}

.recommend-list a {
  display: block;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommend-list a:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

.recommend-list img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.recommend-list span {
  display: block;
  padding: 10px;
  font-weight: 600;
  color: #e0f7ff;
}

.recommend-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 16px; /* sudut melengkung */
  z-index: 99;
}

.recommend-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.recommend-overlay h3 {
  color: #fff;
  margin-bottom: 10px;
}

.recommend-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.rec-item {
  width: 180px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.rec-item:hover {
  transform: scale(1.08);
}

.rec-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

/* === Header animasi muncul dari atas === */
.header {
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Menu panel animasi premium === */
.menu-panel {
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.menu.open .menu-panel {
  transform: translateY(0);
  opacity: 1;
}

/*upload*/

.upload-item {
  padding: 8px 12px;
  background: #1e1e1e;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.upload-info {
  font-size: 14px;
  color: #f1f1f1;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-status {
  font-size: 12px;
  margin-top: 4px;
  color: #bbb;
}

.progress {
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  height: 14px;
  margin: 4px 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress div {
  height: 100%;
  width: 0;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
  animation: progress-stripes 1s linear infinite;
  transition: width 0.3s ease-in-out, background-color 0.3s;
}

@keyframes progress-stripes {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}













/*baru upload*/

.marquee {
  width: 100%;
  overflow: hidden;
  background: #c3dbf7;
  color: #fff;
  font-weight: bold;
  padding: 8px 0;
  position: relative;
  text-decoration: none; /* hilangkan garis link */
  display: block;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 27s linear infinite;
  font-size: 19px;
  color: var(--text);
}

/* pause saat hover */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

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

    /* overlay rekomendasi */
    .recommend-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.88);
      color: #fff;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 16px;
      z-index: 1200;
      padding: 18px;
      box-sizing: border-box;
    }
    .recommend-overlay.show { display: flex; }
    .recommend-overlay h3 { margin:0; font-size:20px; }
    .recommend-list { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; max-width:96%; }
    .rec-item { width:170px; background:#fff; color:#111; border-radius:10px; overflow:hidden; text-decoration:none; display:block; box-shadow:0 8px 24px rgba(0,0,0,0.4); }
    .rec-item img{ width:100%; height:100px; object-fit:cover; display:block; }
    .rec-item span{ display:block; padding:8px; font-size:13px; }
    /* skip indicators */
    .skip-indicator { position:absolute; top:50%; transform:translateY(-50%); font-size:26px; padding:8px 14px; border-radius:24px; background:rgba(0,0,0,0.6); color:#fff; opacity:0; transition:opacity .25s, transform .25s; z-index:1100; pointer-events:none; }
    .skip-indicator.show { opacity:1; transform:translateY(-50%) scale(1.05); }
    .skip-indicator.left { left:18%; }
    .skip-indicator.right { right:18%; }
	/* make sure overlay & controls are visible in fullscreen container */
    :fullscreen .recommend-overlay, :-webkit-full-screen .recommend-overlay { display:flex !important; }
    :fullscreen .center-controls, :-webkit-full-screen .center-controls { display:flex !important; }
