.tt-btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  justify-content: flex-start;
  margin-bottom: 10px; 
}

.tt-btn {
  flex: 1 1 calc(20% - 10px); 
  min-width: 80px;
  padding: 8px;
  font-size: clamp(12px, 1.5vw, 14px);
  border: 2px solid #2f2e2e;
  background: #3f3e3e;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* 3 per row on small screens */
@media (max-width: 600px) {
  .tt-btn {
    flex: 1 1 calc(33.33% - 10px);
    margin-top:10px;
  }
}

/* 2 per row on very small screens */
@media (max-width: 400px) {
  .tt-btn {
    flex: 1 1 calc(50% - 10px);
    margin-top:10px;
  }
}


.progress-container {
  position: relative;
  width: 100%;
  height: 16px;
}

.buffer-bar {
  position: absolute;
  top: 5px;
  left: 0;
  height: 6px;
  width: 0%;
  background: #1877F2;
  border-radius: 3px;
  z-index: 0;
}

.progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1877F2;
  position: relative;
  z-index: 1;
  border-radius: 3px;
  cursor: pointer;
}

/* WebKit (Chrome, Safari) */
.progress-bar::-webkit-slider-runnable-track {
  height: 6px;
  background: #a9a9a9;
  border-radius: 3px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0px;
  height: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Firefox */
.progress-bar::-moz-range-track {
  height: 6px;
  background: #d3d3d3; /* fallback */
  border-radius: 3px;
}

.progress-bar::-moz-range-progress {
  background: linear-gradient(
    to right,
    #f5f5f5 0%, 
    #d3d3d3 25%,
    #a9a9a9 50%,
    #f5deb3 75%,
    #f0e68c 100%
  );
  height: 6px;
  border-radius: 3px;
}

.progress-bar::-moz-range-thumb {
  width: 0;
  height: 6px;
  background: transparent;
  border: none;
}


/* Tooltip */
.time-tooltip {
  position: absolute;
  bottom: 120%;
  background: orange;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  display: none;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

  .modal {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: 95vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .modal.active {
    display: flex;
  }

  .modal-content {
    background: #1c1e21;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .modal-header {
    background: #18191a;
    padding: 20px 24px 10px;
    border-bottom: 2px solid #3c3c3c;
    z-index: 2;
  }

  .modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 100;
    color: #b0b3b8;
  }

  .modal-header h4 {
    margin: 0;
    font-weight: 350;
    font-size: 14px;
    color: #b0b3b8;
  }

  .modal-body {
     flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  padding-bottom: 80px; /* space for footer */
  scrollbar-width: thin;
  scrollbar-color: #555 #2a2a2a;
  }

  /* Scrollbar styling unchanged */
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.modal-footer {
  background-color: #121212;
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end
  bottom:30px;
  gap: 10px;
  border-top: 1px solid #666;
  margin-top: auto; /* push footer down */
  border-radius: 0 0 8px 8px; /* rounded bottom corners */
}

  .xi-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: 600;
  }

  .xi-btn-primary {
    background-color: #1877f2;
    color: white;
    border: 1px solid #1877f2;
  }

  .xi-btn-primary:hover {
    background-color: #145dbf;
    border-color: #145dbf;
  }

  .xi-btn-secondary {
    background-color: #e4e6eb;
    color: #050505;
    border: 1px solid #ccd0d5;
  }

  .xi-btn-secondary:hover {
    background-color: #d8dadf;
  }

  .close-modal {
    background: transparent;
    color: #b0b3b8;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
  }

  .close-modal:hover {
    color: #1877f2;
  }

  @media (max-width: 480px) {
    .modal-content {
      width: 95%;
      height: 90vh;
    }

    .modal-header,
    .modal-footer {
      padding: 16px;
    }

    .modal-body {
      padding: 16px;
    }
  }




.ad-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  background: #3f3e3e;
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto; /* Enables vertical scroll if content exceeds height */
}

.ad-box1 {
  background: #1c1c1c;
  border: 1px solid #363636;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ad-sponsor-label {
  font-size: 11px;
  color: #888;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}