/* Public Sector Network TV Styles - Netflix-inspired with Futuristic Design */

:root {
  --tv-dark-bg: #0a0a0a;
  --tv-card-bg: #0d1117;
  --tv-card-hover: #161b22;
  --tv-accent-blue: #007BC2;
  --tv-accent-electric: #69D0FF;
  --tv-accent-bright: #0D96D4;
  --tv-text-primary: #ffffff;
  --tv-text-secondary: #8b949e;
  --tv-glow-blue: 0 0 20px rgba(0, 123, 194, 0.4);
  --tv-glow-electric: 0 0 20px rgba(105, 208, 255, 0.5);
}

/* Global TV Page Background */
.tv-page-bg {
  background: #ffffff;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Hero Section - Insights Style */
.tv-hero-banner {
  background: linear-gradient(135deg, #001A48 0%, #002A5C 100%);
  padding: 1rem 0 0.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.tv-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(-30deg);
}

.tv-hero-banner .hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.tv-hero-banner .hero-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* Video Detail Hero — stacked layout */
/* AIDEV-NOTE: synced with markup in tv/templates/tv/video_detail.html */
.tv-video-hero {
  background:
    radial-gradient(circle at top left, rgba(105, 208, 255, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #001A48 0%, #031537 100%);
  position: relative;
  overflow: hidden;
  color: var(--tv-text-primary);
}

.tv-video-hero::before,
.tv-video-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(120px);
  z-index: 0;
}

.tv-video-hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -110px;
}

.tv-video-hero::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -80px;
}

.video-breadcrumb {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
}

.video-breadcrumb .breadcrumb {
  background: transparent;
  margin-bottom: 0;
}

.video-breadcrumb .breadcrumb-item {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.video-breadcrumb .breadcrumb-item a {
  color: #ffffff;
  text-decoration: none;
}

.video-breadcrumb .breadcrumb-item a:hover {
  color: var(--tv-accent-electric);
}

.video-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.video-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
}

.video-hero-player {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.video-hero-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.75rem;
  color: #f5f9ff;
}

.video-hero-media__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(3, 13, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.video-hero-media__badge a {
  color: inherit;
  text-decoration: none;
}

.video-hero-media__badge a:hover {
  color: var(--tv-accent-electric);
}

/* AIDEV-NOTE: .video-hero-bar puts meta + actions in a single row below the title */
.video-hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 0.5rem;
}

.video-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.video-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: all 0.25s ease;
}

.video-tag:hover {
  background: rgba(105, 208, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.video-hero-title {
  font-size: clamp(1.25rem, 1.5vw + 0.4rem, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.video-hero-summary {
  margin: 0;
  color: rgba(236, 243, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.3rem;
}

.video-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.video-hero-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.video-hero-meta-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 247, 255, 0.7);
  font-weight: 600;
}

.meta-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.video-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-hero-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fbff;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-hero-action:hover {
  background: rgba(105, 208, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(105, 208, 255, 0.32);
  transform: translateY(-1px);
}

.btn-hero-action:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(105, 208, 255, 0.25);
}

/* Video Library Listing */
/* AIDEV-NOTE: keep in sync with tv/templates/tv/video_list.html */
.tv-video-library-hero {
  background:
    radial-gradient(circle at top right, rgba(13, 150, 212, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #001f52 0%, #03102b 100%);
  position: relative;
  overflow: hidden;
  color: #f5f9ff;
}

.tv-video-library-hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(105, 208, 255, 0.22);
  filter: blur(160px);
  top: -180px;
  left: -80px;
}

.tv-video-library-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(160px);
  bottom: -160px;
  right: -120px;
}

.video-library-hero-card {
  position: relative;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: 32px;
  padding: 3.25rem;
  background: rgba(5, 19, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 120px rgba(3, 13, 33, 0.6);
  backdrop-filter: blur(26px);
  z-index: 1;
  overflow: hidden;
}

.video-library-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 640px;
}

.hero-breadcrumb-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.video-library-hero-title {
  font-size: clamp(2.4rem, 4vw + 0.2rem, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.video-library-hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(236, 243, 255, 0.8);
}

.video-library-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 130px;
}

.hero-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.hero-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(105, 208, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(105, 208, 255, 0.25);
}

.video-library-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.video-library-hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 208, 255, 0.4) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
}

.video-hero-device {
  position: relative;
  width: 240px;
  background: rgba(8, 21, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  box-shadow: 0 28px 80px rgba(0, 12, 32, 0.55);
  z-index: 1;
}

.video-hero-device__screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(105, 208, 255, 0.18), rgba(0, 123, 194, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.video-hero-device__screen::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(20px);
}

.video-hero-device__timeline {
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 45, 88, 0.8);
  position: relative;
  overflow: hidden;
}

.video-hero-device__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 55%;
  border-radius: inherit;
  background: linear-gradient(90deg, #69D0FF, #0D96D4);
}

.video-hero-device__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  height: 36px;
}

.video-hero-device__bars::before,
.video-hero-device__bars::after {
  content: '';
  background: linear-gradient(180deg, #69D0FF, rgba(105, 208, 255, 0));
  border-radius: 8px;
}

.video-hero-device__bars::before {
  animation: equalize 2.6s ease-in-out infinite;
}

.video-hero-device__bars::after {
  animation: equalize 2.6s ease-in-out infinite 0.6s;
}

@keyframes equalize {
  0%, 100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

.video-filters-shell {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(6, 24, 50, 0.04) 0%, transparent 100%);
}

.video-filter-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 123, 194, 0.16);
  box-shadow: 0 28px 65px rgba(12, 37, 72, 0.12);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-filter-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.video-filter-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.video-filter-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.video-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475467;
  font-weight: 600;
  text-decoration: none;
}

.video-filter-clear:hover {
  color: #1d2939;
}

.btn-filter-submit {
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.video-filter-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.video-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  grid-column: span 4;
}

.video-filter-field--grow {
  grid-column: span 6;
}

.video-filter-field--stack {
  grid-column: span 12;
}

.video-filter-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1d2939;
}

.video-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.video-filter-icon {
  color: #667085;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.video-filter-input {
  border: none;
  flex: 1;
  height: 44px;
  font-size: 0.98rem;
  color: #101828;
}

.video-filter-input:focus {
  outline: none;
}

.video-filter-select .form-select {
  border-radius: 14px;
  padding: 0.65rem 1rem;
  border-color: #d0d5dd;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.video-filter-select .form-select:focus {
  border-color: #528bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 194, 0.15);
}

.video-filter-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 123, 194, 0.22);
  background: rgba(0, 42, 92, 0.05);
  color: #0f1e3d;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.video-filter-chip:hover {
  background: rgba(105, 208, 255, 0.18);
  border-color: rgba(105, 208, 255, 0.3);
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
}

.video-gallery-card {
  position: relative;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(17, 38, 78, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(12, 31, 66, 0.16);
}

.video-gallery-card__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-gallery-thumb {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 1.25rem 1.25rem 0;
  background: rgba(9, 20, 44, 0.08);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gallery-thumb--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 42, 92, 0.14), rgba(105, 208, 255, 0.22));
  color: rgba(255, 255, 255, 0.75);
  font-size: 2rem;
}

.video-gallery-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(8, 18, 40, 0.82);
  color: #ffffff;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.video-gallery-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #69D0FF, #0D96D4);
  color: #081022;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
}

.video-gallery-content {
  padding: 1.5rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.video-gallery-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.video-gallery-summary {
  font-size: 0.95rem;
  color: #475467;
  margin: 0;
  line-height: 1.6;
}

.video-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
}

.video-gallery-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #616d84;
  font-weight: 600;
}

.video-gallery-meta-item i {
  color: #2f3d57;
}

.video-gallery-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0, 123, 194, 0.12);
  color: #0f2a5c;
}

.video-gallery-actions {
  padding: 0 1.75rem 1.75rem;
  display: flex;
  justify-content: flex-end;
}

.video-gallery-actions .bookmark-btn {
  background: rgba(0, 42, 92, 0.08);
  border-color: rgba(0, 42, 92, 0.14);
  color: #0f172a !important;
}

.video-gallery-actions .bookmark-btn:hover {
  background: rgba(105, 208, 255, 0.2) !important;
  border-color: transparent !important;
}

.video-pagination .page-link {
  border-radius: 999px !important;
  margin: 0 0.3rem;
  padding: 0.6rem 1.1rem;
}

.video-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-empty-state__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 208, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
}

.video-empty-state__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.video-empty-state__copy {
  color: rgba(255, 255, 255, 0.55);
  max-width: 460px;
}

.video-empty-state__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .video-library-hero-card {
    grid-template-columns: 1fr;
    padding: 2.75rem;
  }

  .video-library-hero-illustration {
    order: -1;
  }
}

@media (max-width: 991.98px) {
  .video-filter-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .video-filter-field {
    grid-column: span 6;
  }

  .video-filter-field--grow {
    grid-column: span 6;
  }
}

@media (max-width: 767.98px) {
  .video-library-hero-card {
    padding: 2.25rem;
    gap: 2rem;
  }

  .video-gallery-card {
    border-radius: 22px;
  }

  .video-gallery-thumb {
    margin: 1rem;
    border-radius: 18px;
  }

  .video-gallery-content {
    padding: 1.25rem 1.4rem 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .video-library-hero-card {
    padding: 1.85rem;
  }

  .video-library-hero-actions {
    flex-direction: column;
  }

  .video-filter-card {
    padding: 1.85rem;
  }

  .video-filter-card__actions {
    width: 100%;
    justify-content: space-between;
  }

  .video-filter-card__actions .btn,
  .video-filter-card__actions .video-filter-clear {
    width: 100%;
    justify-content: center;
  }

  .video-filter-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .video-filter-field,
  .video-filter-field--grow,
  .video-filter-field--stack {
    grid-column: span 1;
  }

  .video-gallery-actions {
    justify-content: center;
  }

  .video-empty-state__actions {
    flex-direction: column;
    width: 100%;
  }

  .video-empty-state__actions .btn,
  .video-empty-state__actions .btn-link {
    width: 100%;
  }
}
@media (max-width: 991.98px) {
  .video-hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .video-breadcrumb {
    border-radius: 18px;
    padding: 0.55rem 1rem;
  }

  .btn-hero-action {
    width: 100%;
    justify-content: center;
  }

  .video-hero-meta {
    gap: 1rem;
  }
}

/* Filter Sidebar */
.tv-filter-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #212529;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tv-filter-card .card-title {
  color: #0696d6;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.tv-filter-card label {
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.tv-filter-card .form-select,
.tv-filter-card .form-control {
  background: #ffffff;
  border: 1px solid #ced4da;
  color: #212529;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tv-filter-card .form-select:focus,
.tv-filter-card .form-control:focus {
  background: #ffffff;
  border-color: #0696d6;
  box-shadow: 0 0 0 0.2rem rgba(6, 150, 214, 0.25);
  color: #212529;
}

.tv-filter-card .form-select option {
  background: #ffffff;
  color: #212529;
}

.tv-filter-card .btn-primary {
  background: #002A5C;
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tv-filter-card .btn-primary:hover {
  background: #001A48;
  color: #ffffff !important;
}

.tv-filter-card .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d !important;
  background: transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tv-filter-card .btn-outline-secondary:hover {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

.tv-filter-card .btn-outline-primary {
  border: 1px solid #495057;
  color: #495057 !important;
  background: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tv-filter-card .btn-outline-primary:hover {
  background: #495057 !important;
  border-color: #495057 !important;
  color: #ffffff !important;
}

.tv-filter-card hr {
  border-color: #dee2e6;
  margin: 1.5rem 0;
}

/* Video Card */
.video-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #0696d6;
}

.video-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumbnail {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.video-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.video-card .card-body {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.video-card .card-title {
  color: #212529 !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .card-text {
  color: #6c757d !important;
  font-size: 0.9rem;
}

.tv-community-badge {
  background: rgba(6, 150, 214, 0.1);
  color: #0696d6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}

.video-card .card-footer {
  background: transparent;
  border-top: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

/* Bookmark Button */
.bookmark-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fbff !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border-radius: 999px;
  padding: 0.65rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}

.bookmark-btn:hover {
  background: rgba(105, 208, 255, 0.25) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(105, 208, 255, 0.32);
  transform: translateY(-1px);
}

.bookmark-btn[data-bookmarked="true"] {
  background: linear-gradient(135deg, #69D0FF 0%, #0D96D4 100%) !important;
  border-color: transparent !important;
  color: #081022 !important;
  box-shadow: 0 20px 46px rgba(105, 208, 255, 0.45);
}

.bookmark-btn[data-bookmarked="true"] i {
  color: inherit;
}

.bookmark-btn i {
  margin-right: 0.35rem;
}

/* Video Player - Futuristic Container */
.video-player-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(105, 208, 255, 0.18);
  position: relative;
  isolation: isolate;
  /* AIDEV-NOTE: keep glow subtle so it stays behind adjacent headings */
}

.video-player-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--tv-accent-electric), var(--tv-accent-blue), var(--tv-accent-bright));
  border-radius: 12px;
  z-index: -1;
  opacity: 0.25;
}

.video-player-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* Breadcrumb - Futuristic */
.tv-breadcrumb {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 20px;
}

.tv-breadcrumb .breadcrumb {
  margin-bottom: 0;
  background: transparent;
}

.tv-breadcrumb .breadcrumb-item {
  color: var(--tv-text-secondary);
  font-size: 0.9rem;
}

.tv-breadcrumb .breadcrumb-item a {
  color: var(--tv-accent-electric);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.tv-breadcrumb .breadcrumb-item a:hover {
  color: var(--tv-text-primary);
  text-shadow: var(--tv-glow-electric);
}

.tv-breadcrumb .breadcrumb-item.active {
  color: var(--tv-text-primary);
}

.tv-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* Video Detail Page Cards */
.tv-detail-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #212529;
}

.tv-detail-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 700;
  color: #212529;
}

.tv-detail-card .card-title {
  color: #212529;
  font-weight: 700;
}

.tv-detail-card .card-body {
  color: #6c757d;
}

/* Video Detail Sections */
/* AIDEV-NOTE: paired with redesign markup for video detail screen */
.video-section-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5ecff;
  box-shadow: 0 22px 55px rgba(9, 25, 80, 0.08);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.video-section-card--comments {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 243, 255, 0.95) 100%);
}

.video-section-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b5ed7;
  font-weight: 700;
}

.section-eyebrow--solo {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(11, 94, 215, 0.25);
}

.video-section-card__title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.video-section-card__body {
  color: #344054;
  font-size: 1rem;
  line-height: 1.7;
}

.video-section-card__body.video-description p {
  margin-bottom: 1rem;
}

.video-section-card__body--flush {
  padding: 0;
  margin: 0;
}

.video-section-card--comments .video-section-card__body {
  padding-top: 1rem;
}

.video-speaker {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.video-speaker__image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
  border: 3px solid rgba(0, 123, 194, 0.15);
}

.video-speaker__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.video-speaker__bio p {
  margin-bottom: 0.75rem;
}

.video-speaker__profile-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.video-speaker__profile-link:hover {
  color: var(--tv-accent-bright, #0D96D4);
}

.video-speaker__link-icon {
  font-size: 0.7em;
  opacity: 0.4;
  margin-left: 0.3em;
  transition: opacity 0.2s;
}

.video-speaker__profile-link:hover .video-speaker__link-icon {
  opacity: 1;
}

.tv-featured-slide__date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.speaker-form-row {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.speaker-form-row .speaker-remove-btn {
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
}

.video-aside-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e5ecff;
  box-shadow: 0 18px 45px rgba(12, 25, 72, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-aside-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.video-aside-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #112042;
  margin: 0;
}

.video-aside-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-aside-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0, 42, 92, 0.06), rgba(105, 208, 255, 0.1));
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0.9rem;
  transition: all 0.25s ease;
  color: #0b1f36;
  position: relative;
  overflow: hidden;
}

.video-aside-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 32, 66, 0.14);
  border-color: rgba(105, 208, 255, 0.28);
}

.video-aside-thumb {
  width: 96px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1f36;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-aside-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-aside-thumb--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  background: rgba(8, 23, 56, 0.6);
}

.video-aside-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.video-aside-item__title {
  font-weight: 600;
  font-size: 1rem;
  color: #10223e;
}

.video-aside-item__meta {
  font-size: 0.85rem;
  color: #48607a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-aside-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: #3a4a63;
}

.video-aside-metadata strong {
  color: #0f172a;
}

@media (max-width: 991.98px) {
  .video-section-card,
  .video-aside-card {
    padding: 1.85rem;
  }
}

@media (max-width: 767.98px) {
  .video-speaker {
    flex-direction: column;
  }

  .video-aside-item {
    flex-direction: row;
  }
}

@media (max-width: 575.98px) {
  .video-section-card {
    padding: 1.5rem;
  }

  .video-aside-card {
    padding: 1.5rem;
  }

  .video-aside-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-aside-thumb {
    width: 100%;
    height: 180px;
  }
}

/* Pagination */
.pagination .page-link {
  background: #ffffff;
  border: 1px solid #dee2e6;
  color: #002A5C;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 4px;
  border-radius: 6px;
}

.pagination .page-link:hover {
  background: #f0f4f8;
  border-color: #002A5C;
  color: #002A5C;
}

.pagination .page-item.active .page-link {
  background: #002A5C;
  border-color: #002A5C;
  color: white;
}

/* Empty State */
.tv-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
}

.tv-empty-state i {
  color: #dee2e6;
  margin-bottom: 30px;
}

.tv-empty-state h3 {
  color: #212529;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Loading Animation */
.video-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tv-hero-banner {
    padding: 0.75rem 0 0.5rem;
  }

  .tv-hero-banner .hero-title {
    font-size: 1.25rem;
  }

  .tv-hero-banner .hero-subtitle {
    font-size: 0.875rem;
  }

  .video-card:hover {
    transform: scale(1.02) translateY(-4px);
  }

  .tv-filter-card {
    margin-bottom: 2rem;
  }
}

/* Text selection */
::selection {
  background: rgba(105, 208, 255, 0.3);
  color: white;
}

/* Buttons with glow effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Related videos list */
.list-group-item {
  background: #ffffff;
  border: 1px solid #dee2e6;
  color: #212529;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: #f8f9fa;
  border-color: #0696d6;
  transform: translateX(4px);
}

.list-group-item h6 {
  color: #212529;
  font-weight: 600;
}

.list-group-item .text-muted {
  color: #6c757d !important;
}

/* Share button effect */
.share-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--tv-text-secondary) !important;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 123, 194, 0.4);
  background: rgba(0, 123, 194, 0.1) !important;
  border-color: var(--tv-accent-blue) !important;
  color: var(--tv-accent-bright) !important;
}

/* Button overrides for TV pages */
.tv-page-bg .btn-outline-primary {
  background: rgba(105, 208, 255, 0.05);
  border-color: rgba(105, 208, 255, 0.4);
  color: var(--tv-accent-electric) !important;
}

.tv-page-bg .btn-outline-primary:hover {
  background: rgba(105, 208, 255, 0.15) !important;
  border-color: var(--tv-accent-electric) !important;
  color: var(--tv-accent-electric) !important;
  box-shadow: var(--tv-glow-electric);
}

.tv-page-bg .btn-outline-danger {
  background: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff6b6b !important;
}

.tv-page-bg .btn-outline-danger:hover {
  background: rgba(220, 53, 69, 0.15) !important;
  border-color: #dc3545 !important;
  color: #ff6b6b !important;
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

.tv-page-bg .btn-primary {
  background: linear-gradient(135deg, var(--tv-accent-blue), var(--tv-accent-electric));
  border: none;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 123, 194, 0.3);
}

.tv-page-bg .btn-primary:hover {
  background: linear-gradient(135deg, #0052cc, #00b8d4);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(105, 208, 255, 0.5);
  transform: translateY(-2px);
}

.video-library-hero-featured__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  background: rgba(8, 21, 44, 0.4);
  border: 2px solid rgba(105, 208, 255, 0.3);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 0 30px rgba(105, 208, 255, 0.15);
}

.video-library-hero-featured__link:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 208, 255, 0.5);
  box-shadow: 0 0 40px rgba(105, 208, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-library-hero-featured__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 21, 44, 0.85);
}

.video-library-hero-featured__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-library-hero-featured__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 123, 194, 0.2) 0%, rgba(105, 208, 255, 0.1) 100%);
}

.video-library-hero-featured__placeholder i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.5);
}

.video-library-hero-featured__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background 0.3s ease;
}

.video-library-hero-featured__link:hover .video-library-hero-featured__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.video-library-hero-featured__play {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(105, 208, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(105, 208, 255, 0.6), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.video-library-hero-featured__link:hover .video-library-hero-featured__play {
  transform: scale(1.15);
  background: rgba(105, 208, 255, 1);
  box-shadow: 0 0 40px rgba(105, 208, 255, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.video-library-hero-featured__play i {
  font-size: 1.75rem;
  color: white;
  margin-left: 5px;
}

.video-library-hero-featured__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(105, 208, 255, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 123, 194, 0.15) 0%, rgba(105, 208, 255, 0.15) 100%);
  border: 2px solid rgba(105, 208, 255, 0.4);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 20px rgba(105, 208, 255, 0.2);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(105, 208, 255, 0.2), 0 0 30px rgba(105, 208, 255, 0.1);
    border-color: rgba(105, 208, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(105, 208, 255, 0.4), 0 0 40px rgba(105, 208, 255, 0.2);
    border-color: rgba(105, 208, 255, 0.6);
  }
}

.video-library-hero-featured__info {
  margin-top: 0.75rem;
}

.video-library-hero-featured__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-library-hero-featured__speaker,
.video-library-hero-featured__count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (max-width: 767.98px) {
  .video-library-hero-featured__thumbnail {
    aspect-ratio: 4 / 3;
  }

  .video-library-hero-featured__overlay {
    padding: 1rem;
  }

  .video-library-hero-featured__play {
    width: 60px;
    height: 60px;
  }

  .video-library-hero-featured__play i {
    font-size: 1.5rem;
  }
}

/* Bookmarks */
/* AIDEV-NOTE: simplified saved content hero + remove button styling */
.bookmark-mini-hero {
  background: linear-gradient(135deg, #071530 0%, #020915 100%);
  color: #f5f9ff;
}

.bookmark-mini-hero .video-breadcrumb {
  background: rgba(4, 15, 36, 0.85);
}

.bookmark-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0;
}

.bookmark-hero-summary {
  color: rgba(229, 238, 255, 0.75);
}

.bookmark-mini-hero-actions .btn {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.video-gallery-remove {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.32);
  color: #b02a37;
  border-radius: 12px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.video-gallery-remove:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #861f2a;
}

.bookmark-empty {
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 24px;
  border: 1px dashed rgba(0, 123, 194, 0.24);
  background: rgba(0, 42, 92, 0.05);
  color: #0f172a;
  margin-top: 3rem;
}

.bookmark-empty i {
  font-size: 2.5rem;
  color: #0b5ed7;
  margin-bottom: 0.75rem;
}

.bookmark-empty p {
  margin: 0;
  color: #475467;
}

/* Share Feedback Toast */
.share-feedback {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #007BC2, #00b8d4);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 123, 194, 0.4);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.share-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.share-feedback--error {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

@media (max-width: 767.98px) {
  .share-feedback {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

/* ============================================================
   Channel rows (topic-based Netflix-style carousels)
   AIDEV-NOTE: dark section wrapping topic rows; orange top border + lighter navy breaks monotony vs hero
   ============================================================ */

/* AIDEV-NOTE: orange top border moved to .tv-filter-band above */
.tv-channels-section {
  background: linear-gradient(180deg, #131b2e 0%, #101828 100%);
  color: #f5f9ff;
}

/* AIDEV-NOTE: channel headers use accent gradient bar + larger size to distinguish from card titles */
.tv-channel-row__header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-channel-row__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-left: 0.75rem;
  border-left: 3px solid #f37321;
  letter-spacing: -0.01em;
}

/* Channel subscribe button */
.tv-channel-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tv-channel-subscribe-btn:hover {
  background: rgba(105, 208, 255, 0.18);
  border-color: rgba(105, 208, 255, 0.3);
  color: #fff;
}

.tv-channel-subscribe-btn--active {
  background: rgba(105, 208, 255, 0.22);
  border-color: rgba(105, 208, 255, 0.4);
  color: var(--tv-accent-electric);
}

.tv-channel-subscribe-btn--active:hover {
  background: rgba(105, 208, 255, 0.3);
  color: #fff;
}

.tv-channel-row__wrapper {
  position: relative;
}

.tv-channel-row__carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.tv-channel-row__carousel::-webkit-scrollbar {
  height: 6px;
}

.tv-channel-row__carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.tv-channel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
}

.tv-channel-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.tv-channel-nav-btn--prev {
  left: -18px;
}

.tv-channel-nav-btn--next {
  right: -18px;
}

.tv-channel-nav-btn:hover:not(:disabled) {
  background: rgba(105, 208, 255, 0.2);
  border-color: rgba(105, 208, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Channel card */
.tv-channel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.tv-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-color: rgba(105, 208, 255, 0.2);
}

.tv-channel-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tv-channel-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a2e;
  overflow: hidden;
}

.tv-channel-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-channel-card__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 2rem;
}

.tv-channel-card__duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tv-channel-card__body {
  padding: 0.75rem;
}

.tv-channel-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.tv-channel-card__speaker,
.tv-channel-card__date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-channel-card__actions {
  padding: 0 0.75rem 0.75rem;
}

.tv-channel-card__actions .bookmark-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}

.tv-channel-card__actions .bookmark-btn:hover {
  background: rgba(105, 208, 255, 0.2) !important;
  border-color: rgba(105, 208, 255, 0.3) !important;
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .tv-channel-card {
    flex: 0 0 240px;
  }

  .tv-channel-nav-btn {
    display: none;
  }
}

/* ============================================================
   Featured hero carousel (Swiper)
   AIDEV-NOTE: all classes prefixed tv-featured-* to avoid collisions
   ============================================================ */

.tv-featured-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(105, 208, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(13, 150, 212, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #001f52 0%, #03102b 100%);
  position: relative;
  overflow: hidden;
  color: #f5f9ff;
  padding: 2.5rem 0 3rem;
}

.tv-featured-hero__glow-left,
.tv-featured-hero__glow-right {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
}

.tv-featured-hero__glow-left {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -80px;
  background: rgba(105, 208, 255, 0.22);
}

.tv-featured-hero__glow-right {
  width: 360px;
  height: 360px;
  bottom: -160px;
  right: -120px;
  background: rgba(255, 255, 255, 0.1);
}

.tv-featured-hero__header {
  text-align: center;
  margin-bottom: 2rem;
}

.tv-featured-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tv-accent-electric);
  font-weight: 700;
}

.tv-featured-hero__title {
  font-size: clamp(2rem, 3.5vw + 0.2rem, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.4rem 0 0;
}

.tv-logo-psn {
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.tv-logo-stream {
  font-weight: 800;
  color: #f37321;
  letter-spacing: 0.04em;
}

/* AIDEV-NOTE: Logo-style treatment for "On Demand" — gradient text, decorative underline */
.tv-ondemand-logo {
  display: inline-block;
  position: relative;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ff6a00 0%, #f37321 35%, #ffb347 65%, #f37321 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.12em;
}

.tv-ondemand-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.07em;
  background: linear-gradient(90deg, #f37321, #ffb347 50%, transparent 100%);
  border-radius: 0.04em;
}

.tv-ondemand-logo__icon {
  font-size: 0.88em;
  margin-right: 0.2em;
  vertical-align: 0.03em;
  font-style: normal;
  background: linear-gradient(to bottom, #ffb347, #f37321);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tv-featured-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(236, 243, 255, 0.65);
  margin: 0.5rem 0 0;
  font-weight: 400;
}

/* Swiper overrides */
.tv-featured-swiper {
  padding-bottom: 2.5rem;
  overflow: visible;
}

.tv-featured-swiper .swiper-wrapper {
  align-items: center;
}

/* Slide card */
.tv-featured-slide {
  background: rgba(5, 19, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transform: scale(0.92);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.swiper-slide-active .tv-featured-slide {
  transform: scale(1);
  opacity: 1;
  box-shadow:
    0 30px 80px rgba(0, 10, 40, 0.5),
    0 0 40px rgba(105, 208, 255, 0.15);
}

.tv-featured-slide--single {
  transform: scale(1);
  opacity: 1;
  box-shadow:
    0 30px 80px rgba(0, 10, 40, 0.5),
    0 0 40px rgba(105, 208, 255, 0.15);
  max-width: 720px;
}

/* Thumbnail area */
.tv-featured-slide__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #081530;
}

.tv-featured-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-featured-slide__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 123, 194, 0.2), rgba(105, 208, 255, 0.1));
  color: rgba(255, 255, 255, 0.4);
  font-size: 3rem;
}

.tv-featured-slide__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Play overlay */
.tv-featured-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide-active .tv-featured-slide__overlay,
.tv-featured-slide--single .tv-featured-slide__overlay {
  opacity: 1;
}

/* AIDEV-NOTE: play icon uses padding-left to visually center the rightward-pointing triangle */
.tv-featured-slide__play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(105, 208, 255, 0.9);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 30px rgba(105, 208, 255, 0.5);
  padding: 0 0 0 5px;
}

.tv-featured-slide__play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(105, 208, 255, 0.7);
}

/* Disable play on non-active slides */
.swiper-slide:not(.swiper-slide-active) .tv-featured-slide__play-btn {
  pointer-events: none;
}

/* Info below thumbnail */
.tv-featured-slide__info {
  padding: 1rem 1.25rem 1.25rem;
}

.tv-featured-slide__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.25rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-featured-slide__speaker {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Nav arrows */
.tv-featured-nav.swiper-button-prev,
.tv-featured-nav.swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
}

.tv-featured-nav.swiper-button-prev::after,
.tv-featured-nav.swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.tv-featured-nav.swiper-button-prev:hover,
.tv-featured-nav.swiper-button-next:hover {
  background: rgba(105, 208, 255, 0.25);
  border-color: rgba(105, 208, 255, 0.4);
}

/* Pagination dots — positioned below the carousel, not overlaid */
.tv-featured-pagination.swiper-pagination-bullets {
  position: relative;
  bottom: auto;
  margin-top: 1.25rem;
  text-align: center;
}

.tv-featured-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.tv-featured-pagination .swiper-pagination-bullet-active {
  background: rgba(105, 208, 255, 0.9);
  width: 28px;
  border-radius: 5px;
}

/* Single featured layout */
.tv-featured-single {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.tv-featured-single__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tv-featured-single__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(236, 243, 255, 0.8);
  margin: 0;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .tv-featured-nav.swiper-button-prev,
  .tv-featured-nav.swiper-button-next {
    display: none;
  }

  .tv-featured-single {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .tv-featured-hero {
    padding: 2rem 0 2.5rem;
  }

  .tv-featured-slide__play-btn {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    padding: 0 0 0 4px;
  }

  .tv-featured-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
  }
}

@media (max-width: 575.98px) {
  .tv-featured-hero {
    padding: 1.5rem 0 2rem;
  }

  .tv-featured-hero__header {
    margin-bottom: 1.25rem;
  }

  .tv-featured-slide__info {
    padding: 0.75rem 1rem 2rem;
  }
}

/* ── Attend Live / Upcoming GIW Events ── */
.tv-attend-live-section {
  padding: 3rem 0 4rem;
  background: #f5f7fa;
}

.tv-attend-live__layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.tv-attend-live__left {
  flex: 0 0 220px;
}

.tv-attend-live__right {
  flex: 1;
  min-width: 0;
}

.tv-attend-live__giw-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.25rem;
}

.tv-attend-live__title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

@media (max-width: 767.98px) {
  .tv-attend-live__layout {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .tv-attend-live__left {
    flex: none;
  }
}

.tv-attend-live__subtitle {
  font-size: 0.9rem;
  color: #5a6577;
  margin: 0;
  line-height: 1.5;
}

.tv-attend-live__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.tv-attend-live__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.tv-attend-live__card:hover {
  border-color: var(--tv-accent-blue);
  box-shadow: 0 4px 12px rgba(0, 123, 194, 0.12);
  text-decoration: none;
}

.tv-attend-live__card-flag img {
  border-radius: 3px;
  display: block;
}

.tv-attend-live__card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.tv-attend-live__card-city {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.tv-attend-live__card-date {
  font-size: 0.85rem;
  color: #5a6577;
}

.tv-attend-live__card-arrow {
  color: var(--tv-accent-blue);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.tv-attend-live__card:hover .tv-attend-live__card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ============================================================
   Dark theme for video detail page (bottom sections)
   AIDEV-NOTE: scoped to .tv-detail-dark so listing page is unaffected
   ============================================================ */

.tv-detail-dark {
  background: linear-gradient(180deg, #0a0e1a 0%, #101828 100%);
}

.tv-detail-dark .video-section-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.tv-detail-dark .video-section-card--comments {
  background: rgba(255, 255, 255, 0.04);
}

.tv-detail-dark .section-eyebrow {
  color: var(--tv-accent-electric);
}

.tv-detail-dark .section-eyebrow--solo {
  border-bottom-color: rgba(105, 208, 255, 0.25);
}

.tv-detail-dark .video-section-card__title {
  color: #f0f4ff;
}

.tv-detail-dark .video-section-card__body {
  color: rgba(236, 243, 255, 0.78);
}

.tv-detail-dark .video-speaker__name {
  color: #f0f4ff;
}

.tv-detail-dark .video-speaker__bio,
.tv-detail-dark .video-speaker__bio .text-muted {
  color: rgba(236, 243, 255, 0.65) !important;
}

.tv-detail-dark .video-speaker__image {
  border-color: rgba(105, 208, 255, 0.2);
}

/* Attachment / Resources rows */
.tv-attachment-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.15s;
}

.tv-attachment-row:last-child {
  border-bottom: none;
}

.tv-attachment-row:hover {
  color: #69D0FF;
}

.tv-attachment-row__type-icon {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.6;
}

.tv-attachment-row:hover .tv-attachment-row__type-icon {
  opacity: 1;
}

.tv-attachment-row__info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.tv-attachment-row__title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-attachment-row__ext {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  opacity: 0.4;
  flex-shrink: 0;
}

.tv-attachment-row__download {
  font-size: 0.8rem;
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.tv-attachment-row:hover .tv-attachment-row__download {
  opacity: 1;
}

/* Members-only lock overlay */
.tv-members-only-player {
  overflow: hidden;
}

.tv-members-only-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.4);
}

.tv-members-only-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1;
}

.tv-members-only-lock {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 123, 194, 0.25);
  border: 2px solid rgba(105, 208, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.tv-members-only-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.tv-members-only-actions {
  display: flex;
  gap: 0.75rem;
}

/* Dark aside cards (watch next, admin) */
.tv-detail-dark .video-aside-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.tv-detail-dark .video-aside-card__title {
  color: #f0f4ff;
}

.tv-detail-dark .video-aside-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.06);
  color: #f0f4ff;
}

.tv-detail-dark .video-aside-item:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(105, 208, 255, 0.28);
}

.tv-detail-dark .video-aside-item__title {
  color: rgba(255, 255, 255, 0.92);
}

.tv-detail-dark .video-aside-item__meta {
  color: rgba(255, 255, 255, 0.55);
}

.tv-detail-dark .video-aside-metadata {
  color: rgba(236, 243, 255, 0.65);
}

.tv-detail-dark .video-aside-metadata strong {
  color: #f0f4ff;
}

/* AIDEV-NOTE: dark comment overrides — reset all light-theme borders/bgs from the shared comment component */

/* Action bar (Like | Comment) */
.tv-detail-dark .comment-list .card-footer.feed-action-bar {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
}

.tv-detail-dark .comment-list .card-footer .border-bottom {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.tv-detail-dark .comment-list .card-footer .border-end {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.tv-detail-dark .comment-list .card-footer .btn-link,
.tv-detail-dark .comment-list .feed-action-bar .btn-link {
  color: rgba(255, 255, 255, 0.65) !important;
}

.tv-detail-dark .comment-list .card-footer .btn-link:hover,
.tv-detail-dark .comment-list .feed-action-bar .btn-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* border-eaeaea utility override */
.tv-detail-dark .border-eaeaea {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* bg-white utility override inside comments */
.tv-detail-dark .comment-list .bg-white {
  background: transparent !important;
}

/* Text colour overrides */
.tv-detail-dark .comment-list .text-muted {
  color: rgba(236, 243, 255, 0.45) !important;
}

.tv-detail-dark .comment-list .text-black {
  color: rgba(255, 255, 255, 0.75) !important;
}

.tv-detail-dark .comment-list .plain-link {
  color: rgba(236, 243, 255, 0.5) !important;
}

/* Textarea / form controls */
.tv-detail-dark .comment-list .form-control,
.tv-detail-dark .comment-list textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f0f4ff !important;
}

.tv-detail-dark .comment-list .form-control:focus,
.tv-detail-dark .comment-list textarea:focus {
  border-color: rgba(105, 208, 255, 0.35) !important;
  box-shadow: 0 0 0 0.2rem rgba(105, 208, 255, 0.12) !important;
}

/* Cancel / Post / Community Guidelines row */
.tv-detail-dark .comment-list .btn-outline-primary,
.tv-detail-dark .comment-list .comment-cancel-btn {
  color: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.tv-detail-dark .comment-list .btn-outline-primary:hover,
.tv-detail-dark .comment-list .comment-cancel-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.tv-detail-dark .comment-list a small,
.tv-detail-dark .comment-list .form_comment_edit a {
  color: rgba(236, 243, 255, 0.45) !important;
}

/* Froala rich-text editor */
.tv-detail-dark .fr-box .fr-element {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f0f4ff !important;
}

.tv-detail-dark .fr-box .fr-toolbar,
.tv-detail-dark .fr-box .fr-second-toolbar {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.tv-detail-dark .fr-box .fr-toolbar .fr-command {
  color: rgba(255, 255, 255, 0.6) !important;
}

.tv-detail-dark .fr-box .fr-wrapper {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark admin controls button overrides */
.tv-detail-dark .btn-glow {
  box-shadow: 0 4px 15px rgba(0, 123, 194, 0.3);
}

/* ── Topic Browse Page (dark theme) ── */
.tv-topic-browse {
  background: linear-gradient(180deg, #0a0e1a 0%, #101828 100%);
  color: #f5f9ff;
}

.tv-topic-browse-hero {
  background: linear-gradient(135deg, #071530 0%, #020915 100%);
  color: #f5f9ff;
}

.tv-topic-browse-hero .video-breadcrumb {
  background: rgba(4, 15, 36, 0.85);
}

.tv-topic-browse-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0;
}

.tv-topic-browse-hero__count {
  color: rgba(229, 238, 255, 0.65);
  font-size: 0.95rem;
}

/* Dark card overrides for topic browse */
.tv-topic-browse .video-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tv-topic-browse .video-gallery-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tv-topic-browse .video-gallery-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.tv-topic-browse .video-gallery-title {
  color: #f0f4ff;
}

.tv-topic-browse .video-gallery-summary {
  color: rgba(229, 238, 255, 0.6);
}

.tv-topic-browse .video-gallery-meta-item {
  color: rgba(229, 238, 255, 0.5);
}

.tv-topic-browse .video-gallery-meta-item i {
  color: rgba(229, 238, 255, 0.4);
}

.tv-topic-browse .video-gallery-tag {
  background: rgba(105, 208, 255, 0.12);
  color: rgba(229, 238, 255, 0.75);
}

.tv-topic-browse .video-gallery-actions .bookmark-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(229, 238, 255, 0.7) !important;
}

.tv-topic-browse .video-gallery-actions .bookmark-btn:hover {
  background: rgba(105, 208, 255, 0.15) !important;
  border-color: transparent !important;
}

/* Dark pagination */
.tv-topic-browse .video-pagination .page-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f4ff;
}

.tv-topic-browse .video-pagination .page-item.active .page-link {
  background: var(--tv-accent-blue);
  border-color: var(--tv-accent-blue);
  color: #fff;
}

/* AIDEV-NOTE: Dark filter controls — use .tv-topic-filter-bar prefix for specificity to beat Bootstrap .form-select loaded later in style.css */
.tv-topic-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.tv-topic-filter-bar .tv-topic-filter-select {
  max-width: 200px;
  border-radius: 10px;
  font-size: 0.875rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f4ff;
  padding: 0.5rem 0.75rem;
}

.tv-topic-filter-bar .tv-topic-filter-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--tv-accent-electric);
  box-shadow: 0 0 0 2px rgba(105, 208, 255, 0.15);
  color: #f0f4ff;
}

.tv-topic-filter-bar .tv-topic-filter-select option {
  background-color: #101828;
  color: #f0f4ff;
}

/* Search button for filter bar */
.tv-filter-search-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background-color: var(--tv-accent-electric, #69d0ff);
  color: #0a1628;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.tv-filter-search-btn:hover {
  background-color: #4fc0f0;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Clear filters button */
.tv-filter-clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background-color: transparent;
  color: #f0f4ff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.tv-filter-clear-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f0f4ff;
}

/* Filter band – full-width break between hero and channels */
.tv-filter-band {
  background: linear-gradient(180deg, #fdfcfb 0%, #f5f3f0 100%);
  padding: 1rem 0;
  border-top: 4px solid #f37321;
  border-bottom: 4px solid #f37321;
}

.tv-filter-band__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tv-filter-band__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  white-space: nowrap;
}

.tv-filter-band__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.tv-filter-band__count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.tv-filter-band .tv-topic-filter-bar {
  margin-bottom: 0;
  flex: 1;
}

/* Light controls inside the filter band */
.tv-filter-band .tv-topic-filter-bar .tv-topic-filter-select {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  color: #1e293b;
  padding: 0.45rem 0.85rem;
}

.tv-filter-band .tv-topic-filter-bar .tv-topic-filter-select:focus {
  background-color: #ffffff;
  border-color: #007bc2;
  box-shadow: 0 0 0 2px rgba(0, 123, 194, 0.15);
  color: #1e293b;
}

.tv-filter-band .tv-topic-filter-bar .tv-topic-filter-select option {
  background-color: #ffffff;
  color: #1e293b;
}

.tv-filter-band .tv-search-input {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-left: 3px solid #f37321;
  border-radius: 20px;
  color: #1e293b;
  padding: 0.45rem 0.85rem 0.45rem 2.25rem;
}

.tv-filter-band .tv-search-input::placeholder {
  color: #64748b;
}

.tv-filter-band .tv-search-input:focus {
  background-color: #ffffff;
  border-color: #007bc2;
  border-left: 3px solid #f37321;
  box-shadow: 0 0 0 2px rgba(0, 123, 194, 0.15);
  color: #1e293b;
  outline: none;
}

.tv-filter-band .tv-search-wrapper i {
  color: #64748b;
}

/* Light search button inside filter band */
.tv-filter-band .tv-filter-search-btn {
  background-color: #f37321;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  color: #ffffff;
  padding: 0.45rem 1.25rem;
}

.tv-filter-band .tv-filter-search-btn:hover {
  background-color: #e06515;
}

.tv-filter-band .tv-filter-clear-btn {
  border: 1px solid #d1d5db;
  border-radius: 20px;
  color: #64748b;
  padding: 0.45rem 1rem;
}

.tv-filter-band .tv-filter-clear-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: #9ca3af;
  color: #1e293b;
}

/* Search bar (shared between topic browse and channel list) */
.tv-search-input {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f0f4ff;
  padding: 0.5rem 1.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
  min-width: 220px;
}

.tv-search-input::placeholder {
  color: rgba(229, 238, 255, 0.4);
}

.tv-search-input:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--tv-accent-electric);
  box-shadow: 0 0 0 2px rgba(105, 208, 255, 0.15);
  color: #f0f4ff;
  outline: none;
}

.tv-search-wrapper {
  position: relative;
}

.tv-search-wrapper > i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(229, 238, 255, 0.4);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Clear X inside search input */
.tv-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(229, 238, 255, 0.4);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  line-height: 1;
  border-radius: 50%;
}

.tv-search-clear:hover {
  color: #f0f4ff;
  background-color: rgba(255, 255, 255, 0.1);
}

.tv-filter-band .tv-search-clear {
  color: #94a3b8;
}

.tv-filter-band .tv-search-clear:hover {
  color: #1e293b;
  background-color: rgba(0, 0, 0, 0.08);
}

/* Clickable channel row title link */
.tv-channel-row__title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.tv-channel-row__title-link:hover {
  color: inherit;
}

.tv-channel-row__title-link:hover .tv-channel-row__title {
  color: var(--tv-accent-electric);
}

.tv-channel-row__title-arrow {
  font-size: 0.85rem;
  color: var(--tv-accent-electric);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tv-channel-row__title-link:hover .tv-channel-row__title-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Members Only Badge */
.tv-members-only-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.tv-members-only-badge i {
  font-size: 0.55rem;
}

.tv-members-only-badge--featured {
  font-size: 0.75rem;
  padding: 5px 10px;
  top: 12px;
  left: 12px;
}

.tv-members-only-badge--featured i {
  font-size: 0.65rem;
}

/* "Watch on Mobile" QR code CTA in the filter band */
.tv-filter-band__mobile-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
}

.tv-filter-band__mobile-cta img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.tv-filter-band__mobile-cta span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.tv-filter-band__mobile-cta:hover span {
  text-decoration: underline;
}

