/* CLIK.ma feeds (clik_feeds.tpl, clik-feeds.js): the page of every feed (find, alerts, the feeds, the builder, the
   widget, the tools) and the page of one feed. Built on the .cd tokens (style.min.css); each source brings its colour
   as --c. 8px grid, logical properties (RTL), edge to edge on the phone. */

.cd.fd { --fd-rss: #F97316; --fd-yellow: #FFD000; --fd-green: #10B981; --fd-r: 16px; --c: var(--cd-ac); padding: 8px 8px 32px; font-size: 14.5px; }
.cd.fd a { color: inherit; text-decoration: none; }
.cd.fd h1, .cd.fd h2, .cd.fd h3 { margin: 0; color: var(--cd-ink); }
.cd.fd p { margin: 0; }
.cd.fd ul { margin: 0; padding: 0; list-style: none; }
.cd.fd img { max-width: 100%; }
.cd.fd .cf-ic { flex: none; display: block; }
.cd.fd .cd-btn.is-icon { width: 36px; padding: 0; }
.cd.fd .cd-btn[disabled] { opacity: .6; cursor: default; }
.cd.fd .cd-btn.is-busy { pointer-events: none; opacity: .7; }
.cd.fd select, .cd.fd input[type=search], .cd.fd input[type=text], .cd.fd input[type=number], .cd.fd textarea { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; font-size: 14.5px; color: var(--cd-ink); background: var(--cd-panel); box-shadow: inset 0 0 0 1.5px var(--cd-line); }
.cd.fd select { padding-inline-end: 32px; background: var(--cd-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
[dir="rtl"] .cd.fd select { background-position: left 12px center; }
.cd.fd select:focus, .cd.fd input:focus, .cd.fd textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--cd-ac), 0 0 0 4px var(--cd-acs); }
.cd.fd [hidden] { display: none !important; }
html.fd-noscroll { overflow: hidden; } /* html only: a body with its own overflow lets the sticky ticker slide away */

/* ---------- the banner (the same family as the forum's) ---------- */
.fd-hero, .fd-head { position: relative; display: flex; align-items: center; gap: 24px; overflow: hidden; margin-bottom: 16px; padding: 40px; border-radius: 24px; color: #fff;
  background: radial-gradient(circle at 85% 18%, rgba(140, 200, 255, .34), transparent 44%), linear-gradient(135deg, #2f7bff 0%, #0a4dff 55%, #0840d8 100%); }
.fd-head { background: radial-gradient(circle at 85% 18%, rgba(140, 200, 255, .34), transparent 44%), linear-gradient(135deg, #2f7bff 0%, #0a4dff 55%, #0840d8 100%); }
.fd-hero::before, .fd-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%); pointer-events: none; }
[dir="rtl"] .fd-hero::before, [dir="rtl"] .fd-head::before { -webkit-mask-image: linear-gradient(270deg, transparent 30%, #000 85%); mask-image: linear-gradient(270deg, transparent 30%, #000 85%); }
.fd-hero-in, .fd-head-in { position: relative; z-index: 2; flex: 0 1 680px; min-width: 0; }
.cd.fd .fd-hero h1, .cd.fd .fd-head h1 { margin: 16px 0 8px; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.cd.fd .fd-head h1 { font-size: 30px; }
.fd-hero p, .fd-head p { max-width: 580px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.fd-kicker { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* the cube and its bubbles, top right */
.fd-hero-art { position: relative; z-index: 1; flex: none; width: 240px; height: 200px; margin: 64px auto 0; transform: scale(var(--art, 1)); }
.fd-hero, .fd-head { min-height: 300px; }
@media (min-width: 1400px) { .fd-hero, .fd-head { min-height: 350px; } .fd-hero-art { --art: 1.3; } .fd-head .fd-hero-art { --art: 1.15; } }
@media (min-width: 1600px) { .fd-hero, .fd-head { min-height: 410px; } .fd-hero-art { --art: 1.6; } .fd-head .fd-hero-art { --art: 1.4; } }
@media (min-width: 1900px) { .fd-hero, .fd-head { min-height: 440px; } .fd-hero-art { --art: 1.75; } .fd-head .fd-hero-art { --art: 1.55; } }
.fd-cube { background: none !important; position: absolute; inset-inline-end: 40px; top: 40px; width: 120px; height: 120px; filter: drop-shadow(0 24px 24px rgba(4, 20, 70, .35)); animation: fd-float 6s ease-in-out infinite; }
.fd-bub { position: absolute; display: grid; place-items: center; border-radius: 20px; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fd-float 5s ease-in-out infinite; }
.fd-bub.is-1 { inset-inline-start: 0; top: 16px; width: 64px; height: 64px; background: var(--fd-rss); box-shadow: 0 12px 24px -8px rgba(249, 115, 22, .7); border-end-start-radius: 4px; animation-delay: -1s; }
.fd-bub.is-2 { inset-inline-end: 0; top: 0; width: 52px; height: 52px; color: #1a1300; background: var(--fd-yellow); border-end-end-radius: 4px; animation-delay: -2.5s; }
.fd-bub.is-3 { inset-inline-start: 32px; bottom: 8px; width: 52px; height: 52px; background: var(--fd-green); border-start-end-radius: 4px; animation-delay: -3.5s; }
.fd-head .fd-bub.is-2 { color: #fff; background: rgba(255, 255, 255, .18); }
.fd-head .fd-bub.is-3 { color: #1a1300; background: var(--fd-yellow); }
.fd-hero-art.is-sm { width: 210px; height: 180px; }
.fd-hero-art.is-sm .fd-cube { top: 36px; width: 104px; height: 104px; }
@keyframes fd-float { 50% { transform: translateY(-8px); } }

/* find a feed */
.fd-find { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 24px; height: 56px; padding: 0 16px; border-radius: 16px; color: #8a93a1; background: #fff; box-shadow: 0 16px 40px -16px rgba(4, 20, 70, .55); }
.cd.fd .fd-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; font-size: 15.5px; color: #0f1419; background: transparent; box-shadow: none; }
.cd.fd .fd-find input:focus { box-shadow: none; }
.fd-find input::-webkit-search-cancel-button { display: none; }
.fd-find-list { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 30; overflow: auto; max-height: min(420px, 60vh); padding: 8px; border-radius: 16px; text-align: start; color: var(--cd-ink); background: var(--cd-card); box-shadow: 0 24px 48px -16px rgba(4, 20, 70, .4), 0 0 0 1px var(--cd-line); }
.fd-find-it { display: flex; align-items: center; gap: 8px; border-radius: 10px; }
.fd-find-it > a { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.fd-find-it > a:hover, .fd-find-it > a.is-on { background: var(--cd-panel); }
.fd-find-it > a > span:last-child { min-width: 0; }
.fd-find-it b { display: block; overflow: hidden; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fd-find-it small { display: block; font-size: 12.5px; color: var(--cd-mute); }
.cd.fd .fd-find-it .cd-btn { flex: none; height: 32px; padding: 0 10px; font-size: 12px; color: var(--fd-rss); }
.fd-find-list p { padding: 12px; font-size: 13.5px; color: var(--cd-mute); }

.fd-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.fd-hero-stats b { font-size: 16px; font-weight: 800; color: #fff; }
.fd-hero-stats .is-live { display: inline-flex; align-items: center; gap: 8px; }
.fd-hero-stats .is-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: fd-pulse 2s infinite; }
@keyframes fd-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- the tabs under the banner ---------- */
.fd-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding: 8px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); scrollbar-width: none; }
.fd-tabs::-webkit-scrollbar { display: none; }
.fd-tabs a { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--cd-soft); white-space: nowrap; }
.fd-tabs a:hover { color: var(--cd-ink); background: var(--cd-panel); }
.fd-tabs em { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; font-size: 12px; font-style: normal; font-weight: 800; color: #1a1300; background: var(--fd-yellow); }

/* ---------- a section ---------- */
.fd-sec { margin-bottom: 16px; padding: 24px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); }
.fd-sec-h { display: flex; align-items: flex-start; gap: 16px; }
.fd-sec-h > div { flex: 1; min-width: 0; }
.cd.fd .fd-sec-h h2 { font-size: 20px; font-weight: 800; }
.fd-sec-h p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--cd-soft); }
.fd-count { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: var(--cd-soft); background: var(--cd-chip); }
.fd-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.fd-ic.is-sm { width: 40px; height: 40px; border-radius: 12px; }
.fd-ic.is-xs { width: 32px; height: 32px; border-radius: 10px; }
#feeds, #alerts, #builder, #tools { scroll-margin-top: 80px; }

/* alerts */
.fd-alert-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fd-alert { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--cd-panel); box-shadow: inset 0 0 0 1px var(--cd-line); transition: opacity .2s; }
[dir="rtl"] .fd-alert { padding: 12px 16px 12px 12px; }
.fd-alert-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #1a1300; background: var(--fd-yellow); }
.fd-alert.is-off .fd-alert-ic { color: var(--cd-mute); background: var(--cd-chip); }
.fd-alert.is-off .fd-alert-t b { color: var(--cd-mute); }
.fd-alert.is-going { opacity: .4; pointer-events: none; }
.fd-alert-t { flex: 1; min-width: 0; }
.fd-alert-t b { display: block; overflow: hidden; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fd-alert-t small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cd-mute); }
.fd-alert-act { display: flex; flex: none; gap: 8px; }
/* the alert's e-mail switch: pressed = blue */
.fd-alert-act .fd-mail { gap: 6px; }
.cd .fd-alert-act .fd-mail.is-on { color: #fff; background: #0866ff; box-shadow: none; }
.fd-alert-empty { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; color: var(--cd-mute); background: var(--cd-panel); box-shadow: inset 0 0 0 1.5px var(--cd-line); }
.fd-alert-empty p { font-size: 13.5px; line-height: 1.5; color: var(--cd-soft); }
.fd-alert-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--fd-yellow) 14%, var(--cd-card)); }
.fd-alert-cta p { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--cd-ink); }
.cd.fd .fd-bell { color: #1a1300; background: var(--fd-yellow); box-shadow: 0 8px 18px -10px rgba(180, 140, 0, .9); }
.cd.fd .fd-bell:hover { filter: brightness(1.04); }
.cd.fd .fd-bell.is-done { color: #fff; background: var(--fd-green); }

/* ---------- the cards of the sources ---------- */
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 16px; }
.fd-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow), inset 0 3px 0 var(--c); transition: transform .2s, box-shadow .2s; }
.fd-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(16, 24, 40, .35), var(--cd-shadow), inset 0 3px 0 var(--c); }
.fd-card > header { display: flex; gap: 16px; }
.fd-card > header > div { min-width: 0; }
.cd.fd .fd-card h2 { font-size: 18px; font-weight: 800; }
.fd-card h2 a:hover { color: var(--c); }
.fd-card header p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--cd-soft); }
.fd-act-row { display: flex; align-items: flex-end; gap: 16px; }
.fd-spark { display: flex; flex: none; align-items: flex-end; gap: 3px; width: 128px; height: 32px; }
.fd-spark i { flex: 1; height: var(--h, 4%); min-height: 3px; border-radius: 2px; background: var(--cd-chip); }
.fd-spark i.is-on { background: var(--c); }
.fd-act-t { display: flex; flex-direction: column; font-size: 13px; color: var(--cd-soft); }
.fd-act-t b { font-size: 15px; color: var(--cd-ink); }
.fd-act-t small { font-size: 12px; color: var(--cd-mute); }
.fd-latest { display: flex; flex-direction: column; border-radius: 12px; background: var(--cd-panel); }
.fd-latest li + li { border-top: 1px solid var(--cd-line); }
.fd-latest a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
.fd-latest a:hover { color: var(--c); }
.fd-latest span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fd-latest time { flex: none; font-size: 12px; font-weight: 500; color: var(--cd-mute); }
.fd-none { padding: 12px; border-radius: 12px; font-size: 13px; color: var(--cd-mute); background: var(--cd-panel); }
.fd-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-cats a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--cd-soft); background: var(--cd-chip); }
.fd-cats a:hover, .fd-cats a.is-on { color: #fff; background: var(--c); }
.fd-cats.is-col { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.fd-cats.is-col a { height: 36px; padding: 0 12px; font-size: 13.5px; background: transparent; }
.fd-cats.is-col a.is-sub { padding-inline-start: 28px; font-weight: 500; }
.fd-cats.is-col a:hover { color: var(--cd-ink); background: var(--cd-panel); }
.fd-cats.is-col a.is-on { color: #fff; background: var(--c); }
.fd-card footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.cd.fd .fd-sub { color: #fff; background: var(--fd-rss); box-shadow: 0 8px 18px -10px var(--fd-rss); }
.cd.fd .fd-sub:hover { filter: brightness(1.06); color: #fff; }

/* ---------- the builder ---------- */
.fd-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.fd-form label, .fd-wopts label { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; font-size: 13px; font-weight: 700; color: var(--cd-soft); }
.fd-btabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 12px; background: var(--cd-chip); max-width: 100%; }
.fd-btabs button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--cd-soft); background: transparent; cursor: pointer; white-space: nowrap; }
.fd-btabs button.is-on { color: var(--cd-ink); background: var(--cd-card); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.fd-url { display: flex; align-items: center; gap: 12px; margin-top: 24px; min-height: 56px; padding: 8px 8px 8px 16px; border-radius: 16px; color: var(--cd-mute); background: var(--cd-card); box-shadow: 0 16px 40px -16px rgba(4, 20, 70, .45), 0 0 0 1px var(--cd-line); }
[dir="rtl"] .fd-url { padding: 8px 16px 8px 8px; }
.fd-url > .cf-ic { color: var(--fd-rss); }
.fd-url code { flex: 1; min-width: 0; overflow: hidden; padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-ink); background: none; direction: ltr; text-align: start; }
.fd-url .cd-btn { flex: none; height: 40px; }
.fd-url.is-out { margin-top: 16px; background: var(--cd-panel); box-shadow: inset 0 0 0 1.5px var(--cd-line); }
.cd.fd .fd-url .fd-fmt { flex: none; width: auto; height: 40px; font-size: 13px; font-weight: 700; background-color: var(--cd-card); }
.fd-bacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cd.fd .fd-hint { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--cd-soft); }
.fd-code { position: relative; margin-top: 12px; }
.cd.fd .fd-code textarea { display: block; height: auto; min-height: 96px; padding: 12px 12px 56px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; direction: ltr; text-align: left; color: var(--cd-ink); }
.fd-code .cd-btn { position: absolute; inset-inline-end: 8px; bottom: 8px; }
.fd-wopts { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 16px; margin-top: 16px; }
.fd-preview { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--cd-line); }
.cd.fd .fd-preview h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 800; color: var(--cd-soft); }
.fd-preview-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; transition: opacity .2s; }
.fd-preview-list.is-loading { opacity: .45; }
.fd-pv { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px; border-radius: 12px; background: var(--cd-panel); }
.fd-pv:hover { background: var(--cd-chip); }
.fd-pv img, .fd-pv-ph { flex: none; width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.fd-pv-ph { display: grid; place-items: center; color: var(--fd-rss); background: color-mix(in srgb, var(--fd-rss) 12%, transparent); }
.fd-pv-b { min-width: 0; }
.fd-pv-b b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; unicode-bidi: plaintext; }
.fd-pv-b small { display: block; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-mute); unicode-bidi: plaintext; }
.fd-pv-none { grid-column: 1 / -1; padding: 16px; border-radius: 12px; font-size: 13.5px; color: var(--cd-mute); background: var(--cd-panel); }
.fd-wbox { max-width: 420px; }

/* tools */
.fd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fd-tool { display: flex; gap: 16px; min-width: 0; padding: 24px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); }
.fd-tool > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.cd.fd .fd-tool h3 { font-size: 16px; font-weight: 800; }
.fd-tool p { font-size: 13.5px; line-height: 1.55; color: var(--cd-soft); }
.fd-tool .cd-btn { margin-top: 4px; }
.fd-mini { display: block; max-width: 100%; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 10px; font-size: 12px; line-height: 1.7; color: var(--cd-ink); background: var(--cd-panel); direction: ltr; text-align: left; }

/* ---------- one feed ---------- */
.fd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0 8px; font-size: 13.5px; color: var(--cd-mute); }
.fd-crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--cd-soft); }
.fd-crumbs a .cf-ic { color: var(--fd-rss); }
.fd-crumbs a:hover { color: var(--cd-ac); }
.fd-crumbs b { overflow: hidden; max-width: 60vw; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-ink); unicode-bidi: plaintext; }
.fd-head { padding: 32px 40px; }
.fd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fd-filters span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); unicode-bidi: plaintext; }
.fd-head .fd-url { margin-top: 24px; }
.fd-head-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cd.fd .cd-btn.is-glass { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cd.fd .cd-btn.is-glass:hover { color: #0f1419; background: #fff; }

.fd-statbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); --c: var(--fd-rss); }
.fd-stat { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--cd-soft); }
.fd-stat .fd-spark { width: 96px; height: 24px; }
.fd-stat b { color: var(--cd-ink); }
.fd-stat > .cf-ic { color: var(--cd-mute); }
.fd-stat.is-new { padding: 4px 12px; border-radius: 99px; font-weight: 700; color: #047857; background: color-mix(in srgb, var(--fd-green) 14%, transparent); }
.fd-stat.is-new b, .fd-stat.is-new .cf-ic { color: inherit; }
.fd-formats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-inline-start: auto; font-size: 13px; color: var(--cd-mute); }
.fd-formats > span { font-weight: 600; }
.fd-formats a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--cd-ac); }
.fd-formats a:hover { text-decoration: underline; }

.fd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.fd-items { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cd.fd .fd-items-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; font-size: 16px; font-weight: 800; }
.fd-items-h a { font-size: 13px; font-weight: 700; color: var(--cd-ac); }
.fd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 16px; }
.fd-it { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); }
.fd-it.is-new { box-shadow: var(--cd-shadow), inset 3px 0 0 var(--fd-green); }
[dir="rtl"] .fd-it.is-new { box-shadow: var(--cd-shadow), inset -3px 0 0 var(--fd-green); }
.fd-it.has-img { grid-template-columns: 200px minmax(0, 1fr); }
.fd-it-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--cd-chip); }
.fd-it-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fd-it:hover .fd-it-img img { transform: scale(1.04); }
.fd-it-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fd-it-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cd-mute); }
.fd-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); }
.fd-new { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--fd-green); }
.cd.fd .fd-it h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.fd-it h3 a:hover { color: var(--cd-ac); }
.fd-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-facts span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--cd-ink); background: var(--cd-chip); }
.fd-facts span:first-child { color: #047857; background: color-mix(in srgb, #10B981 14%, transparent); }
.fd-it p { font-size: 14px; line-height: 1.55; color: var(--cd-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-it h3, .fd-it p, .fd-facts span, .fd-tag { unicode-bidi: plaintext; }
.fd-it-by { font-size: 12.5px; font-weight: 600; color: var(--cd-mute); }
.fd-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; border-radius: var(--fd-r); text-align: center; color: var(--cd-mute); background: var(--cd-card); box-shadow: var(--cd-shadow); }
.fd-empty p { max-width: 420px; line-height: 1.5; color: var(--cd-soft); }
.fd-pager { display: flex; justify-content: center; gap: 8px; }
.fd-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fd-box { padding: 16px; border-radius: var(--fd-r); background: var(--cd-card); box-shadow: var(--cd-shadow); }
.cd.fd .fd-box h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.fd-box h2 .cf-ic { color: var(--cd-ac); }
.fd-box p { font-size: 13.5px; line-height: 1.55; color: var(--cd-soft); }
.fd-all { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--cd-mute); }
.fd-all .cf-ic { color: var(--fd-rss); }
.fd-all:hover { color: var(--cd-ink); }

/* ---------- the QR code window ---------- */
.fd-modal { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 20, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fd-fade .15s ease-out; }
.fd-modal-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 380px; padding: 24px; border-radius: 24px; text-align: center; background: var(--cd-card); box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .5); animation: fd-up .2s ease-out; }
.fd-modal-x { position: absolute; inset-inline-end: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--cd-soft); background: var(--cd-chip); cursor: pointer; }
.cd.fd .fd-modal h2 { padding: 0 40px; font-size: 18px; font-weight: 800; unicode-bidi: plaintext; }
.fd-modal p { font-size: 13.5px; line-height: 1.5; color: var(--cd-soft); }
.fd-qr { display: grid; place-items: center; width: 248px; height: 248px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 20, 25, .08); }
.fd-qr canvas { display: block; width: 232px; height: 232px; }
.fd-modal code { display: block; max-width: 100%; overflow: hidden; padding: 0; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: var(--cd-mute); background: none; direction: ltr; }
.fd-spin { width: 32px; height: 32px; border: 3px solid rgba(15, 20, 25, .12); border-top-color: var(--cd-ac); border-radius: 50%; animation: fd-spin .7s linear infinite; }
@keyframes fd-spin { to { transform: rotate(360deg); } }
@keyframes fd-fade { from { opacity: 0; } }
@keyframes fd-up { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- night ---------- */
body.night-mode .fd-hero { background: radial-gradient(circle at 85% 18%, rgba(110, 170, 255, .2), transparent 44%), linear-gradient(135deg, #1d5be0 0%, #0a36b8 55%, #082d99 100%); }
body.night-mode .fd-head { background: radial-gradient(circle at 85% 18%, rgba(110, 170, 255, .2), transparent 44%), linear-gradient(135deg, #1d5be0 0%, #0a36b8 55%, #082d99 100%); }
body.night-mode .fd-find { color: var(--cd-mute); background: #2a2a2a; }
body.night-mode .cd.fd .fd-find input { color: #e9edf2; }
body.night-mode .cd.fd .fd-facts span:first-child, body.night-mode .fd-stat.is-new { color: #34d399; }
body.night-mode .fd-alert-cta { background: color-mix(in srgb, var(--fd-yellow) 9%, var(--cd-card)); }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .fd-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
  .fd-cols { grid-template-columns: minmax(0, 1fr); }
  .fd-side { position: static; }
  .fd-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* tablets and phones: the logo holds the cube; the text takes the banner */
  .fd-hero-art, .fd-hero-art.is-sm { display: none !important; }
  .fd-hero, .fd-head { min-height: 0; padding-top: 80px; }
  .fd-bub.is-1 { width: 52px; height: 52px; }
  .fd-bub.is-2, .fd-bub.is-3 { width: 44px; height: 44px; }
  .fd-bub .cf-ic { width: 22px; height: 22px; }
  .fd-bub.is-3 { inset-inline-start: 16px; }
  .fd-formats { margin-inline-start: 0; }
}
@media (max-width: 668px) {
  .cd.fd { padding: 8px 0 24px; }
  .fd-hero, .fd-head { display: block; padding: 24px 16px; border-radius: 0 0 20px 20px; margin-top: -8px; }
  .cd.fd .fd-hero h1, .cd.fd .fd-head h1 { margin-top: 12px; font-size: 26px; }
  .cd.fd .fd-head h1 { font-size: 22px; }
  .fd-crumbs + .fd-head { margin-top: 0; border-radius: 0; }
  .fd-hero p, .fd-head p { font-size: 14.5px; }
  /* the cube stays, small, top right */
  .fd-hero, .fd-head { padding-top: 64px; }
  .fd-bub { display: none; }
  .fd-find { height: 52px; margin-top: 16px; }
  .fd-tabs { margin-inline: 8px; }
  .fd-sec, .fd-statbar { border-radius: 0; padding: 16px; }
  .cd.fd .fd-sec-h h2 { font-size: 18px; }
  .fd-alert { flex-wrap: wrap; gap: 12px; padding: 12px; }
  [dir="rtl"] .fd-alert { padding: 12px; }
  .fd-alert-t { flex-basis: calc(100% - 56px); }
  .fd-alert-act { width: 100%; justify-content: flex-end; }
  .fd-grid { gap: 8px; }
  .fd-card { padding: 16px; border-radius: 0; }
  .fd-crumbs { margin-inline: 8px; }
  .fd-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fd-btabs { display: flex; }
  .fd-btabs button { flex: 1; justify-content: center; padding: 0 8px; }
  .fd-url { flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 8px 8px 8px 12px; }
  [dir="rtl"] .fd-url { padding: 8px 12px 8px 8px; }
  .fd-url code { flex-basis: calc(100% - 32px); font-size: 12.5px; }
  .fd-url .cd-btn, .cd.fd .fd-url .fd-fmt { flex: 1; }
  .fd-wopts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-tools { gap: 8px; }
  .fd-tool { padding: 16px; border-radius: 0; }
  .fd-it, .fd-it.has-img { grid-template-columns: minmax(0, 1fr); border-radius: 0; }
  .fd-list { gap: 8px; }
  .fd-it-img { aspect-ratio: 16 / 9; }
  .fd-side { padding: 0 8px; }
  .cd.fd .fd-items-h { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd.fd *, .cd.fd *::before, .cd.fd *::after { animation: none !important; transition: none !important; }
}
/* an alert's e-mail rhythm: each listing / daily / weekly digest (includes/clik-listing-tools.php) */
.fd-alert-act select.fd-freq { width: auto; height: 36px; min-height: 0; line-height: 36px; padding: 0 28px 0 10px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--cd-ink); background-color: var(--cd-chip); box-shadow: inset 0 0 0 1px var(--cd-line); cursor: pointer; }
[dir="rtl"] .fd-alert-act select.fd-freq { padding: 0 10px 0 28px; }
.fd-alert-act select.fd-freq:focus-visible { outline: 2px solid #0866FF; outline-offset: 2px; }
