/* Dark mode (Nov 12): colours copied from havineini.org's dark theme — page #232820, cards #2C3227, text #E9EBDF, muted #B5BCA9, lines rgba(255,255,255,.08), accent gold #9DB87A. Feed colours stay. */
html.dark{color-scheme:dark;background:#232820}
html.dark body{background:#232820 !important;color:#E9EBDF}
html.dark [style*="background: rgb(247, 245, 240)"],
html.dark [style*="background-color: rgb(247, 245, 240)"],
html.dark [style*="background:#F7F5F0"],
html.dark [style*="background: #F7F5F0"]{background:#232820 !important}
html.dark [style*="background: rgb(255, 255, 255)"],
html.dark [style*="background-color: rgb(255, 255, 255)"],
html.dark [style*="background: rgba(255, 255, 255, 0.96)"],
html.dark [style*="background: rgba(255, 255, 255, 0.95)"],
html.dark [style*="background: rgb(255, 254, 250)"],
html.dark [style*="background:#fff"],
html.dark [style*="background:#FFFEFA"]{background:#2C3227 !important}
html.dark [style*="color: rgb(26, 26, 26)"],
html.dark [style*="color: oklch(0.15"],
html.dark [style*="color:#1A1A1A"],
html.dark [style*="color: rgb(23, 43, 42)"]{color:#E9EBDF !important}
html.dark [style*="color: rgb(90, 80, 64)"],
html.dark [style*="color: rgb(138, 126, 110)"],
html.dark [style*="color: rgb(107, 107, 107)"],
html.dark [style*="color:#5A5040"],
html.dark [style*="color:#8A7E6E"],
html.dark [style*="color: rgba(26, 48, 46, 0.64)"]{color:#B5BCA9 !important}
html.dark [style*="border: 1px solid rgba(0, 0, 0"],
html.dark [style*="border:1px solid rgba(0,0,0"]{border-color:rgba(255,255,255,0.08) !important}
html.dark [style*="border-bottom: 1px solid rgba(0, 0, 0"]{border-bottom-color:rgba(255,255,255,0.08) !important}
html.dark [style*="background: rgba(0, 0, 0, 0.0"],
html.dark [style*="background: rgba(0, 0, 0, 0.1)"],
html.dark [style*="background:rgba(0,0,0,.0"]{background:rgba(255,255,255,0.07) !important}
html.dark [style*="color: rgb(31, 107, 107)"]{color:#9DB87A !important}
html.dark [style*="background: rgb(31, 107, 107)"],
html.dark [style*="background-color: rgb(31, 107, 107)"]{background:#9DB87A !important;color:#232820 !important}
html.dark [style*="background: rgba(31, 107, 107, 0.1"],
html.dark [style*="background: rgba(31, 107, 107, 0.09"],
html.dark [style*="background: rgba(31, 107, 107, 0.08"]{background:rgba(157,184,122,0.13) !important}
html.dark [style*="border: 1px solid rgba(31, 107, 107"]{border-color:rgba(157,184,122,0.3) !important}
html.dark [style*="box-shadow: rgba(0, 0, 0"]{box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
html.dark .bg-white,
html.dark .x64-p,
html.dark .x4-pick{background:#2C3227 !important}
html.dark #navwrap .rounded-full.shadow-lg{background:#2C3227 !important;border-color:rgba(255,255,255,0.08) !important}
html.dark header,
html.dark .ma-top,
html.dark .ma-hd,
html.dark .ka-hd,
html.dark .kr-top{background:#232820 !important;border-color:rgba(255,255,255,0.08) !important}
html.dark .ma,
html.dark .ma-bd{background:transparent;color:#E9EBDF}
html.dark .ma-tile,
html.dark .ma-pl,
html.dark .ma-kr,
html.dark .ma-ns,
html.dark .ma-clip,
html.dark .ma-cc,
html.dark .ma-empty,
html.dark .ma-plsw,
html.dark .ma-search,
html.dark .ma-sh,
html.dark .ma-askc,
html.dark .ma-dsec,
html.dark .x127q,
html.dark .kl-box,
html.dark .kp-arch,
html.dark .ka-c,
html.dark .hv-banner{background:#2C3227 !important;border-color:rgba(255,255,255,0.08) !important;color:#E9EBDF}
html.dark .ma-tn,
html.dark .ma-h1,
html.dark .ma-h2,
html.dark .ma-lib,
html.dark .ma-tt,
html.dark .ma-askc h4,
html.dark .kp-ai b,
html.dark .ka-ti h2,
html.dark .hv-banner h3,
html.dark .x64-t,
html.dark .x64-hd b,
html.dark .ma-plt b{color:#E9EBDF !important}
html.dark .ma-libp,
html.dark .ma-cnt,
html.dark .ma-day,
html.dark .ma-ep,
html.dark .ma-et,
html.dark .ma-ntx,
html.dark .ma-askc p,
html.dark .kp-ai span,
html.dark .ka-ti p,
html.dark .hv-banner p,
html.dark .x64-m,
html.dark .ma-tab,
html.dark .ma-plt small,
html.dark .kp-ar,
html.dark .ma-tile.ma-t0 .ma-tc{color:#B5BCA9 !important}
html.dark .ma-tab.on{color:#9DB87A !important;border-color:#9DB87A !important}
html.dark .ma-bk,
html.dark .ma-ed,
html.dark .ma-dl,
html.dark .ka-bk,
html.dark .ma-askb button,
html.dark .ma-tile.ma-t0 .ma-tic{background:rgba(255,255,255,0.07) !important;color:#E9EBDF}
html.dark .ma-bk svg,
html.dark .ka-bk svg{stroke:#E9EBDF}
html.dark .ma-askb button.red{background:#DC2626 !important;color:#fff}
html.dark input,
html.dark textarea,
html.dark .ma-in,
html.dark .x64-sr,
html.dark .ka-in{background:#253050 !important;color:#E9EBDF !important;border-color:rgba(255,255,255,0.12) !important}
html.dark input::placeholder,
html.dark textarea::placeholder{color:#B5BCA9 !important}
html.dark .ma-tg{background:rgba(255,255,255,.2) !important}
html.dark .ma-tg.on{background:#9DB87A !important}
html.dark .hv-bbtn,
html.dark .ma-browse{background:rgba(157,184,122,0.13) !important;color:#9DB87A !important;border-color:rgba(157,184,122,0.3) !important}
html.dark .x64-c{color:#B5BCA9}
html.dark .x64-done{color:#232820}
html.dark #toast,
html.dark .hv-toast{background:#E9EBDF !important;color:#232820 !important}
html.dark .ka,
html.dark .kp,
html.dark .kr-root{background:#232820 !important;color:#E9EBDF}
html.dark .ka-hd{background:rgba(35,40,32,.95) !important}

/* dark: player card, mini player, headings */
html.dark [style*="background: rgba(247, 245, 240"]{background:rgba(44,50,39,.92) !important}
html.dark #x9-bar{background:#2C3227 !important;border-color:rgba(255,255,255,0.08) !important;color:#E9EBDF}
html.dark #x9-bar .ln{background:rgba(255,255,255,.1) !important}
html.dark #x9-bar .t,html.dark #x9-bar b+span,html.dark #x9-bar p{color:#E9EBDF}
html.dark #page h1,html.dark #page h2,html.dark #page h3{color:#E9EBDF}
html.dark .hv-tl,html.dark .dm-pct{color:#B5BCA9}

html.dark [style*="background: rgba(255, 255, 255, 0.72)"],html.dark [style*="background: rgba(255, 255, 255, 0.8"],html.dark .hv6-field,html.dark .hvc-b{background:#2C3227 !important;border-color:rgba(255,255,255,0.08) !important}
html.dark #x9-bar b,html.dark .ma-cn,html.dark .ma-ns p,html.dark .ma-nr p,html.dark .ma-kr b,html.dark .ka b,html.dark .hvc-b,html.dark .hvc-b *{color:#E9EBDF}
html.dark .ma-cmode,html.dark .ma-cl,html.dark .ma-cf,html.dark .ma-clear,html.dark .ka-cap{color:#B5BCA9}
html.dark button.on[style=""],html.dark .hvx-help{color:#9DB87A}
html.dark .ma-plbar{background:rgba(255,255,255,.08)}

/* v13: symbols stay WHITE in dark, exactly like havineini.org (white disc, feed-colour ring, white label pill) */
html.dark .rounded-full.bg-white,html.dark [role=img].rounded-full,html.dark .rounded-full[style*="background: rgba(255, 255, 255, 0.9"],html.dark .x67s,html.dark .hv-sym,html.dark [class*="hvsym"]{background:rgba(255,255,255,.95) !important}
html.dark .ma-flab{color:#E8A0B4;border-color:rgba(232,160,180,.35);background:rgba(232,160,180,.08)}
html.dark .hv-fl-in{background:#253050;color:#E9EBDF}
html.dark [data-pf=root] .w-10.h-6 > div{background:#fff !important}
html.dark [data-pf=root] .w-10.h-6[style*="rgba(0, 0, 0, 0.15)"]{background:rgba(255,255,255,.18) !important}
html.dark .hv-swbg{background:rgba(22,163,74,.2)}
html.dark #hv-myf{background:rgba(157,184,122,.10)!important;border-color:rgba(157,184,122,.27)!important}
html.dark #hv-myf .hv-myf-t,html.dark #hv-myf .hv-myf-n{color:#9DB87A!important}
html.dark #hv-myf .hv-myf-ic{background:rgba(157,184,122,.13)!important;color:#9DB87A!important}
html.dark .hv-mfb{background:rgba(157,184,122,.07)!important;border-color:rgba(157,184,122,.18)!important}
html.dark .hv-mfb span{background:#9DB87A!important}html.dark .hv-mfb p{color:#9DB87A!important}
html.dark .player-mobile-timeline > div.relative > .hv-bdot{box-shadow:0 0 0 2px #232820!important}
html.dark .hv-ned textarea,html.dark .hv-ned input{background:#253050!important;color:#E9EBDF!important;border-color:rgba(255,255,255,.12)!important}
html.dark .hv-dr .tr .pl{background:rgba(255,255,255,.22)!important}
html.dark .hv-dlh h2{color:#E9EBDF!important}html.dark .hv-dlh p,html.dark .hv-dlt,html.dark .hv-dle{color:#B5BCA9!important}html.dark .hv-dlbk{background:rgba(255,255,255,.08)!important;color:#E9EBDF!important}html.dark #x14-dl .hv-dlr .bg{stroke:rgba(255,255,255,.12)!important}
html.dark .hv-set{background:rgba(255,255,255,.06)!important}

/* Disc logos stay WHITE in dark mode (David 2026-11-15): the blanket white-card
   override above must not touch the FeedMark circle */
html.dark .hv-disc{background:rgba(255,255,255,0.95)!important}

/* Consistent dark shell and readable identity controls. */
html.dark body #scroller,html.dark body #scin,html.dark body .ma,html.dark body .ma-bd{background:#232820 !important;}
html.dark body header button:not([aria-label="Go to Today"]){color:#E7DBB6 !important;background:rgba(157,184,122,.12) !important;border-color:rgba(157,184,122,.35) !important;}
html.dark body header button[aria-label="Go to Today"]{background:#F7F5F0 !important;border-radius:8px;padding:3px 8px;}
html.dark body #navwrap a,html.dark body #navwrap button{color:#BBCACD;}
html.dark:not(#z1):not(#z2):not(#z3) body header button:not([aria-label="Go to Today"]){color:#E7DBB6 !important;background:rgba(157,184,122,.12) !important;border-color:rgba(157,184,122,.35) !important;}
html.dark:not(#z1):not(#z2):not(#z3) body .ma .ma-tc,html.dark:not(#z1):not(#z2):not(#z3) body .ma .ma-ts,html.dark:not(#z1):not(#z2):not(#z3) body .ma .ma-tic{color:#BBCBD2 !important;}
html.dark:not(#z1):not(#z2):not(#z3) body #navwrap{background:#232820 !important;}
html.dark:not(#z1):not(#z2):not(#z3) body #navwrap a,html.dark:not(#z1):not(#z2):not(#z3) body #navwrap button{color:#BBCBD2 !important;}
/* v60: the light player artwork wash must not paint over the dark controls. */
html.dark .plyr{background:#232820!important}
html.dark .plyr>.absolute[aria-hidden="true"]{opacity:.1!important}
html.dark .plyr>.absolute[aria-hidden="true"]>div{background:linear-gradient(#232820,rgba(35,40,32,.8),#232820)!important}
html.dark .plyr button[aria-label="Back"],html.dark .plyr button[aria-label="Attachments"],html.dark .plyr button[aria-label^="Download"]{color:#E9EBDF!important;background:rgba(255,255,255,.08)!important}
html.dark .plyr button[aria-label="Save for offline"],html.dark .plyr button[aria-label="Save for offline"] span{color:#E9EBDF!important;background:rgba(255,255,255,.08)!important}
html.dark .plyr .hv-av-row button{color:#D2DDE1!important}
html.dark .plyr .hv-av-row button[style*="background:"]{background:#9DB87A!important;color:#232820!important}
html.dark:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6) body .plyr .hv-av-row button[style*="background:"]{background:#9DB87A!important;color:#232820!important}
html.dark:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6) body .plyr .hv-av-row button[style*="background:"] *{color:#232820!important}
html.dark .plyr .hv-av-row button{transition:none!important}
/* v60: shared-row playlist state stays legible on dark cards. */
html.dark .x68-r button[aria-label="Save to a playlist"]{color:#D4DFE3!important;background:rgba(210,221,225,.1)!important}
html.dark .x68-r button[aria-label="Save to a playlist"]:has(svg[data-v32any="1"]){color:#B9D880!important;background:rgba(185,216,128,.12)!important}
html.dark .hv-topic-box{color:#EDA7BD!important;background:rgba(237,167,189,.08)!important;border-color:rgba(237,167,189,.22)!important}
/* Keep mobile header identity controls readable against the dark shell at all widths. */
html.dark:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6) body header button:not([aria-label="Go to Today"]){color:#E7DBB6!important;background:rgba(157,184,122,.12)!important;border-color:rgba(157,184,122,.35)!important}
html.dark:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6) body header button:not([aria-label="Go to Today"]) svg{color:#E7DBB6!important;stroke:#E7DBB6!important}
html.dark [aria-label="Create and save clip"]>div:last-child{background:#2C3227!important;color:#E9EBDF!important}
html.dark [aria-label="Create and save clip"]>div:last-child>h2{color:#E9EBDF!important}
html.dark [aria-label="Create and save clip"]>div:last-child>button:last-child{color:#D4DFE3!important;background:rgba(255,255,255,.07)!important}
