/* ============================================= */
/* Base / Reset */
/* ============================================= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background-color:#0a0a1f;color:#fff;line-height:1.4}

/* ============================================= */
/* Typography & Colors */
/* ============================================= */
:root{--purple:rgb(168 85 247);--bg-dark:#0a0a1f;--text-muted:#a1a1aa;--border-purple:rgba(168,85,247,.3)}
.page__title{font-family:'Space Grotesk',sans-serif;font-size:3.5rem;font-weight:700;letter-spacing:-0.04em;color:#fff;text-shadow:0 4px 20px rgba(0,0,0,.6);text-align:center;margin-bottom:.75rem}
@media(min-width:768px){.page__title{font-size:4.5rem}}
@media(min-width:1024px){.page__title{font-size:5.5rem}}
.page__subtitle{color:#e5e7eb;font-size:1.25rem;text-align:center;text-shadow:0 2px 10px rgba(0,0,0,.5);margin-bottom:5rem}

/* ============================================= */
/* Header (global) */
/* ============================================= */
.header{position:fixed;top:0;left:0;width:100%;background:rgba(10,10,31,.95);backdrop-filter:blur(12px);border-bottom:1px solid rgba(168,85,247,.2);z-index:50;height:4rem}
.header__inner{max-width:1280px;margin:0 auto;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:100%}
.header__logo-row{display:flex;align-items:center}
.header__logo-link{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:#fff}
.header__logo-circle{width:42px;height:42px;background:linear-gradient(135deg,rgb(168 85 247),#22d3ee);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:700;color:#fff;box-shadow:0 0 0 4px rgba(168,85,247,.3)}
.header__title{font-family:'Space Grotesk',sans-serif;font-size:1.75rem;font-weight:700;letter-spacing:-0.04em}
.header__nav{display:flex;gap:2.25rem}
.header__nav-link,.nav-link{color:#e5e7eb;text-decoration:none;font-weight:500;transition:color .2s}
.header__nav-link:hover,.nav-link:hover,.nav-link.active{color:rgb(168 85 247)}
.header__submit-row{display:flex}
.header__submit-btn{background:linear-gradient(90deg,rgb(168 85 247),#22d3ee);color:#000;font-weight:600;padding:.75rem 1.75rem;border-radius:9999px;text-decoration:none;display:flex;align-items:center;gap:.5rem;transition:all .2s;white-space:nowrap}
.header__submit-btn:hover{transform:scale(1.05);box-shadow:0 0 0 4px rgba(168,85,247,.3)}

/* ============================================= */
/* Sticky Tabs (global) */
/* ============================================= */
.sticky-tabs{position:sticky;top:4rem;z-index:40;background:rgba(10,10,31,.95);backdrop-filter:blur(12px);border-bottom:1px solid rgba(168,85,247,.2);padding:1rem 0}
.sticky-tabs-container{max-width:1280px;margin:0 auto;padding:0 1.5rem}
.tabs-wrapper{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:none;justify-content:center}
.tab{padding:.65rem 1.75rem;background:#18181b;border:1px solid #27272a;border-radius:9999px;white-space:nowrap;font-weight:500;color:#e5e7eb;transition:all .2s ease}
.tab:hover{background:#27272a}
.tab-active{background:var(--purple);color:#fff;box-shadow:0 0 0 4px rgba(168,85,247,.2)}

/* ============================================= */
/* Content Grid & Cards (global) */
/* ============================================= */
.page__section{position:relative;padding-top:10rem}
@media(min-width:768px){.page__section{padding-top:13rem}}
@media(min-width:1024px){.page__section{padding-top:15rem}}
.page__container{max-width:1280px;margin:0 auto;padding:0 1.5rem;position:relative;z-index:2}
.content-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;padding-top:2.5rem;padding-bottom:4rem}
@media(min-width:1024px){.content-grid{grid-template-columns:repeat(3,1fr);gap:2rem}}
.card{background:#18181b;border-radius:1rem;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 10px 15px -3px rgb(0 0 0 / .3);display:flex;flex-direction:column;height:100%}
.card:hover{transform:translateY(-4px);box-shadow:0 0 30px 12px rgba(168,85,247,.5)}
.card--meme{display:flex;flex-direction:column}
.card__media{position:relative;height:200px;flex-shrink:0;background:#27272a}
.card__media img,.card__media video{width:100%;height:100%;object-fit:cover}
.card__content{padding:1rem;flex:1;display:flex;flex-direction:column}
.card__title{font-size:1.125rem;font-weight:600;line-height:1.3;margin-top:auto;margin-bottom:.5rem;min-height:2.6rem;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card__description{font-size:.875rem;color:#a1a1aa;line-height:1.4;flex:1;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.card--battle{min-height:520px}
.card--battle .card__media{height:260px}
.card__vote-bar{display:flex;height:58px;border-radius:0 0 1rem 1rem;overflow:hidden;border-top:1px solid #27272a}
.grok-bar,.human-bar{flex:1;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.1rem;cursor:pointer;transition:all .2s}
.grok-bar{background:#6b21a8;color:#fff}
.human-bar{background:#9f1239;color:#fff}
.vote-count{font-size:2rem;font-weight:700;padding:0 30px}
.tag{padding:.2rem .8rem;background:rgba(168,85,247,.15);color:#c084fc;font-size:.8rem;border-radius:9999px;white-space:nowrap;line-height:1.3}
.tags-area {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
    margin-left: 2rem;
    padding-top: 0.5rem;
}

/* ============================================= */
/* Modals (shared) – GLOBAL UNIFIED SCROLL + FIXED BUTTONS */
/* ============================================= */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.95);align-items:center;justify-content:center;z-index:10000;padding:0;overflow:hidden}
.modal__content{background:#18181b;border-radius:1.5rem;max-width:1024px;width:100%;max-height:94vh;margin:1rem;border:1px solid var(--border-purple);box-shadow:0 25px 50px -12px rgb(0 0 0 / .25);overflow:hidden;position:relative;display:flex;flex-direction:column}
.modal__scroll-area{flex:1 1 auto;overflow-y:auto;min-height:0;display:flex;flex-direction:column;background:#18181b}
.modal__image-container{flex-shrink:0;width:100%}
.modal__image{max-height:65vh;width:100%;object-fit:contain}
@media(max-width:640px){.modal__image{max-height:55vh}}
.modal__sticky-header{position:sticky;top:0;z-index:10;background:#18181b;padding:1.25rem 1.5rem 0.75rem;border-bottom:1px solid #27272a;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.modal__title{font-size:1.25rem;font-weight:700;padding-left:2rem}
.modal__description { color: var(--text-muted); font-size: .95rem; line-height: 1.5; margin-bottom: 0.5rem; white-space: pre-line; padding-left: 2rem; }
.modal__body-content{flex:1 1 auto;padding:1.5rem 1.5rem 0}
.modal__vote-bar{flex-shrink:0;display:flex;gap:0;border-top:1px solid #27272a;overflow:hidden}
.modal-btn-grok,.modal-btn-human{flex:1;padding:1rem 1.5rem;font-weight:600;font-size:1.1rem;min-height:62px;display:flex;align-items:center;justify-content:center;gap:8px}
.modal-btn-grok{background:#6b21a8;color:#fff}
.modal-btn-human{background:#9f1239;color:#fff}
.modal__buttons{flex-shrink:0;display:flex;gap:1rem;padding:1.5rem;border-top:1px solid #27272a}
.modal__buttons a,.modal__buttons button{flex:1;padding:14px 24px;border-radius:12px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;color:#fff}
.modal-btn-view{background:#fff;border:1px solid #000;color:#000!important}
.modal-btn-context{background:#3b3b40;border:1px solid #fff}
.modal__share-btn{background:#000;border:1px solid #a855f7!important;color:#fff}
.modal__close{position:absolute;top:1.25rem;right:1.25rem;background:rgba(0,0,0,.7);color:#fff;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.5rem;display:flex;align-items:center;justify-content:center;z-index:30;transition:background .2s}

/* External navigation arrows */
.modal-nav{position:fixed;top:50%;transform:translateY(-50%);z-index:10000;width:52px;height:52px;border-radius:9999px;background:rgba(15,23,42,.75);color:#fff;font-size:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;box-shadow:0 10px 15px -3px rgb(0 0 0 / .3);transition:all .2s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(8px);border:2px solid rgba(255,255,255,.15)}
.modal-nav:hover{background:rgba(15,23,42,.95);transform:translateY(-50%) scale(1.15);border-color:rgba(255,255,255,.4)}
.modal-nav--prev{left:24px}
.modal-nav--next{right:24px}

/* ============================================= */
/* Thread emulator – avatars & media now completely separate */
/* ============================================= */
.thread-emulator{display:flex;flex-direction:column;gap:28px;padding:8px 0;max-width:620px;margin:0 auto}
.thread-post{display:flex!important;align-items:flex-start!important}
.thread-post__header{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.thread-container{padding-top:4rem;padding-bottom:4rem}

/* AVATARS – dedicated class only (no bleed into thread images) */
.thread-avatar{width:36px!important;height:36px!important;flex-shrink:0!important;border-radius:9999px!important;object-fit:cover!important;margin-top:4px!important;margin-right:1rem;margin-left:1rem}

/* LARGE MEDIA IMAGES + VIDEOS inside thread posts */
.thread-post img:not(.thread-avatar),.thread-post video{max-height:450px;width:100%!important;max-width:100%;height:auto!important;object-fit:contain;border-radius:14px;margin-top:12px;box-shadow:0 4px 20px rgba(0,0,0,.4);display:block!important}

/* Bubbles */
.human-bubble{background:#27272a!important;color:#fff!important;padding:16px 20px!important;border-radius:20px 20px 4px 20px!important;max-width:78%!important;align-self:flex-start!important;border:none!important}
.grok-bubble{background:#3b3b40!important;color:#fff!important;padding:16px 20px!important;border-radius:20px 20px 20px 4px!important;max-width:78%!important;align-self:flex-end!important;border:1px solid #a855f7!important;margin-left:auto!important}
.thread-text{line-height:1.55!important;font-size:15px!important;white-space:pre-line!important}

/* Share overlay */
.share-overlay{position:fixed;inset:0;background:rgba(0,0,0,.95);display:none;align-items:center;justify-content:center;z-index:10001}
.share-overlay__title{font-size:1.25rem;font-weight:700;margin-bottom:1.5rem}
.share-overlay__grid--4{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.share-overlay__item{display:flex;flex-direction:column;align-items:center;color:#fff;text-decoration:none;gap:6px}
.share-overlay__item i{font-size:2.4rem;transition:transform .2s}
.share-overlay__item:hover i{transform:scale(1.15)}
.share-overlay__close{position:absolute;top:1rem;right:1rem;background:rgba(0,0,0,.7);color:#fff;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}
.share-overlay__content{position:relative;background:#18181b;border-radius:1.5rem;max-width:420px;width:90%;padding:2rem;text-align:center;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25)}
.share-overlay__close{position:absolute;top:1rem;right:1rem;background:rgba(0,0,0,.7);color:#fff;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}

/* ============================================= */
/* Footer (global) */
/* ============================================= */
.footer{background:#0a0a1f;border-top:1px solid rgba(168,85,247,.2);padding:3rem 1.5rem 2rem;text-align:center;font-size:.875rem;color:var(--text-muted);position:relative;z-index:10}
.footer__container{max-width:1280px;margin:0 auto}
.footer__links{display:flex;justify-content:center;gap:2rem;margin:1.5rem 0}
.footer a,.footer__link{color:#a1a1aa!important;text-decoration:none!important}
.footer a:hover,.footer__link:hover{color:rgb(168 85 247)!important}

/* ============================================= */
/* Global Background Overlay */
/* ============================================= */
body::before{content:'';position:fixed;inset:0;background:rgba(10,10,31,.65);z-index:1;pointer-events:none}

/* ============================================= */
/* Index Hero & Submit Page */
/* ============================================= */
.page__section.hero{padding-top:20rem;padding-bottom:5rem}
@media(min-width:768px){.page__section.hero{padding-top:13rem}}
@media(min-width:1024px){.page__section.hero{padding-top:15rem}}
.hero__live-badge{background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 9999px; font-size: .875rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; color: #fff;}
.hero__live-badge:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.4)}
.hero__live-badge{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:.5rem 1.25rem!important}
.hero__live-dot{flex-shrink:0!important;width: 8px !important; height: 8px !important;background: #22c55e !important; border-radius: 50% !important; flex-shrink: 0 !important;}
.hero__live-dot{width:8px;height:8px;background:#22c55e;border-radius:50%;animation:live-pulse 2s infinite ease-in-out}
@keyframes live-pulse{0%,100%{opacity:1}50%{opacity:.3}}
.hero__heading{font-size:clamp(2.5rem,8vw,4.5rem);font-weight:700;line-height:1.05;letter-spacing:-2px;margin-bottom:1.5rem;text-align:center}
.hero__gradient{background:linear-gradient(90deg,#7928CA,#22d3ee);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero__description{max-width:42rem;margin:0 auto;font-size:1.125rem;line-height:1.6;color:#d1d5db;margin-bottom:3rem}
.hero__cta-group{display:flex;flex-direction:column;gap:1rem;justify-content:center;margin-bottom:3rem}
@media(min-width:640px){.hero__cta-group{flex-direction:row}}
.hero__btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem 2rem;background:#fff;color:#000;font-weight:600;border-radius:9999px;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 10px 15px -3px rgb(0 0 0 / .1)}
.hero__btn-primary:hover{background:#f3f4f6;transform:translateY(-2px);box-shadow:0 20px 25px -5px rgb(0 0 0 / .1)}
.hero__btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:1rem 2rem;border:1px solid rgba(255,255,255,.4);color:#fff;font-weight:500;border-radius:9999px;transition:all .3s cubic-bezier(.4,0,.2,1)}
.hero__btn-secondary:hover{border-color:#fff;background:rgba(255,255,255,.05)}
.hero__featured-card{display:block;max-width:28rem;margin:0 auto 4rem;background:rgba(255,255,255,.05);border:1px solid rgba(168,85,247,.3);border-radius:1.5rem;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);text-decoration:none}
.hero__featured-card:hover{border-color:#a855f7;transform:translateY(-4px);box-shadow:0 25px 50px -12px rgb(168 85 247 / .15)}
.hero__featured-header{padding:1.25rem;display:flex;align-items:center;gap:.75rem;border-bottom:1px solid rgba(168,85,247,.2)}
.hero__featured-avatar{width:2.5rem;height:2.5rem;border-radius:9999px;object-fit:cover}
.hero__featured-body{padding:1.5rem}
.hero__featured-quote{font-style:italic;color:#d1d5db}
.hero__featured-footer{margin-top:1.5rem;font-size:.75rem;color:#a855f7;font-weight:500}
.hero__blurb{max-width:42rem;margin:0 auto;background:rgba(255,255,255,.05);border:1px solid rgba(168,85,247,.3);border-radius:1.5rem;padding:2rem;backdrop-filter:blur(12px)}
.hero__blurb-label{color:#c084fc;font-size:.875rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;margin-bottom:.5rem;text-align:center}
.hero__blurb-title{font-size:1.875rem;font-weight:600;line-height:1.25;color:#fff;text-align:center}
.hero__blurb-emoji{display:flex;justify-content:center;gap:.75rem;font-size:2.5rem;margin-top:1.25rem}
.hero__blurb-text{color:#a1a1aa;line-height:1.75}
.hero__blurb-signature{margin-top:2.5rem;color:#c084fc;font-size:.875rem;font-weight:500;text-align:center}
.hero__featured-name{color:#fff}
.hero__featured-handle{color:#fff}

.hero__heading {
  text-align: center !important;
}

/* Submit Page */
.submit__wrapper{max-width:64rem;margin:0 auto;padding-bottom:4rem}
.submit__form-container{max-width:28rem;margin:0 auto}
.submit__form{display:flex;flex-direction:column;gap:1rem}
.submit__input,.submit__textarea{width:100%;background:rgba(255,255,255,.08);border:2px solid rgba(168,85,247,.4);border-radius:9999px;padding:1rem 1.5rem;color:#fff;font-size:1.1rem}
.submit__textarea{border-radius:2rem;resize:none}
.submit__input:focus,.submit__textarea:focus{border-color:rgb(168 85 247);box-shadow:0 0 0 4px rgba(168,85,247,.2)}
.submit__btn{width:100%;padding:1.25rem 2rem;background:linear-gradient(to right,rgb(168 85 247),#22d3ee);color:#000;font-weight:700;font-size:1.25rem;border-radius:9999px;transition:all .3s cubic-bezier(.4,0,.2,1)}
.submit__btn:hover{transform:scale(1.02)}
.submit__blurb{max-width:42rem;margin:4rem auto 0}
.submit__blurb-inner{background:rgba(255,255,255,.05);border:1px solid rgba(168,85,247,.3);border-radius:1.5rem;padding:2rem;backdrop-filter:blur(12px)}
.submit__blurb-label{color:#c084fc;font-size:.875rem;font-weight:600;letter-spacing:2px;text-transform:uppercase;margin-bottom:.5rem;text-align:center}
.submit__blurb-title{font-size:1.875rem;font-weight:600;line-height:1.25;color:#fff;text-align:center}
.submit__blurb-emoji{display:flex;justify-content:center;gap:.75rem;font-size:2.5rem;margin-top:1.25rem}
.submit__blurb-text{color:#a1a1aa;line-height:1.75}
.submit__blurb-signature{margin-top:2.5rem;color:#c084fc;font-size:.875rem;font-weight:500;text-align:center}

/* ============================================= */
/* Toast (global) */
/* ============================================= */
.toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:#18181b;border:1px solid var(--purple);padding:1rem 2rem;border-radius:1.5rem;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25);z-index:100;transition:all .3s ease;display:none}

/* ============================================= */
/* Utilities */
/* ============================================= */
.hidden{display:none!important}
body::after{content:'';position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:-1;pointer-events:none}

/* Thread links */
.thread-post a{color:#c084fc;text-decoration:none!important}
.thread-post a:hover{text-decoration:underline!important}

/* Final Grok avatar hug (tighter on right side) + scrollbar hidden */
.thread-post.justify-end{gap:8px!important}
.thread-post.justify-end .thread-avatar{margin-right:-4px!important}
.modal__scroll-area{scrollbar-width:none}
.modal__scroll-area::-webkit-scrollbar{display:none}

.thread-post.justify-end{gap:4px!important}
.thread-post.justify-end .thread-avatar{margin-right:-18px!important}

.share-overlay__content{position:relative;background:#18181b;border-radius:1.5rem;max-width:420px;width:90%;padding:2rem;text-align:center;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25)}
.share-overlay__close{position:absolute;top:1rem;right:1rem;background:rgba(0,0,0,.7);color:#fff;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}
.share-overlay__content{position:relative;background:#18181b;border-radius:1.5rem;max-width:420px;width:90%;padding:2rem;text-align:center;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25)}
.share-overlay__close{position:absolute;top:1rem;right:1rem;background:rgba(0,0,0,.7);color:#fff;width:2.5rem;height:2.5rem;border-radius:.75rem;font-size:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}
.share-overlay__item{display:flex;flex-direction:column;align-items:center;color:#fff;text-decoration:none;gap:6px;background:transparent;border:none;padding:0;cursor:pointer}
.share-overlay__item i{font-size:2.4rem;transition:transform .2s}
.share-overlay__item:hover i{transform:scale(1.15)}
.share-overlay__item span{font-size:0.9rem;margin-top:4px}
.share-overlay__item button{background:transparent!important;border:none!important;padding:0!important;cursor:pointer!important}

.share-overlay{display:flex!important}
.share-overlay__content{display:block!important}
.share-overlay__grid--4{display:grid!important}

/* Memes modal – image fits without scrolling + old style mapping */
body[data-page="memes"] .modal__image-container{flex-shrink:0}
body[data-page="memes"] .modal__image{max-height:65vh;object-fit:contain}
body[data-page="memes"] .modal__body-content{padding-top:0}
.genre-section{margin-top:1rem;border-top:1px solid #27272a;padding-top:1rem}

/* ============================================= */
/* Genre Navigation – Memes Modal (matches Pic 3) */
/* ============================================= */
.genre-section {
  background:#18181b;
  border-top:1px solid #27272a;
  padding:1.25rem 1.5rem;
  text-align:center;
}

.genre-header {
  color:#c084fc;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:.75rem;
}

.genre-arrows {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:420px;
  margin:0 auto;
}

.genre-arrow {
  background:none;
  border:none;
  color:#c084fc;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
  padding:0 .75rem;
  transition:color .2s;
}

.genre-arrow:hover {
  color:#a855f7;
}

.genre-name {
  font-size:1.15rem;
  font-weight:600;
  color:#fff;
  flex:1;
  padding:0 1rem;
}

/* ============================================= */
/* Context Panel – Memes Modal (matches Pic 3 clean dark bar) */
/* ============================================= */
.modal__context {
  background:#18181b;
  border-top:1px solid #27272a;
  padding:1.25rem 1.5rem;
  position:relative;
}

.context-inner {
  margin-bottom:1rem;
}

.context-text {
  color:#e5e7eb;
  font-size:1rem;
  line-height:1.4;
}

.context-close {
  position:absolute;
  top:1rem;
  right:1.5rem;
  background:none;
  border:none;
  color:#a1a1aa;
  font-size:1.5rem;
  cursor:pointer;
  z-index:10;
}

.context-search-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
  background:#fff;
  color:#000;
  border:none;
  border-radius:9999px;
  padding:.75rem 1.5rem;
  font-weight:600;
  width:100%;
  max-width:420px;
  margin:0 auto;
}

.context-search-btn i {
  color:#000;
}

.hero__live-badge-wrapper{display:block!important;margin:0 auto 2rem auto!important;width:fit-content!important}
.hero__live-badge{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:.5rem 1.25rem!important}
.hero__live-dot{flex-shrink:0!important;margin:0!important}

.card__vote-bar, .modal__vote-bar{border:none!important}
.grok-bar, .human-bar, .modal-btn-grok, .modal-btn-human{border:none!important}

/* ============================================= */
/* Responsive – Mobile (max-width 640px) */
/* ============================================= */

@media (max-width: 640px) {
  .header{height:auto!important;min-height:4rem!important}
  .header__inner{flex-direction:column;gap:1rem;align-items:center;padding:1rem .75rem}
  .header__logo-row{justify-content:center;width:100%}
  .header__nav{gap:.75rem;flex-wrap:wrap;justify-content:center}
  .header__submit-row{display:none}
  .header__submit-btn{display:none}

  .footer{padding:2rem 1rem 1.5rem!important;font-size:.75rem!important}
  .footer__links{gap:1rem!important;margin:1rem 0!important}

  .sticky-tabs { top: 7rem !important; position: sticky !important; z-index: 41 !important; background: rgba(10, 10, 31, .98) !important; padding: .4rem 0; }
  .sticky-tabs-container{padding:0!important}
  .tabs-wrapper{overflow-x:auto!important;scrollbar-width:none!important;scroll-behavior:smooth!important;justify-content:flex-start!important;padding:0.3rem 0.75rem!important;gap:0.35rem!important}
  .tabs-wrapper::-webkit-scrollbar{display:none!important}
  .tab{padding:.55rem 1.1rem!important;font-size:.9rem!important;white-space:nowrap!important;flex-shrink:0!important}
  .tab-active{scroll-margin-inline-start:20px!important}

 /* Modal – Mobile: title/tags/description visible but NOT sticky (scrolls normally), no arrows, tight bars */
  .modal__sticky-header{position:static!important;top:auto!important}
  .modal-nav{display:none!important}
  .modal-btn-grok,.modal-btn-human{padding:0.75rem 1rem!important;font-size:1rem!important}
  .modal__buttons{padding:1rem!important;gap:.75rem!important}
  .modal__buttons a,.modal__buttons button{padding:12px 16px!important;font-size:.95rem!important}

  .thread-text{word-break:break-word;overflow-wrap:break-word;white-space:pre-wrap}
  .grok-bubble,.human-bubble{max-width:85%!important}

  body[data-page="memes"] .modal__image-container{max-height:38vh!important}
  body[data-page="memes"] .modal__image{max-height:38vh!important}
  body[data-page="memes"] .modal__body{padding:0.75rem 1rem 0.5rem!important}
  body[data-page="memes"] .tags-area{margin-bottom:.5rem!important}
  body[data-page="memes"] .modal__title{font-size:1.15rem!important;margin-bottom:.4rem!important}
  body[data-page="memes"] .modal__description{margin-bottom:.75rem!important;font-size:.9rem!important}
  body[data-page="memes"] .genre-section{margin-top:.5rem!important;padding:.75rem 1rem!important}
  body[data-page="memes"] .modal__buttons{padding:.4rem!important;gap:.4rem!important;margin:.4rem}
  body[data-page="memes"] .modal__buttons a,
  body[data-page="memes"] .modal__buttons button{padding:11px 16px!important;font-size:.95rem!important}
  body[data-page="memes"] .genre-name{font-size:.7rem}
  body[data-page="memes"] .genre-section{padding:.4rem}
  body[data-page="memes"] .genre-header{font-size: .5rem;}
  body[data-page="memes"] .genre-arrows{margin:.4rem}

  .card__vote-bar,
  .modal__vote-bar{border:none!important}
  .grok-bar,
  .human-bar,
  .modal-btn-grok,
  .modal-btn-human{border:none!important}

}

/* End of main.css */