/* ==========================
   BASE
========================== */
body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: #eaeaea; /* gelap untuk konten */
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

a{
    color: #333;
}

a:hover{
    color: #000;
}
/* ==========================
   NAVBAR ATAS FIXED - DARK PURPLE
========================== */
.navbar-light.fixed-top {
    background-color: #2e003e; /* warna dari file */
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 1100;
}

.navbar-light .navbar-brand img {
    height: 40px;
    transition: transform 0.2s;
}

.navbar-light .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #ddd;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-size: 12px;
    margin-left: 15px;
}

.navbar-nav .nav-link:hover {
    color: #ffffff; /* aksen hover */
}

.navbar-nav .nav-link.text-danger {
    color: #ff4d4f; /* merah LIVE */
    font-weight: 600;
}

.navbar-nav .nav-link.text-danger:hover {
    color: #ff6b6b; /* merah LIVE */
}

/* ==========================
   BOTTOM NAVBAR FIXED DARK PURPLE
========================== */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ededed;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2); /* shadow lebih ringan */
    z-index: 1100;
}


.bottom-nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 8px 20px;
    list-style: none;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #21934e;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.bottom-nav-item a i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav-item.active a{
    color: #14532d;
}
.bottom-nav-item a:hover {
    color: #14532d;
}

.bottom-nav-item-live a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #f65e5e;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.bottom-nav-item-live a:hover {
    color: #f00;
}

.bottom-nav-item-live a i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav-item-live.active a{
    color: #f00;
}


/*.bottom-nav-item a:hover i,
.bottom-nav-item.active a i {
    transform: translateY(-3px);
}*/

/* HIDE ON DESKTOP */
@media (max-width: 992px) {
    body{
        margin-bottom: 70px;
        font-size: 13px;
    }
    .top-navbar {
        display: none;
    }
}

@media (min-width: 992px) {
    .bottom-navbar {
        display: none;
    }
}


/* CARD */
.card{
  background:#fff;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  position:relative; /* penting untuk badge ngambang */
  overflow:hidden;
}
.card-img-top{

  object-fit:cover;
}

/* LIVE / HOST badge ngambang di pojok kanan atas */
.floating-badge{
  position:absolute;
  top:8px;
  right:8px;
  padding:4px 8px;
  border-radius:12px;
  font-size:10px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:6px;
  z-index:10;
}

/* LIVE */
.floating-badge.live{
  background:rgba(220,38,38,0.85); /* merah semi-transparan */
  color:#fff;
}
.floating-badge.live .live-dot{
  width:5px;
  height:5px;
  background:#fff;
  border-radius:50%;
  animation:blink 1.2s infinite;
}
@keyframes blink{
  0%{opacity:1}
  50%{opacity:.25}
  100%{opacity:1}
}

/* HOST */
.floating-badge.host{
  background:rgba(51,65,85,0.85); /* abu gelap semi-transparan */
  color:#fff;
}

.floating-badge.replay{
  background: rgba(30, 144, 255, 0.85); /* biru semi-transparan */
  color: #fff;
}

/* CART ICON tetap pojok kanan atas */
.cart-icon{
  position:absolute;
  top:8px;
  left:8px;
  background:rgba(0,0,0,0.5);
  padding:6px;
  border-radius:50%;
  color:#fff;
  font-size:1rem;
  cursor:pointer;
  transition:transform .2s;
}
.cart-icon:hover{
  transform:scale(1.2);
}

@media (max-width: 992px) {
    .floating-badge{
      position:absolute;
      padding:3px 6px;
      border-radius:12px;
      font-size:10px;
      font-weight:600;
    }
}


/* CATEGORY LIST */
.category-list {
  position: sticky;
  top: 50px; /* tinggi navbar */
  z-index: 1020; /* agar di atas konten */
}

/* Hilangkan scrollbar */
.category-scroll {
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;  /* Firefox */
}
.category-scroll::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

/* Item styling */
.category-item {
    font-size: 13px;
    padding: 12px 7px 10px 7px;
    white-space: nowrap;
    font-weight: 500;
    color: #14532d;
    transition: color 0.2s;
}
.category-item:hover {
  color: #14532d;
}

.category-item .active {
  color: #14532d;
  font-weight: 600;
}

.category-item .active-live {
  color: #f00;
  font-weight: 600;
}

.bg-black{
    background-color: #000;
}

.carousel-inner img {
  display: block;
  width: 100%;
  height: auto; /* otomatis sesuai gambar */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100%, 100%;
}

.carousel-indicators{
    margin-bottom: 0px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 0.7;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #fff;
}

.operator-thumb{
  width:22px;
  height:22px;
  border-radius:50%;
  object-fit:cover;
  margin-right:4px;
  border:1px solid #ddd;
}


/* SCHEDULE BADGE */
.floating-badge.schedule{
    background: rgba(243,156,18,0.85); /* oranye semi-transparan */
    color: #fff;
}
.floating-badge.schedule i{
    font-size: 12px;
}

/* =========================
   Pesan Tidak Ada Video
========================== */
.no-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 20px auto;
}

.no-video-icon {
    font-size: 48px; /* bisa ganti dengan icon lain */
    margin-bottom: 12px;
    color: #888;
    animation: bounce 1.2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-video p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.category-badge {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

/* Schedule */
.category-badge.schedule {
    background-color: #f59e0b; /* kuning/orange */
}

/* Live */
.category-badge.live {
    background-color: #dc2626; /* merah */
}

/* Replay */
.category-badge.replay {
    background-color: #3b82f6; /* biru */
}

.card-body{
    padding: 5px 10px;
}

.comments-modal {
  position: fixed;
  left:0;
  right:0;
  bottom: 63px;
  background:#fff;
  display:flex;
  flex-direction:column;
  border-top-left-radius:12px;
  border-top-right-radius:12px;
  overflow:hidden;
  max-height:0;
  transition: max-height 0.3s ease;
  z-index: 999;
  font-size: 13px;
}

.comments-modal.show {
  overflow: hidden;
}

.live-chat-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: #f8f9fa;
  padding:0.5rem 10px;
  border-bottom:1px solid #ddd;
}

.close-chat {
  font-size:20px; background:none; border:none; cursor:pointer;
}

.comments-full {
  overflow-y:auto;
  flex:1;
  padding:10px;
}

.comment-input-fixed {
  position: sticky;
  bottom:0;
  background:#fff;
  padding:0.5rem 10px;
}

.comment-input-fixed input{
  width:100%;
  padding:0.5rem 10px;
  border-radius:8px;
  border:1px solid #ddd;
  outline:none;
}

/* Container supaya scrollable sesuai video */
.comments-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.title-video{
    font-size: 15px;
}

/* Scrollable komentar desktop */
#commentsDesktop {
  overflow-y: auto;
  flex: 1;
}

/* Input komentar desktop */
.comment-input-fixed input {
  width: 100%;
  padding: 0.5rem 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 13px;
}

/* Container komentar desktop */
.comments-container-desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Scrollable komentar desktop */
.comments-section-desktop {
  overflow-y: auto;
  flex: 1;
  margin-bottom: 60px; /* space untuk input */
}

/* Input komentar desktop */
.comment-input-desktop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 10px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.comment-input-desktop input {
  width: 100%;
  padding: 0.5rem 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 13px;
}

.comment-item {
  background-color: #f1f3f5; /* warna latar komentar */
  padding: 8px 12px;
  margin-bottom: 8px; /* jarak antar komentar */
  border-radius: 10px; /* sudut membulat */
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* bayangan tipis */
}

.comment-item .comment-body p {
  margin: 0;
  font-size: 13px;
  color: #333;
}

.comments-container-desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comments-section-desktop {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 70px; /* space untuk input */
}

/* Styling komentar */
.comment-item {
  background-color: #f8f9fa; /* warna latar ringan */
  padding: 10px 12px;
  margin-bottom: 8px; /* jarak antar komentar */
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* shadow tipis */
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.comment-body p {
  margin: 0;
  font-size: 13px;
  color: #333;
}

/* Input komentar desktop */
.comment-input-desktop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 10px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.comment-input-desktop input {
  width: 100%;
  padding: 0.5rem 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 13px;
}

.match-block {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  margin-bottom: 10px;
}

.match-label {
  font-weight: 600;
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.match-score {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.score-a, .score-b {
  display: inline-block;
  line-height: 1.2;
  font-size: 20px;
}

.score-a { color: #007bff; text-align: center; }
.score-b { color: #dc3545; text-align: center; }

.score-card {
  width: 180px;
  height: 180px;
  border: none;
  border-radius: 50%; /* selalu bulat */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.font-score{
    font-size: 25px;
}

/* Responsive: di mobile buat ukuran lebih kecil tapi tetap bulat */
@media (max-width: 575.98px) {
  .score-card {
    width: 150px;
    height: 150px;
  }

  .font-score{
    font-size: 20px;
  }
}


.video-player { position: relative; }


/* =========================
   DESKTOP COMMENT CONTAINER
========================= */
.comments-container-desktop {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.comments-section-desktop {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.25) transparent;
}

/* =========================
   DESKTOP SCROLLBAR STYLE
========================= */
@media (min-width: 992px) {

  /* Chrome, Edge, Safari */
  .comments-section-desktop::-webkit-scrollbar {
    width: 4px;
  }

  .comments-section-desktop::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0; /* jarak atas bawah */
  }

  .comments-section-desktop::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.35)
    );
    border-radius: 999px;
    transition: background 0.25s ease, width 0.25s ease;
  }

  .comments-section-desktop::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.6)
    );
  }
}

.match-detail-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.match-detail-table thead {
  background: #f8f9fa;
}

.match-detail-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px;
  letter-spacing: .5px;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.match-detail-table tbody td {
  font-size: 13px;
  padding: 10px 6px;
  border-color: #f1f3f5;
}

.match-detail-table tbody tr:hover {
  background-color: #f8f9fa;
}

.match-detail-table td:nth-child(3) {
  font-weight: 700;
}

.match-detail-table td:nth-child(3) .text-primary {
  margin-right: 2px;
}

.match-detail-table td:nth-child(3) .text-danger {
  margin-left: 2px;
}

.chat-empty {
  font-size: 13px;
  opacity: .85;
}


.bg-custom {
  background-color: #14532d;
}
#replayOverlay div {
  transition: transform .2s ease;
}

#replayOverlay:hover div {
  transform: scale(1.1);
}
