/* ===== CLS guards + Mobile responsive ===== */

/* === Universal CLS prevention === */
.photo-slot { contain: layout paint; }

/* Reserve space for legacy header only — contain breaks position:sticky/fixed on .ih-shell (iOS Chrome jitter) */
.site-header { contain: layout style; }

/* Manşet çerçevesi — slayt değişiminde dikey/yatay boyut sabit kalsın (LCP için paint contain yok) */
.hys-main .poster-frame,
.hys-spor .poster .poster-frame,
.hys-spor .poster-sm .poster-frame { contain: layout size style; }
.hys-main .poster,
.hys-main .hys-manset-anchor,
.hys-spor .poster { overflow-anchor: none; }
.spor-media, .fs-media { contain: layout paint; }

/* Skeleton sizes so SSR/initial paint matches React paint */
.__skeleton { min-height: 800px; }

/* === Tablet: ≤ 1100px === */
@media (max-width: 1100px) {
  :root { --gutter: 20px; --max: 100%; }

  /* Header — collapse extras */
  .ys-top-row { grid-template-columns: 1fr auto; }
  .ys-top-nav { display: none; }
  .ys-edisyon { display: none; }
  .ys-main-row { grid-template-columns: auto auto 1fr auto; gap: 14px; height: 72px; }
  .ys-logo { height: 48px; }
  .ys-tvnet-text { display: none; }
  .ys-tvnet { padding: 8px 12px; }
  .ys-nav-row { padding-bottom: 14px; }
  .ys-nav-btn { font-size: 18px; padding: 6px 4px; }
  .ys-nav-btn.is-pill { padding: 6px 14px; font-size: 16px; }
  .ys-market-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ys-mcard:nth-child(n+5) { display: none; }
  .ys-mcard { padding: 8px 10px; min-width: 0; }
  .ys-mcard-val { font-size: 15px; }
  .ys-mcard-code { font-size: 10px; }
  .ys-market-cta { min-width: 80px; font-size: 10px; padding: 8px 10px; }

  /* Hero — manşet kartı 650×750 sabit kalıyor, grid tek kolona düşüyor */
  .hero-ys-grid { grid-template-columns: 1fr; gap: 22px; }
  .hys-main { width: 100%; max-width: 650px; margin: 0 auto; }
  .hys-side { height: auto; }
  .hys-sky { display: none; }
  .poster-title { font-size: clamp(34px, 7vw, 60px); }
  .poster-sm .poster-overlay .poster-sub { font-size: 14px; max-width: 100%; }
  .poster-sm .poster-overlay .poster-sub-sm { font-size: 13.5px; }
  .poster-overlay { padding: 24px 26px 26px; }

  /* Widgets — keep 3 side-by-side */
  .hys-widgets { grid-template-columns: repeat(3, 1fr); }
  .wcard { min-height: 0; padding: 12px; }
  .wc-temp { font-size: 44px; }
  .prc-remaining { padding: 8px 10px; }
  .prc-remaining-val { font-size: 18px; }
  .mch-time-val { font-size: 17px; }

  /* Authors — tablet: 2 görünür, kaydırılabilir */
  .op-ys-track { --op-ys-cols: 2; }

  /* Featured row */
  .fs-grid { grid-template-columns: 1fr; }
  .fs-sky { display: none; }
  .fs-kutu-stack { margin-top: 24px; }
  .fs-kutu-spacer { display: none; }
  .fs-kutu-list {
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
    row-gap: 16px;
  }
  .fs-kutu-card { min-height: 56px; }

  /* Anasayfa üst bölüm — tablet/yatay telefon: kutuları koru, absolute görseller taşmasın */
  .home-top {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .home-top .home-hero-stack,
  .home-top .home-hero-stack > .hero-ys,
  .home-top .hero-ys > .container,
  .home-top .hero-ys-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .home-top .hero-ys > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  .home-top .hys-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
  }
  .home-top .hys-main,
  .home-top .home-kutu-mobile,
  .home-top .hys-spor,
  .home-top .shb-section {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .home-top .hys-spor {
    flex: 0 0 auto !important;
    min-height: 0;
    height: auto;
  }
  .home-top .hys-spor .poster-sm .poster-frame,
  .home-top .hys-spor .poster .poster-frame {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    aspect-ratio: 4 / 4.5 !important;
    overflow: clip !important;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain !important;
    contain: layout size style !important;
    overflow-anchor: none;
    min-height: 0;
  }
  .home-top .hys-spor .poster-slide {
    position: absolute;
    inset: 0;
  }
  .home-top .hys-main .poster-frame {
    position: relative !important;
    overflow: hidden !important;
  }
  .home-top .hys-main .poster-slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
  }
  /* Spor mozaik */
  .spor-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, 176px);
    grid-template-areas:
      "hero hero"
      "sq1  sq2"
      "land1 land2"
      "sq3  sq3";
  }
  .spor-mosaic-card--hero .spor-mosaic-title { font-size: 16px; }

  /* Footer */
  .ys-foot-links-row { grid-template-columns: repeat(3, 1fr); }
  .ys-foot-meta { grid-template-columns: 1fr; gap: 24px; }
  .ys-foot-apps { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ys-app { min-width: 0; min-height: 48px; padding: 12px 14px; }
  .ys-foot-expand { display: none; }

  /* Kategori blokları — yatay taşma / üst üste binme */
  .home-alt-sect,
  .home-category-sections-fallback {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
}

/* === Mobile: ≤ 720px — site geneli yan boşluk (--gutter tüm .container + shell) === */
@media (max-width: 720px) {
  :root { --gutter: 8px; }

  body { font-size: 14px; }

  /* === FIX #3: Mobilde header sığsın —
       kaydet/bell/üye ikonu gizli; burger + logo + search + CANLI BORSA kalır. === */
  .ih-actions > .ih-icon-btn,
  .ih-actions .ih-account { display: none !important; }
  .ih-actions { min-width: 0; max-width: 100%; flex-shrink: 1; gap: 6px; }
  .ih-brand .container,
  .ih-brand-row {
    overflow: hidden;
    max-width: 100%;
  }
  .ih-brand-row { gap: 10px; grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .ih-logo { min-width: 0; padding-right: 8px; }
  .ih-search { flex-shrink: 0; }
  .ih-live { height: 36px; padding: 0 8px; gap: 6px; flex-shrink: 0; }
  .ih-live-bars { gap: 2px; }

  html, body {
    width: 100%;
    max-width: 100%;
    position: relative;
  }
  /* overflow-x on body/html breaks position:sticky on .ih-shell — clip only below header */
  .app-page-shell,
  .ys-footer {
    overflow-x: clip;
    max-width: 100%;
  }
  html { scrollbar-gutter: auto; }

  /* Yatay scroll izole — sayfa genişliğini büyütmesin */
  .ih-shell,
  .ih-nav,
  .ih-brand,
  .ih-mkt-cards,
  main,
  .container,
  .hero-ys,
  .hero-ys-grid,
  .op-ys,
  .op-ys-track-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .poster-pages,
  .poster-controls,
  .ys-market-cards,
  .ih-cats,
  .ih-mkt-grid,
  .op-ys-track,
  .shb-row,
  .galeri-filter-l,
  .hsc-pages {
    overscroll-behavior-x: contain;
    max-width: 100%;
  }

  .poster-pages,
  .poster-controls,
  .ys-market-cards,
  .ih-cats,
  .op-ys-track {
    -webkit-overflow-scrolling: touch;
  }

  /* === FIX #1: Mobilde manşet çerçevesini kaldır.
       Görsel doğal (1:1) oranında, kart kenarlığı/dolgusu yok. === */
  .hys-main {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 14px 0 0 !important;
    border-radius: 0 !important;
  }
  .hys-main .poster { gap: 14px; flex: 0 0 auto; }
  .hys-main .poster-controls {
    margin-top: 0;
    flex: 0 0 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
  }
  .hys-main .poster-frame {
    border-radius: 8px;
    aspect-ratio: 1 / 1 !important;
    overflow: clip !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    contain: layout size style !important;
    touch-action: pan-y pinch-zoom !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
  }

  /* === FIX #5: Mobilde breadcrumb gizle === */
  .hd-crumb { display: none !important; }

  /* === FIX #8: Haber detayda mobil font boyutları (kullanıcı brief'i) === */
  .hd-title { font-size: 30px !important; line-height: 1.12; }
  .hd-summary { font-size: 20px !important; line-height: 1.38; }
  .hd-body { font-size: 20px !important; line-height: 1.6; }

  /* TOP BAR — keep it minimal */
  .ys-top { font-size: 11px; }
  .ys-top-row { height: 36px; gap: 8px; }
  .ys-date { font-size: 11px; }
  .ys-actions .ys-top-link { display: none; }

  /* MAIN HEADER — clean for mobile */
  .ys-main-row { grid-template-columns: auto 1fr auto; gap: 10px; height: 60px; padding-top: 4px; }
  .ys-edisyon { display: none; }
  .ys-tvnet { padding: 6px 10px; font-size: 11px; }
  .ys-tvnet-brand { font-size: 14px; }
  .ys-tvnet-pulse span { width: 3px; height: 3px; }
  .ys-tvnet-pulse span:nth-child(2) { width: 4px; height: 4px; }
  .ys-tvnet-pulse span:nth-child(3) { width: 5px; height: 5px; }
  .ys-logo { height: 40px; }
  .ys-burger { width: 34px; height: 34px; }
  .ys-burger svg { width: 24px; height: 24px; }
  .ys-search { width: 36px; height: 36px; }

  /* NAV row — horizontal scroll */
  .ys-nav-row { padding-bottom: 10px; }
  .ys-nav { gap: 8px; padding-bottom: 2px; }
  .ys-nav-btn { font-size: 15px; padding: 4px 4px; }
  .ys-nav-btn.is-pill { padding: 5px 10px; font-size: 13px; }
  .ys-nav-btn.is-pill .ys-star { font-size: 11px; }
  .ys-star { font-size: 12px; }

  /* MARKET cards — single horizontal scroll row, 2 cards visible */
  .ys-market { padding: 10px 0; }
  .ys-market-row { grid-template-columns: 1fr; gap: 8px; }
  .ys-market-cards {
    grid-template-columns: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
  }
  .ys-market-cards::-webkit-scrollbar { display: none; }
  .ys-mcard {
    flex: 0 0 calc(50% - 4px);
    display: grid !important;
    scroll-snap-align: start;
    min-width: 0;
  }
  .ys-mcard:nth-child(n+1) { display: grid !important; }
  .ys-market-cta { display: none; }

  /* HERO — mobilde manşet üst/alt boşlukları eşit (nav ↔ görsel ↔ pagination) */
  .hero-ys { padding: 0; }

  /* Anasayfa mobil sıra: manşet → piyasa → kutu (9–10) → yan manşet → 5'li → taşma */
  .home-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 16px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .home-top .home-hero-stack,
  .home-top .home-below-hero,
  .home-top .home-hero-stack > .hero-ys,
  .home-top .hero-ys > .container,
  .home-top .hero-ys-grid {
    display: contents;
  }
  .home-top .hys-side {
    display: contents;
  }
  /* Masaüstü yan kutu — hero içinde; mobilde piyasa altındaki kopya kullanılır */
  .home-top .hys-kutu-row--hero {
    display: none !important;
  }
  /* display:contents flatten sonrası — her blok kendi satırında, taşma yok */
  .home-top .hys-main,
  .home-top .home-kutu-mobile,
  .home-top .hys-spor,
  .home-top .shb-section {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .home-top .hys-main {
    order: 1;
    overflow: clip;
    width: 100%;
    max-width: 100%;
    contain: layout style;
    overflow-anchor: none;
  }
  .home-top .hys-main .hys-manset-anchor,
  .home-top .hys-main .poster,
  .home-top .hys-main .poster-frame {
    width: 100%;
    max-width: 100%;
    overflow: clip;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
  }
  .home-top .hys-main .poster {
    gap: 14px;
    flex: 0 0 auto;
  }
  .home-top .hys-main .poster-controls {
    flex: 0 0 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
  }
  .home-top .home-kutu-mobile {
    order: 2;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
    flex: none !important;
    min-height: auto;
    align-self: stretch;
  }
  .home-top .home-kutu-mobile .hys-kutu {
    min-height: auto;
    height: auto;
  }
  .home-top .home-kutu-mobile .hys-kutu-compact .hys-kutu-media {
    flex: 0 0 auto;
    width: 100%;
    min-height: unset;
    aspect-ratio: 16 / 10;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
  }
  .home-top .home-kutu-mobile .hys-kutu-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  .home-top .home-kutu-mobile .hys-kutu-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-top .hys-spor {
    order: 3;
    width: 100%;
    max-height: none;
    flex: 0 0 auto !important;
    height: auto;
    min-height: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: clip;
    contain: layout style;
    overflow-anchor: none;
  }
  .home-top .home-below-hero {
    padding: 0;
    max-width: none;
    margin: 0;
    gap: 16px;
  }
  .home-top .hys-main {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  .home-top .home-market {
    order: 2;
    width: 100%;
    padding: 0;
    min-width: 0;
  }
  .home-top .home-market > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
  }
  .home-top .fx-card {
    order: 3;
    width: 100%;
    min-width: 0;
  }
  .home-top .home-son-dakika { order: 8; width: 100%; }
  .home-top .hys-spor .poster {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 auto;
    overflow: clip;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
  }
  .home-top .hys-spor .poster-dots {
    margin: 0;
  }
  .home-top .hys-spor .poster-nav {
    flex: 0 0 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
    overflow-anchor: none;
  }
  .home-top .shb-section {
    order: 4;
    width: 100%;
  }
  .home-top .shb-section > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
  }

  /* Yazarlar — home-top ile net ayrım */
  main > .home-top + .ha-section,
  main > .home-top + .home-authors,
  main > .home-top + .op-ys {
    margin-top: 16px;
  }
  main > .home-top + .op-ys {
    padding-top: 24px;
  }
  .op-ys {
    margin-top: 0;
  }
  .home-top .hys-spor .poster-sm .poster-frame,
  .home-top .hys-spor .poster .poster-frame {
    width: 100% !important;
    flex: 0 0 auto !important;
    max-height: none;
    aspect-ratio: 4 / 4.5 !important;
    overflow: clip;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    contain: layout size style !important;
    overflow-anchor: none;
    min-height: 0;
  }
  .home-top .manset-overflow {
    order: 7;
    width: 100%;
    padding-bottom: 0;
  }
  .home-top .manset-overflow > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
  }
  .home-top .hys-sky-outside,
  .home-top .hys-sky-outside--left { display: none; }

  /* Manşet: sabit çerçeve — slayt geçişinde boyut oynamaz */
  .hys-main .poster-slide {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  .home-top .hys-main .poster-slide.is-split .pc-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent);
  }
  .home-top .hys-main .poster-slide.is-split .pc-title {
    font-size: 28px;
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -0.028em;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }
  .home-top .hys-main .poster-slide.is-split .pc-spot {
    font-size: 17px;
    line-height: 1.38;
    font-weight: 500;
    letter-spacing: -0.012em;
    -webkit-line-clamp: 2;
  }
  .home-top .home-kutu-mobile .hys-kutu-compact {
    flex-direction: column;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
    min-height: 0;
  }
  .home-top .home-kutu-mobile .hys-kutu-compact .hys-kutu-body {
    justify-content: flex-start;
    padding: 8px 10px 10px;
  }
  .home-top .home-kutu-mobile .hys-kutu-compact .hys-kutu-title {
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 3;
  }

  /* Kutu 9–10: piyasa altında, kompakt 2'li grid */

  .hys-tabs { gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .hys-tab { font-size: 15px; }
  .hys-main .poster-slide.is-split .poster-media {
    height: 48%;
    flex: 0 0 48%;
  }
  /* Kare çerçevede başlık (2 satır) + spot (2 satır) taşmasın diye içerik
     alanına daha çok yer aç; spotun alt satırı kırpılmasın. */
  .home-top .hys-main .poster-slide.is-split .poster-content {
    padding: 16px 22px 16px;
    min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
  }
  /* Cover/full manşet — split dışındaki slaytlar */
  .poster-slide.is-cover .pc-title,
  .poster-slide.is-full .pc-title {
    font-size: 28px;
  }
  .poster-slide.is-cover .pc-spot,
  .poster-slide.is-full .pc-spot {
    font-size: 17px;
  }
  .poster-title { font-size: clamp(28px, 9vw, 44px); }
  .poster-sm .poster-overlay { padding: 16px 18px 18px; }
  .home-top .hys-spor .poster-sm .poster-overlay { padding: 10px 16px 10px; }
  .home-top .hys-main .poster-frame,
  .home-top .hys-spor .poster .poster-frame {
    border-radius: 12px;
  }
  .poster-sm .poster-overlay .poster-sub { font-size: 17px; }
  .poster-sm .poster-overlay .poster-sub-sm { font-size: 17px; }
  .poster-overlay { padding: 18px 18px 20px; }
  .poster-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .ppg {
    font-size: 10.5px;
    flex: 0 0 28px !important;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    scroll-snap-align: start;
    color: var(--ink-2);
    font-weight: 700;
    border: 1px solid var(--line);
    background: #fff;
  }
  .ppg.on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }
  .poster-pages {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    justify-content: flex-start;
    overscroll-behavior-x: contain;
  }
  .poster-pages::-webkit-scrollbar { display: none; }
  .ppg:nth-child(n+11) { display: flex !important; }
  .poster-arrows {
    flex: 0 0 auto;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
  .parr {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: var(--ink);
    border-radius: 2px;
  }
  .parr svg {
    width: 14px;
    height: 14px;
  }
  .parr-dot { display: none; }
  .poster-tm { width: 44px; font-size: 11px; }

  /* Widgets — stack to 1 col */
  .hys-widgets { grid-template-columns: 1fr; gap: 10px; }
  .wcard { min-height: 0; }


  /* AUTHORS — single card per screen */
  .op-ys {
    padding: 24px 0;
    overflow-x: clip;
    overflow-y: visible;
  }
  .op-ys-title { font-size: 22px; }
  .op-ys-track { --op-ys-cols: 1.08; }
  .op-ys-h { font-size: 17px; -webkit-line-clamp: 3; }
  .op-ys-num { font-size: min(150px, 38vw); }
  .op-ys-surname { font-size: 24px; }
  .op-ys-photo { width: min(55%, 200px); }
  .op-ys-card:hover { transform: none; }

  /* Kategori — anasayfa home-top ile aynı mobil yan boşluklar */
  .page-top-stack {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-top: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-top-stack .page-market-band.home-below-hero {
    gap: 14px;
    margin-bottom: 14px;
  }
  .kat-page,
  .km-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .kat-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .kat-page .container.kat-pagewrap,
  .km-page .container.kat-pagewrap {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .kat-pagewrap {
    padding-top: 16px;
    padding-bottom: 24px;
  }
  .kat-leaderboard,
  .kat-subnav,
  .km-layout,
  .km-main,
  .km-side,
  .km-grid,
  .kat-row {
    max-width: 100%;
    min-width: 0;
  }
  .km-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .km-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Galeri — anasayfa ile aynı mobil kenar boşlukları, yatay taşma yok */
  .galeri-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .galeri-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .galeri-page .container.galeri-inner {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .galeri-inner {
    padding-top: 16px;
    padding-bottom: 24px;
  }
  .galeri-leaderboard,
  .galeri-infeed-ad,
  .galeri-filter,
  .galeri-row,
  .galeri-cats,
  .galeri-main,
  .galeri-trending {
    max-width: 100%;
    min-width: 0;
  }
  .galeri-manset.hys-main {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
    box-sizing: border-box;
  }
  .galeri-manset .poster,
  .galeri-manset .poster-frame,
  .galeri-manset .poster-controls {
    max-width: 100%;
    min-width: 0;
  }
  .galeri-manset .poster-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  .galeri-manset .poster-controls {
    width: 100%;
    max-width: 100%;
  }
  .galeri-chip { font-size: 12px; padding: 6px 12px; }
  .galeri-section-title { font-size: 18px; }
  .galeri-cat-body { padding: 14px; }
  .galeri-cat-title { font-size: 16px; }
  .galeri-trending .tr-link {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Son Dakika / Kaynak — anasayfa/galeri ile aynı mobil kenar boşlukları */
  .sd-page,
  .ky-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .sd-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .sd-page .container.sd-wrap {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .sd-wrap { padding-top: 16px; }
  .sd-feed,
  .sd-entry,
  .sd-cluster,
  .sd-card-media,
  .sd-billboard,
  .sd-leaderboard {
    max-width: 100%;
    min-width: 0;
  }

  /* Bugün — mobil kenar boşlukları */
  .bn-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .bn-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .bn-page .container.bn-hero-inner,
  .bn-page .container.bn-wrap {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .bn-hero { padding: 20px 0 24px; }
  .bn-layout,
  .bn-main,
  .bn-aside,
  .bn-lead,
  .bn-list,
  .bn-row,
  .bn-row-media,
  .bn-row-body {
    max-width: 100%;
    min-width: 0;
  }

  /* Video — mobil kenar boşlukları */
  .vi-page {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }
  .vi-shell {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
  .vi-page .container.vi-inner {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
  .vi-stage,
  .vi-body-row,
  .vi-grid,
  .vi-shorts-track,
  .vi-featured-media {
    max-width: 100%;
    min-width: 0;
  }
  .vi-queue-link {
    grid-template-columns: 20px 80px minmax(0, 1fr);
  }

  /* FEATURED row */
  .fs-row { padding: 22px 0; }
  .fs-title { font-size: 18px; }
  .fs-body { font-size: 13.5px; }
  .tr-link { padding: 12px 14px; gap: 10px; }
  .tr-h { font-size: 13.5px; }
  .tr-num { font-size: 26px; }

  /* SPOR section */
  .spor-sect { padding: 22px 0; }
  .spor-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto repeat(5, 200px);
    grid-template-areas:
      "hero"
      "sq1"
      "sq2"
      "land1"
      "land2"
      "sq3";
    gap: 16px;
  }
  .spor-mosaic-card--hero { align-self: stretch; }
  .spor-mosaic-card--hero .spor-mosaic-title { font-size: 17px; }
  .spor-mosaic-title { font-size: 13.5px; }

  /* FOOTER */
  .ys-footer { padding-bottom: 24px; }
  .ys-foot-logo { font-size: 30px; padding: 0 22px; }
  .ys-foot-columns { grid-template-columns: 1fr; gap: 18px; }
  .ys-foot-col-link { font-size: 14px; }
  .ys-foot-links-row { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
  .ys-foot-link { font-size: 14px; min-height: 48px; }
  .ys-foot-brands { gap: 8px; padding: 14px 10px; }
  .ys-foot-brand-chip { font-size: 11px; padding: 4px 8px; }
  .ys-foot-contact { flex-direction: column; gap: 10px; font-size: 12px; }
  .ys-foot-faq summary { padding: 12px 14px; font-size: 12.5px; }
  .ys-foot-bottom { font-size: 11px; padding: 0 14px; }
  .ys-foot-apps { flex-direction: column; }
  .ys-app { width: 100%; }

  /* TVNET text always hidden on mobile */
  .ys-tvnet-text { display: none; }
}

/* === Tiny phones ≤ 380px === */
@media (max-width: 380px) {
  .ys-logo { height: 34px; }
  .poster-title { font-size: clamp(24px, 8vw, 36px); }
  .op-ys-track { --op-ys-cols: 1.02; }
}

/* iOS Chrome: horizontal scroll track performance */
@supports (-webkit-appearance: none) and (not (-webkit-touch-callout: none)) {
  .ys-market-cards,
  .poster-pages,
  .op-ys-track {
    -webkit-overflow-scrolling: auto;
  }
}
