/* Inline style blocks from the legacy templates, gathered in one place. */

/* partials/header.php */
.navbar .navbar_left {
  background: #1e1e1e !important;
}
/* Homepage pagination and sort styling - white text */
.pagination > li > a,
.pagination > li > span {
  color: #ffffff !important;
}
.pagination > li > a:hover,
.pagination > li > span:hover {
  color: #ffffff !important;
}
.top_overview .sort_area button {
  color: #ffffff !important;
}
.top_overview .sort_area .ss_ch_drop a {
  color: #ffffff !important;
}
.top_overview .sort_area .ch_drop_itm:hover > a {
  color: #000000 !important;
}
.top_overview #s_view {
  color: #ffffff !important;
}

/* watch/index.php */
.tags_list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag_chip {
  display: inline-block;
  background: #2d3748;
  color: #e2e8f0;
  padding: 2px 6px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #4a5568;
  font-size: 9px;
  line-height: 1.15;
  text-transform: none !important;
  font-weight: 400;
  transition: all 0.15s ease;
}
.tag_chip:hover {
  background: #000000;
  color: #ffffff;
  border-color: #d1b36a;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .tag_chip {
    padding: 2px 5px;
    font-size: 8px;
  }
}
/* Toggle placement: desktop vs mobile */
.tags-mobile {
  display: none;
}
@media (max-width: 768px) {
  .tags-desktop {
    display: none !important;
  }
  .tags-mobile {
    display: block !important;
  }
}
.video_tags .main_bar {
  font-size: 16px;
  margin-bottom: 8px !important;
}

/* search/index.php */
.adv_filters {
  padding: 10px 15px;
}
.adv_tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 2px solid #374151;
  background: #1f2937;
  justify-content: center;
}
.adv_tab {
  background: transparent;
  color: #9ca3af;
  padding: 14px 20px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adv_tab:hover {
  color: #e2e8f0;
  background: #374151;
}
.adv_tab.active {
  background: #374151;
  color: #d1b36a;
  border-bottom-color: #d1b36a;
  font-weight: 600;
}
.adv_panel {
  margin-bottom: 16px;
}
.adv_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: #4b5563 #1f2937;
  flex: 1;
}
.adv_grid.big {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.adv_chip {
  display: inline-block;
  background: #2d3748;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #4a5568;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}
.adv_chip:hover {
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  border-color: #d1b36a;
  transform: translateY(-1px);
}
.adv_selected {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.adv_chip.selected {
  background: #d1b36a;
  color: #1a1a1a;
  border-color: #d1b36a;
  font-weight: 600;
}
.adv_chip.danger {
  background: #991b1b;
  border-color: #dc2626;
}
.adv_modal_hdr {
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #374151;
  background: #111827;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.adv_modal_title {
  font-size: 28px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 16px 0;
  text-align: center;
}
.adv_modal_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #d1d5db;
  font-size: 14px;
}
.switch input {
  transform: scale(1.1);
}
.adv_modal_footer {
  padding: 20px 24px;
  border-top: 1px solid #374151;
  background: #111827;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.adv_btn {
  display: inline-block;
  padding: 12px 20px;
  background: #d1b36a;
  color: #1a1a1a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adv_btn:hover {
  background: #e8c574;
  transform: translateY(-1px);
}
/* Overlay modal styles */
.filter-modal {
  position: fixed;
  inset: 0;
  display: none !important;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.filter-modal.is-open {
  display: block !important;
  opacity: 1;
  visibility: visible;
}
.filter-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}
.filter-modal_dialog {
  position: relative;
  margin: 3vh auto;
  width: min(1000px, 90vw);
  max-height: 85vh;
  overflow: hidden;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}
.filter-modal_close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #dc2626;
  color: #ffffff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-weight: bold;
}
.filter-modal_close:hover {
  background: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
@media (max-width: 768px) {
  .adv_grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* genre/index.php */
/* Mobile responsive styles for genre page */
@media (max-width: 768px) {
  .genre_header_section .wrap {
    padding: 0 15px;
  }

  .free_genre_title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    text-align: center;
    margin-bottom: 12px !important;
  }

  .genre_description p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center;
    padding: 0 5px !important;
    margin-bottom: 5px !important;
  }
}

@media (max-width: 480px) {
  .free_genre_title {
    font-size: 20px !important;
  }

  .genre_description p {
    font-size: 12px !important;
    padding: 0 !important;
  }
}

/* profile/index.php */
.profile_tabs .tab-pane {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.profile_tabs .tab-pane.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background-color: #337ab7;
  border-color: #337ab7;
  color: #fff;
}
/* Ensure content doesn't leak through */
.profile_tabs .tab-content {
  position: relative;
  overflow: hidden;
}
