/* ============================================================
   PLAY PICTURES – SIMPLES, CLEAN & LIQUID GLASS STYLESHEET
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --primary: #a855f7;
  --primary-hover: #c084fc;
  --secondary: #6366f1;
  --bg-gradient: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #0f0f16 50%, #020617 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-color: rgba(168, 85, 247, 0.15);
}

body {
  font-family: 'Outfit', sans-serif;
  background: #0b0a12;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background blob dekoratif untuk Liquid Glass */
body::before, body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  animation: floatBlobs 12s infinite alternate ease-in-out;
}
body::before {
  background: var(--primary);
  top: 10%;
  left: -50px;
}
body::after {
  background: var(--secondary);
  bottom: 15%;
  right: -50px;
  animation-delay: -6s;
}

@keyframes floatBlobs {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.15); }
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* ── Layout Wrapper ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 12, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  height: 68px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(11, 10, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.navbar .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
  transition: transform 0.3s ease;
}
.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.05);
}
.logo-name {
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(90deg, #f3e8ff, #c084fc, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.logo-sub { font-size: 0.62rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Search Box */
.search-box {
  flex: 1;
  max-width: 420px;
  position: relative;
  margin-left: 20px;
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.85rem; pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s;
}
.search-box input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--glow-color);
}
.search-box input::placeholder { color: var(--text-muted); opacity: 0.6; }
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.search-clear.show { opacity: 1; pointer-events: all; }
.search-clear:hover { color: #fff; }

/* Nav Right */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.back-btn {
  font-size: 0.8rem; color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: #fff;
}

/* Buttons (Liquid Glass Style) */
.btn-login {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}
.btn-login-sm {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  font-size: 0.76rem; font-weight: 600; color: #fff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.btn-logout {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  font-size: 0.74rem; color: var(--text-muted);
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

/* User Info */
.user-info {
  display: flex; align-items: center; gap: 10px;
}
.user-info img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.user-info span { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════
   CHANNEL BAR (Home Only)
   ═══════════════════════════════════ */
.channel-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 30px 0;
  margin-top: 15px;
  border-radius: 24px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--card-shadow);
}
.channel-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.channel-avatar-wrap { flex-shrink: 0; }
.ch-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 20px var(--glow-color);
}
.channel-detail { flex: 1; min-width: 0; }
.ch-name { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.ch-stats { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 400; }

/* Subscribe Button */
.btn-subscribe {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}
.btn-subscribe.subscribed {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.btn-subscribe.subscribed:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

/* ═══════════════════════════════════
   MAIN CONTENT (Home)
   ═══════════════════════════════════ */
.main-content { padding: 40px 0 80px; }

/* Tab Bar (Liquid Glass Nav) */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 24px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: 16px 16px 0 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.02); }
.tab-btn.active {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Video Card (Liquid Glass style) */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--card-shadow);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
}
.card-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #000;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-thumb img { transform: scale(1.06); }
.card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 10, 18, 0.4);
  opacity: 0; transition: all 0.3s;
}
.card:hover .card-play { opacity: 1; }
.card-play-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s;
}
.card:hover .card-play-icon { transform: scale(1); }
.card-duration {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(11, 10, 18, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 0.68rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
}
.card-info { padding: 16px; }
.card-title {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.card:hover .card-title { color: var(--primary-hover); }
.card-meta {
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; gap: 12px; flex-wrap: wrap;
  font-weight: 500;
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
  min-height: 240px;
  border-radius: 18px;
}

/* Load More Button */
.load-more-wrap { text-align: center; margin-top: 40px; }
.btn-loadmore {
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-loadmore:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Message Box */
.msg-box {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.8;
  backdrop-filter: blur(10px);
}
.msg-box strong { color: var(--primary-hover); }

/* ═══════════════════════════════════
   VIDEO PAGE
   ═══════════════════════════════════ */
.video-page-main { padding: 30px 0 80px; }
.video-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* Player */
.player-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.1);
  border: 1px solid var(--glass-border);
}
#ytPlayerTarget {
  width: 100% !important;
  height: 100% !important;
  position: absolute; inset: 0;
}
#ytPlayerTarget iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}
.player-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--text-muted); font-size: 0.85rem;
  background: #0b0a12;
}
.spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,0.05);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Card Umum Video Page (Liquid Glass style) */
.vinfo-card,
.channel-mini-card,
.nav-videos-card,
.desc-card,
.comment-form-card,
.comments-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

/* Navigasi Video Sebelumnya / Selanjutnya */
.nav-videos-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
}
@media (max-width: 600px) {
  .nav-videos-card {
    grid-template-columns: 1fr;
  }
}
.nav-video-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 0; /* Agar teks memotong dengan baik */
}
.nav-video-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.nav-video-btn.next {
  text-align: right;
  justify-content: flex-end;
  margin-left: auto;
  width: 100%;
}
.nav-video-btn.prev {
  text-align: left;
  justify-content: flex-start;
  margin-right: auto;
  width: 100%;
}
.nav-video-btn i {
  font-size: 1rem;
  color: var(--primary-hover);
  flex-shrink: 0;
}
.nav-video-thumb {
  width: 64px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
  display: none; /* di-set block via JS setelah load */
}
.nav-btn-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.nav-title-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  line-height: 1.3;
}

/* Link Part & Badge di Deskripsi */
.part-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-hover);
  transition: all 0.2s;
  margin: 2px 4px;
}
.part-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.part-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.v-title {
  font-size: 1.25rem; font-weight: 800; color: #fff;
  line-height: 1.4; margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.v-stats {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}
.v-stats span { display: inline-flex; align-items: center; gap: 6px; }

/* Actions Buttons */
.v-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  transition: all 0.3s;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}
.action-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--primary);
  color: var(--primary-hover);
}
.btn-sub {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--primary-hover);
}
.btn-sub:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: var(--primary);
}
.btn-sub.subscribed {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-color: var(--glass-border);
}
.btn-sub.subscribed:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}
.yt-open {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.yt-open:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

/* Login Hint Box */
.login-hint {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px; padding: 12px 18px;
  font-size: 0.8rem; color: #d8b4fe;
  margin-top: 14px;
}
.login-hint span { display: inline-flex; align-items: center; gap: 8px; }

/* Channel Mini */
.channel-mini-card {
  display: flex; align-items: center; gap: 16px;
}
.ch-mini-avatar {
  width: 52px; height: 52px;
  border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--primary);
  background: rgba(255,255,255,0.05);
}
.ch-mini-info { flex: 1; min-width: 0; }
.ch-mini-name { font-size: 0.95rem; font-weight: 700; color: #fff; }
.ch-mini-subs { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.btn-sub-mini { padding: 8px 18px; font-size: 0.78rem; border-radius: 18px; }

/* Description Card */
.desc-text {
  font-size: 0.86rem; color: #cbd5e1; line-height: 1.8;
  word-break: break-word;
}
.desc-text.short { max-height: 85px; overflow: hidden; }
.desc-toggle {
  color: var(--primary-hover); font-size: 0.8rem; font-weight: 700;
  margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; transition: 0.2s;
}
.desc-toggle:hover { color: #fff; }

/* Comments and forms */
.comment-form-card h3 {
  font-size: 0.98rem; font-weight: 700; color: #fff; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.comment-login-msg { font-size: 0.85rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.comment-input-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.comment-own-avatar {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary); flex-shrink: 0;
}
.comment-input-row textarea {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: all 0.3s;
}
.comment-input-row textarea:focus { border-color: var(--primary); background: rgba(0,0,0,0.3); }
.comment-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-ghost-sm {
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 600;
  transition: 0.2s;
}
.btn-ghost-sm:hover { border-color: var(--primary); color: #fff; background: rgba(255,255,255,0.02); }
.btn-primary-sm {
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.comments-card h3 {
  font-size: 0.98rem; font-weight: 700; color: #fff;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.count-badge {
  background: rgba(255,255,255,0.05); color: var(--primary-hover);
  font-size: 0.7rem; padding: 3px 10px; border-radius: 10px;
  font-weight: 700; border: 1px solid var(--glass-border);
}
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item { display: flex; gap: 14px; }
.cmt-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cmt-avatar-fallback {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-name { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; }
.cmt-date { font-size: 0.72rem; color: var(--text-muted); margin-left: 8px; font-weight: 400; }
.cmt-text { font-size: 0.84rem; color: #cbd5e1; line-height: 1.6; word-break: break-word; margin-top: 4px; }
.cmt-likes { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.comment-skeleton {
  height: 64px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
.comment-note {
  font-size: 0.78rem; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--glass-border);
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 4px;
}
.comment-note a { color: var(--primary-hover); font-weight: 600; }

/* Sidebar (Related videos) */
.video-right { position: sticky; top: 88px; }
.sidebar-title {
  font-size: 0.98rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item {
  display: flex; gap: 12px;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.related-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.related-thumb {
  width: 120px; flex-shrink: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-dur {
  position: absolute; bottom: 4px; right: 6px;
  background: rgba(11, 10, 18, 0.85);
  color: #fff; font-size: 0.62rem; font-weight: 600;
  padding: 1px 4px; border-radius: 3px;
}
.related-info { flex: 1; padding: 10px 10px 10px 0; display: flex; flex-direction: column; justify-content: center; }
.related-title {
  font-size: 0.78rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.related-meta { font-size: 0.7rem; color: var(--text-muted); }
.related-skeleton {
  height: 68px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

/* ═══════════════════════════════════
   MODAL (Liquid Glass Modal)
   ═══════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6, 5, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: rgba(20, 18, 33, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-hover);
  border-radius: 24px;
  width: 100%; max-width: 460px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 50px rgba(168, 85, 247, 0.1);
  animation: modalShow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalShow {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.95rem; color: #fff;
  font-weight: 700;
}
.modal-head strong { display: inline-flex; align-items: center; gap: 8px; }
.modal-close {
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.05); border-radius: 50%;
  color: var(--text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  border: 1px solid var(--glass-border);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.modal-body { padding: 24px; }
.share-title-preview {
  font-size: 0.85rem; color: var(--text-primary); font-weight: 500;
  background: rgba(0,0,0,0.25); border-radius: 12px; padding: 12px 16px;
  margin-bottom: 16px; line-height: 1.5;
  border: 1px solid var(--glass-border);
}
.share-link-row { display: flex; gap: 10px; margin-bottom: 18px; }
.share-input {
  flex: 1; padding: 10px 14px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
  border-radius: 12px; color: var(--text-muted);
  font-size: 0.8rem; outline: none; font-family: inherit;
}
.btn-copy {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px; color: #fff;
  font-size: 0.82rem; font-weight: 700;
  transition: opacity 0.2s; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}
.share-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 700; color: #fff;
  transition: opacity 0.2s;
}
.sp-btn:hover { opacity: 0.9; }
.sp-wa { background: #25d366; }
.sp-tw { background: #0f1419; border: 1px solid var(--glass-border); }
.sp-fb { background: #1877f2; }
.sp-tg { background: #2aabee; }
.dl-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.dl-options { display: flex; flex-direction: column; gap: 10px; }
.dl-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
  border-radius: 14px; color: var(--text-primary);
  font-size: 0.86rem; font-weight: 600; transition: all 0.3s;
}
.dl-btn:hover { border-color: var(--primary); color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
  background: rgba(11, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 24px 0;
}
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-wrap strong { color: #fff; }
.yt-link { color: #f87171; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yt-link:hover { text-decoration: underline; color: #fca5a5; }

/* ═══════════════════════════════════
   TOAST
   ═══════════════════════════════════ */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(30px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 12px 28px; border-radius: 25px;
  font-size: 0.86rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 900px) {
  .video-wrap { grid-template-columns: 1fr; }
  .video-right { position: static; }
  .related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .related-item { flex-direction: row; }
  .related-thumb { width: 120px; }
  .related-info { padding: 10px; }
}
@media (max-width: 768px) {
  /* Beri ruang untuk mobile bottom nav */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-nav { display: flex !important; }
}
@media (max-width: 600px) {
  .search-box { max-width: 100%; margin: 0; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .v-actions { gap: 8px; justify-content: space-between; }
  .action-btn { flex: 1; justify-content: center; padding: 10px; font-size: 0.75rem; }
  .logo-sub { display: none; }
  .logo-name { font-size: 1rem; }
  .nav-video-btn { gap: 8px; padding: 8px 10px; }
  .nav-video-thumb { width: 48px; height: 27px; }
  .nav-title-text { font-size: 0.72rem; }
  .related-item { flex-direction: row; }
  .related-thumb { width: 100px; }
  .navbar .wrap { justify-content: space-between; }
}

/* ═══════════════════════════════════
   MOBILE BOTTOM NAVIGATION (Liquid Glass)
   ═══════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  /* Liquid Glass */
  background: rgba(9, 8, 18, 0.55);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(168, 85, 247, 0.12);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

/* Efek garis cahaya di atas nav */
.mobile-bottom-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  pointer-events: none;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 8px 6px;
  border-radius: 16px;
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-width: 60px;
  text-align: center;
}

.mob-nav-item i {
  font-size: 1.2rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.mob-nav-item:hover,
.mob-nav-item.active {
  color: #fff;
}

.mob-nav-item.active {
  color: var(--primary-hover);
}

.mob-nav-item.active i {
  color: var(--primary-hover);
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6));
}

/* Active indicator dot */
.mob-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: navDotPulse 2s infinite;
}

@keyframes navDotPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(0.7); }
}

/* Active background pill */
.mob-nav-item.active .mob-nav-pill {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  pointer-events: none;
}

/* ═══════════════════════════════════
   PROFIL PAGE
   ═══════════════════════════════════ */
.profile-page-main {
  padding: 40px 0 100px;
  min-height: 100vh;
}
.profile-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#0b0a12, #0b0a12) padding-box,
              linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  background-clip: padding-box;
  display: block;
}
.profile-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.profile-name {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(90deg, #f3e8ff, #c084fc, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.profile-desc {
  font-size: 0.85rem; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 20px;
  line-height: 1.7;
}
.profile-stats-row {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.profile-stat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.8rem; color: var(--text-primary);
  font-weight: 600;
}
.profile-stat-chip i { color: var(--primary-hover); font-size: 0.85rem; }
.btn-yt-channel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-radius: 24px;
  font-size: 0.9rem; font-weight: 700; color: #fff;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}
.btn-yt-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.45);
}
.profile-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-info-title {
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.profile-info-title i { color: var(--primary-hover); }
.profile-about-text {
  font-size: 0.85rem; color: #cbd5e1; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
  max-height: 180px; overflow: hidden;
  transition: max-height 0.4s ease;
}
.profile-about-text.expanded { max-height: 2000px; }
.btn-read-more {
  color: var(--primary-hover); font-size: 0.8rem; font-weight: 700;
  margin-top: 10px; display: inline-flex; align-items: center; gap: 4px;
  transition: 0.2s;
}
.btn-read-more:hover { color: #fff; }
.profile-links-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 500px) {
  .profile-links-grid { grid-template-columns: 1fr; }
  .profile-name { font-size: 1.3rem; }
  .profile-hero { padding: 30px 20px; }
}
.profile-link-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.3s;
}
.profile-link-btn:hover {
  border-color: var(--primary);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}
.profile-link-btn i { font-size: 1.3rem; }
.plink-yt i { color: #f87171; }
.plink-ig i { color: #f472b6; }
.plink-wa i { color: #34d399; }
.plink-fb i { color: #60a5fa; }
.plink-label { font-size: 0.7rem; color: var(--text-muted); }

/* Skeleton untuk profil */
.profile-skeleton-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
  margin: 0 auto 20px;
}
.profile-skeleton-line {
  height: 14px; border-radius: 8px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s infinite;
}
