@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Base Styles & Typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Nav Scroller and Header */
.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .nav-scroller {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
  color: var(--bs-body-color);
  opacity: 0.8;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0.85rem;
}

.nav-scroller .nav-link:hover {
  opacity: 1;
  color: var(--bs-primary) !important;
}

.blog-header-logo img {
  max-height: 46px;
  transition: transform 0.3s ease;
}

.blog-header-logo:hover img {
  transform: scale(1.04);
}

/* Premium Buttons & Controls */
.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

.bd-mode-toggle .btn {
  background: rgba(113, 44, 249, 0.85) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(112, 44, 249, 0.25);
  transition: all 0.3s ease;
}

.bd-mode-toggle .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(112, 44, 249, 0.45);
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 {
  height: 250px;
}
@media (min-width: 768px) {
  .h-md-250 {
    height: 250px;
  }
}

/* Pagination & Blog Styles */
.blog-pagination {
  margin-bottom: 4rem;
}

.blog-post {
  margin-bottom: 4rem;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

/* Modern Video Card & Player */
.video-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .video-card {
  background: rgba(25, 25, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Live Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff4757;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

/* Channels List Sidebar */
.channel-sidebar {
  background: var(--bs-tertiary-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .channel-sidebar {
  background: rgba(25, 25, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.channel-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bs-body-color);
}

.channel-list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar */
.channel-list-group::-webkit-scrollbar {
  width: 5px;
}
.channel-list-group::-webkit-scrollbar-track {
  background: transparent;
}
.channel-list-group::-webkit-scrollbar-thumb {
  background: rgba(113, 44, 249, 0.2);
  border-radius: 10px;
}
.channel-list-group::-webkit-scrollbar-thumb:hover {
  background: rgba(113, 44, 249, 0.4);
}

/* Channel Card Row */
.channel-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .channel-item-link {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.channel-item-link:hover {
  background: var(--bs-primary-bg-subtle);
  border-color: rgba(113, 44, 249, 0.25);
  transform: translateX(4px);
  color: var(--bs-primary-text-emphasis);
}

.channel-item-link.active {
  background: linear-gradient(135deg, rgba(113, 44, 249, 0.15), rgba(113, 44, 249, 0.05));
  border-color: var(--bs-primary);
  box-shadow: 0 4px 15px rgba(113, 44, 249, 0.08);
  color: var(--bs-primary);
  font-weight: 600;
}

.channel-item-logo-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bs-secondary-bg);
  border: 2px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.channel-item-link.active .channel-item-logo-wrapper {
  border-color: var(--bs-primary);
}

.channel-item-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-item-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.channel-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-item-status {
  font-size: 0.7rem;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ed573;
  display: inline-block;
}

.channel-item-link.active .status-dot {
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

/* Channel Description Card */
.channel-meta-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--bs-body-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

[data-bs-theme="dark"] .channel-meta-card {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(25, 25, 28, 0.4);
}
