/* 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;
}


.diviatv-container {
  background-color: #2e2e2e;
  color: white;
  padding: 30px;
  overflow: hidden;
}

.diviatv-header-container {
  width: 90%;
  max-width: 1300px;
  padding: 0 40px;
  margin: 0 auto 50px;
}


.diviatv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 400;
}

.diviatv-header h2 {
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 400;
  font-size: 20px;
}

.diviatv-header a {
  font-family: 'SF Pro Rounded', sans-serif;
  font-weight: 400;
  display: block;
  text-align: right;
  margin-top: 8px;
  text-decoration: none;
  font-size: 13.75px;
  color: #FFFFFF;
  transition: color 0.3s;
}

.garis-kombo-slid {
  height: 2px;
  width: 100%;
  margin-top: 5px;
  background: linear-gradient(to right, #046049 4%, #ccc 4%);
  margin-bottom: 30px;
}

.diviatv-view-more {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.diviatv-slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1280px; /* atau sesuai 4 item */
  margin: 0 auto;
}


.diviatv-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 10px;
  will-change: transform;
  padding: 5px 0;
  margin-top: 30px;
}

.diviatv-thumb-wrapper {
  position: relative;
  padding-top: 70%; /* 16:9 */
  overflow: hidden;
}

.diviatv-thumb-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* SLIDE */
.diviatv-slide {
  flex: 0 0 25%;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.9);
  opacity: 0.3;
  margin-left: 10px;
  margin-right: 10px;
}


.diviatv-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}


.diviatv-slide.active-left {
  transform: scale(1.1);
  opacity: 1;
  z-index: 4;
}

.diviatv-slide.active-right {
  transform: scale(0.9);
  opacity: 0.8;
  z-index: 3;
}

.diviatv-slide.fade-left,
.diviatv-slide.fade-right {
  transform: scale(0.8);
  opacity: 0.3;
  z-index: 2;
}

/* OVERLAY */
.diviatv-overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  color: white;
}

.diviatv-info-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;
}

.diviatv-icon {
  margin-right: 6px;
  vertical-align: middle;
}



.diviatv-category {
  background: #7a003c;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
}

.diviatv-date{
background-color: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
padding: 3px 8px;
gap: 6px;
  white-space: nowrap;
}

.diviatv-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transition: transform 0.3s ease, background 0.3s ease;
}

.diviatv-play-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

.diviatv-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 20px;
  width: 100%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
}

.diviatv-title {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 8px 12px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  z-index: 3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.diviatv-info-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  padding: 20px 14px 14px;
  box-sizing: border-box;
  z-index: 2;
}

.diviatv-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  max-height: 3.6em; /* untuk 2 baris */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}



/* NAV */
.diviatv-nav {
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

/* GRADIENT FADE KIRI-KANAN */
.diviatv-slider-wrapper::before,
.diviatv-slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.diviatv-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #2e2e2e 0%, transparent 100%);
}

.diviatv-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #2e2e2e 0%, transparent 100%);
}

.diviatv-clone {
  opacity: 0; /* optional: hide clones if needed */
}


.diviatv-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 0 20px;
  position: relative;
}

.diviatv-nav {
  margin-top:85px;
  color: white;
  font-size: 22px;
  width: 35px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diviatv-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.diviatv-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
}

.diviatv-pagination-bullet {
  margin-top:97px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0.5px solid white;
  background: transparent;
  transition: all 0.3s ease;
}

.diviatv-pagination-bullet.active {
  background: white;
}



@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ==================== RESPONSIVE ==================== */

/* Desktop (≥ 1200px) → 4 item default */
.diviatv-slide {
  flex: 0 0 25%; /* 4 slides */
}

/* Large Tablet (≤ 992px) → 3 item */
@media (max-width: 992px) {
  .diviatv-slide {
    flex: 0 0 33.33%;
  }
  .diviatv-play-button {
    width: 50px;
    height: 50px;
  }
  .diviatv-title {
    font-size: 14px;
  }
}

/* Tablet / Small Laptop (≤ 768px) → 2 item */
@media (max-width: 768px) {
  .diviatv-slide {
    flex: 0 0 48%;
  }
  .diviatv-play-button {
    width: 45px;
    height: 45px;
  }
  .diviatv-title {
    font-size: 13px;
  }
  .diviatv-info-top {
    font-size: 9px;
    padding: 6px 10px;
  }
}

/* Mobile (≤ 480px) → 1 item full width */
/* ==================== FULL-WIDTH MOBILE SLIDER ==================== */
@media (max-width: 480px) {
.diviatv-slider-wrapper {
  overflow: clip;
}

.diviatv-header-container {
  width: 100%;
  max-width: 1500px;
  margin: 0;
}

.diviatv-header {
    margin-top: 10px;
    padding-bottom: 0;
}

  .diviatv-container {
    padding: 0;
}

  .diviatv-slide {
    flex: 0 0 100%;
    margin-left: 5px;
    margin-right: 5px;
    transform: scale(0.95);
    opacity: 0.6;
  }

  .diviatv-slide.active-left,
  .diviatv-slide.active-right {
    transform: scale(0.9);
    opacity: 0.5;
  }

  .diviatv-slide.active {
    transform: scale(1);
    opacity: 1;
    z-index: 4;
  }

  .diviatv-slider {
    gap: 8px;
  }

  .diviatv-play-button {
    width: 40px;
    height: 40px;
  }

  .diviatv-title {
    font-size: 12px;
    padding: 6px 8px;
  }

  .diviatv-info-top {
    font-size: 8px;
    padding: 4px 8px;
  }

  .diviatv-slider-wrapper::before,
  .diviatv-slider-wrapper::after {
    width: 30px; /* gradient fade lebih ramping */
  }
}


/* Optional: kurangi gap di mobile supaya scroll lebih nyaman */
@media (max-width: 768px) {
  .diviatv-slider {
    gap: 8px;
  }
}
