/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* ---------------------------------------------------------------------------
  Slick sliders: avoid Bootstrap grid width conflicts inside .anime-slide
--------------------------------------------------------------------------- */
.anime-slide .anime-slide-item {
  padding: 0 12px;
}

/* Fallback if Slick didn't init yet (prevents 1px columns) */
.anime-slide:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.anime-slide:not(.slick-initialized) .anime-slide-item {
  flex: 1 1 calc(25% - 24px);
  min-width: 220px;
}

/* Mobile: 2 posters per row (tabs + fallback grids) */
@media (max-width: 575.98px) {
  .bg3 .tab-pane .col-6,
  .bg3 .tab-pane .col-sm-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .bg3 .tab-pane .col-6 img,
  .bg3 .tab-pane .col-sm-6 img {
    width: 100%;
    height: auto;
  }

  /* If Slick is off for some reason, keep 2-up */
  .anime-slide:not(.slick-initialized) .anime-slide-item {
    flex: 1 1 calc(50% - 24px);
    min-width: 160px;
  }
}

/* Single anime poster (left column) */
.anime-poster {
  max-width: 320px;
  margin: 0 0 16px 0;
}
.anime-poster img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Anime screenshots gallery */
.anime-screenshots {
  margin: 12px 0 8px;
}
.anime-screenshots-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.anime-screenshots-thumb {
  padding: 0;
  border: 0;
  background: transparent;
  width: 90px;
  display: block;
}
.anime-screenshots-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  opacity: 0.9;
}
.anime-screenshots-thumb:hover img,
.anime-screenshots-thumb:focus img {
  opacity: 1;
}

/* Player + episodes switcher */
.anime-player {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.anime-player-title {
  padding: 10px 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.anime-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.anime-episodes {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.anime-episodes-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.anime-episodes-tab {
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
}
.anime-episodes-tab.is-active {
  background: #5a2e98;
}
.anime-episodes .episodes {
  display: none;
}
.anime-episodes .episodes.is-active {
  display: block;
}
.anime-episode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  margin: 6px 6px 0 0;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
/* Force active episode fill (override template styles) */
.anime-episodes .anime-episode.is-active {
  /* background: #5a2e98 !important; */
  background: #2e9859 !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(90,46,152,.35) !important;
}

