/* ============================================================
   WebDew — CSS Clone 1:1 EXACT RetroTube (Optimized Width)
   Sourced from original style.css v1.14.0
   ============================================================ */

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


/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; outline: none; }
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

.hide-on-mobile { display: none !important; }
@media only screen and (min-width: 768px) {
  .hide-on-mobile { display: block !important; }
}


:root {
  --accent:      #FF00C7;
  --bg:          #181818;
  --bg-darker:   #151515;
  --text:        #cccccc;
  --text-white:  #ffffff;
  --border:      #333333;
  --plyr-color-main: var(--accent);
}

/* ── Custom Scrollbar (Desktop Only) ── */
@media only screen and (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #111;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid #111;
  }
  ::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2);
  }
  /* Firefox Support */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #111;
  }
}

/* ── Hide Scrollbar (Mobile) ── */
@media only screen and (max-width: 767.98px) {
  ::-webkit-scrollbar {
    display: none;
    width: 0 !important;
  }
  body, html {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

embed, iframe, object, table, video { max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
img { height: auto; max-width: 100%; border: 0; }

.row { max-width: 100em; margin: 0 auto; position: relative; } /* Corrected max-width 100em & No Padding */
.clear { clear: both; }

/* ── Header ── */
.site-header { background: #222; position: relative; z-index: 1000; }
.site-branding { display: flex; align-items: center; justify-content: space-between; padding: 15px 10px; }

.logo { flex-shrink: 0; }
.site-title {
  margin: 0; font-size: 2.2em; font-weight: 800; color: #fff;
  letter-spacing: -1px; text-transform: none; line-height: 1;
}
.site-title span { color: var(--accent); }

.header-search { flex: 1; max-width: 450px; margin-left: auto; }
#searchform {
  display: flex; background: #282828; border: 1px solid #282828; border-radius: 3px;
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.3), 0 0 5px black inset;
  height: 40px;
}
.input-group-field { 
  flex: 1; background: transparent; border: none; color: #ccc; padding: 0 0.8em; outline: none; 
}
#searchsubmit { 
  background: transparent !important; color: var(--accent); border: none; padding: 0 12px; cursor: pointer;
  font-size: 16px; transition: opacity 0.2s;
}
#searchsubmit:hover { opacity: 0.8; }

/* ── Navigation ── */
#site-navigation {
  background: #222222;
  background: linear-gradient(to bottom, #222222 0%, #333333 50%, #222222 51%, #151515 100%);
  box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.12);
  border-top: 1px solid #3a3a3a;
  min-height: 45px;
}

#head-mobile { display: none; width: 45px; height: 45px; cursor: pointer; position: relative; }
#head-mobile:before {
  content: '\f0c9'; font-family: FontAwesome; color: #fff; font-size: 20px;
  position: absolute; left: 15px; top: 11px;
}

#menu-main-menu { display: flex; list-style: none; justify-content: center; }
#menu-main-menu li a {
  display: block; padding: 12px 20px; font-weight: 600; font-size: 13px;
  text-transform: uppercase; color: #fff; border-right: 1px solid rgba(0,0,0,0.1);
}
#menu-main-menu li.current-menu-item a, 
#menu-main-menu li a:hover {
  background-color: var(--accent) !important;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%) !important;
  box-shadow: inset 0px 0px 2px 0px #000000;
}

/* ── Content ── */
.site-content { padding: 20px 10px; position: relative; }
.content-area { width: 100%; }
#sidebar { width: 100%; }

.page-header { position: relative; margin-bottom: 20px; z-index: 20; }
.widget { position: relative; margin-bottom: 30px; }
.widget-title {
  background: #222; border-bottom: 2px solid var(--accent);
  color: #fff; padding: 10px 15px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 0;
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 6px 0 rgba(0, 0, 0, 0.19);
}

#filters { position: absolute; right: 10px; top: 5px; z-index: 9999 !important; }
.filters-select {
  background: #333; color: #fff; padding: 4px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 700; cursor: pointer; border: 1px solid #444;
  text-transform: uppercase;
}
.filters-select i { color: var(--accent); margin-right: 5px; }

.filters-options {
  display: none; position: absolute; right: 0; top: 100%; width: 150px;
  background: #222; border: 1px solid #333; box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  margin-top: 5px; z-index: 10000 !important;
}
#filters.open .filters-options { display: block; }
.filters-options a {
  display: block; padding: 10px 15px; color: #ccc; font-size: 12px;
  border-bottom: 1px solid #333;
}
.filters-options a:hover { background: #333; color: var(--accent); }

/* ── Pagination ── */
.pagination { margin: 40px 0; text-align: center; width: 100%; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 0; gap: 6px; }
.pagination ul li { margin: 0; }
.pagination ul li a, .pagination ul li span { 
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  background: #222; border: 1px solid #333; 
  color: #bbb; font-size: 14px; font-weight: 700; border-radius: 4px;
  transition: all 0.2s ease-in-out;
}
.pagination ul li.active span { 
  background-color: var(--accent);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  border-color: var(--accent); 
  color: #fff;
  box-shadow: inset 0px 0px 2px 0px #000000;
}
.pagination ul li a:hover { 
  background-color: var(--accent);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  border-color: var(--accent); 
  color: #fff;
  transform: translateY(-2px);
}

/* ── Video Card ── */
.videos-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
article.loop-video { 
  margin-bottom: 0; 
  border-radius: 5px;
  background: transparent;
}

.post-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }

.post-thumbnail-container { width: 100%; height: 100%; transition: transform 0.3s; }
.video-main-thumb { width: 100%; height: 100%; object-fit: cover; }

/* Portrait Thumbnail: Jejer 3 (Repeat-X) — hanya 1 HTTP request, render GPU */
.thumb-portrait {
  width: 100%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}


.post-thumbnail .views, .post-thumbnail .duration {
  position: absolute; bottom: 5px; background: rgba(0,0,0,0.7);
  color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 2px;
}
.post-thumbnail .views { left: 5px; }
.post-thumbnail .duration { right: 5px; }
.post-thumbnail .hd-video {
  position: absolute; top: 5px; right: 5px; background: #FF8A00;
  color: #fff; font-size: 10px; font-weight: 800; padding: 1px 4px; border-radius: 2px; z-index: 2;
}
.video-watermark {
  position: absolute;
  top: 6px;
  left: 6px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  z-index: 5;
  text-transform: none; /* Biar ngga dipaksa huruf besar semua, ngikutin gaya logo */
  letter-spacing: -0.5px;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.video-watermark span { color: var(--accent); }

.entry-header { padding: 8px; min-height: 46px; text-align: center; }
.entry-header span { 
  font-family: 'Outfit', sans-serif; /* Menggunakan font yang lebih menonjol */
  font-size: 13px;                  /* Sedikit lebih besar */
  font-weight: 700;                 /* Lebih tebal */
  color: #ffffff;                   /* Putih bersih agar kontras */
  letter-spacing: 0.3px;            /* Jarak antar huruf lebih renggang agar premium */
  display: block;                   /* Membuang fitur ellipsis (...) */

  height: 36px;                     /* Tinggi pas untuk 2 baris (13px x 1.4 line-height) */
  line-height: 18px;
  overflow: hidden;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: normal;
}




/* ── Detail Page ── */
.breadcrumbs-area { 
  padding: 15px 0; 
  margin-bottom: 25px; 
}
#breadcrumbs { 
  background: #252525; /* Background yang lebih menonjol */
  border: 1px solid #333;
  border-left: 4px solid var(--accent); /* Aksen pink lebih tebal */
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  
  font-size: 12px; color: #888; 
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px;
  line-height: 1.6;
}
#breadcrumbs a { color: #fff; font-weight: 600; }
#breadcrumbs i { font-size: 10px; color: #777; }
#breadcrumbs .last { color: var(--accent); font-weight: 800; }




.video-player-container { 
  width: 100%; 
  margin-bottom: 20px; 
}

.responsive-player { 
  position: relative; 
  width: 100%; 
  height: 0;
  padding-bottom: 56.25%; /* Reservasi area 16:9 (Anti-Blink) */
  background: #000; 
  border-radius: 4px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Memastikan Plyr mengisi kotak reservasi dengan sempurna */
.responsive-player .plyr, 
.responsive-player iframe, 
.responsive-player video { 
  position: absolute !important; 
  top: 0; 
  left: 0; 
  width: 100% !important; 
  height: 100% !important; 
}



.player-dummy-label {
  position: absolute; 
  top: 10px; 
  left: 10px; 
  background: rgba(0,0,0,0.8); 
  color: #00ff00; 
  padding: 2px 8px; 
  font-size: 10px; 
  font-family: monospace; 
  z-index: 10;
}

.title-block { 
  background: #222; padding: 15px; border-bottom: 2px solid var(--accent);
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.12); margin-bottom: 20px;
}
.entry-title { font-size: 1.25em; color: #fff; margin-bottom: 15px; }

.tab-content { background: #222; padding: 20px; border-top: 1px solid #333; }
#rating-col { padding: 15px; background: #1a1a1a; border-bottom: 1px solid #222; }
#video-views { 
  display: inline-flex;
  align-items: center;
  background: #252525;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid #333;
  font-size: 13px; 
  color: #888; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  margin-bottom: 5px;
}
#video-views i { color: var(--accent); margin-right: 10px; font-size: 16px; }
#video-views .count { 
  color: #fff; 
  font-weight: 800; 
  font-size: 16px; 
  margin-right: 5px; 
  letter-spacing: 0.5px; /* Memberi ruang antar angka/huruf */
}

#video-about { width: 100%; }
.video-description { color: #bbb; font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
#video-author, #video-date { font-size: 12px; margin-bottom: 5px; color: #888; }
#video-author .label, #video-date .label { font-weight: 700; color: #aaa; margin-right: 10px; }
#video-author .value, #video-date .value { color: var(--accent); }

.tags { margin-top: 20px; border-top: 1px solid #333; padding-top: 20px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Styling Label Tag & Category agar lebih 'Clickable' */
.tags-list .label {
  display: inline-block;
  background: #252525;
  color: #ccc;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #333;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: capitalize;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tags-list .label:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 199, 0.3);
}

.tags-list .label i {
  margin-right: 6px;
  font-size: 10px;
  opacity: 0.9;
}

/* ── Back to Top ── */
#back-to-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  width: 45px; height: 45px; background: #333; color: #fff;
  display: none; align-items: center; justify-content: center;
  border-radius: 3px; border: 1px solid #444;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
#back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-5px); }
#back-to-top i { font-size: 18px; }

/* ── Footer ── */
.site-footer { 
  background: #111; color: #777; padding: 25px 0; border-top: 2px solid #222; margin-top: 20px;
}
.site-info { text-align: center; }
.footer-branding { 
  font-size: 1.5em; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -1px;
}
.footer-branding span { color: var(--accent); }
.site-info p { font-size: 12px; }

/* ── UI Components ── */
.btn-gradient {
  display: inline-block;
  background-color: var(--accent) !important;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 70%) !important;
  color: #fff !important;
  padding: 12px 30px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0px 0px 2px 0px #000000, 0 4px 8px rgba(0,0,0,0.4);
  cursor: pointer;
}
.btn-gradient:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: inset 0px 0px 2px 0px #000000, 0 8px 20px rgba(255, 0, 199, 0.5);
}

/* ── Mobile ── */
@media only screen and (max-width: 767.98px) {
  .site-header { padding: 18px 0 10px; }
  .site-branding { display: block; padding: 0 10px; } /* Matches 10px padding of target */
  .logo { text-align: left; padding-right: 50px; }
  .site-title { font-size: 1.8em; }
  .header-search { width: 100%; margin-top: 25px; }
  
  #site-navigation { 
    position: absolute; top: 5px; right: 10px; background: transparent; 
    box-shadow: none; border: 0; z-index: 99999 !important;
  }
  #head-mobile { display: block; }
  #menu-main-menu { 
    display: none; flex-direction: column; width: 200px; position: absolute; top: 45px; right: 0; 
    background: #151515; border: 1px solid #333; z-index: 10001 !important;
  }
  #menu-main-menu.open { display: flex; }

  .videos-list { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .site-content { padding: 10px 5px; display: flex; flex-direction: column; } 

  /* ── Card Count Limit (Mobile) ── */
  /* Latest/Search: show 16, hide card 17+ */
  .latest-videos   .videos-list .loop-video:nth-child(n+17) { display: none; }
  /* Trending: show 14, hide card 15+ */
  .trending-videos .videos-list .loop-video:nth-child(n+15) { display: none; }
  /* Category & Tag: show 14, hide card 15+ */
  .category-videos .videos-list .loop-video:nth-child(n+15) { display: none; }
  /* Random (empty state): show 12, hide card 13+ */
  .random-videos   .videos-list .loop-video:nth-child(n+13) { display: none; }
  /* Related: 10 same on both, no rule needed */
}

/* ── Desktop Sidebar Layout (min-width: 768px) ── */
@media only screen and (min-width: 768px) {
  .site-content.row { display: flex; gap: 25px; align-items: flex-start; }
  #primary.with-sidebar-right { width: 73.5%; flex-shrink: 0; }
  #sidebar.with-sidebar-right { width: 25%; flex-shrink: 0; }
  
  /* Adjust Sidebar Grid to 2 columns */
  #sidebar .videos-list { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  #sidebar .widget-title { font-size: 13px; padding: 8px 12px; }
  
  /* Sidebar responsive adjustment for small desktop */
  @media (max-width: 1100px) {
    .site-content.row { gap: 15px; }
    #primary.with-sidebar-right { width: 68%; }
    #sidebar.with-sidebar-right { width: 30%; }
  }

  /* ── Desktop Video Card Title Tidy up ── */
  .entry-header { 
    padding: 10px 5px; 
  }
  .entry-header span {
    height: 36px;               /* Consistent with base */
    line-height: 18px;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }


  /* Desktop Modern Hover Effects (Optimized for Performance) */
  article.loop-video {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    will-change: transform, box-shadow; /* Memberitahu browser untuk optimasi GPU */
  }
  article.loop-video:hover { 
    background-color: #222;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    border-color: #333;
    z-index: 10;
  }
  article.loop-video:hover .entry-header span { color: var(--accent); }
}

/* Custom Social Bar (Fake Notification) */
.sys-social-container {
  position: fixed; /* Sticky overlay - stays on screen while scrolling */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDown 0.4s ease-out;
}

.sys-social-popup {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sys-msg-header {
  background: #f0f2f5;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.sys-msg-title {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.sys-msg-close {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #888;
  line-height: 1;
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.sys-social-popup:hover .sys-msg-close {
  opacity: 1;
}

.sys-social-popup {
  cursor: pointer;
}

.sys-msg-body {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
  flex: 1; /* Body stretches to fill remaining height */
}

.sys-msg-body:hover {
  background: #f9f9f9;
}

.sys-msg-avatar {
  position: relative;
  margin-right: 14px;
  flex-shrink: 0;
}

.sys-msg-avatar img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.sys-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #25D366;
  border: 2px solid #fff;
  border-radius: 50%;
}

.sys-msg-text {
  flex: 1;
}

.sys-msg-text strong {
  display: block;
  font-size: 15px;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.4;
}

.sys-msg-text p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.sys-cta-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.sys-cta-green {
  background: #25D366;
  color: #fff;
}

.sys-cta-red {
  background: #ff3300;
  color: #fff;
}

.sys-cta-blue {
  background: #0088cc;
  color: #fff;
}

/* === MOBILE: Fixed overlay covering 70% screen height === */
@media (max-width: 767px) {
  .sys-social-container {
    top: 56px; /* Below header bar */
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  .sys-social-popup {
    height: 34vh; /* Two bars will total ~70vh including gap */
  }
  
  .sys-msg-close {
    animation: showCloseMobile 0.5s ease 3s forwards;
  }
}

@keyframes showCloseMobile {
  to { opacity: 1; }
}

/* === DESKTOP: Fixed, right side covering sidebar === */
@media (min-width: 768px) {
  .sys-social-container {
    top: 20px;
    right: 15px;
    width: 320px;
  }
}



