/* Global dark theme hardening (except Rider Room / player-dark flows). */
:root{
  --dt-bg:#0E131A;
  --dt-surface:#161D27;
  --dt-surface-2:#10161F;
  --dt-border:#2A3442;
  --dt-text:#EAF0F8;
  --dt-muted:#AAB6C7;
  --dt-accent:#76B7FF;
}

body.dark-theme:not(.rider-room-active):not(.player-dark){
  background:var(--dt-bg) !important;
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) #app,
body.dark-theme:not(.rider-room-active):not(.player-dark) .home-web-layout,
body.dark-theme:not(.rider-room-active):not(.player-dark) .home-mobile-layout,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .section-detail-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .advisors-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .weekly-newsletter-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .help-redesign-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .legal-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-page,
body.dark-theme:not(.rider-room-active):not(.player-dark) #home-focus-band{
  background:var(--dt-bg) !important;
  color:var(--dt-text) !important;
  box-shadow:none !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) :is(
  .card,
  .profile-card,
  .profile-menu-card,
  .profile-subscription-card,
  .profile-streak-card,
  .profile-sections-card,
  .profile-saved-card,
  .profile-sections-item,
  .section-video-card,
  .advisor-card,
  .explore-section-card,
  .explore-section-card-content,
  .explore-search-popup,
  .help-faq-item,
  .help-contact-card,
  .weekly-newsletter-featured,
  .weekly-newsletter-note-card,
  .weekly-newsletter-archive-row,
  .plan-card,
  .included-card,
  .account-settings-card,
  .account-settings-danger-card,
  .home-carousel-card,
  .home-section-card,
  .home-recommended-card,
  .hero-feature-card,
  .hero-secondary-card,
  .cyx-new-card,
  .quick-five-card,
  .player-info-below,
  .player-info-mobile,
  .player-sidebar,
  .player-desc-panel,
  #section-search-suggestions,
  #explore-search-popup,
  .desktop-search-results,
  .notification-dropdown,
  .legal-webview-dialog
){
  background:var(--dt-surface) !important;
  border-color:var(--dt-border) !important;
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) :is(
  h1,h2,h3,h4,h5,
  .profile-title,
  .sections-page-title,
  .section-detail-title,
  .advisors-title,
  .player-info-below #player-title,
  .player-sidebar-item-title,
  .weekly-newsletter-title,
  .help-redesign-title,
  .legal-title,
  .premium-title,
  .included-title,
  .account-settings-title,
  .account-settings-theme-title
){
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) :is(
  p,
  .small-muted,
  .profile-meta,
  .profile-list-text,
  .profile-saved-video-duration,
  .sections-page-subtitle,
  .section-detail-intro,
  .section-video-author,
  .section-video-time,
  .advisor-role,
  .advisors-subtitle,
  .weekly-newsletter-subtitle,
  .weekly-newsletter-note-excerpt,
  .weekly-newsletter-archive-meta,
  .help-redesign-subtitle,
  .help-faq-answer,
  .legal-content p,
  .premium-subtitle,
  .plan-description,
  .plan-note,
  .included-desc,
  .account-settings-label,
  .account-settings-theme-desc,
  .account-settings-danger-desc
){
  color:var(--dt-muted) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .header-sticky,
body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav,
body.dark-theme:not(.rider-room-active):not(.player-dark) #site-header > header{
  background:#121925 !important;
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .header-sticky .desktop-nav a,
body.dark-theme:not(.rider-room-active):not(.player-dark) .header-sticky .desktop-profile-link,
body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav a,
body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav .small-muted,
body.dark-theme:not(.rider-room-active):not(.player-dark) .header-sticky .logo-link .h2{
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .desktop-nav a.active,
body.dark-theme:not(.rider-room-active):not(.player-dark) .desktop-profile-link.active,
body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav a.active,
body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav a.active .small-muted,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-link,
body.dark-theme:not(.rider-room-active):not(.player-dark) .advisor-contact-link,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-subscription-link{
  color:var(--dt-accent) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) :is(
  input,
  textarea,
  select,
  .form-control,
  .payment-input,
  .account-settings-input,
  #section-search,
  .desktop-search-bar input,
  .search-box input
){
  background:var(--dt-surface-2) !important;
  color:var(--dt-text) !important;
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) :is(input,textarea,select)::placeholder{
  color:#91A0B5 !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .plan-card-highlight,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-subscription-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-subscription-card{
  background:#232012 !important;
  border-color:#9B7E00 !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .plan-name,
body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .plan-price,
body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .included-name,
body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .premium-title,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-subscription-card #profile-subscription-name,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-subscription-title{
  color:#F4DE8A !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .player-fullbleed,
body.dark-theme:not(.rider-room-active):not(.player-dark) #player-video,
body.dark-theme:not(.rider-room-active):not(.player-dark) .video-player-16x9,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-ad-overlay,
body.dark-theme:not(.rider-room-active):not(.player-dark) .ad-video-player{
  background:#0C1119 !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .player-sidebar-item:hover,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-list-item:hover,
body.dark-theme:not(.rider-room-active):not(.player-dark) #section-search-suggestions .section-search-row:hover,
body.dark-theme:not(.rider-room-active):not(.player-dark) .desktop-search-item:hover,
body.dark-theme:not(.rider-room-active):not(.player-dark) .weekly-newsletter-archive-row:hover{
  background:#1C2633 !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-list-item,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-preferences-list .profile-list-item,
body.dark-theme:not(.rider-room-active):not(.player-dark) .advisor-divider,
body.dark-theme:not(.rider-room-active):not(.player-dark) .section-detail-divider,
body.dark-theme:not(.rider-room-active):not(.player-dark) .help-redesign-divider,
body.dark-theme:not(.rider-room-active):not(.player-dark) .weekly-newsletter-divider,
body.dark-theme:not(.rider-room-active):not(.player-dark) .legal-webview-header,
body.dark-theme:not(.rider-room-active):not(.player-dark) .section-search-row,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-inline-divider{
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .plan-cta,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-primary-btn,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-action-btn,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-btn,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-logout,
body.dark-theme:not(.rider-room-active):not(.player-dark) .account-settings-danger-btn{
  background:var(--dt-surface-2) !important;
  color:var(--dt-text) !important;
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .plan-cta.plan-cta-highlight,
body.dark-theme:not(.rider-room-active):not(.player-dark) .premium-hero-cta,
body.dark-theme:not(.rider-room-active):not(.player-dark) .subscription-page-v2 .premium-hero .premium-hero-cta.plan-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .player-gate-btn{
  background:#F5C400 !important;
  color:#2C2200 !important;
  border-color:#F5C400 !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .bottom-nav a img,
body.dark-theme:not(.rider-room-active):not(.player-dark) .favorite-icon-img,
body.dark-theme:not(.rider-room-active):not(.player-dark) .notification-icon,
body.dark-theme:not(.rider-room-active):not(.player-dark) .profile-list-icon svg{
  filter:brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(644%) hue-rotate(176deg) brightness(96%) contrast(92%) !important;
}

body.dark-theme.rider-room-active .bottom-nav {
  background: #121925 !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.rider-room-active .bottom-nav a,
body.dark-theme.rider-room-active .bottom-nav .small-muted {
  color: var(--dt-text) !important;
}

body.dark-theme.rider-room-active .bottom-nav a.active,
body.dark-theme.rider-room-active .bottom-nav a.active .small-muted {
  color: var(--dt-accent) !important;
}

body.dark-theme.rider-room-active .bottom-nav a img {
  filter: brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(644%) hue-rotate(176deg) brightness(96%) contrast(92%) !important;
}

body.dark-theme.player-dark .bottom-nav {
  background: #121925 !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.player-dark .bottom-nav a,
body.dark-theme.player-dark .bottom-nav .small-muted {
  color: var(--dt-text) !important;
}

body.dark-theme.player-dark .bottom-nav a.active,
body.dark-theme.player-dark .bottom-nav a.active .small-muted {
  color: var(--dt-accent) !important;
}

body.dark-theme.player-dark .bottom-nav a img {
  filter: brightness(0) saturate(100%) invert(93%) sepia(6%) saturate(644%) hue-rotate(176deg) brightness(96%) contrast(92%) !important;
}

body.dark-theme.profile-active {
  background: var(--dt-bg) !important;
  color: var(--dt-text) !important;
}

body.dark-theme.profile-active .profile-name,
body.dark-theme.profile-active .profile-title,
body.dark-theme.profile-active .profile-section-title,
body.dark-theme.profile-active .profile-list-item,
body.dark-theme.profile-active .profile-list-text,
body.dark-theme.profile-active .profile-tag,
body.dark-theme.profile-active .profile-card-heading,
body.dark-theme.profile-active .profile-subscription-card #profile-subscription-name,
body.dark-theme.profile-active .profile-link {
  color: var(--dt-text) !important;
}

body.dark-theme.profile-active .profile-meta,
body.dark-theme.profile-active .profile-list-arrow,
body.dark-theme.profile-active .profile-subscription-card #profile-subscription-description,
body.dark-theme.profile-active .profile-card-heading {
  color: var(--dt-muted) !important;
}

body.dark-theme.profile-active .profile-tag {
  background: var(--dt-surface-2) !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.profile-active .profile-streak-title,
body.dark-theme.profile-active .profile-streak-message,
body.dark-theme.profile-active .profile-sections-title,
body.dark-theme.profile-active .profile-sections-name,
body.dark-theme.profile-active .profile-saved-title {
  color: var(--dt-text) !important;
}

body.dark-theme.profile-active .profile-streak-count {
  color: var(--dt-text) !important;
}

body.dark-theme.profile-active .profile-streak-count-label {
  color: var(--dt-muted) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .mah-search-btn svg,
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobile-header-search-btn svg,
body.dark-theme:not(.rider-room-active):not(.player-dark) #home-search-icon svg {
  color: var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .mah-search-btn svg circle,
body.dark-theme:not(.rider-room-active):not(.player-dark) .mah-search-btn svg path,
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobile-header-search-btn svg circle,
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobile-header-search-btn svg path,
body.dark-theme:not(.rider-room-active):not(.player-dark) #home-search-icon svg circle,
body.dark-theme:not(.rider-room-active):not(.player-dark) #home-search-icon svg path {
  stroke: var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .home-riderroom-banner,
body.dark-theme:not(.rider-room-active):not(.player-dark) .rider-clips-panel,
body.dark-theme:not(.rider-room-active):not(.player-dark) .clip-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sidebar-week,
body.dark-theme:not(.rider-room-active):not(.player-dark) .analysis-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .question-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .analysis-block{
  background:var(--dt-surface) !important;
  border-color:var(--dt-border) !important;
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) #home-lower,
body.dark-theme:not(.rider-room-active):not(.player-dark) #home-lower .lower-band,
body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-sections-block,
body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-sections-block--compact,
body.dark-theme:not(.rider-room-active):not(.player-dark) .home-weekly-main-note,
body.dark-theme:not(.rider-room-active):not(.player-dark) .hero-secondary-content,
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobileStreakBanner,
body.dark-theme:not(.rider-room-active):not(.player-dark) #site-header,
body.dark-theme:not(.rider-room-active):not(.player-dark) #site-header > header{
  background:var(--dt-surface) !important;
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-section-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-section-card--compact,
body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-section-card.cyx-section-card--compact,
body.dark-theme:not(.rider-room-active):not(.player-dark) a.cyx-section-card{
  background:var(--dt-surface) !important;
  border-color:var(--dt-border) !important;
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-sections-block :is(h1,h2,h3,h4,p,span,.small-muted,.cyx-section-title,.cyx-section-subtitle,.cyx-section-name,.cyx-section-desc),
body.dark-theme:not(.rider-room-active):not(.player-dark) .home-weekly-main-note :is(h1,h2,h3,h4,p,span,.small-muted),
body.dark-theme:not(.rider-room-active):not(.player-dark) .hero-secondary-content :is(h1,h2,h3,h4,p,span),
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobileStreakBanner :is(h1,h2,h3,h4,p,span){
  color:var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) #mobileStreakBanner .msb-title {
  color: var(--dt-text) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .cyx-sections-block :is(.cyx-section-meta,.cyx-section-description,.small-muted),
body.dark-theme:not(.rider-room-active):not(.player-dark) .home-weekly-main-note :is(.home-weekly-main-desc,.small-muted),
body.dark-theme:not(.rider-room-active):not(.player-dark) #mobileStreakBanner :is(.small-muted){
  color:var(--dt-muted) !important;
}

/* Home-specific hard override to defeat light-system !important rules */
body.dark-theme.home-active #app,
body.dark-theme.home-active .home-web-layout,
body.dark-theme.home-active .home-mobile-layout,
body.dark-theme.home-active #home-lower,
body.dark-theme.home-active #home-lower .lower-band,
body.dark-theme.home-active .cyx-sections-block,
body.dark-theme.home-active .cyx-sections-block--compact,
body.dark-theme.home-active #site-header,
body.dark-theme.home-active #site-header > header,
body.dark-theme.home-active #mobileStreakBanner {
  background: var(--dt-bg) !important;
  background-color: var(--dt-bg) !important;
  color: var(--dt-text) !important;
}

body.dark-theme.home-active:not(.rider-room-active):not(.player-dark) #home-lower {
  background: var(--dt-bg) !important;
  background-color: var(--dt-bg) !important;
}

body.dark-theme.home-active .home-weekly-main-note,
body.dark-theme.home-active .home-weekly-list,
body.dark-theme.home-active .hero-secondary-content,
body.dark-theme.home-active .cyx-section-card,
body.dark-theme.home-active .cyx-section-list-item,
body.dark-theme.home-active .cyx-sections-arrow,
body.dark-theme.home-active .cyx-sections-toggle,
body.dark-theme.home-active .cyx-sections-toggle-btn {
  background: var(--dt-surface) !important;
  background-color: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
  color: var(--dt-text) !important;
}

body.dark-theme.home-active .cyx-section-card-title,
body.dark-theme.home-active .cyx-section-expert-name,
body.dark-theme.home-active .cyx-section-list-title,
body.dark-theme.home-active .cyx-sections-title,
body.dark-theme.home-active .home-weekly-main-title,
body.dark-theme.home-active .home-weekly-item h4,
body.dark-theme.home-active .hero-title-sm,
body.dark-theme.home-active .hero-cat-sm,
body.dark-theme.home-active .hero-duration-sm {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active .cyx-section-card-desc,
body.dark-theme.home-active .cyx-section-expert-role,
body.dark-theme.home-active .cyx-sections-subtitle,
body.dark-theme.home-active .home-weekly-main-desc,
body.dark-theme.home-active .home-weekly-main-meta,
body.dark-theme.home-active .home-weekly-item span,
body.dark-theme.home-active .small-muted {
  color: var(--dt-muted) !important;
}

/* Final, highly specific home lower fixes */
body.dark-theme.home-active section#home-lower .cyx-sections-cards .cyx-sections-track > a.cyx-section-card,
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > article.home-weekly-main-note,
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > aside.home-weekly-list,
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > aside.home-weekly-list .home-weekly-item,
body.dark-theme.home-active section#home-lower .hero-secondary-card .hero-secondary-content {
  background: var(--dt-surface) !important;
  background-color: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.home-active section#home-lower .cyx-sections-cards .cyx-sections-track > a.cyx-section-card :is(.cyx-section-card-title,.cyx-section-expert-name),
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > article.home-weekly-main-note :is(.home-weekly-main-title,.home-weekly-kicker,.home-weekly-main-cta),
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > aside.home-weekly-list .home-weekly-item h4 {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active section#home-lower .cyx-sections-cards .cyx-sections-track > a.cyx-section-card :is(.cyx-section-card-desc,.cyx-section-expert-role),
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > article.home-weekly-main-note :is(.home-weekly-main-desc,.home-weekly-main-meta),
body.dark-theme.home-active section#home-lower .home-weekly-notes-grid > aside.home-weekly-list .home-weekly-item span {
  color: var(--dt-muted) !important;
}

/* Keep Explora/Preguntas section shells on the same page background in dark mode. */
body.dark-theme.home-active #home-lower .lower-band.home-weekly-notes,
body.dark-theme.home-active #home-lower .lower-band.home-weekly-notes .lower-container,
body.dark-theme.home-active #home-lower .lower-band.home-weekly-notes .home-weekly-notes-head,
body.dark-theme.home-active #home-lower .lower-band.home-weekly-notes .home-weekly-notes-grid {
  background: var(--dt-bg) !important;
  background-color: var(--dt-bg) !important;
}

/* Explora Cyclick: style cards/icons only, not the full block shell. */
body.dark-theme.home-active #home-lower .lower-band.desktop-home-sections-band,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-sections-band .lower-container,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-sections-band .cyx-sections-block,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-sections-band .cyx-sections-head,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-sections-band .cyx-sections-cards {
  background: var(--dt-bg) !important;
  background-color: var(--dt-bg) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-sections-band .desktop-explore-item {
  background: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-sections-band .desktop-explore-text,
body.dark-theme.home-active #home-lower .desktop-home-sections-band .cyx-section-compact-title,
body.dark-theme.home-active #home-lower .desktop-home-sections-band .cyx-sections-title {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-sections-band .cyx-section-card.cyx-section-card--compact {
  background: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.home-active #home-lower .home-riderroom-card {
  border: 0.5px solid var(--dt-border) !important;
}

/* Player page dark fixes. */
:is(body.dark-theme.player-standard) .player-info-mobile #player-title-mobile,
:is(body.dark-theme.player-standard) .player-info-mobile .h5,
:is(body.dark-theme.player-standard) .player-info-mobile #player-expert-mobile,
:is(body.dark-theme.player-standard) .player-info-mobile .player-expert-name,
:is(body.dark-theme.player-standard) .player-info-mobile #player-expert-mobile a,
:is(body.dark-theme.player-standard) .player-info-mobile a,
:is(body.dark-theme.player-standard) .player-info-mobile .player-desc-more-mobile {
  color: var(--dt-text) !important;
}

:is(body.dark-theme.player-standard) .player-ad-banner,
:is(body.dark-theme.player-standard) #player-ad-banner,
:is(body.dark-theme.player-standard) #playerAdBanner {
  background: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
}

:is(body.dark-theme.player-standard) .player-ad-banner-name,
:is(body.dark-theme.player-standard) .player-ad-banner-tagline,
:is(body.dark-theme.player-standard) .player-ad-banner-label,
:is(body.dark-theme.player-standard) .player-ad-name,
:is(body.dark-theme.player-standard) .player-ad-desc,
:is(body.dark-theme.player-standard) .player-ad-label {
  color: var(--dt-text) !important;
}

:is(body.dark-theme.player-standard) .player-sidebar-item-title,
:is(body.dark-theme.player-standard) .player-sim-guest,
:is(body.dark-theme.player-standard) .player-sim-title,
:is(body.dark-theme.player-standard) .player-sim-topic {
  color: var(--dt-text) !important;
}

:is(body.dark-theme.player-standard) .player-rec-title,
:is(body.dark-theme.player-standard) .fw-bold.player-rec-title {
  color: var(--dt-text) !important;
}

body.dark-theme.player-standard #app .player-rec-mobile .fw-bold.player-rec-title {
  color: var(--dt-text) !important;
}

:is(body.dark-theme.player-standard) .player-sidebar-item-meta,
:is(body.dark-theme.player-standard) .player-sim-section,
:is(body.dark-theme.player-standard) .player-sim-duration {
  color: var(--dt-muted) !important;
}

@media (max-width: 1023px) {
  body.dark-theme.home-active #home-lower .home-riderroom-banner .home-riderroom-card {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* Home mobile tracks: keep video titles readable in dark mode */
body.dark-theme.home-active #home-lower .cyx-new-card-title,
body.dark-theme.home-active #home-quick-section .cyx-new-card-title,
body.dark-theme.home-active .home-mobile-layout .cyx-new-track .cyx-new-card-title,
body.dark-theme.home-active .home-mobile-layout .quick-cyx-track .cyx-new-card-title {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active #home-lower .cyx-new-card-date,
body.dark-theme.home-active #home-quick-section .cyx-new-card-date,
body.dark-theme.home-active .home-mobile-layout .cyx-new-track .cyx-new-card-date,
body.dark-theme.home-active .home-mobile-layout .quick-cyx-track .cyx-new-card-date {
  color: var(--dt-muted) !important;
}

/* Home desktop dark polish: quick cards and hero panels must stay dark */
body.dark-theme.home-active .home-web-layout .web-hero-full .hero-feature-content,
body.dark-theme.home-active .home-web-layout .web-hero-secondary-row .hero-secondary-card,
body.dark-theme.home-active .home-web-layout .web-hero-secondary-row .hero-secondary-content {
  background: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
}

body.dark-theme.home-active .home-web-layout .web-hero-full .hero-feature-content .hero-title,
body.dark-theme.home-active .home-web-layout .web-hero-full .hero-feature-content .hero-meta,
body.dark-theme.home-active .home-web-layout .web-hero-secondary-row .hero-secondary-content .hero-title-sm,
body.dark-theme.home-active .home-web-layout .web-hero-secondary-row .hero-secondary-content .hero-meta-sm {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-video-card,
body.dark-theme.home-active #home-lower .video-card.desktop-home-video-card {
  background: var(--dt-surface) !important;
  border-color: var(--dt-border) !important;
  color: var(--dt-text) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-video-card .title,
body.dark-theme.home-active #home-lower .video-card.desktop-home-video-card .title {
  color: var(--dt-text) !important;
}

body.dark-theme.home-active #home-lower .desktop-home-video-card .sub,
body.dark-theme.home-active #home-lower .video-card.desktop-home-video-card .sub {
  color: var(--dt-muted) !important;
}

body.dark-theme.home-active #home-lower .cyx-section-card-media {
  background: var(--dt-surface-2) !important;
}

/* Home block separators: avoid bright divider masks in dark mode */
body.dark-theme.home-active #home-lower .lower-band:first-child,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-quick-band,
body.dark-theme.home-active #home-lower .lower-band.home-riderroom-banner {
  background: var(--dt-bg) !important;
  background-color: var(--dt-bg) !important;
}

body.dark-theme.home-active #home-lower .lower-band:first-child::after,
body.dark-theme.home-active #home-lower .lower-band.desktop-home-quick-band::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

body.dark-theme.home-active #home-lower .home-riderroom-banner::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-card-content,
body.dark-theme:not(.rider-room-active):not(.player-dark) #explore-grid .explore-section-card,
body.dark-theme:not(.rider-room-active):not(.player-dark) #explore-grid .explore-section-card-content{
  background:var(--dt-surface) !important;
  border-color:var(--dt-border) !important;
}

body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-card-title,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-expert-name,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-count,
body.dark-theme:not(.rider-room-active):not(.player-dark) .sections-page .explore-section-expert-role{
  color:var(--dt-text) !important;
}
