/* NETBOM DZ - Accent Sync All Borders
   Makes old purple/original borders and outlines follow the selected accent color everywhere. */
:root{
  --red: var(--nb-accent, #8b5cf6) !important;
  --accent: var(--nb-accent, #8b5cf6) !important;
  --nb-line: rgba(var(--nb-accent-rgb,139,92,246), .42) !important;
  --nb-line-soft: rgba(var(--nb-accent-rgb,139,92,246), .24) !important;
  --nb-line-strong: rgba(var(--nb-accent-rgb,139,92,246), .72) !important;
  --border: rgba(var(--nb-accent-rgb,139,92,246), .34) !important;
  --nb-edge: rgba(var(--nb-accent-rgb,139,92,246), .46) !important;
  --nb-edge-soft: rgba(var(--nb-accent-rgb,139,92,246), .28) !important;
  --nb-fill-soft: rgba(var(--nb-accent-rgb,139,92,246), .10) !important;
  --nb-fill-mid: rgba(var(--nb-accent-rgb,139,92,246), .18) !important;
}

/* Global borders that were still using the original purple */
.topbar,
.icon-btn,
#mainProfileBtn,
#searchHeaderBackBtn,
.search-bar,
.genre-chip,
.category-chip,
.nb-genre-chip,
.nb-genre-more,
.home-card,
.movie-card,
.poster-card,
.provider-item,
.nb-platform-card,
.nb-platform-row-card,
.nb-platform-page,
.nb-platform-page-head,
.nb-hub-top,
#nbGenreHub .nb-hub-top,
.side-panel,
.settings-panel,
.profile-panel,
.panel-header,
.box,
.nb-accent-box,
.nb-field input,
.nb-field select,
input,
select,
textarea,
.modal,
.overlay,
.cast-section,
.cast-card,
.season-card,
.nb-season-select,
.nb-episode-box,
.nb-episode-item,
.nb-episode-card,
.nb-episode-row,
.nb-episode-thumb,
.nb-details-card,
.nb-detail-card,
.details-card,
.details-section,
.trailer-section,
.nb-trailer-section,
.nb-trailer-wrap,
.nb-trailer-frame,
.nb-trailer-shell,
.nb-trailer-card,
.youtube-trailer,
.official-trailer,
.watch-player,
.player-shell,
.fast-player-page,
.fast-player-card,
.fast-server-row,
.fast-server-btn,
.server-btn,
.inline-server-btn,
.hero-server-chip,
.nb-genre-player-x-btn,
#nbGenrePlayerXBtn,
.nb-floating-platform-x,
.platform-inline-x,
.nb-platform-page-close,
.nb-platform-close,
.nb-avatar-box,
#nbD1AvatarModal .nb-avatar-box,
#nbD1AvatarModal .nb-avatar-grid img{
  border-color: rgba(var(--nb-accent-rgb,139,92,246), .48) !important;
  outline-color: rgba(var(--nb-accent-rgb,139,92,246), .72) !important;
}

/* Separators / one-sided borders */
.topbar,
.panel-header,
.nb-platform-page-head,
#nbGenreHub .nb-hub-top{
  border-bottom-color: rgba(var(--nb-accent-rgb,139,92,246), .42) !important;
}
.side-panel,
.settings-panel,
.profile-panel{
  border-left-color: rgba(var(--nb-accent-rgb,139,92,246), .42) !important;
  border-right-color: rgba(var(--nb-accent-rgb,139,92,246), .42) !important;
}

/* Active buttons and selected items */
.btn-primary,
.btn:not(.btn-dark):not(.nb-original-color),
.search-btn,
.nb-save-color,
.action-button.active,
.server-btn.active,
.fast-server-btn.active,
.inline-server-btn.active,
.hero-server-chip.active,
.nb-episode-item.active,
.nb-episode-card.active,
.nb-accent-dot.active,
.netflix-hero-play,
.play-btn,
.home-play-btn,
.nb-genre-same-play{
  background: linear-gradient(135deg, var(--nb-accent, #8b5cf6), var(--nb-accent-dark, #7c3aed)) !important;
  border-color: rgba(var(--nb-accent-rgb,139,92,246), .92) !important;
  color: #fff !important;
}

/* Secondary buttons and chips keep transparent but sync edge */
.btn-dark,
.nb-original-color,
.netflix-hero-info,
.netflix-hero-list,
.action-button,
.server-btn,
.fast-server-btn,
.inline-server-btn,
.genre-chip,
.category-chip,
.nb-genre-chip,
.provider-item,
.nb-platform-card{
  border-color: rgba(var(--nb-accent-rgb,139,92,246), .55) !important;
}

/* Icons / headings that should follow theme */
.home-title i,
.home-title .emoji,
.cast-title i,
.nb-episode-head i,
.panel-header i,
.box h3,
.nb-accent-box h3,
.settings-panel h3,
.profile-panel h3,
.read-more-btn,
.home-overlay span,
.nb-platform-title,
.nb-section-icon{
  color: rgb(var(--nb-accent-rgb,139,92,246)) !important;
}

/* Trailer / player inner borders and rings */
.nb-trailer-wrap iframe,
.nb-trailer-frame iframe,
.nb-trailer-shell iframe,
.youtube-trailer iframe,
.official-trailer iframe,
.watch-player iframe,
.player-shell iframe,
.fast-player-page iframe,
.fast-player-card iframe,
video{
  border-color: rgba(var(--nb-accent-rgb,139,92,246), .50) !important;
}

/* Focus and TV focus */
:focus-visible,
.home-card.nb-tv-focus,
[tabindex]:focus-visible{
  outline: 3px solid rgba(var(--nb-accent-rgb,139,92,246), .88) !important;
  outline-offset: 3px !important;
}

/* Subtle panels that had a fixed purple glow */
.box,
.cast-section,
.nb-accent-box,
.settings-panel .box,
.profile-panel .box,
.nb-details-card,
.details-section,
.trailer-section,
.nb-trailer-section{
  box-shadow: 0 0 0 1px rgba(var(--nb-accent-rgb,139,92,246), .04) inset !important;
}
