/* Regular 400 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* Medium 500 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* Semibold 600 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Bold 700 */
@font-face {
  font-family: 'SF Pro Rounded';
  src: url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* 🌙 DARK MODE untuk DiviPlay & Divia */
.dark-mode {
  background-color: #001919;
  color: #e0e0e0;
}

/* ====== Video Player Main ====== */
.dark-mode .diviplay-transcript {
  background: #0d1a1a;
  border-left: 4px solid #0d7377;
  color: #ddd;
  box-shadow: 0 0 3px rgba(200,200,200,0.3);
}

.dark-mode .diviplay-transcript-toggle {
  background: #0d7377;
}

.dark-mode .diviplay-title {
  color: #fff;
  -webkit-text-stroke: 0.3px #000;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.dark-mode .diviplay-desc {
  color: #ccc;
}

.dark-mode .diviplay-time {
  color: #aaa;
}

.dark-mode .video-action-btn {
  color: #bbb;
}
.dark-mode .video-action-btn:hover {
  color: #fff;
}

/* ====== Sidebar ====== */
.dark-mode .diviplay-sidebar {
  border-left: 1px solid #223333;
}
.dark-mode .diviplay-sidebar-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dark-mode .diviplay-sidebar-date {
  color: #aaa;
}
.dark-mode .diviplay-sidebar-title {
  color: #ddd;
}

/* ====== Share Popup ====== */
.dark-mode .diviplay-share-popup {
  background: #002626;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}
.dark-mode .diviplay-share-popup p {
  color: #ddd;
}
.dark-mode .diviplay-share-options a {
  color: #ccc;
}
.dark-mode .diviplay-share-options a:hover {
  color: #ff6b3b;
}

/* ====== Like / Dislike / Comment Buttons ====== */
.dark-mode .like-btn,
.dark-mode .dislike-btn,
.dark-mode .diviplay-comment-toggle {
  background-color: #002626;
  color: #bbb;
}
.dark-mode .like-btn:hover {
  background-color: #1a3a2d;
}
.dark-mode .dislike-btn:hover {
  background-color: #3a1a1a;
}

/* ====== Tabs (Horizontal) ====== */
.dark-mode .divia-tab-buttons {
  border-bottom: 2px solid #333;
  scrollbar-color: #555 transparent;
}
.dark-mode .tab-btn {
  color: #aaa;
}
.dark-mode .tab-btn:hover {
  color: #fff;
}
.dark-mode .tab-btn.active {
  color: #ff5252;
  border-bottom: 3px solid #ff5252;
}

/* ====== Filter Bar ====== */
.dark-mode .divia-filter-wrapper {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.dark-mode .divia-tabs a {
  color: #ccc;
  background-color: transparent;
}
.dark-mode .divia-tabs a:hover {
  background-color: #003333;
}
.dark-mode .divia-tabs a.active {
  background-color: #0d7377;
  color: #fff;
}
.dark-mode .divia-filter-icon {
  color: #aaa;
}

/* ====== Date Picker ====== */
.dark-mode .divia-date input[type="date"] {
  background: #001919;
  border: 1px solid #444;
  color: #fff;
}
.dark-mode .divia-date button {
  background: #0d7377;
  color: #fff;
}

/* ====== Video Grid & Cards ====== */
.dark-mode .video-card {
  background-color: #001919;
}
.dark-mode .video-thumb {
  background-color: #000;
}
.dark-mode .play-btn {
  background-color: #0d7377;
  color: #fff;
}
.dark-mode .play-btn:hover {
  background-color: #14a098;
}

/* ====== Pagination ====== */
.dark-mode .pagination a {
  background: #003333;
  color: #ccc;
}
.dark-mode .pagination a.active {
  background: #0d7377;
  color: #fff;
}
.dark-mode .divia-spinner {
  color: #aaa;
}


.diviplay-wrapper {
  padding: 0px;
  max-width: 1300px;
  margin: auto;
}

.diviplay-container {
  gap: 17px;
  display: flex;
  font-family: 'Literata', serif;
  margin: 0;
  padding: 0
}

.diviplay-main {
  width: 65%;
}


.diviplay-video-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.diviplay-video-wrapper iframe,
.diviplay-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover; /* Biar isi penuh tapi tetap rasio */
  border: none;
}

.diviplay-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.diviplay-transcript {
  background: #fffdf5;
  padding: 15px 20px;
  border-left: 4px solid #ff6b3b;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
  border-radius: 5px;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

/* Label Colors */

/* Label Colors (utama) */
.diviplay-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #333;
  color: #fff;
  padding: 3px 8px;
  font-family: 'SF Pro Rounded', sans-serif;
  font-size: 16.62px; /* besar */
  font-weight: 500;
  z-index: 2;
}

/* Label khusus sidebar (lebih kecil) */
.diviplay-sidebar-label {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #333;
  color: #fff;
  padding: 2px 6px;
  font-family: 'SF Pro Rounded', sans-serif;
  font-size: 9.86px; /* lebih kecil */
  font-weight: 400;
  z-index: 2;
}


.label-dokumenter        { background-color: #520012; }  /* Ungu tua */
.label-ilm               { background-color: #112250; }  /* Navy */
.label-kesehatan         { background-color: #083A59; }  /* Biru gelap */
.label-varia-padjadjaran { background-color: #4A80D5; }  /* Biru cerah */
.label-berita21          { background-color: #622357; }  /* Orange */
.label-pendidikan        { background-color: #EEA83B; }  /* Kuning emas */
.label-budaya            { background-color: #DE7746; }  /* Merah oranye */
.label-lifestyle         { background-color: #045759; }  /* Tosca tua */
.label-event             { background-color: #622357; }  /* Pink gelap */


.diviplay-title {
  font-size: 24px;
  margin: 10px 0 5px;
  font-family: 'Literata', sans-serif;
  font-weight: 800;
  color: #111;
   text-shadow: 0.5px 0.5px 0 #00000020;
  -webkit-text-stroke: 0.4px black;
}


.diviplay-desc {
  font-family: 'SF Pro Rounded', sans-serif;
  font-size: 14px; /* besar */
  font-weight: 400;
  color: black;
  margin-bottom: 5px;
  line-height: 1.5;
}

.diviplay-time {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.diviplay-icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.diviplay-icons img {
  width: 20px;   /* sesuaikan */
  height: 20px;  /* sesuaikan */
  vertical-align: middle;
  margin-right: 5px;
  cursor: pointer;
}


.diviplay-transcript-toggle{
  background: #045F57;
  color: white;
  padding: 7px 13px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diviplay-transcript {
  margin-top: 15px;
  padding: 15px;
  border: 1px;
  background: transparent;
  display: none;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14.5px;
}


.diviplay-sidebar {
  width: 35%;
  display: flex;
  flex-direction: column;
  padding-right: 5px; /* optional scrollbar spacing */
  max-height: 600px;
  overflow-y: auto;
}

.diviplay-sidebar-item {
   border-bottom: 1px solid rgba(0,0,0,0.07); 
  display: flex;
  gap: 15px;
  cursor: pointer;
  padding: 5px;
}


.diviplay-sidebar-thumb {
  width: 200px;
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.diviplay-sidebar-thumb,
.diviplay-sidebar-thumb img {
  border-radius: 0 !important;
}

.diviplay-sidebar-play {
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: white;
  font-size: 16px;
}

.diviplay-sidebar-info {
  flex: 1;
}

.diviplay-sidebar-title {
  font-family: 'Literata', serif;
  font-size: 13px;
  font-weight: 400;
}

.diviplay-sidebar-date {
  font-size: 11.03px;
  color: black;
  margin-top: 10px;
}

.diviplay-icons .fa {
  cursor: pointer;
}

.diviplay-icons .diviplay-share-menu {
  position: relative;
  display: inline-block;
}

.video-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  padding: 5px;
  transition: color 0.2s;
}

.video-action-btn:hover {
  color: #000;
}


.diviplay-share-menu {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* =============== SHARE POPUP =============== */
.diviplay-share-popup {
  position: absolute;
  top: 40px;
  left: -90px;
  z-index: 99;
  display: none;
  width: 200px;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.diviplay-share-popup p {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* =============== SHARE OPTIONS =============== */
.diviplay-share-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.diviplay-share-options a {
  font-size: 24px;
  color: #333;
  transition: transform 0.2s;
}

.diviplay-share-options a:hover {
  transform: scale(1.2);
  color: #ff6b3b;
}

/* =============== ICON WARNA SESUAI BRAND =============== */
.diviplay-share-options a .fa-facebook {
  color: #1877f2;
}

.diviplay-share-options a .fa-x-twitter {
  color: #000000;
}

.diviplay-share-options a .fa-telegram {
  color: #0088cc;
}

.diviplay-share-options a .fa-whatsapp {
  color: #25d366;
}

.diviplay-share-options a .fa-linkedin {
  color: #0077b5;
}

.diviplay-share-options a .fa-pinterest {
  color: #e60023;
}

.diviplay-share-options a .fa-envelope {
  color: #ea4335;
}

.diviplay-share-options a .fa-link {
  color: #666;
}



#like-dislike-container {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.like-btn, .dislike-btn, .diviplay-comment-toggle {
  font-size: 14px;
  border: none;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  color:grey;
}

.like-btn:hover {
  background-color: #d4f0dc;
}

.dislike-btn:hover {
  background-color: #f9d1d1;
}


/* =========================
   DIVIA TABS HORIZONTAL
   ========================= */

/* Container tab */
.divia-tabs-container {
    margin-bottom: 30px;
}

/* Tab button wrapper */
.divia-tab-buttons {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.divia-tab-buttons::-webkit-scrollbar {
    height: 6px;
}

.divia-tab-buttons::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

/* Tab buttons */
.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    font-weight: 600;
    color: #e60023; /* warna merah branding Divia */
    border-bottom: 3px solid #e60023;
}

/* Tab content */
.divia-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-in-out;
}

.divia-tab-content.active {
    display: block;
}

/* Animasi fade tab */
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



/* ================= RESPONSIVE ================= */


/* Tablet landscape & bawahnya */
@media (max-width: 1024px) {
  .diviplay-container {
    gap: 12px;
    align-items: stretch; /* biar main & sidebar sama tinggi */
  }

  .diviplay-main {
    width: 65%;
  }

  .diviplay-sidebar {
    width: 35%;
    overflow-y: auto;
  }

  /* Thumbnail fix ukuran */
  .diviplay-sidebar-thumb {
    width: 150px;
    height: 90px;
    flex-shrink: 0;
  }

  /* Judul max 2 baris + ellipsis */
  .diviplay-sidebar-title {
    font-family: 'Literata', serif;
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .diviplay-title {
    font-size: 15px;
  }

  .diviplay-desc {
    font-size: 13px;
  }
}

/* Tablet portrait & HP besar */
@media (max-width: 768px) {
  .diviplay-container {
    flex-direction: column;
  }

  .diviplay-main,
  .diviplay-sidebar {
    width: 100%;
  }

  .diviplay-sidebar {
    max-height: none; /* biar scroll ikut panjang konten */
    padding-right: 0;
    margin-top: 15px;
  }

  .diviplay-sidebar-item {
    gap: 10px;
  }

.diviplay-icons {
    position: relative; /* anchor */
  }

  #comment-section {
    position: absolute;
    top: 800px;   /* nempel pas di bawah icon bar */
    left: 0;
    width: 100%;
    max-height: 200px; /* <= atur tinggi sesuai kebutuhan */
    overflow-y: auto;  /* biar bisa discroll kalau komen banyak */
    background: #fff;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 12px;
    border-radius: 8px;
  }
}

/* HP kecil (<= 480px) */
@media (max-width: 480px) {
  .diviplay-container {
    gap: 8px;
  }

  .diviplay-title {
    font-size: 16px;
  }

  .diviplay-desc {
    font-size: 12px;
  }

  .diviplay-icons {
    gap: 8px;
    font-size: 12px;
  }

  .diviplay-sidebar-thumb {
    width: 120px;
    height: 80px;
  }

  .diviplay-sidebar-title {
    font-size: 11px;
  }

  .diviplay-sidebar-date {
    font-size: 10px;
  }

  .comment-title {
    font-size: 16px;
  }

  .comment-form textarea {
    font-size: 13px;
  }

  .comment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}























/* Font & Reset */
.divia-container {
  padding: 30px 20px;
  max-width: 1300px;
  margin: 0 auto;
}


/* FILTER BAR */
/* Wrapper: kasih garis atas dan bawah */
.divia-filter-wrapper {
  border-top: 1px solid #d4d4d4;   /* lebih tipis */
  border-bottom: 1px solid #d4d4d4;
  padding: 20px 0;
  margin: 30px 0;
}

/* Main filter layout */
.divia-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

/* Tabs container */
.divia-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Individual tab */
.divia-tabs a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.divia-tabs a.active {
  background-color: #014D4F;
  color: white;
}

.divia-tabs a:hover {
  background-color: #eeeeee;
}

/* Filter icon */
.divia-filter-icon {
   margin-left: 10px;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* DATE PICKER */
.divia-date {
  margin: 20px 0;
}

.divia-date form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divia-date input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.divia-date button {
  background-color: #014D4F;
  color: white;
  border: none;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* VIDEO CARD */
.video-card {
  background-color: #000;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  background-color: #111;
  
  overflow: hidden;
}

.video-thumb::before,
.video-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 30%; /* ✅ 30% tinggi gambar */
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  z-index: 1;
}

.video-thumb::after {
  top: auto;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.video-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-meta,
.play-btn {
  position: relative;
  z-index: 3; 
}

/* META ATAS */
.metaa-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: white;
  flex-wrap: wrap;
  gap: 5px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  z-index: 3;
}


.metaa-left {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.metaa-left span {
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.metaa-top .durasi {
  background-color: #000;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
}


.metaa-top span {
  color:white;
  padding: 3px 8px;
  margin-right: 4px;
  white-space: nowrap;
}

.metaa-top .label {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
}

/* Label Styles */
.label.label-event              { background-color: #622357; }     /* Pink */
.label.label-kesehatan          { background-color: #083A59; }  /* Blue */
.label.label-lifestyle          { background-color: #045759; }  /* Teal */
.label.label-budaya             { background-color: #DE7746; }     /* Orange Red */
.label.label-ilm                { background-color: #112250; }         /* Navy */
.label.label-dokumenter         { background-color: #520012; }    /* Purple */
.label.label-pendidikan         { background-color: #EEA83B; } /* Yellow/Gold */
.label.label-variapadjadjaran  { background-color: #4A80D5; }  /* Biru cerah */
.label.label-berita21           { background-color: #622357; }  /* Orange */

.metaa-top .durasi {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #000;
  padding: 2px 6px;
  font-size: 12px;
}

/* PLAY BUTTON */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: #000;
  padding: 12px 14px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.play-btn:hover {
  background-color: #e0e0e0;
}

/* META BAWAH */
.video-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 20px 14px 8px; /* top kanan bawah kiri */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 40px;
}

.video-meta .judul {
  font-family: 'Literata', serif;
  font-size: 12.05px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word;
}


.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a.active {
  background: #333;
  color: #fff;
  font-weight: bold;
}

/* Untuk animasi smooth */
#video-list {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Optional: Tambahkan spinner agar loading lebih cantik */
.divia-spinner {
  text-align: center;
  padding: 20px;
  font-size: 24px;
  color: #666;
}

/* ================= RESPONSIVE ================= */


/* Mobile filter lebih kecil & rapet */
@media (max-width: 768px) {
  .divia-filter-wrapper {
    padding: 10px 0;
    margin: 15px 0;
  }

  .divia-tabs {
    gap: 6px;                /* jarak antar tab lebih rapet */
    justify-content: flex-start; /* biar mulai dari kiri */
    flex-wrap: wrap;         /* kalau nggak muat bisa turun */
  }

  .divia-tabs a {
    font-size: 11px;         /* kecilin font */
    padding: 5px 10px;       /* kecilin padding */
  }

  .divia-filter-icon {
    font-size: 16px;         /* kecilin icon juga */
    margin-left: 6px;
  }
}
