/* RedFeed — modo claro (editorial: branco frio + vermelho marca, sem rosa) */
html[data-rf-theme="light"] {
  color-scheme: light;
  --rf-bg: #f6f7f9;
  --rf-card: #ffffff;
  --rf-card2: #eef1f5;
  --rf-red: #e11d48;
  --rf-red2: #ff174d;
  --rf-pink: #e11d48;
  --rf-white: #0f172a;
  --rf-muted: #64748b;
  --rf-border: rgba(15, 23, 42, 0.1);
  --rf-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  --rf-media-bg: #fff;
  --rf-text: #0f172a;
  --rf-text-secondary: #475569;
  --rf-light-surface: #f1f5f9;
  --rf-light-surface-2: #e2e8f0;
  --rf-light-accent: #ff174d;
  --rf-light-accent-deep: #be123c;
  text-rendering: optimizeLegibility;
}

html[data-rf-theme="light"],
html[data-rf-theme="light"] body {
  background: #f6f7f9 !important;
  background-image: none !important;
  color: var(--rf-text);
  font-weight: 500;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

html[data-rf-theme="light"] body.rf-redfeed-home,
html[data-rf-theme="light"][data-rf-native-app="1"] body.rf-redfeed-home {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 180px, #f6f7f9 100%) !important;
}

html[data-rf-theme="light"] .rf-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) !important;
}

html[data-rf-theme="light"] .rf-nav a {
  color: #3a3a48;
}

html[data-rf-theme="light"] .rf-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #14141c;
}

html[data-rf-theme="light"] .rf-panel-btn {
  background: var(--rf-light-surface) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-rf-theme="light"] .rf-panel-btn:hover {
  background: var(--rf-light-surface-2) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

html[data-rf-theme="light"] .rf-panel-btn i {
  color: #475569 !important;
}

html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="dashboard"],
html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="login"] {
  background: linear-gradient(135deg, #be123c 0%, #881337 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(136, 19, 55, 0.22) !important;
}

html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="dashboard"]:hover,
html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="login"]:hover {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%) !important;
  box-shadow: 0 10px 26px rgba(190, 18, 60, 0.26) !important;
}

html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="dashboard"] i,
html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="login"] i {
  color: #fff !important;
}

html[data-rf-theme="light"] .rf-theme-toggle-btn,
html[data-rf-theme="light"] .rf-notif-btn {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

html[data-rf-theme="light"] .rf-theme-toggle-btn:hover,
html[data-rf-theme="light"] .rf-notif-btn:hover {
  background: var(--rf-light-surface) !important;
  color: #0f172a !important;
}

html[data-rf-theme="light"] .rf-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

html[data-rf-theme="light"] .rf-bottom-nav a {
  color: #6a6a7a;
}

html[data-rf-theme="light"] .rf-bottom-nav a:hover,
html[data-rf-theme="light"] .rf-bottom-nav a.active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

html[data-rf-theme="light"] .rf-bottom-nav a.active i {
  color: #ff174d;
}

html[data-rf-theme="light"] .rf-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06) !important;
}

html[data-rf-theme="light"] .rf-muted {
  color: #4a4a5c !important;
  font-weight: 600;
}

/* === Fundos de mídia (substitui #000 / #101018 no feed) === */
html[data-rf-theme="light"] .rf-post-media,
html[data-rf-theme="light"] .rf-post-media-wrap,
html[data-rf-theme="light"] .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media-wrap,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-media,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream .rf-post-media,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-media-wrap {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"] .rf-post-media img,
html[data-rf-theme="light"] .rf-post-media video,
html[data-rf-theme="light"] .rf-post-stream .rf-post-media img,
html[data-rf-theme="light"] .rf-post-stream .rf-post-media video,
html[data-rf-theme="light"] .rf-feed-vid-thumb img,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media img,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media video {
  background: var(--rf-media-bg) !important;
}

/* Home feed — substitui fundos pretos */
html[data-rf-theme="light"].rf-redfeed-home-page,
html[data-rf-theme="light"] body.rf-redfeed-home {
  background: #f6f7f9 !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-shell,
html[data-rf-theme="light"] body.rf-redfeed-home main,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream,
html[data-rf-theme="light"] body.rf-redfeed-home #feed-premium,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-list,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-home-feed-panel,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-shell,
html[data-rf-theme="light"][data-rf-native-app="1"] main,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream,
html[data-rf-theme="light"][data-rf-native-app="1"] #feed-premium,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-list,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-home-feed-panel {
  background: #f6f7f9 !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-list .rf-post.rf-card,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream .rf-post,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-list .rf-post.rf-card,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream .rf-post {
  background: #fff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09) !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-top,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-body,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-caption-below,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-live-comments-ticker,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-engage-oneline,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-top,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-body,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-caption-below,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-live-comments-ticker,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-engage-oneline {
  background: #fff !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-post.rf-card {
  border-bottom-color: rgba(0, 0, 0, 0.09) !important;
}

html[data-rf-theme="light"] .rf-post-top strong,
html[data-rf-theme="light"] .rf-post-caption,
html[data-rf-theme="light"] .rf-post-caption-preview,
html[data-rf-theme="light"] .rf-post-engage-oneline-text,
html[data-rf-theme="light"] .rf-post-top span {
  color: #12121a !important;
  font-weight: 700;
}

html[data-rf-theme="light"] .rf-post-actions button,
html[data-rf-theme="light"] .rf-post-actions form button {
  color: #2a2a38 !important;
  font-weight: 800;
}

html[data-rf-theme="light"] .rf-post-engage-oneline {
  border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

html[data-rf-theme="light"] .rf-post-engage-oneline-text {
  font-weight: 600 !important;
}

html[data-rf-theme="light"] .rf-live-comment-body strong,
html[data-rf-theme="light"] .rf-live-comment-body span {
  color: #2a2a38 !important;
}

html[data-rf-theme="light"] .rf-story,
html[data-rf-theme="light"] .rf-story span {
  color: #12121a !important;
  font-weight: 800;
}

html[data-rf-theme="light"] .rf-story small {
  color: #5c5c6e !important;
  font-weight: 700;
}

html[data-rf-theme="light"] .rf-home-feed-tabs--scroll .rf-home-feed-tab {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #3a3a48 !important;
  font-weight: 800 !important;
}

html[data-rf-theme="light"] .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #ff174d 0%, #e11d48 100%) !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.22) !important;
}

html[data-rf-theme="light"] .rf-post-media,
html[data-rf-theme="light"] .rf-post-media-wrap {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"] .rf-post-media img,
html[data-rf-theme="light"] .rf-post-media video {
  background: var(--rf-media-bg) !important;
}

/* Layout modes / mobile polish — anula fundo preto */
html[data-rf-theme="light"] .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] .rf-post-list .rf-post .rf-post-media,
html[data-rf-theme="light"] body.rf-feed-layout-cards .rf-post-media,
html[data-rf-theme="light"] body.rf-feed-layout-classic .rf-post-media {
  background: var(--rf-media-bg) !important;
}

/* Desktop shell claro */
html[data-rf-theme="light"] .rf-desktop-rail {
  background: rgba(255, 255, 255, 0.96) !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-rf-theme="light"] .rf-desktop-rail-item {
  color: #14141c !important;
}

html[data-rf-theme="light"] .rf-desktop-rail-item i {
  color: #3a3a48 !important;
}

html[data-rf-theme="light"] .rf-desktop-rail-item:hover,
html[data-rf-theme="light"] .rf-desktop-rail-item.is-active {
  background: rgba(15, 23, 42, 0.06) !important;
}

html[data-rf-theme="light"] .rf-desktop-rail-item.is-active i {
  color: #ff174d !important;
}

html[data-rf-theme="light"] .rf-desktop-aside-block {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-rf-theme="light"] .rf-desktop-quick-chip {
  background: linear-gradient(145deg, #fff 0%, #f6f7fb 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #14141c !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

html[data-rf-theme="light"] .rf-desktop-quick-chip i {
  color: #ff174d !important;
}

html[data-rf-theme="light"] .rf-desktop-mini-reel-desc,
html[data-rf-theme="light"] .rf-desktop-trend-tag,
html[data-rf-theme="light"] .rf-desktop-trend-meta,
html[data-rf-theme="light"] .rf-desktop-mini-reel-meta,
html[data-rf-theme="light"] .rf-desktop-aside-stats-line {
  color: #5c5f6e !important;
}

html[data-rf-theme="light"] .rf-desktop-trend-row strong {
  color: #14141c !important;
}

html[data-rf-theme="light"] .rf-desktop-mini-reel:hover,
html[data-rf-theme="light"] .rf-desktop-trend-row:hover,
html[data-rf-theme="light"] .rf-desktop-quick-chip:hover {
  background: rgba(15, 23, 42, 0.05) !important;
}

html[data-rf-theme="light"] .rf-desktop-msg-pill {
  background: #fff !important;
  color: #14141c !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Comentários / modais */
html[data-rf-theme="light"] .rf-comment-sheet {
  background: #fff !important;
  color: #14141c !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-head {
  background: #fff !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  color: #14141c !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-form input {
  background: #f3f3f6 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #14141c !important;
}

html[data-rf-theme="light"] .rf-social-comment-text {
  color: #2a2a34 !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-pane {
  background: #fff !important;
  border-left-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-backdrop {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* Seletor de tema */
.rf-theme-picker {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.rf-theme-picker.on {
  display: flex;
}

.rf-theme-picker-card {
  width: min(400px, 100%);
  background: linear-gradient(180deg, #1a1220, #0a0a10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #fff;
}

html[data-rf-theme="light"] .rf-theme-picker-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #14141c;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.rf-theme-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rf-theme-picker-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.rf-theme-picker-close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

html[data-rf-theme="light"] .rf-theme-picker-close {
  background: rgba(0, 0, 0, 0.06);
}

.rf-theme-picker-options {
  display: grid;
  gap: 10px;
}

.rf-theme-picker-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

html[data-rf-theme="light"] .rf-theme-picker-opt {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f6f6f9;
}

html[data-rf-theme="light"] .rf-theme-picker-opt i {
  color: #ff174d !important;
}

.rf-theme-picker-opt span {
  flex: 1;
}

.rf-theme-picker-opt small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.72;
  margin-top: 2px;
}

.rf-theme-picker-opt.is-active {
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.08);
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-header,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-logo-text {
  color: #0f172a !important;
  font-weight: 950;
}

html[data-rf-theme="light"] .rf-logo-text span,
html[data-rf-theme="light"] .rf-logo-red,
html[data-rf-theme="light"] body.rf-desktop-ui .rf-d-red,
html[data-rf-theme="light"] .rf-desktop-rail-logo-text .rf-d-red {
  color: #ff174d !important;
}

.rf-logo-red {
  color: var(--rf-red2);
}

html[data-rf-theme="light"][data-rf-native-app="1"],
html[data-rf-theme="light"][data-rf-native-app="1"] body {
  background: #fafafa !important;
}

html[data-rf-theme="light"] .rf-theme-toggle-btn {
  color: #14141c;
}

/* Botão flutuante — mobile feed */
.rf-theme-fab {
  display: none;
}

@media (max-width: 1099px) {
  body.rf-redfeed-home .rf-theme-fab {
    display: grid;
    place-items: center;
    position: fixed;
    left: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 85;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 18, 26, 0.92);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    backdrop-filter: blur(12px);
  }

  html[data-rf-theme="light"] body.rf-redfeed-home .rf-theme-fab {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.1);
    color: #14141c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }
}

@media (min-width: 1100px) {
  .rf-theme-fab {
    display: none !important;
  }
}

/* === Overrides críticos feed home (ganham dos !important inline) === */
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-list .rf-post.rf-card,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream .rf-post,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-list .rf-post.rf-card,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream .rf-post {
  background: #fff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-media-wrap,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-caption-below,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media-wrap,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-caption-below {
  background: #fff !important;
}

html[data-rf-theme="light"][data-rf-native-app="1"] .rf-live-comments-ticker,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-live-comments-ticker {
  background: #fff !important;
}

html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-media,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] .rf-post-stream .rf-post-list article.rf-post .rf-post-media,
html[data-rf-theme="light"] .rf-post-list article.rf-post .rf-post-media,
html[data-rf-theme="light"] article.rf-post .rf-post-media {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"] .rf-post-stream .rf-post-list article.rf-post .rf-post-media > video,
html[data-rf-theme="light"] .rf-post-list article.rf-post .rf-post-media > video,
html[data-rf-theme="light"] article.rf-post .rf-post-media > video,
html[data-rf-theme="light"] .rf-post-media img,
html[data-rf-theme="light"] .rf-post-media video,
html[data-rf-theme="light"] .rf-feed-vid-thumb img {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"] .rf-feed-vid-shell,
html[data-rf-theme="light"] .rf-feed-vid-shell .rf-feed-vid-lazy,
html[data-rf-theme="light"] .rf-feed-vid-poster {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-body,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-body,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-top,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-top {
  background: #fff !important;
}

html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-engage-oneline,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-engage-oneline {
  background: #fff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
}

html[data-rf-theme="light"] .rf-post-engage-oneline-text {
  color: var(--rf-text-secondary) !important;
  font-weight: 600 !important;
}

html[data-rf-theme="light"] .rf-post-caption-preview {
  color: var(--rf-text-secondary) !important;
  font-weight: 500 !important;
}

html[data-rf-theme="light"] .rf-post-caption-preview strong {
  color: var(--rf-text) !important;
  font-weight: 800 !important;
}

/* Comentários — texto nítido */
html[data-rf-theme="light"] .rf-social-comment-top strong {
  color: var(--rf-text) !important;
  font-weight: 800 !important;
}

html[data-rf-theme="light"] .rf-social-comment-text {
  color: #1c1c28 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

html[data-rf-theme="light"] .rf-social-comment-top time,
html[data-rf-theme="light"] .rf-social-comment-dot {
  color: #5c5c70 !important;
  font-weight: 600 !important;
}

html[data-rf-theme="light"] .rf-social-comment-reply-btn {
  color: #5c5c70 !important;
  font-weight: 700 !important;
}

html[data-rf-theme="light"] .rf-engage-desc-head strong,
html[data-rf-theme="light"] .rf-engage-desc-text,
html[data-rf-theme="light"] .rf-engage-desc-time,
html[data-rf-theme="light"] .rf-comment-sheet-desc {
  color: var(--rf-text) !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-head span {
  color: var(--rf-text) !important;
  font-weight: 900 !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-footer {
  background: #f6f7fa !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-form button {
  color: #ff174d !important;
  font-weight: 900 !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-empty {
  color: #5c5c70 !important;
  font-weight: 600 !important;
}

/* Modal split — mídia cinza claro, não preto */
html[data-rf-theme="light"] .rf-comment-sheet-media,
html[data-rf-theme="light"] .rf-comment-sheet-media-inner,
html[data-rf-theme="light"] body.rf-desktop-ui .rf-comment-sheet-media,
html[data-rf-theme="light"] .rf-comment-sheet-media-vid,
html[data-rf-theme="light"] .rf-comment-sheet-media-img {
  background: var(--rf-media-bg) !important;
}

html[data-rf-theme="light"] .rf-comment-sheet-pane {
  background: #fff !important;
}

html[data-rf-theme="light"] .rf-feed-follow-btn.is-following {
  color: #4a4a58 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: #eef0f5 !important;
}

html[data-rf-theme="light"] .rf-desktop-suggest-row strong {
  color: var(--rf-text) !important;
  font-weight: 800 !important;
}

html[data-rf-theme="light"] .rf-desktop-aside-block h3 {
  color: var(--rf-text) !important;
  font-weight: 900 !important;
}

html[data-rf-theme="light"] .rf-theme-picker {
  backdrop-filter: none !important;
}

/* Layout modes + video contain — fundo cinza no modo claro */
html[data-rf-theme="light"] html[data-rf-feed-layout="classic"] body.rf-redfeed-home .rf-post-media-wrap .rf-post-media,
html[data-rf-theme="light"] body.rf-feed-layout-classic.rf-redfeed-home .rf-post-media-wrap .rf-post-media,
html[data-rf-theme="light"] html[data-rf-feed-layout="classic"] body.rf-redfeed-home .rf-post-media video,
html[data-rf-theme="light"] html[data-rf-feed-layout="classic"] body.rf-redfeed-home .rf-post-media > img,
html[data-rf-theme="light"] html[data-rf-feed-layout="cards"] body.rf-redfeed-home .rf-post-media video,
html[data-rf-theme="light"] html[data-rf-feed-layout="cards"] body.rf-redfeed-home .rf-post-media > img,
html[data-rf-theme="light"] body.rf-feed-layout-cards.rf-redfeed-home .rf-post-caption-below,
html[data-rf-theme="light"] .rf-post-stream .rf-post-list article.rf-post .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media-wrap .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media video,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media > video,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-media > img,
html[data-rf-theme="light"] .rf-feed-vid-shell {
  background: var(--rf-media-bg) !important;
}

/* Dark — stories e abas do feed legíveis */
html[data-rf-theme="dark"] .rf-story,
html:not([data-rf-theme="light"]) .rf-story {
  color: #ececf4 !important;
}

html[data-rf-theme="dark"] .rf-story > span:not(.rf-story-ring),
html:not([data-rf-theme="light"]) .rf-story > span:not(.rf-story-ring) {
  color: #ececf4 !important;
  font-weight: 800 !important;
}

html[data-rf-theme="dark"] .rf-story small,
html:not([data-rf-theme="light"]) .rf-story small {
  color: #a6a7b5 !important;
  font-weight: 700 !important;
}

html[data-rf-theme="dark"] .rf-home-feed-tabs--scroll .rf-home-feed-tab,
html:not([data-rf-theme="light"]) .rf-home-feed-tabs--scroll .rf-home-feed-tab {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #d5d5e2 !important;
  font-weight: 800 !important;
}

html[data-rf-theme="dark"] .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active,
html:not([data-rf-theme="light"]) .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--rf-red), var(--rf-pink)) !important;
  border-color: transparent !important;
}

/* Lista explorar — texto legível em cards claros */
html[data-rf-theme="light"] .rf-results[data-view="list"] .rf-creator-card {
  background: #fff !important;
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-results[data-view="list"] .rf-creator-card-name {
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-results[data-view="list"] .rf-creator-card-desc {
  color: #5a5a6a !important;
}

html[data-rf-theme="light"] .rf-section-head h2 {
  color: #12121a !important;
}

/* === Native app + modo claro (correção fundo preto) === */
html[data-rf-theme="light"][data-rf-native-app="1"],
html[data-rf-theme="light"][data-rf-native-app="1"] body,
html[data-rf-theme="light"].rf-redfeed-home-page {
  background: #f6f7f9 !important;
  background-image: none !important;
}

html[data-rf-theme="light"] .rf-explore,
html[data-rf-theme="light"] .rf-explore main,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-explore,
html[data-rf-theme="light"][data-rf-native-app="1"] main {
  background: #f6f7f9 !important;
}

html[data-rf-theme="light"] .rf-stories,
html[data-rf-theme="light"] .rf-home-stories,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-stories,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-home-stories {
  background: #f6f7f9 !important;
}

html[data-rf-theme="light"] .rf-shell::before,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-shell::before,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-shell::before {
  opacity: 0 !important;
  display: none !important;
}

html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post-stream .rf-post-media,
html[data-rf-theme="light"][data-rf-native-app="1"] .rf-post,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post-stream .rf-post-media,
html[data-rf-theme="light"] body.rf-redfeed-home .rf-post {
  background: #fff !important;
}

html[data-rf-theme="light"] .rf-modal {
  background: rgba(15, 15, 22, 0.45) !important;
}

html[data-rf-theme="light"] .rf-modal-card,
html[data-rf-theme="light"] .rf-modal-head h2 {
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-form-grid input,
html[data-rf-theme="light"] .rf-form-grid select {
  background: #f3f3f7 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-form-grid select option {
  background: #fff !important;
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-close {
  background: #f0f0f4 !important;
  color: #12121a !important;
}

html[data-rf-theme="light"] .rf-results[data-view="list"] .rf-creator-card {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

html[data-rf-theme="light"] .rf-creator-card-name {
  color: #12121a !important;
}

/* === Header polish — anula rosa do CSS base inline === */
html[data-rf-theme="light"] .rf-logo-mark {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

html[data-rf-theme="light"] .rf-logo-mark img {
  filter: none !important;
}

html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="logout"] {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

html[data-rf-theme="light"] .rf-header-inner a.rf-panel-btn[href*="logout"]:hover {
  background: var(--rf-light-surface) !important;
  color: #0f172a !important;
}

html[data-rf-theme="light"] .rf-btn-primary {
  background: linear-gradient(135deg, #ff174d 0%, #e11d48 100%) !important;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.2) !important;
}
