/* =====================================================================
   MidWicket — Bigg Boss 20 Stylesheet
   Matches Bollyzone layout & aesthetics with MidWicket premium dark styling.
   ===================================================================== */

:root {
  --bb-gold: #f0b600;
  --bb-gold-hover: #ffc41e;
  --bb-gold-soft: rgba(240, 182, 0, 0.15);
  --bb-card-bg: #14171d;
  --bb-card-border: rgba(255, 255, 255, 0.08);
}

/* -------------------- Hub / Category Page (SS 2) -------------------- */
.bb-hub-hero {
  padding: 36px 0 24px;
}
.bb-hub-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}
.bb-hub-title i {
  color: var(--bb-gold);
  font-style: normal;
  display: inline-flex;
}
.bb-hub-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 20px;
  margin-bottom: 50px;
}
.bb-card {
  position: relative;
  background: var(--bb-card-bg);
  border: 1px solid var(--bb-card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.bb-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 182, 0, 0.45);
  box-shadow: 0 12px 32px rgba(240, 182, 0, 0.12);
}
.bb-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #111;
  overflow: hidden;
}
.bb-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bb-card:hover .bb-card-thumb {
  transform: scale(1.05);
}
.bb-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bb-card:hover .bb-card-play-overlay {
  opacity: 1;
}
.bb-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240, 182, 0, 0.9);
  color: #0a0e13;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(240, 182, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}
.bb-card:hover .bb-play-icon {
  transform: scale(1);
}
.bb-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.bb-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #f1f5f9;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-card:hover .bb-card-title {
  color: var(--bb-gold);
}
.bb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  margin-top: auto;
}
.bb-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bb-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* -------------------- Series Detail Page (SS 3 & SS 4) -------------------- */
.bb-series-hero {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 60px 0 30px;
  margin-bottom: 30px;
}
.bb-series-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 19, 0.5) 0%, rgba(10, 14, 19, 0.92) 75%, var(--bg) 100%);
  pointer-events: none;
}
.bb-series-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.bb-series-poster {
  width: 220px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #111;
}
.bb-series-poster img {
  width: 100%;
  height: auto;
  display: block;
}
.bb-series-info {
  flex-grow: 1;
}
.bb-series-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 14px;
}
.bb-series-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.bb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.bb-pill-rating {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
}
.bb-series-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 850px;
  margin: 0 0 20px;
}
.bb-series-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}
.bb-series-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-series-meta-item span.lbl {
  color: var(--muted);
  min-width: 90px;
  font-weight: 500;
}
.bb-series-meta-item span.val {
  color: #fff;
  font-weight: 600;
}
.bb-series-meta-item span.val a {
  color: var(--bb-gold);
}
.bb-series-meta-item span.val a:hover {
  text-decoration: underline;
}

/* -------------------- Watch Online Links Section (SS 4) -------------------- */
.bb-links-section {
  background: rgba(18, 22, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.bb-links-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.bb-links-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bb-links-title svg {
  color: var(--bb-gold);
}
.bb-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bb-link-card {
  background: #191c23;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bb-link-card:hover {
  border-color: rgba(240, 182, 0, 0.35);
  transform: translateY(-3px);
}
.bb-link-tag {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}
.bb-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111317;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
}
.bb-link-row i {
  color: var(--bb-gold);
  font-style: normal;
  display: inline-flex;
}
.bb-btn-click {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f0b600 0%, #d89f00 100%);
  color: #0c0f14;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(240, 182, 0, 0.35);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.bb-btn-click:hover {
  background: linear-gradient(180deg, #ffc41e 0%, #ebb005 100%);
  box-shadow: 0 6px 22px rgba(240, 182, 0, 0.5);
  transform: translateY(-1px);
}

/* -------------------- Player Page (SS 5) -------------------- */
.bb-player-page {
  background: #141318;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bb-player-header {
  padding: 24px 0 16px;
  text-align: center;
}
.bb-player-brand {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bb-player-brand span {
  color: var(--bb-gold);
}
.bb-player-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.bb-player-center {
  flex: 1;
  max-width: 960px;
}
.bb-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bb-player-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.bb-player-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px;
}
.bb-player-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

/* -------------------- Ad Spaces (SS 5) -------------------- */
.bb-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 16px auto;
}
.bb-ad-below {
  width: 100%;
  min-height: 90px;
  max-width: 960px;
}
.bb-ad-gutter {
  width: 160px;
  min-height: 600px;
  flex-shrink: 0;
}
.bb-ad-bottom {
  width: 100%;
  max-width: 960px;
  min-height: 90px;
  margin-bottom: 40px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .bb-series-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bb-series-pills {
    justify-content: center;
  }
  .bb-series-meta-grid {
    align-items: center;
  }
  .bb-links-grid {
    grid-template-columns: 1fr;
  }
  .bb-ad-gutter {
    display: none;
  }
}
