:root{
  --max:1120px;

  --bg:#f6f7fb;
  --panel:#fff;
  --text:#0b1020;
  --muted:#5b6478;

  --line:rgba(12,18,36,.10);
  --chip:rgba(12,18,36,.04);

  --shadow:0 10px 24px rgba(12,18,36,.08);

  --accent:#4c3cff;
  --good:#1fbf66;

  --r:18px;
}

/* Theme overrides: user choice wins */
html[data-theme="dark"]{
  --bg:#0b0d12;
  --panel:rgba(255,255,255,.03);
  --text:#e9ecf5;
  --muted:#9aa3b6;
  --line:rgba(255,255,255,.09);
  --chip:rgba(255,255,255,.04);
  --shadow:0 12px 28px rgba(0,0,0,.26);
}

/* System preference fallback when user hasn't chosen */
@media (prefers-color-scheme: dark){
  html:not([data-theme]){
    --bg:#0b0d12;
    --panel:rgba(255,255,255,.03);
    --text:#e9ecf5;
    --muted:#9aa3b6;
    --line:rgba(255,255,255,.09);
    --chip:rgba(255,255,255,.04);
    --shadow:0 12px 28px rgba(0,0,0,.26);
  }
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* ===== Layout ===== */
.gmf-container{max-width:var(--max);margin:0 auto;padding:0 16px}
.gmf-wrap{padding:14px 0 28px}

.gmf-grid2{display:grid;gap:12px;align-items:start}
.gmf-grid2.hasSide{grid-template-columns:minmax(0,1fr) 320px}

.gmf-sidebar{position:sticky;top:12px;display:grid;gap:12px}
.gmf-widget{margin:12px 0}
.gmf-widget-title{margin:0 0 10px;font-size:14px;font-weight:900;color:var(--muted)}

.gmf-full{width:100%}
.gmf-full-inner{max-width:var(--max);margin:0 auto;padding:0 16px}
.gmf-full--in{margin-bottom:10px}

.gmf-ad-slot{width:100%}
.gmf-ad-slot ins{display:block}
.gmf-ad-slot--infeed{margin:10px 0}

.gmf-block-head{display:flex;align-items:end;justify-content:space-between;margin:0 0 10px}
.gmf-block-title{margin:0;font-size:15px;font-weight:1000}

/* ===== Header (2 rows) ===== */
.gmf-header{
  background:var(--panel);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow);
  top:0;
  z-index:50;
}
.gmf-header-row{
  display:flex;
  flex-wrap:wrap; /* always 2-row capable */
  align-items:center;
  gap:12px;
  padding:12px 0;
}
.gmf-brand{display:flex;align-items:center;gap:10px;font-weight:900;order:1}
.gmf-brand-text{font-size:18px;letter-spacing:-.4px}
.custom-logo{max-height:34px;width:auto}

/* row 1 */
.gmf-search{
  order:2;
  display:flex;align-items:center;gap:10px;
  flex:1 1 520px;
  max-width:none;
  border:1px solid var(--line);
  background:var(--chip);
  border-radius:14px;
  padding:10px 12px;
  min-width:240px;
}
.gmf-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text)}
.gmf-search-ico{color:var(--muted);font-weight:900}

.gmf-tabs{order:3;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.gmf-tab{
  height:40px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--chip);
  color:var(--text);
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
}

.gmf-theme-toggle{
  order:4;
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.gmf-theme-toggle .gmf-ico{font-size:16px;line-height:1;color:var(--text);}
html[data-theme="dark"] .gmf-ico-sun{display:none}
html[data-theme="dark"] .gmf-ico-moon{display:inline}
html[data-theme="light"] .gmf-ico-moon{display:none}
html[data-theme="light"] .gmf-ico-sun{display:inline}
html:not([data-theme]) .gmf-ico-moon{display:none}
html:not([data-theme]) .gmf-ico-sun{display:inline}

/* row 2 */
.gmf-nav{
  order:10;
  width:100%;
  flex:0 0 100%;
  margin-top:12px;
}
.gmf-menu{
  display:flex;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.gmf-menu a{
  display:inline-flex;
  align-items:center;
  height:40px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel);
  font-weight:900;
  color:var(--text);
}
.gmf-menu a:hover{
  border-color:color-mix(in srgb,var(--accent) 18%,var(--line));
  transform:translateY(-1px);
}

@media(max-width:860px){
  .gmf-tabs{display:none}
  .gmf-search{min-width:0;width:100%}
}

/* ===== Cards / Grids ===== */
.gmf-grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media(max-width:1100px){.gmf-grid5{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:860px){.gmf-grid5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.gmf-grid5{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gmf-grid5 > *{height:100%}

.gmf-card{
  height:100%;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:var(--panel);
  box-shadow:var(--shadow);
  transition:transform .12s ease,border-color .12s ease;
}
.gmf-card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--accent) 18%,var(--line));
}

/* Thumb = 128x128 square */
.gmf-card-thumb{
  width:100%;
  height:128px;
  min-height:128px;
  max-height:128px;
  aspect-ratio:1/1;
  background:var(--chip);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gmf-card-thumb img{width:100%;height:100%;object-fit:cover}
.gmf-thumb-fallback{width:100%;height:100%;background:var(--chip)}

.gmf-card-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px 12px 12px;
  min-height:92px;
}

.gmf-title{
  font-weight:600;
  line-height:1.2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.gmf-title.t2{
  -webkit-line-clamp:2;
  min-height:2.6em;
  padding-right:2px;
}

.gmf-card-btn{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  border-radius:14px;
  border:1px solid color-mix(in srgb,var(--good) 55%,var(--line));
  background:color-mix(in srgb,var(--good) 16%,var(--chip));
  font-weight:1000;
}

/* ===== Typography / Buttons ===== */
.gmf-h1{margin:0 0 10px;font-size:clamp(22px,2.6vw,34px);letter-spacing:-.6px}
.gmf-h2{margin:0 0 12px;font-size:18px;font-weight:1000}
.gmf-muted{color:var(--muted);font-weight:700}

.gmf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--chip);
  font-weight:1000;
}
.gmf-btn--primary{
  border-color:color-mix(in srgb,var(--good) 55%,var(--line));
  background:color-mix(in srgb,var(--good) 16%,var(--chip));
}

/* ===== Single (base) ===== */
.gmf-single{background:transparent}
.gmf-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.gmf-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 16px}
@media(max-width:860px){.gmf-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gmf-info{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px;
}
.gmf-info .k{display:block;color:var(--muted);font-weight:900;font-size:12px;margin-bottom:6px}
.gmf-info .v{display:block;font-weight:1000}

/* ===== News ===== */
.gmf-news-list{display:grid;gap:10px}
.gmf-news-row{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
@media(max-width:700px){.gmf-news-row{grid-template-columns:140px 1fr}}
.gmf-news-thumb{background:var(--chip);aspect-ratio:16/9}
.gmf-news-thumb img{width:100%;height:100%;object-fit:cover}
.gmf-news-text{padding:10px 12px}
.gmf-news-title{font-size:17px;font-weight:650;line-height:1.25;margin:0 0 6px}
.gmf-news-excerpt{font-size:13px;font-weight:450;color:var(--muted);line-height:1.45}

.gmf-news-hero{
  margin:0 0 12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
}
.gmf-news-hero img{width:100%;height:auto;object-fit:cover}

.gmf-archive-head{margin:8px 0 12px}
.archive-description{color:var(--muted);font-weight:500;max-width:70ch}
.gmf-pagination{margin:14px 0}
.gmf-footer{border-top:1px solid var(--line);padding:18px 0;color:var(--muted)}

/* ===== Panels / Blocks ===== */
.gmf-card-panel{border:1px solid var(--line);background:var(--panel);border-radius:18px;box-shadow:var(--shadow);padding:14px}
.gmf-block{border:1px solid var(--line);background:var(--panel);border-radius:18px;box-shadow:var(--shadow);padding:12px;margin:12px 0}
.gmf-block--trending{
  background:linear-gradient(
    135deg,
    color-mix(in srgb,var(--accent) 22%,var(--panel)),
    var(--panel)
  );
}
.gmf-badge-ico{display:inline-flex;align-items:center;justify-content:center;margin-right:6px}

/* =========================
   SINGLE v2 (clean)
   ========================= */
.gmf-single.gmf-single--v2{background:transparent}
.gmf-single--v2 .gmf-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:22px;
  margin:0 0 18px;
}

.gmf-single--v2 .gmf-h1--big{
  font-size:34px;
  line-height:1.1;
  margin:0 0 16px;
  font-weight:1000;
  letter-spacing:-.6px;
  word-break:break-word;
}

.gmf-single--v2 .gmf-topgrid{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.gmf-single--v2 .gmf-icon-col{width:200px}
.gmf-single--v2 .gmf-icon-frame{
  width:200px;height:200px;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--chip);
  overflow:hidden;
}
.gmf-single--v2 .gmf-icon-frame img{width:100%;height:100%;object-fit:cover}
.gmf-single--v2 .gmf-topright{min-width:0}

/* 2x2 info grid (boxed) */
.gmf-single--v2 .gmf-info-grid--boxed{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
}
.gmf-single--v2 .gmf-info-grid--boxed .gmf-info{
  min-width:0;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:16px;
  box-shadow:none;
  padding:10px 12px;
}
.gmf-single--v2 .gmf-info-grid--boxed .k{
  display:block;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  margin:0 0 6px;
}
.gmf-single--v2 .gmf-info-grid--boxed .v{
  display:block;
  font-weight:1000;
  font-size:16px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gmf-single--v2 .gmf-info-grid--boxed .v a{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gmf-single--v2 .gmf-actions--wide{margin-top:6px}
.gmf-single--v2 .gmf-btn--big{
  width:100%;
  max-width:520px;
  height:auto;
  padding:14px 18px;
  border-radius:16px;
  font-size:18px;
  font-weight:1000;
}

.gmf-single--v2 .gmf-micro-note{
  margin-top:10px;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}

/* Ad card */
.gmf-single--v2 .gmf-adcard{padding:18px 22px 22px}
.gmf-single--v2 .gmf-adslot{
  border:2px dashed color-mix(in srgb,var(--muted) 28%,transparent);
  border-radius:16px;
  padding:16px;
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gmf-single--v2 .gmf-adlabel{
  text-align:center;
  font-weight:1000;
  color:var(--muted);
  margin-top:12px;
}

/* Description */
.gmf-single--v2 .gmf-desccard .gmf-h2{margin:0 0 12px}
.gmf-single--v2 .gmf-content--demo{
  color:var(--text);
  font-size:18px;
  line-height:1.65;
  font-weight:400;
}
.gmf-single--v2 .gmf-content--demo > *:first-child{margin-top:0}
.gmf-single--v2 .gmf-content--demo > *:last-child{margin-bottom:0}

/* === SINGLE V2 RESPONSIVE FIX === */

/* Tablet (iPad yatay dahil) */
@media (max-width:1100px){
  .gmf-single--v2 .gmf-topgrid{
    grid-template-columns:180px minmax(0,1fr);
  }
  .gmf-single--v2 .gmf-icon-col{
    width:180px;
  }
  .gmf-single--v2 .gmf-icon-frame{
    width:180px;
    height:180px;
  }
}

/* Mobile / Tablet dikey */
@media (max-width:820px){
  .gmf-single--v2 .gmf-topgrid{
    grid-template-columns:1fr;
  }
  .gmf-single--v2 .gmf-icon-col{
    width:100%;
  }
  .gmf-single--v2 .gmf-icon-frame{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
  }
}

/* Very small phones */
@media (max-width:640px){
  .gmf-single--v2 .gmf-info-grid--boxed{
    grid-template-columns:1fr;
  }
}

/* ===== Comments (single v2) ===== */
.gmf-single--v2 .gmf-comments--card{padding:22px}

.gmf-single--v2 .gmf-comments--card .comments-title{
  margin:0 0 14px;
  font-size:22px;
  font-weight:1000;
  letter-spacing:-.2px;
}

.gmf-single--v2 .gmf-comments--card .comment-list{
  list-style:none;
  padding:0;
  margin:0 0 18px;
}

.gmf-single--v2 .gmf-comments--card .comment{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px 14px 12px;
  margin:0 0 12px;
}

.gmf-single--v2 .gmf-comments--card .comment .comment-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid var(--line);
}

.gmf-single--v2 .gmf-comments--card .comment .comment-author{font-weight:1000}
.gmf-single--v2 .gmf-comments--card .comment .comment-metadata a{
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.gmf-single--v2 .gmf-comments--card .comment-content{
  line-height:1.6;
  font-size:15px;
  color:var(--text);
}
.gmf-single--v2 .gmf-comments--card .comment-content p{margin:0}

.gmf-single--v2 .gmf-comments--card .reply{margin-top:10px}
.gmf-single--v2 .gmf-comments--card .reply a{
  display:inline-flex;
  align-items:center;
  height:36px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--chip);
  font-weight:900;
}

/* Form as own card */
.gmf-single--v2 .gmf-comments--card .comment-respond{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
}
.gmf-single--v2 .gmf-comments--card .comment-reply-title{
  margin:0 0 10px;
  font-size:20px;
  font-weight:1000;
}
.gmf-single--v2 .gmf-comments--card .comment-notes,
.gmf-single--v2 .gmf-comments--card .logged-in-as{
  color:var(--muted);
  font-weight:650;
  margin:0 0 12px;
}

.gmf-single--v2 .gmf-comments--card .comment-form{display:grid;gap:12px}
.gmf-single--v2 .gmf-comments--card .comment-form p{margin:0}

.gmf-single--v2 .gmf-comments--card .comment-form input[type="text"],
.gmf-single--v2 .gmf-comments--card .comment-form input[type="email"],
.gmf-single--v2 .gmf-comments--card .comment-form input[type="url"],
.gmf-single--v2 .gmf-comments--card .comment-form textarea{
  width:100%;
  border:1px solid var(--line);
  background:var(--chip);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  color:var(--text);
}
.gmf-single--v2 .gmf-comments--card .comment-form textarea{
  min-height:140px;
  resize:vertical;
}
.gmf-single--v2 .gmf-comments--card .comment-form input:focus,
.gmf-single--v2 .gmf-comments--card .comment-form textarea:focus{
  border-color:color-mix(in srgb,var(--accent) 25%,var(--line));
  box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent);
}
.gmf-single--v2 .gmf-comments--card .form-submit input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid color-mix(in srgb,var(--good) 55%,var(--line));
  background:color-mix(in srgb,var(--good) 16%,var(--chip));
  font-weight:1000;
  cursor:pointer;
}
.gmf-single--v2 .gmf-comments--card .comment-form-cookies-consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  font-weight:650;
}

/* ===== Download pages (modern gate styles) ===== */
.gmf-download-page{max-width:980px;margin:0 auto;padding:24px 0}
.gmf-download-card{padding:22px}
.gmf-download-hero{padding:22px}

.gmf-dl-hero-grid{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  align-items:start;
}
.gmf-dl-thumbimg{
  width:128px;height:128px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--panel);
}
.gmf-dl-thumbph{
  width:128px;height:128px;
  border-radius:18px;
  border:1px dashed var(--line);
  background:color-mix(in srgb,var(--panel) 70%,transparent);
}

.gmf-dl-title{margin:0 0 6px;font-size:clamp(28px,3vw,44px);letter-spacing:-.8px;line-height:1.05}
.gmf-dl-sub{margin:0 0 12px;font-size:16px;color:var(--muted);font-weight:700}

.gmf-dl-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.gmf-dl-chip{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.gmf-dl-chip span{color:var(--muted);font-weight:800}
.gmf-dl-chip b{font-weight:900;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.gmf-dl-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.gmf-dl-note{margin-top:10px;font-size:14px;color:var(--muted);font-weight:650}

.gmf-download-ad{padding:16px 18px;text-align:center}
.gmf-download-ad .gmf-adlabel{margin-top:8px;color:var(--muted);font-weight:800}

.gmf-download-info{padding:18px 22px}
.gmf-download-info .gmf-h2{margin:0 0 10px}
.gmf-download-text{font-size:16px;line-height:1.7}

@media(max-width:720px){
  .gmf-dl-hero-grid{grid-template-columns:1fr}
  .gmf-dl-meta{grid-template-columns:1fr}
}

/* Gate (5 seconds etc.) */
.gmf-download-gate{max-width:720px;margin:auto;padding:24px;text-align:center}
.gate-head{display:flex;align-items:center;gap:16px;justify-content:center;flex-wrap:wrap}
.gate-thumb{width:128px;height:128px;border-radius:18px;object-fit:cover;box-shadow:var(--shadow)}
.gate-progress{margin:18px 0}
.gate-bar{height:10px;background:var(--chip);border-radius:999px;overflow:hidden;margin:14px 0}
.gate-bar span{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--accent),var(--good));
  transition:width .3s;
}
.gate-box{display:none;text-align:center;margin-top:14px}

/* ===== Search grid normalize (if search template uses list layout) ===== */
.gmf-search-grid .gmf-card{flex-direction:row;gap:12px;align-items:center;padding:10px}
.gmf-search-grid .gmf-card-thumb{
  width:128px;
  height:128px;
  min-height:128px;
  max-height:128px;
  border-radius:16px;
  border:1px solid var(--line);
}
.gmf-search-grid .gmf-card-body{padding:0;min-height:0}

/* === GLOBAL MOBILE GRID FIX (merged, no duplicate 980 rules) === */
@media (max-width:980px){
  .gmf-grid2{grid-template-columns:1fr}
  .gmf-grid2.hasSide{grid-template-columns:1fr} /* kritik override */
  .gmf-sidebar{display:none}
}

  .gmf-main{
    width:100%;
    max-width:100%;
  }
}

/* Menu horizontal scroll (single source of truth) */
@media (max-width:860px){
  .gmf-header-row{flex-wrap:wrap}
  .gmf-search{max-width:none;width:100%}

  .gmf-nav{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .gmf-menu{
    flex-wrap:nowrap;
    width:max-content;
  }
}

/* === MOBILE HEADER FLOW FIX (only extra differences) === */
@media (max-width: 820px){
  .gmf-header-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .gmf-search{
    width: 100%;
    max-width: 100%;
  }

  /* 860px already sets nowrap + max-content; here we only ensure it spans nicely */
  .gmf-menu{
    min-width: 100%;
  }

  .gmf-wrap{
    padding-top: 12px;
  }
}
/* =========================
   RESPONSIVE: Widgets + News
   - Mobile: category/trending grids = tek satır + yatay scroll
   - Mobile: news = thumbnail üstte, başlık altta
   - Tablet: news = solda thumb, sağda yazı (dar)
   - Sidebar: mobil/tablet kapalı
   ========================= */

/* 1) Tablet ve altı: sidebar kapansın + grid tek kolon (hasSide override şart) */
@media (max-width: 980px){
  .gmf-grid2{ grid-template-columns: 1fr; }
  .gmf-grid2.hasSide{ grid-template-columns: 1fr; }
  .gmf-sidebar{ display:none; }
}

/* 2) Mobile: Category/Trending widget gridleri TEK SATIR + YANA KAYDIRMALI */
@media (max-width: 640px){
  /* grid5'i yatay scroll yap */
  .gmf-block .gmf-grid5{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    padding-bottom:6px; /* scrollbar/gesture için nefes */
  }

  /* kartlar ezilmesin, thumb kesin görünsün */
  .gmf-block .gmf-grid5 > *{
    flex:0 0 auto;
    width: 220px;             /* istersen 200-260 arası oynayabilirsin */
    scroll-snap-align:start;
  }

  /* kart içi yükseklik dengesi */
  .gmf-block .gmf-card{ height:100%; }
  .gmf-block .gmf-card-thumb{
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }
  .gmf-block .gmf-card-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  /* başlıklar taşmasın */
  .gmf-block .gmf-title.t2{
    -webkit-line-clamp:2;
    min-height:2.6em;
  }
}

/* 3) NEWS: Tablet (iPad vb) solda thumbnail, sağda yazı; daraltılmış */
@media (max-width: 980px){
  .gmf-news-row{
    grid-template-columns: 200px minmax(0,1fr);
  }
  .gmf-news-thumb{ aspect-ratio: 16/9; }
}

/* 4) NEWS: Mobile (telefon) alt alta: thumbnail ÜSTTE, başlık ALTA */
@media (max-width: 640px){
  .gmf-news-row{
    grid-template-columns: 1fr;
  }
  .gmf-news-thumb{
    aspect-ratio: 16/9;
  }
  .gmf-news-text{
    padding: 12px;
  }
  .gmf-news-title{
    margin: 0 0 8px;
  }
}
/* FIX: Mobil/Tablet'te sidebar reklam içerik üstüne binmesin */
@media (max-width: 980px){
  .gmf-grid2,
  .gmf-grid2.hasSide{
    grid-template-columns: 1fr;
  }

  /* Sidebar'ı akıştan çıkar: sticky/fixed etkisini de öldür */
  .gmf-grid2 .gmf-sidebar{
    display: none;
    position: static;
    top: auto;
  }

  /* Main alan kesin genişlesin */
  .gmf-main{
    width: 100%;
    min-width: 0;
  }
}
/* =========================
   RESPONSIVE FIXES (mobile/tablet)
   ========================= */

/* Tablet + Mobile: sidebar kapansın, grid tek kolon olsun */
@media (max-width: 980px){
  .gmf-grid2.hasSide{ grid-template-columns: 1fr; }
  .gmf-sidebar{ display: none; }
}

/* Mobil: Category/Trending grid tek satır + yana kaydırmalı */
@media (max-width: 640px){
  .gmf-grid5{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  .gmf-grid5 > *{
    flex: 0 0 220px;          /* kart genişliği */
    scroll-snap-align: start;
  }
}

/* Tablet: News list daralsın (thumb solda, yazı sağda) */
@media (max-width: 980px){
  .gmf-news-row{ grid-template-columns: 220px 1fr; }
}

/* Mobil: News alt alta, thumb üstte başlık altta */
@media (max-width: 640px){
  .gmf-news-row{ grid-template-columns: 1fr; }
  .gmf-news-thumb{ aspect-ratio: 16/9; }
}
/* 14:21*/
/* Similar section fix - force square 128x128 */
.gmf-related--square .gmf-card-thumb{
  aspect-ratio: 1/1;
  height: 128px;
  min-height: 128px;
  max-height: 128px;
}
/* ===== Similar (single içinde) kartları: normal kart stiline geri al ===== */
.gmf-single--v2 .gmf-related--card .gmf-card{
  padding:0;           /* single kart padding'ini iptal */
  margin:0;            /* single kart margin'ini iptal */
}

/* Similar thumbnail kesin 128x128 kare */
.gmf-single--v2 .gmf-related--card .gmf-card-thumb{
  height:128px;
  min-height:128px;
  max-height:128px;
  aspect-ratio:1/1;
}

/* Similar başlıklar kalın olmasın */
.gmf-single--v2 .gmf-related--card .gmf-title{
  font-weight:500;     /* 600 yerine */
}