/* ============================================================
   video-page.css — ZonaBokep24 Video Detail Page
   ============================================================ */

/* ── CSS Variables (dark/light theme) ─────────────────────── */
:root,
[data-theme="dark"] {
  --bg-primary:      #0f0f0f;
  --bg-secondary:    #1a1a1a;
  --bg-tertiary:     #242424;
  --bg-card:         #1e1e1e;
  --bg-hover:        #2a2a2a;
  --border:          #2e2e2e;
  --border-light:    #333;
  --text-primary:    #e8e8e8;
  --text-secondary:  #aaa;
  --text-muted:      #666;
  --accent:          #e53935;
  --accent-hover:    #ef5350;
  --accent-blue:     #60a5fa;
  --accent-green:    #22c55e;
  --accent-orange:   #f59e0b;
  --share-fb:        #1877f2;
  --share-wa:        #25d366;
  --share-tw:        #1da1f2;
  --share-rd:        #ff4500;
  --share-tg:        #0088cc;
  --share-gm:       #ea4335;
  --navbar-bg:       #141414;
  --subnav-bg:       #181818;
  --dropdown-bg:     #1e1e1e;
  --thumb-bg:        #1c1c1c;
  --radius:          8px;
  --radius-sm:       6px;
  --radius-lg:       12px;
  --shadow:          0 4px 20px rgba(0,0,0,.5);
  --shadow-card:     0 2px 12px rgba(0,0,0,.4);
  --transition:      .2s ease;
}

[data-theme="light"] {
  --bg-primary:      #f5f5f5;
  --bg-secondary:    #fff;
  --bg-tertiary:     #ebebeb;
  --bg-card:         #fff;
  --bg-hover:        #f0f0f0;
  --border:          #e0e0e0;
  --border-light:    #ddd;
  --text-primary:    #111;
  --text-secondary:  #555;
  --text-muted:      #999;
  --navbar-bg:       #1a1a1a;
  --subnav-bg:       #222;
  --dropdown-bg:     #fff;
  --thumb-bg:        #e0e0e0;
  --shadow:          0 4px 20px rgba(0,0,0,.12);
  --shadow-card:     0 2px 8px rgba(0,0,0,.1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navbar ────────────────────────────────────────────────── */
/* .navbar, .navbar-inner, .logo, .age-badge, .search-wrap, .nav-actions,
   .nav-btn, .theme-toggle, .btn-upload, .dropdown-panel sudah didefinisikan
   di style.css (fixed navbar, sama seperti index.php). Tidak didefinisikan
   ulang di sini agar tampilan navbar video page identik & sejajar dengan
   index (Filter / Kategori / Genre / Upload). Aksen warna tetap merah lewat
   override --accent di :root file ini. */

/* ── Subnav Sort Bar ──────────────────────────────────────────
   Bar kedua (Trending / Terbaru / dst) ditempel fixed tepat di bawah
   navbar utama (yang fixed, tinggi 60px dari style.css). */
.subnav-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--subnav-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-bar::-webkit-scrollbar { display: none; }
.subnav-inner {
  display: flex;
  align-items: center;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 2px;
}
.subnav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.subnav-item:hover,
.subnav-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.subnav-item i { font-size: 12px; }

/* Sembunyikan subnav (Trending/Terbaru/dst) di tampilan mobile, sama seperti
   .subnav pada halaman index. */
@media (max-width: 768px) {
  .subnav-bar { display: none; }
  .vp-wrap { margin-top: 60px; }
}

/* .mobile-icon-bar, .mob-icon-btn, .mob-hamburger, .hamburger-line sudah
   didefinisikan di style.css agar tampilan mobile konsisten dengan index. */

/* Mobile Search Overlay */
.mob-search-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1998;
}
.mob-search-overlay.open { display: block; }
.mob-search-modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1999;
  background: var(--navbar-bg);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mob-search-modal.open { display: block; animation: slideDown .2s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.mob-search-form { display: flex; align-items: center; gap: 8px; }
.mob-search-back {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 16px; border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}
.mob-search-form input {
  flex: 1; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-primary);
  font-size: 14px; outline: none;
}
.mob-search-go {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: 14px;
}

/* Mobile Bottom Sheets */
.mob-sheet-overlay, .mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000;
}
.mob-sheet-overlay.open, .mobile-menu-overlay.open { display: block; }
.mob-sheet {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2001;
  background: var(--bg-secondary); border-radius: 16px 16px 0 0;
  padding: 12px 16px 32px; max-height: 70vh; overflow-y: auto;
}
.mob-sheet.open { display: block; animation: sheetUp .25s ease; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.mob-sheet-handle {
  width: 40px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 0 auto 12px; cursor: pointer;
}
.mob-sheet-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; padding: 0 4px; }
.mob-sheet-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; color: var(--text-primary); font-size: 14px;
  border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.mob-sheet-item:last-child { border: none; }
.mob-sheet-item:hover { background: var(--bg-hover); border-radius: var(--radius-sm); }
.mob-sheet-emoji { font-size: 18px; width: 28px; text-align: center; }

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 90vw);
  background: var(--bg-secondary); z-index: 2001; overflow-y: auto;
  border-left: 1px solid var(--border);
}
.mobile-menu-drawer.open { display: block; animation: drawerIn .25s ease; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--navbar-bg); position: sticky; top: 0;
}
.mobile-menu-title { font-size: 15px; font-weight: 700; color: #fff; }
.mobile-menu-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 15px; border-radius: var(--radius-sm);
}
.mobile-menu-close:hover { background: var(--bg-tertiary); color: #fff; }
.mobile-menu-body { padding: 8px 0 32px; }
.mobile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; color: var(--text-primary); font-size: 14px;
  transition: background var(--transition);
}
.mobile-menu-item:hover { background: var(--bg-hover); }
.mobile-menu-item--muted { color: var(--text-muted); font-size: 13px; }
.mobile-menu-section-title {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px;
  padding: 14px 18px 6px;
}
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu-theme { display: flex; gap: 8px; padding: 6px 18px 12px; }
.mobile-theme-btn {
  flex: 1; padding: 8px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--transition);
}
.mobile-theme-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Main Layout (2 kolom: main + sidebar) ────────────────── */
.vp-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  max-width: 1560px;
  margin: 102px auto 0;
  padding: 20px 16px;
  align-items: start;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.vp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.vp-breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.vp-breadcrumb a:hover { color: var(--accent); }
.vp-breadcrumb .sep { color: var(--border-light); }
.vp-breadcrumb-current { color: var(--text-secondary); }

/* ── Video Title ─────────────────────────────────────────────── */
.vp-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* ── Player ─────────────────────────────────────────────────── */
.vp-player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.7);
}
.embed-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.embed-wrap iframe,
.embed-wrap video,
.embed-wrap > * {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
}
.embed-no-video {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.embed-no-video i { font-size: 48px; color: var(--border-light); }

/* ── Action Bar (Download + Report) ────────────────────────── */
.vp-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 2px;
}
.vp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.vp-action-download {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.vp-action-download:hover:not(.disabled) {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}
.vp-action-download.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.vp-action-report {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-left: auto;
}
.vp-action-report:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(229,57,53,.08);
}

/* ── Meta Bar (Views + Like) ────────────────────────────────── */
.vp-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.vp-views-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}
.vp-sep { color: var(--border-light); font-size: 18px; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all .25s ease;
  cursor: pointer;
}
.like-btn:hover {
  background: rgba(229,57,53,.12);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.04);
}
.like-btn.liked {
  background: rgba(229,57,53,.15);
  border-color: var(--accent);
  color: var(--accent);
}
.like-btn i { transition: transform .2s; }
.like-btn:active i { transform: scale(1.4); }

/* ── Share Section ──────────────────────────────────────────── */
.share-section {
  margin-bottom: 16px;
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn span { font-size: 13px; }
.share-btn.fb  { background: var(--share-fb); }
.share-btn.wa  { background: var(--share-wa); }
.share-btn.tw  { background: var(--share-tw); }
.share-btn.rd  { background: var(--share-rd); }
.share-btn.tg  { background: var(--share-tg); }
.share-btn.gm  { background: var(--share-gm); }

/* ── Info Table ─────────────────────────────────────────────── */
.vp-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.vp-info-table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.vp-info-table tr:last-child { border-bottom: none; }
.vp-info-table tr:hover { background: var(--bg-hover); }
.vp-info-table td {
  padding: 11px 14px;
  vertical-align: top;
  font-size: 13px;
}
.vp-info-table td:first-child {
  width: 140px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.vp-info-table td:last-child { color: var(--text-primary); }
.vp-info-table i { margin-right: 6px; color: var(--accent); font-size: 12px; }
.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 3px 2px 0;
  transition: all var(--transition);
}
.tag-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-link i { font-size: 10px; }

/* ── Comments Section ────────────────────────────────────────── */
.vp-comments {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
.vp-comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.comment-count-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.comment-list { padding: 0; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.comment-item:last-child { border-bottom: none; }
.comment-item:hover { background: var(--bg-hover); }
.comment-avatar {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-avatar-placeholder {
  width: 38px; height: 38px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}
.comment-body-wrap { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}
.comment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.comment-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}
.no-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}
.no-comments i { font-size: 36px; opacity: .4; }
.no-comments p { font-size: 13px; }

/* Comment Form */
.comment-form-wrap {
  border-top: 1px solid var(--border);
  background: var(--bg-tertiary);
  padding: 16px;
}
.comment-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.comment-form-inner { display: flex; flex-direction: column; gap: 8px; }
.comment-form-inner input,
.comment-form-inner textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.comment-form-inner input:focus,
.comment-form-inner textarea:focus { border-color: var(--accent); }
.comment-form-inner input::placeholder,
.comment-form-inner textarea::placeholder { color: var(--text-muted); }
.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comment-char-count { font-size: 11px; color: var(--text-muted); }
.btn-submit-comment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit-comment:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-submit-comment:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── RIGHT SIDEBAR ──────────────────────────────────────────── */
.vp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 78px;
}
.trending-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.trending-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
  letter-spacing: .3px;
}
.trending-section-header i { color: var(--accent); font-size: 12px; }
.trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-hover); }
.trending-thumb {
  position: relative;
  width: 110px;
  min-width: 110px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--thumb-bg);
  flex-shrink: 0;
}
.trending-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.trending-item:hover .trending-thumb img { transform: scale(1.05); }
.trending-thumb-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 20px;
}
.t-dur {
  position: absolute;
  bottom: 3px; right: 4px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}
.trending-info { flex: 1; min-width: 0; }
.t-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.t-views {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Related Videos Section ─────────────────────────────────── */
.related-section {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.related-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.related-section-title i { color: var(--accent); }
.related-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 30px;
  border: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ── Video Card ─────────────────────────────────────────────── */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  border-color: var(--accent);
}
.thumb-wrap {
  position: relative;
  padding-top: 56.25%;
  background: var(--thumb-bg);
  overflow: hidden;
}
.thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.video-card:hover .thumb-wrap img { transform: scale(1.06); }
.no-thumb {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 24px;
}
.dur-badge {
  position: absolute;
  bottom: 5px; right: 6px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.video-card:hover .card-play-overlay { opacity: 1; }
.card-play-overlay i {
  width: 44px; height: 44px;
  background: rgba(229,57,53,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  padding-left: 3px;
}
.card-body { padding: 10px 10px 12px; flex: 1; }
.card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.card-stats i { font-size: 10px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  margin-top: 8px;
}
.footer-inner { max-width: 1560px; margin: 0 auto; }
.footer-desc-block {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 18px;
  text-align: center;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 14px;
}
.footer-links-row a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links-row a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Scroll to Top Button ────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 24px; right: 20px;
  width: 42px; height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
#scrollTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scrollTop:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ── Utility ─────────────────────────────────────────────────── */
/* .desktop-only & .mobile-only TIDAK didefinisikan ulang di sini.
   .nav-actions, .search-wrap, .age-badge memakai class "desktop-only" juga,
   dan butuh display flex/inline-flex masing-masing dari style.css.
   Kalau ".desktop-only{display:block}" ditulis di sini, ia menang (loaded
   setelah style.css, spesifisitas sama) dan merusak .nav-actions menjadi
   block -> Filter/Kategori/Genre/Upload jatuh ke bawah satu per satu dan
   meluber keluar navbar. Show/hide desktop vs mobile sudah ditangani oleh
   style.css lewat @media + !important pada breakpoint 768px. */

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Tablet ≤ 1200px */
@media (max-width: 1200px) {
  .vp-wrap {
    grid-template-columns: 1fr 300px;
    gap: 16px;
  }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .trending-thumb { width: 90px; min-width: 90px; height: 56px; }
}

/* Tablet ≤ 900px — stack layout */
@media (max-width: 900px) {
  .vp-wrap {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 10px;
  }
  .vp-sidebar {
    position: static;
    margin-top: 20px;
  }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .related-section { padding: 0 10px 30px; }
}

/* Navbar -> mobile icon bar switch, samakan dengan breakpoint style.css (768px) */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-icon-bar { display: flex !important; }
  .search-wrap { display: none !important; }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  .vp-title { font-size: 15px; }
  .share-row { gap: 6px; }
  .share-btn { padding: 7px 10px; font-size: 12px; }
  .share-btn span { display: none; }
  .vp-info-table td:first-child { width: 100px; font-size: 12px; }
  .vp-info-table td { padding: 9px 10px; font-size: 12px; }
  .vp-action-bar { gap: 8px; }
  .vp-action-btn { padding: 8px 12px; font-size: 12px; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-title { font-size: 12px; }
  .card-stats { gap: 6px; }
  .subnav-item { padding: 8px 10px; font-size: 12px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   FIX-UP: Rapikan tampilan halaman video (player/info/sidebar) — konsisten
   dengan halaman index, tanpa mengubah markup.
   ════════════════════════════════════════════════════════════════════════════ */

/* Main layout: kasih jarak yang lebih konsisten dengan index */
.vp-wrap { gap: 24px; }

.vp-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vp-main .vp-breadcrumb,
.vp-main .vp-title { margin-bottom: 0; }

/* Player: jaga rasio 16:9 tetap rapi & ada jarak bawah ke action bar */
.vp-player-wrap { margin-bottom: 0; }
.embed-no-video {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  text-align: center;
  padding: 0 16px;
}
.embed-no-video i { font-size: 36px; opacity: .5; }
.embed-no-video p { font-size: 13px; margin: 0; }

/* Action bar, meta bar, share section: spacing konsisten */
.vp-action-bar,
.vp-meta-bar,
.share-section,
.vp-info-table {
  margin: 0;
}

/* Sidebar: rapikan jarak antar blok trending agar sejajar dengan main */
.vp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Tablet/Mobile cleanup ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vp-wrap { gap: 18px; padding: 14px 14px 24px; }
  .vp-sidebar { gap: 14px; }
}

@media (max-width: 640px) {
  .vp-wrap { padding: 12px 12px 20px; }
  .vp-main { gap: 14px; }
  .vp-breadcrumb { font-size: 11px; }
  .vp-action-bar { flex-wrap: wrap; }
  .vp-action-btn { flex: 1; justify-content: center; text-align: center; }
  .vp-meta-bar { flex-wrap: wrap; gap: 8px 14px; }
  .share-section { overflow-x: auto; }
  .share-row { flex-wrap: nowrap; }
}