:root{
  --bg:#f4f7fd; --card:#ffffff; --text:#1c2751; --muted:#6d7a99; --line:#e6ebf4;
  --blue:#4b78ff; --purple:#8d58ff; --deep:#26346b; --green:#20c46a; --red:#f25a68;
  --shadow:0 18px 45px rgba(60,86,155,.12);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit} button,input,textarea,select{font:inherit}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid rgba(230,235,244,.8)}
.header-inner{max-width:1400px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;min-width:210px}.brand-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#7a6bff,#4bd1ff);display:grid;place-items:center;color:#fff;font-size:22px;box-shadow:0 10px 24px rgba(76,128,255,.28)}
.brand strong{display:block;font-size:28px;line-height:1}.brand small{display:block;color:var(--muted);margin-top:4px}
.main-nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.main-nav a{padding:12px 16px;border-radius:14px;color:#44527f;font-weight:600}.main-nav a:hover,.main-nav a:first-child{background:#eef4ff;color:var(--blue)}
.header-actions{display:flex;gap:10px;align-items:center}.admin-link,.profile-pill{padding:11px 14px;border-radius:12px;background:#f0f4ff;color:#44527f;font-weight:700}.profile-pill{background:linear-gradient(135deg,#8e77ff,#5eb7ff);color:#fff}
.page-wrap{max-width:1460px;margin:auto;padding:18px 24px 40px}
.hero-banner{position:relative;border-radius:28px;overflow:hidden;min-height:320px;background:linear-gradient(120deg,rgba(21,44,121,.96),rgba(70,63,184,.86),rgba(146,93,241,.82)),radial-gradient(circle at left,rgba(255,255,255,.18),transparent 50%);box-shadow:var(--shadow)}
.hero-banner::before{content:'';position:absolute;inset:0;background-image:linear-gradient(transparent 72%, rgba(0,0,0,.18)),url('hero_reference.png');background-size:cover;background-position:center;mix-blend-mode:soft-light;opacity:.35}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,20,65,.68) 0%,rgba(8,20,65,.26) 56%,rgba(8,20,65,.16) 100%)}
.hero-content{position:relative;z-index:1;display:grid;grid-template-columns:1.6fr .7fr;gap:20px;padding:42px 34px;align-items:center;color:#fff}
.hero-text h1{font-size:58px;line-height:1.06;margin:0 0 12px;font-weight:800;max-width:950px;letter-spacing:-1.6px}.hero-text h1 span{background:linear-gradient(90deg,#63d6ff,#e3a2ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-text p{max-width:800px;font-size:22px;line-height:1.45;color:#e9edff;margin:0 0 22px}
.hero-search{max-width:860px;background:#fff;border:4px solid rgba(255,255,255,.25);border-radius:60px;padding:7px;display:flex;align-items:center;box-shadow:0 18px 35px rgba(0,0,0,.18)}
.search-ico{font-size:28px;color:#7a82a5;padding:0 18px}.hero-search input{flex:1;border:0;outline:none;font-size:22px;color:#253560;min-width:0}.hero-search button{border:0;background:linear-gradient(90deg,#995cff,#48a6ff);color:#fff;padding:18px 34px;border-radius:44px;font-weight:800;font-size:22px;cursor:pointer}
.hero-suggestions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}.hero-suggestions span{color:#d7ddff;font-size:16px}.chip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px;color:#fff;padding:10px 16px;cursor:pointer}
.hero-side{display:flex;justify-content:flex-end}.hero-stat-card{background:linear-gradient(180deg,rgba(142,119,255,.3),rgba(83,144,255,.28));border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(10px);padding:26px;border-radius:22px;max-width:320px;box-shadow:0 16px 36px rgba(0,0,0,.12)}
.hero-stat-card b{display:block;font-size:28px;margin-bottom:8px}.hero-stat-card p{font-size:18px;line-height:1.5;margin:0;color:#eff4ff}
.category-strip{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 6px 6px}
.category-list{display:flex;gap:12px;flex-wrap:wrap}.category-list button{border:0;background:#e9eef8;color:#35508f;padding:15px 22px;border-radius:20px;font-weight:700;cursor:pointer}.category-list button.active{background:linear-gradient(135deg,#8d58ff,#4b78ff);color:#fff;box-shadow:0 10px 24px rgba(102,98,255,.25)}
.live-meta{display:flex;align-items:center;gap:10px;color:#53648f;font-weight:600}.dot{width:10px;height:10px;border-radius:50%;background:#29c76f;display:inline-block}.sep{opacity:.35}
.top-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:24px;margin-top:14px;align-items:start}
.main-column,.analysis-card,.comments-panel,.ranking-card{background:var(--card);border-radius:26px;box-shadow:var(--shadow);padding:22px;border:1px solid #edf1f8}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head.compact{margin-bottom:14px}.section-head h2{font-size:22px;margin:0 0 6px}.section-head p{margin:0;color:var(--muted)}
.ghost-btn,.primary-btn,.green-btn{border:0;border-radius:14px;padding:12px 18px;font-weight:800;cursor:pointer}.ghost-btn{background:#eef4ff;color:#4563a1}.primary-btn{background:linear-gradient(90deg,#945bff,#4b78ff);color:#fff}.green-btn{background:#dcf7e7;color:#227448}.beta,.mini-pill{background:#eef2ff;color:#755bff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:12px;white-space:nowrap}
.trend-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.trend-card{position:relative;background:#f8fbff;border:1px solid #eef2f8;border-radius:22px;padding:14px;cursor:pointer;overflow:hidden;min-height:180px}.trend-card:hover,.topic-row:hover,.rank-row:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:0 10px 26px rgba(60,86,155,.1)}
.trend-thumb,.topic-thumb{height:86px;border-radius:16px;margin-bottom:12px;background-size:cover;background-position:center;position:relative;overflow:hidden}
.img-money{background:linear-gradient(135deg,#e7f0ff,#fdf2f6)}.img-money::before{content:'₺';position:absolute;inset:auto 14px 10px auto;font-size:42px;font-weight:900;color:#86a5ff}
.img-sgk{background:linear-gradient(135deg,#dfeeff,#f4f9ff)}.img-sgk::before{content:'SGK';position:absolute;inset:auto 12px 12px auto;font-size:30px;font-weight:900;color:#2e82e8}
.img-gala{background:linear-gradient(135deg,#7d2030,#f3a133)}.img-gala::before{content:'GS';position:absolute;inset:auto 12px 10px auto;font-size:34px;font-weight:900;color:#fff}
.img-ucret{background:linear-gradient(135deg,#edf4ff,#e6fdf0)}.img-ucret::before{content:'₺';position:absolute;inset:auto 14px 10px auto;font-size:42px;font-weight:900;color:#55a9ff}
.img-deprem{background:linear-gradient(135deg,#f3f4f7,#d9dde5)}.img-deprem::before{content:'⬢';position:absolute;inset:auto 12px 12px auto;font-size:32px;color:#7d8595}
.trend-rank{position:absolute;top:16px;left:16px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ff6a6a;color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(255,106,106,.35)}
.trend-card h3{margin:0 0 6px;font-size:22px}.muted{color:var(--muted);font-size:16px}.trend-up{margin-top:12px;color:var(--green);font-weight:800}
.analysis-grid{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center}.donut-wrap{display:flex;flex-direction:column;gap:12px;align-items:center}.donut{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;position:relative}.donut::before{content:'';width:124px;height:124px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #eef2fa}.donut span{position:absolute;text-align:center;font-weight:900;color:#24366d;font-size:26px;line-height:1.1}.donut span small{font-size:14px;color:var(--muted);font-weight:700}.legend{list-style:none;padding:0;margin:0;width:100%}.legend li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;color:#44527f}.legend b{min-width:48px;text-align:right}.c{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:10px}.positive{background:var(--green)}.negative{background:var(--red)}.neutral{background:#c7cfdb}.summary-box{background:#f8fbff;border:1px solid #eef2fa;padding:18px;border-radius:18px}.summary-box h3{margin:0 0 12px}.summary-box ul{margin:0;padding-left:18px;color:#4b5c84;line-height:1.7}
.bottom-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:24px;margin-top:24px}.comment-card{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line)}.comment-card:first-child{border-top:0;padding-top:0}.avatar{min-width:56px;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#7d7eff,#57c4ff);color:#fff;font-weight:800;font-size:24px}.comment-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.comment-top span{color:#4b78ff;background:#eef4ff;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700}.comment-body p{font-size:17px;line-height:1.55;color:#4f5a74;margin:8px 0 10px}.comment-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.comment-actions button{border:0;background:#f0f4ff;color:#4665a4;padding:10px 14px;border-radius:12px;font-weight:700;cursor:pointer}.comment-actions em{font-style:normal;color:var(--green);font-weight:800;margin-left:auto}
.topic-list-wrap{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.topic-list{display:grid;gap:14px}.topic-row{display:grid;grid-template-columns:130px minmax(0,1fr) 80px;gap:16px;align-items:center;background:#f8fbff;border:1px solid #eef2fa;border-radius:20px;padding:14px;cursor:pointer}.topic-mini{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.topic-mini span:first-child{background:#eef4ff;color:#4b78ff;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.topic-mini span:last-child{color:var(--muted);font-size:13px}.topic-info h3{margin:0 0 8px;font-size:24px}.topic-info p{margin:0;color:#61708f;line-height:1.5}.topic-side{text-align:right}.topic-side b{display:block;font-size:28px;color:var(--green)}.topic-side small{color:var(--muted)}
.rank-row{display:grid;grid-template-columns:36px minmax(0,1fr) 150px 56px;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line);cursor:pointer}.rank-row:first-child{border-top:0;padding-top:0}.rank-num{width:30px;height:30px;border-radius:50%;background:#eef4ff;color:#4b78ff;display:grid;place-items:center;font-weight:800}.rank-meta b{display:block}.rank-meta span{color:var(--muted);font-size:14px}.rank-bar{height:12px;background:#eef2fa;border-radius:999px;overflow:hidden}.rank-bar i{display:block;height:100%;background:linear-gradient(90deg,#964cff,#468dff);border-radius:999px}.rank-change{color:var(--green);font-weight:800;text-align:right}
.site-footer{max-width:1460px;margin:26px auto 40px;padding:18px 24px;display:flex;gap:18px;flex-wrap:wrap;justify-content:center;color:#607097}.site-footer a{font-weight:700}
.modal{display:none;position:fixed;inset:0;z-index:50}.modal.open{display:block}.modal-backdrop{position:absolute;inset:0;background:rgba(18,29,60,.55);backdrop-filter:blur(6px)}.modal-card{position:relative;max-width:860px;max-height:88vh;overflow:auto;margin:5vh auto;background:#fff;border-radius:26px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal-close{position:absolute;top:18px;right:18px;border:0;background:#eef4ff;color:#4b78ff;border-radius:50%;width:42px;height:42px;font-size:28px;cursor:pointer}.modal-card h2{font-size:34px;margin:10px 0}.modal-card p{color:#4f5a74;line-height:1.6}.modal-meta{display:flex;gap:10px;flex-wrap:wrap}.modal-meta span{background:#eef4ff;color:#4b78ff;padding:7px 12px;border-radius:999px;font-size:13px;font-weight:800}.source-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.source-links a{background:#f8fbff;border:1px solid #eef2fa;padding:8px 12px;border-radius:12px;color:#4563a1;font-weight:700}.modal-section{margin-top:20px}.modal-comment{border:1px solid #eef2fa;background:#f9fbff;border-radius:18px;padding:16px;margin-bottom:10px}.modal-comment b{display:block;font-size:18px;margin-bottom:8px}
.stack-form{display:grid;gap:12px}.stack-form input,.stack-form textarea,.stack-form select,.login-form input{border:1px solid #dfe6f4;border-radius:16px;padding:14px 16px;background:#fff;color:#23356a;width:100%}.stack-form textarea{min-height:120px;resize:vertical}.empty-box{padding:30px;border:1px dashed #cfd9ee;border-radius:18px;background:#f8fbff;text-align:center;color:#607097}
.toast{position:fixed;right:20px;bottom:20px;background:#26346b;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.22);display:none;z-index:60;max-width:340px}.toast.show{display:block}
.login-page,.content-page,.admin-page{display:grid;place-items:center;min-height:100vh;padding:20px}.login-card,.static-card,.admin-box,.narrow{background:#fff;border-radius:24px;box-shadow:var(--shadow);padding:28px;border:1px solid #edf1f8}.login-card{max-width:470px;width:100%}.login-brand{font-size:34px;font-weight:900;color:#3a56b1;margin-bottom:10px}.login-card h1,.static-card h1{margin:0 0 10px;font-size:34px}.login-card p,.static-card p{color:#607097;line-height:1.6}.login-form,.stack-form{display:grid;gap:12px}.alert{padding:12px 14px;border-radius:14px;margin:14px 0}.alert.error{background:#ffe8eb;color:#99273a}.alert.success{background:#e7f8ec;color:#227448}.static-card{max-width:900px;width:100%}
.admin-wrap2{max-width:1180px;width:100%}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.admin-stats>div{background:#fff;border-radius:20px;padding:18px;box-shadow:var(--shadow);border:1px solid #edf1f8}.admin-stats b{display:block;font-size:34px}.admin-stats span{color:#607097}.admin-box{margin-bottom:18px}.admin-box h1,.admin-box h2{margin:0 0 10px}.moderation-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line)}.moderation-row:first-of-type{border-top:0;padding-top:0}.moderation-row p{margin:8px 0;color:#55627f}.moderation-row small{color:#607097}
@media (max-width:1200px){.hero-content,.top-grid,.bottom-grid{grid-template-columns:1fr}.trend-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.analysis-grid{grid-template-columns:1fr}.hero-side{justify-content:flex-start}.hero-stat-card{max-width:none}}
@media (max-width:900px){.header-inner{flex-wrap:wrap}.main-nav{order:3;width:100%;justify-content:flex-start}.hero-text h1{font-size:42px}.hero-text p{font-size:18px}.hero-search input,.hero-search button{font-size:18px}.trend-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-row{grid-template-columns:1fr}.rank-row{grid-template-columns:32px 1fr}.rank-bar,.rank-change{grid-column:2}.admin-stats{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.page-wrap{padding:14px 12px 28px}.brand strong{font-size:24px}.brand small{font-size:13px}.hero-content{padding:26px 18px}.hero-text h1{font-size:34px}.hero-text p{font-size:16px}.hero-search{flex-wrap:wrap;border-radius:26px;padding:10px}.search-ico{padding:0 10px}.hero-search input{width:100%;font-size:16px;padding:6px 0}.hero-search button{width:100%;font-size:16px;padding:14px 18px}.category-list{gap:8px}.category-list button{padding:12px 16px}.trend-cards{grid-template-columns:1fr}.comment-card{flex-direction:column}.avatar{width:48px;height:48px;min-width:48px}.section-head h2{font-size:20px}.modal-card{margin:0;min-height:100vh;border-radius:0;max-height:none}.admin-stats{grid-template-columns:1fr}.moderation-row{flex-direction:column}}

.member-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.member-actions button{padding:10px 12px;white-space:nowrap}.header-actions{flex-wrap:wrap}.rank-change{white-space:nowrap}.rank-row{grid-template-columns:32px minmax(0,1fr) 110px 75px}.trend-card h3{font-size:16px}.hero-stat-card b{font-size:22px}@media(max-width:900px){.rank-row{grid-template-columns:32px 1fr}.rank-bar,.rank-change{grid-column:2}.member-actions{order:2}}

/* Kaynak ve yorum ilişkilendirme kartları */
.source-preview{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:stretch;background:#f5f8ff;border:1px solid #dfe8fa;border-radius:16px;padding:11px;margin:12px 0 16px}
.source-preview-thumb{border-radius:12px;min-height:95px;position:relative;overflow:hidden}
.source-preview-content{min-width:0;display:flex;flex-direction:column;gap:4px}
.source-origin{font-size:11px;color:#5071ba;font-weight:800;letter-spacing:.15px}
.source-preview-content b{font-size:15px;line-height:1.35;color:#213463}
.source-preview-content p{font-size:12px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0!important;color:#5b6785!important}
.source-go{font-size:12px;color:#3d66d1;font-weight:700;align-self:flex-start;padding-top:4px}
.source-preview.compact{grid-template-columns:65px 1fr;padding:9px;margin:8px 0}
.source-preview.compact .source-preview-thumb{min-height:65px}
.source-preview.compact .source-preview-content b{font-size:13px}
.source-preview.compact .source-preview-content p{font-size:11px!important}
@media(max-width:450px){.source-preview{grid-template-columns:80px 1fr}.source-preview-content p{-webkit-line-clamp:2}}

.reply-label{display:inline-block;margin-left:10px;color:#6476a0;font-size:12px;font-weight:700}.modal-comment{border-left:3px solid #d8e5ff}

.external-trend-head{margin-top:26px}.external-trend-head h3{margin-bottom:5px}.external-trend-head p{margin-top:0;color:var(--muted);font-size:14px}.source-filter{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.source-filter button{border:1px solid var(--line);background:#f4f7ff;color:#344a7d;border-radius:999px;padding:10px 15px;cursor:pointer;font-weight:700}.source-filter button.active{background:#6563f5;color:#fff}.external-trends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:500px;overflow:auto}.ext-trend-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfcff}.ext-trend-row strong{display:block;font-size:14px}.ext-trend-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.ext-rank{background:#edf0ff;color:#6456ce;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-weight:800;flex-shrink:0}.ext-arrow{margin-left:auto;color:#6260e8}@media(max-width:640px){.external-trends{grid-template-columns:1fr}}

.ext-news-note{background:#eff5ff;border-radius:12px;padding:12px;margin-bottom:12px;color:#48618b;font-size:13px}

.topic-tools,.poll-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.topic-tools button,.poll-actions button{border:1px solid #dce5f8;background:#f1f5ff;color:#344e90;border-radius:10px;padding:9px 13px;cursor:pointer;font-weight:700}.topic-poll{border:1px solid #e3e9f7;border-radius:16px;padding:14px 18px;margin-top:16px;background:#fbfcff}.topic-poll h3{margin:0}.topic-poll p{font-size:12px}.poll-result{display:flex;gap:10px;align-items:center;margin:7px 0;font-size:12px}.poll-result span{width:100px}.poll-result b{width:40px;text-align:right}.poll-track{background:#edf1f8;border-radius:10px;height:9px;flex:1;overflow:hidden}.poll-track i{display:block;height:100%;background:linear-gradient(90deg,#8d58ff,#4b78ff)}

.external-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.external-actions a,.external-actions button{color:#4b78ff;border:1px solid #dce7ff;border-radius:9px;background:#fff;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer}

/* BUNUDİ mobile layout / horizontal trending rail — v3 */
html,body{max-width:100%;overflow-x:clip}*,*::before,*::after{box-sizing:border-box}img,video,iframe{max-width:100%}
.page-wrap,.header-inner,.site-footer{width:100%;max-width:1460px;min-width:0}
.main-column,.comments-panel,.ranking-card,.analysis-card,.hero-content,.hero-text,.top-grid,.bottom-grid{min-width:0}
.hero-banner,.hero-search,.trend-scroll-wrap,.comment-card,.topic-row{min-width:0;max-width:100%}
.hero-text h1,.hero-text p,.topic-info p,.comment-body p{overflow-wrap:anywhere}
.trend-scroll-wrap{position:relative;display:flex;align-items:center;gap:8px;overflow:hidden}
.trend-cards{display:flex !important;grid-template-columns:none !important;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;-webkit-overflow-scrolling:touch;min-width:0;flex:1;padding:4px 1px 13px}
.trend-card{width:175px;min-width:175px;max-width:175px;flex:0 0 175px;scroll-snap-align:start;min-height:150px;padding:11px;border-radius:16px}
.trend-thumb{height:66px;margin-bottom:8px}.trend-card h3{font-size:15px;line-height:1.3;overflow-wrap:anywhere;margin-bottom:5px}.trend-card .muted{font-size:12px}.trend-up{font-size:12px;margin-top:6px}.trend-rank{width:27px;height:27px;top:11px;left:11px;font-size:12px}
.trend-arrow{border:0;border-radius:50%;width:31px;height:38px;flex:0 0 31px;font-size:26px;cursor:pointer;background:#eef1ff;color:#6554cb;box-shadow:0 4px 13px #0001}
.source-filter{max-width:100%;overflow-x:auto;flex-wrap:nowrap !important;-webkit-overflow-scrolling:touch}.source-filter button{flex:0 0 auto;white-space:nowrap}
.ext-trend-row{min-width:0;max-width:100%;overflow-wrap:anywhere}.ext-trend-row>span:nth-child(2){min-width:0}.external-actions{flex-wrap:wrap}
@media(max-width:900px){
 .header-inner{padding:10px 12px}.site-header .main-nav{width:100%;overflow-x:auto;display:flex;flex-wrap:nowrap;justify-content:flex-start;white-space:nowrap;gap:2px;padding-bottom:4px}.main-nav a{padding:9px}
 .page-wrap{padding:10px 10px 24px}.hero-content{padding:24px 16px;display:block}.hero-side{margin-top:14px}.hero-stat-card{padding:14px;max-width:100%}
 .hero-text h1{font-size:clamp(24px,7vw,39px);letter-spacing:-.7px}.hero-text p{font-size:14px}.hero-search{display:flex;gap:5px;flex-wrap:nowrap;border-width:2px;padding:5px;border-radius:18px}.search-ico{font-size:19px;padding:0 3px}.hero-search input{flex:1 1 0;width:0;min-width:0;font-size:14px;padding:8px 4px}.hero-search button{width:auto;flex:0 0 auto;font-size:14px;padding:13px 14px;border-radius:12px}
 .top-grid,.bottom-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.main-column,.analysis-card,.comments-panel,.ranking-card{padding:14px;border-radius:18px}
 .trend-card{width:146px;min-width:146px;max-width:146px;flex-basis:146px}.trend-arrow{display:none}
 .category-strip{gap:6px}.category-list{max-width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 9px}.category-list button{flex:0 0 auto;white-space:nowrap}
 .topic-row{display:flex;gap:9px}.topic-thumb{flex:0 0 68px;width:68px;height:62px;margin:0}.topic-info{flex:1;min-width:0}.topic-info h3{font-size:16px}.topic-info p{font-size:12px}.topic-side{display:none}
 .rank-row{grid-template-columns:30px minmax(0,1fr) 56px}.rank-bar{display:none}.rank-change{grid-column:auto}
 .analysis-grid{grid-template-columns:minmax(0,1fr)}.donut-wrap{flex-direction:row;justify-content:center;flex-wrap:wrap}.donut{width:135px;height:135px}.donut::before{width:89px;height:89px}
 .section-head{gap:8px}.section-head h2{font-size:18px}.section-head p{font-size:12px}
 .modal-card{width:100%;max-width:100%;overflow-x:hidden}
}
@media(max-width:430px){.hero-text h1{font-size:28px}.hero-suggestions{gap:5px}.chip{padding:7px 9px;font-size:11px}.brand{min-width:0}.brand strong{font-size:21px}.brand-icon{width:35px;height:35px}.header-actions{gap:5px}.admin-link,.profile-pill{padding:8px;font-size:11px}.hero-stat-card b{font-size:17px}.hero-stat-card p{font-size:12px}.comment-body p{font-size:13px}.comment-card{gap:8px}}

/* V4: compact mobile header and always-reachable comment submit */
.mobile-menu-toggle{display:none;border:0;border-radius:12px;padding:9px 12px;background:#eef2ff;color:#4055a0;font-weight:800;cursor:pointer}
.modal-sticky-actions[hidden]{display:none!important}
.modal-sticky-actions{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #e3eaf6;padding:11px 4px max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 24px #18265314}
.modal-sticky-actions .primary-btn{width:100%;display:block;min-height:49px;font-size:16px}
.modal-card{display:flex;flex-direction:column;overflow:hidden!important;padding-bottom:0!important;max-height:90dvh}
#modalContent{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding-bottom:16px}
.comment-compose{scroll-margin-top:16px}.comment-compose .stack-form textarea{min-height:110px}
@media(max-width:900px){
  .site-header{position:relative}.header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px 12px!important}
  .brand{grid-column:1;grid-row:1;min-width:0}.brand strong{font-size:21px}.brand small{font-size:12px}
  .mobile-menu-toggle{display:inline-flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;font-size:13px;white-space:nowrap}
  .header-actions{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;min-height:0;gap:5px;max-width:100%;overflow-x:auto;padding-bottom:2px}
  .header-actions a,.header-actions button{white-space:nowrap;flex:0 0 auto;font-size:12px;padding:7px 9px}
  .header-inner .main-nav{display:none!important;grid-column:1/-1;grid-row:3;position:static;width:100%;padding:8px 0;overflow:visible;flex-wrap:wrap;white-space:normal;gap:5px}
  .menu-open .header-inner .main-nav{display:flex!important}
  .main-nav a{font-size:12px!important;padding:9px 11px!important;background:#f2f5ff;border-radius:11px}
  .modal-card{margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:22px 15px 0!important}
  #modalContent{padding-top:34px;padding-bottom:16px}
  .modal-close{position:absolute;right:13px;top:11px;z-index:6}
}
@media(max-width:440px){.header-actions .member-actions{max-width:100%;overflow-x:auto}.header-inner{padding:8px 10px!important}}

/* V5: strictly compact mobile masthead, no horizontal overflow, immediately visible composer */
html,body{max-width:100%;overflow-x:clip}
@media(max-width:900px){
.site-header{position:relative!important}
.header-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:6px!important;padding:8px 12px!important}
.header-actions{display:none!important}
.brand{min-width:0!important;gap:9px!important}
.brand-icon{width:34px!important;height:34px!important;font-size:17px!important;border-radius:10px!important}
.brand strong{font-size:19px!important}.brand small{font-size:11px!important;margin-top:2px!important}
.mobile-menu-toggle{grid-column:2!important;grid-row:1!important;display:inline-flex!important;padding:7px 10px!important}
.header-inner .main-nav{display:none!important;grid-column:1/-1!important;grid-row:2!important;gap:4px!important;padding:5px 0!important}
.menu-open .header-inner .main-nav{display:flex!important}
.menu-open .header-actions{display:flex!important;grid-column:1/-1!important;grid-row:3!important;overflow:auto!important}
.header-inner .main-nav a{padding:7px 9px!important;font-size:12px!important}
.hero-banner{min-height:unset!important}.hero-content{padding:18px 15px!important}
.hero-text h1{font-size:26px!important;letter-spacing:-.6px!important}.hero-text p{font-size:14px!important}
.page-wrap,.top-grid,.bottom-grid,.main-column,.comments-panel,.ranking-card,.analysis-card{min-width:0!important}
.modal-card{height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important}
#modalContent{overflow-y:auto!important;min-height:0!important;flex:1!important}
.comment-compose{background:#f4f7ff;border:1px solid #dbe5ff;border-radius:18px;padding:12px;margin:16px 0!important}
.comment-compose h3{margin-top:4px}
.comment-compose .stack-form input,.comment-compose .stack-form textarea{font-size:16px!important}
.modal-sticky-actions{position:relative!important;flex:0 0 auto!important;display:block!important;padding:8px 2px max(12px,env(safe-area-inset-bottom))!important}
}

.platform-stats,.ask-box{background:#fff;border:1px solid #e7ebf4;padding:16px;border-radius:18px;margin:18px 0}.platform-stats #realStats{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.platform-stats #realStats span{background:#f0f4ff;border-radius:12px;padding:10px;font-weight:700;font-size:13px}.platform-stats small,.ask-box p{color:#667395}.ask-form{display:flex;gap:8px;min-width:0}.ask-form input{flex:1;min-width:0;border:1px solid #dce4f5;border-radius:12px;padding:12px}.ask-form button,.ask-result button{border:0;background:#6158f5;color:white;border-radius:12px;padding:10px;cursor:pointer}.ask-result{border-top:1px solid #e6eafa;padding:10px 0}.ask-result p{overflow-wrap:anywhere}.header-inner,.main-nav,.header-actions{min-width:0}body{overflow-x:clip}@media(max-width:700px){.header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px 12px}.brand{min-width:0}.brand strong{font-size:21px}.brand-icon{width:34px;height:34px}.mobile-menu-toggle{grid-column:2;grid-row:1}.header-actions{grid-column:1/-1;display:none}.main-nav{grid-column:1/-1;display:none;width:100%;padding:8px}.menu-open .main-nav,.menu-open .header-actions{display:flex}.main-nav a{padding:9px 12px}.ask-form{flex-direction:column}.modal-card{padding:18px;padding-bottom:80px}.modal-card .stack-form button[type=submit]{position:sticky;bottom:8px;z-index:8;min-height:48px}.trend-cards{max-width:100%;overflow-x:auto}}

.author-link{border:0;background:transparent;padding:0;text-decoration:underline;text-decoration-color:#9caee3;cursor:pointer;color:inherit;font-weight:800;font-size:inherit}.profile-follow-area{padding:10px 0 20px}.modal-comment{overflow-wrap:anywhere}
@media(max-width:640px){.site-header .header-inner{padding:8px 12px}.modal-card{padding:18px 16px 90px}.comment-card,.modal-comment{max-width:100%;min-width:0}.comment-body{min-width:0}.site-header .main-nav{max-width:100%}}

/* V8: mobile nav and accessible comment form */
.notification-item{padding:12px 0;border-bottom:1px solid #e6ebf4}.notification-item.unread{border-left:3px solid #6158f5;padding-left:12px;background:#f8f9ff}.notification-item small{color:#71809b}.notification-item p{margin:0 0 5px}
@media(max-width:700px){.site-header .main-nav{display:none!important}.menu-open .site-header .main-nav{display:flex!important}.site-header .header-inner{grid-template-columns:minmax(0,1fr) auto!important}.site-header .header-actions{display:none!important}.menu-open .site-header .header-actions{display:flex!important}.modal-card .stack-form textarea[name=body]{min-height:115px;font-size:16px}.modal-card .stack-form button[type=submit]{min-height:48px;touch-action:manipulation}.page-wrap,.top-grid,.bottom-grid,.comments-panel,.main-column,.analysis-card,.ranking-card{min-width:0;max-width:100%}body{overflow-x:hidden}}

.world-selector{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.world-selector label{font-size:13px;font-weight:700;color:#394e83}.world-selector select{min-width:175px;max-width:100%;border:1px solid #d7def1;border-radius:11px;padding:10px;background:white}.external-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}html,body{max-width:100%;overflow-x:clip}@media(max-width:640px){.external-trends,.ext-trend-row,.external-trend-head{min-width:0;max-width:100%}.ext-trend-row strong{overflow-wrap:anywhere}.source-filter{max-width:100%;overflow-x:auto;flex-wrap:nowrap}}

/* V10 international comparison */
.world-selector{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.world-selector label{font-weight:700;font-size:13px}.world-selector select,.world-selector button{max-width:100%;border:1px solid #dbe4f4;border-radius:12px;padding:11px;background:white;color:#253560}.world-selector button{cursor:pointer;background:#eef3ff}.world-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:start}.world-column{min-width:0;border:1px solid #e5ebf5;border-radius:16px;padding:12px;background:#fff;overflow-wrap:anywhere}.world-column h4{font-size:18px;margin:5px 0}.world-meta{font-size:12px;color:#7080a2;margin-bottom:12px}.world-column .ext-trend-row{min-width:0}.world-column strong{overflow-wrap:anywhere}.world-column .external-actions{display:flex;flex-wrap:wrap;gap:6px}.source-disclaimer{font-size:12px;color:#5e6d89;background:#f0f5ff;border-radius:12px;padding:12px;line-height:1.5}@media(max-width:600px){.world-selector{display:grid;grid-template-columns:1fr}.world-column{padding:10px}.world-columns{grid-template-columns:minmax(0,1fr)}.world-results{max-width:100%;overflow:hidden}}

/* V11 admin source health / responsive guard */
.source-health-table{display:grid;gap:8px;margin-top:15px}
.source-health-row{display:grid;grid-template-columns:minmax(110px,2fr) minmax(115px,1fr) 80px minmax(125px,1fr);gap:12px;padding:12px;background:#f7f9ff;border-radius:10px;align-items:center;font-size:13px}
.source-health-row small{color:#69789d}
@media(max-width:650px){.source-health-row{grid-template-columns:1fr 1fr}.source-health-row strong{grid-column:1/-1}.source-health-row small{grid-column:1/-1}}

.yt-lookup{max-width:100%;overflow-wrap:anywhere}.yt-lookup form{display:flex;gap:8px;flex-wrap:wrap}.yt-lookup input{flex:1 1 230px;min-width:0;padding:12px;border:1px solid #dbe2f3;border-radius:12px}.yt-lookup button{border:0;border-radius:12px;padding:12px;background:#5b6bf4;color:white}.yt-comment{padding:15px 0;border-bottom:1px solid #e7ebf3}.yt-comment p{white-space:pre-wrap;overflow-wrap:anywhere}.yt-comment time{display:block;color:#7884a1;font-size:12px;margin-top:3px}.yt-comment a{color:#405ed2;font-size:13px}
