/* ==================== VIDEO PAGE (show.php) ==================== */
.videoplayer {
  max-width: 900px;
  margin: 0 auto;
}
/* =========================================================
   PLAYER IFRAME CONTAINER
   ========================================================= */
.videoplayer-embed {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.videoplayer-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* =========================================================
   TITLE
   ========================================================= */
.videoplayer .h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}
.videoplayer .xsmall {
  font-size: 13px;
  color: #8890AE;
}
/* =========================================================
   DOWNLOAD BUTTON
   ========================================================= */
.download .btn-gradient,
.btn-gradient.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    #4949E7 0%,
    #51E3C0 100%
  );
  color: #fff;
  transition: all 0.25s ease;
}
.download .btn-gradient:hover,
.btn-gradient.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}
.download .btn-gradient svg {
  flex-shrink: 0;
}
/* =========================================================
   MAIN BLOCK
   ========================================================= */
.block {
  margin-top: 10px;
  background: #131A2B;
  border-radius: 12px;
  padding: 40px;
  border: none;
}
/* =========================================================
   DOWNLOAD MODAL
   ========================================================= */
#modal-download .modal-content {
  background: #1C263E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
#modal-download .modal-header {
  border-bottom: none;
}
#modal-download .modal-title {
  color: #fff;
  font-weight: 600;
}
#modal-download .btn-close {
  filter: invert(1);
}
#modal-download .btn-dark {
  display: flex;
  align-items: center;
  background: #121B30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.2s ease;
}
#modal-download .btn-dark:hover {
  background: #1A243D;
  border-color: rgba(73, 73, 231, 0.4);
}
#modal-download .btn-dark b {
  font-size: 15px;
}
#modal-download .btn-dark .small {
  margin-left: auto;
  white-space: nowrap;
}
/* =========================================================
   =========================================================
   TABS
   ONLY THIS SECTION CONTROLS THE TABS
   =========================================================
   ========================================================= */


/* ===== Desktop (keeps the look you already like) ===== */
.nav.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}
.nav.tabs li {
  list-style: none;
}
.nav.tabs .nav-link {
  display: block;
  padding: .75rem 2rem;
  font-size: 14px;
  font-weight: 500;
  color: #8890AE;
  border-radius: 8px;
  background: transparent;                 /* inactive = no gradient */
  border: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 2px #36405A;
  margin-bottom: .25rem;
  margin-right: .5rem;
  text-align: center;
  white-space: nowrap;
}
.nav.tabs .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav.tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, #4949E7 0%, #51E3C0 100%);
  box-shadow: none;
}

/* ===== Mobile – exact same layout as your "want" image ===== */
@media (max-width: 767px) {          /* wider breakpoint so it catches more phones */
  .nav.tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }
  .nav.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  /* 1st = Download Link → full width */
  .nav.tabs li:nth-child(1) {
    grid-column: 1 / -1;
  }
  /* 2nd + 3rd = Forum Code + HTML Code → side by side */
  .nav.tabs li:nth-child(2),
  .nav.tabs li:nth-child(3) {
    grid-column: auto;
  }
  /* 4th = Embed Code → full width */
  .nav.tabs li:nth-child(4) {
    grid-column: 1 / -1;
  }
  .nav.tabs .nav-link {
    margin: 0 !important;
    padding: .75rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* Tab content */
.tab-content .form-control {
  background: #1C263E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  resize: none;
}
.tab-content .form-control:focus {
  background: #1C263E;
  border-color: #4949E7;
  color: #fff;
  box-shadow: none;
}

/* Embed size – already side-by-side, just keep it clean */
#iew, #ieh {
  background: #1C263E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-align: center;
  width: 80px;
  min-width: 70px;
  display: inline-block;
  vertical-align: middle;
}