.community-page {
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
  color: var(--text-primary);
  background: #090c0b;
}
.community-page [hidden] { display: none !important; }
.community-page #main { padding-bottom: 96px; }
.community-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #303a34;
  background: #090c0b;
}
.community-hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 44%; background: repeating-linear-gradient(90deg, transparent 0 79px, #ffffff0a 80px); pointer-events: none; }
.community-hero__inner { min-height: 276px; display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; }
.community-hero__copy { position: relative; z-index: 1; min-width: 0; margin-block: 44px; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); }
[dir="rtl"] .community-hero__copy { padding: 4px 24px 4px 0; border-left: 0; border-right: 3px solid var(--accent); }
.community-eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.community-eyebrow__line { display: none; }
.community-hero h1 { margin: 14px 0 16px; max-width: 100%; color: #f2f5f3; font-size: clamp(3.15rem, 6.1vw, 5.7rem); font-weight: 800; line-height: 1; letter-spacing: -.055em; overflow-wrap: anywhere; }
[dir="rtl"] .community-hero h1 { letter-spacing: 0; line-height: 1.15; }
.community-hero__copy > p { max-width: 640px; margin: 0; color: #aab4ae; font-size: clamp(.98rem, 1.35vw, 1.13rem); line-height: 1.65; }
.community-hero__mark { flex: 0 0 220px; display: grid; place-items: center; height: 220px; position: relative; color: var(--accent); }
.community-hero__mark svg { position: relative; z-index: 1; width: 112px; height: 112px; filter: drop-shadow(0 0 20px #8bf23f1e); }
.community-hero__ring { position: absolute; border: 1px solid #8bf23f2e; border-radius: 50%; }
.community-hero__ring--one { width: 180px; height: 180px; }
.community-hero__ring--two { width: 270px; height: 270px; }
.community-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,280px); gap: clamp(24px,3.5vw,48px); align-items: start; padding-top: 48px; }
.community-stream { min-width: 0; }
.community-section-heading { position: relative; display: flex; align-items: end; justify-content: space-between; padding: 0 0 19px 18px; border-bottom: 1px solid #303a34; }
.community-section-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 84px; height: 3px; background: var(--accent); }
[dir="rtl"] .community-section-heading { padding: 0 18px 19px 0; }
[dir="rtl"] .community-section-heading::after { right: 0; left: auto; }
.community-section-heading__index { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.community-section-heading h2 { margin: 8px 0 5px; font-size: clamp(1.9rem,3vw,2.6rem); line-height: 1.1; letter-spacing: -.035em; }
.community-section-heading p { margin: 0; color: var(--text-secondary); font-size: .88rem; }
.community-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 24px; }
.community-filters button { min-height: 39px; padding: 8px 16px; border: 1px solid #3d4a40; border-radius: 4px; background: #101612; color: var(--text-secondary); font-family: inherit; font-size: .81rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.community-filters button:hover { border-color: var(--accent); color: var(--text-primary); }
.community-filters button.is-active { background: var(--accent); border-color: var(--accent); color: #0b1508; }
.community-feed { display: grid; gap: 18px; }
.community-empty { padding: 46px 24px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); text-align: center; }
.community-post { min-width: 0; scroll-margin-top: 100px; border: 1px solid #303a34; border-radius: 8px; background: #101713; padding: clamp(20px,2.5vw,30px); box-shadow: 0 12px 32px #0000001a; }
.community-post:hover { border-color: #4d6650; }
.community-post__content, .community-post__media { min-width: 0; }
.community-post__meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--text-muted); font-size: .75rem; font-weight: 700; }
.community-post__type { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); letter-spacing: .055em; text-transform: uppercase; }
.community-post__type::before { content: ''; width: 7px; height: 7px; background: var(--accent); }
.community-post h3 { margin: 17px 0 11px; font-size: clamp(1.3rem,2.4vw,1.85rem); line-height: 1.35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.community-post__permalink { color: inherit; text-decoration: none; }
.community-post__permalink:hover { color: var(--accent); }
.community-ad-slot { margin-top: 36px; }
.community-post__body { margin: 0 0 18px; color: #c1cdc4; font-size: .96rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post__image { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72vh, 720px); margin: 20px auto; object-fit: contain; background: #090d0a; border: 1px solid #344039; border-radius: 6px; }
.community-post__video { position: relative; aspect-ratio: 16/9; margin: 18px 0; border: 1px solid #344039; border-radius: 4px; overflow: hidden; background: #090d0a; }
.community-post__video iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }
.community-post__reel { position: relative; display: block; width: min(100%, 350px); aspect-ratio: 9 / 14; margin: 20px auto; overflow: hidden; border: 1px solid #455b48; border-radius: 8px; background: radial-gradient(circle at 50% 34%, #456d34 0, #1b3323 30%, #0a130e 72%); color: #fff; text-decoration: none; isolation: isolate; }
.community-post__reel::before { content: ''; position: absolute; inset: 8% 12%; border: 1px solid #a6e17d38; border-radius: 50%; transform: scale(1.15); }
.community-post__reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #06110c7d, transparent 27%, #050a08 100%); pointer-events: none; }
.community-post__reel img { display: block; width: 100%; height: 100%; object-fit: contain; }
.community-post__reel iframe { position: absolute; top: -92px; left: 0; width: 100%; height: 820px; border: 0; transform: scale(1.38); transform-origin: top center; pointer-events: none; }
.community-post__reel-link { position: absolute; z-index: 2; inset: 0; color: inherit; text-decoration: none; }
.community-post__reel-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px; }
.community-post__reel-type { align-self: flex-start; padding: 5px 10px; border: 1px solid #bbf99b7d; border-radius: 3px; background: #07140bb3; color: var(--accent); font-size: .74rem; font-weight: 800; }
.community-post__reel-play { display: grid; place-items: center; width: 76px; height: 76px; margin: auto; border: 2px solid #fff; border-radius: 50%; background: #07140bc9; box-shadow: 0 0 0 9px #ffffff20; transition: transform .2s, background .2s; }
.community-post__reel-play::after { content: ''; width: 0; height: 0; margin-left: 5px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 20px solid var(--accent); }
.community-post__reel:hover .community-post__reel-play, .community-post__reel:focus-visible .community-post__reel-play { transform: scale(1.08); background: #0b2111; }
.community-post__reel-title { align-self: stretch; font-size: 1rem; line-height: 1.4; text-align: center; text-shadow: 0 2px 12px #000; }
.community-post__open-video { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; margin: 0 0 4px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: .84rem; font-weight: 800; text-decoration: none; }
.community-post__open-video:hover { background: var(--accent); color: #0b1508; }
.community-poll { display: grid; gap: 8px; margin-top: 19px; }
.community-poll button { position: relative; display: flex; justify-content: space-between; gap: 14px; min-height: 48px; padding: 12px 15px; border: 1px solid #435449; border-radius: 4px; background: #172119; color: var(--text-primary); text-align: start; font-family: inherit; font-size: .89rem; font-weight: 600; cursor: pointer; overflow: hidden; }
.community-poll button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--poll-fill,0%); background: #8bf23f24; pointer-events: none; }
[dir="rtl"] .community-poll button::before { inset: 0 0 0 auto; }
.community-poll button > * { position: relative; }
.community-poll button:hover:not(:disabled) { border-color: var(--accent); }
.community-poll button.is-selected { border-color: var(--accent); }
.community-poll button:disabled { cursor: default; }
.community-poll [role="status"] { min-height: 1em; margin: 0; color: var(--text-secondary); font-size: .8rem; }
.community-post__actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #344039; color: var(--text-muted); font-size: .82rem; }
.community-post__like { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--text-primary); font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.community-post__like:hover { color: var(--accent); }
.community-post__heart { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.community-more { display: block; width: 100%; min-height: 45px; margin-top: 20px; border: 1px solid #45554a; border-radius: 4px; background: #121b14; color: var(--text-primary); font-family: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.community-more:hover { border-color: var(--accent); }
.community-aside { position: sticky; top: 96px; padding-top: 11px; }
.community-aside__ad { width: 300px; max-width: 100%; margin-top: 12px; overflow: hidden; }
.community-notify-card { border: 1px solid #435246; border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px; background: #141d16; padding: 22px; }
.community-notify-card__icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #5f7b5b; color: var(--accent); }
.community-notify-card__icon svg { width: 23px; height: 23px; }
.community-notify-card h2 { margin: 20px 0 7px; font-size: 1.14rem; }
.community-notify-card > p { margin: 0; color: var(--text-secondary); font-size: .84rem; line-height: 1.7; }
.community-notify-card button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 45px; margin-top: 20px; padding: 10px 13px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #0b1508; font-family: inherit; font-size: .8rem; font-weight: 800; text-align: start; cursor: pointer; }
.community-notify-card button:hover { background: var(--accent-hover); }
.community-notify-card button:disabled { opacity: .58; cursor: not-allowed; }
.community-notify-card button:disabled:hover { background: var(--accent); }
.community-notify-card #notify-status { min-height: 1em; margin-top: 9px; font-size: .76rem; }
@media (min-width: 901px) {
  .community-hero__inner { max-width: 1100px; }
  .community-layout { max-width: 1140px; }
  .community-hero__inner { min-height: 230px; }
  .community-hero__copy { margin-block: 34px; }
  .community-hero h1 { font-size: clamp(3.1rem, 5vw, 4.45rem); }
  .community-hero__mark { flex-basis: 180px; height: 180px; }
  .community-hero__mark svg { width: 90px; height: 90px; }
  .community-hero__ring--one { width: 150px; height: 150px; }
  .community-hero__ring--two { width: 220px; height: 220px; }
  .community-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 36px; }
  .community-section-heading h2 { font-size: 2rem; }
  .community-post { padding: 22px; }
  .community-post h3 { font-size: 1.55rem; }
  .community-post__body { font-size: .91rem; }
  .community-post__image { max-height: min(68vh, 600px); }
  .community-post__reel { width: min(100%, 300px); }
  .community-post--portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); gap: 0 24px; align-items: start; }
  .community-post--portrait .community-post__content { grid-column: 1; grid-row: 1; }
  .community-post--portrait .community-post__media { grid-column: 2; grid-row: 1; }
  .community-post--portrait .community-post__image,
  .community-post--portrait .community-post__reel { margin-block: 0; }
  .community-post--portrait .community-post__open-video { margin-top: 12px; }
  .community-post--portrait .community-post__actions { grid-column: 1 / -1; }
  .community-notify-card { padding: 18px; }
}
@media(max-width:900px){.community-layout{grid-template-columns:1fr}.community-aside{position:static;order:-1;padding:0}.community-aside__ad{display:none}.community-notify-card{display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:0 16px}.community-notify-card__icon{grid-row:1/3}.community-notify-card h2{margin:0}.community-notify-card > p{grid-column:2}.community-notify-card button{grid-column:3;grid-row:1/3;width:auto;margin:0}.community-notify-card #notify-status{grid-column:2/4}}
@media(max-width:650px){.community-page #main{padding-bottom:70px}.community-hero::before{width:100%;opacity:.45}.community-hero__inner{min-height:0}.community-hero__copy{margin-block:34px;padding-block:0}.community-hero__mark{display:none}.community-hero h1{font-size:clamp(2.65rem,12vw,4rem)}.community-layout{padding-top:22px}.community-notify-card{display:grid;grid-template-columns:34px 1fr;gap:2px 11px;padding:13px}.community-notify-card__icon{grid-row:1/3;width:34px;height:34px}.community-notify-card__icon svg{width:19px;height:19px}.community-notify-card h2{grid-column:2;margin:0;font-size:.96rem}.community-notify-card > p{grid-column:2;font-size:.77rem}.community-notify-card button{grid-column:1/3;grid-row:auto;width:100%;min-height:39px;margin-top:8px}.community-notify-card #notify-status{grid-column:1/3}.community-section-heading{padding-bottom:18px}.community-filters{flex-wrap:nowrap;overflow-x:auto;padding:17px 0 20px}.community-filters button{flex:none}.community-post{padding:18px}.community-post h3{margin-top:14px}.community-post__image{max-height:min(70vh,600px)}.community-post__reel{width:min(100%,300px)}}
