/* Ana ekran (5.77): üstte ince manzara şeridi (selam, hava, kısayollar), altında üç sütun: şimdi + bugün | Shorts |
   Manifest + ligler. Geniş ekranda hepsi bir bakışta, sayfa kaymaz; dar ekranda (telefon) alt alta. */

.home {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 2px 16px 12px;
  container: home / inline-size;
}

/* ---------- Manzara ---------- */
/* Renkler home.js'ten (web/js/sky.js): gökyüzü, karşı kıyı, deniz, siluet; --night yıldızları ve ışıkları, --clouds
   bulutları açar. Ufuk çizgisi yüksekliğin %72'sinde. */

.hm-hero {
  --sky1: #2d7cd1; --sky2: #a2d1f4; --hill: #38577f; --sea1: #3d7ebd; --sea2: #22507e; --sil: #1a2638; --cloud: #fff;
  --night: 0; --dusk: 0; --clouds: 0.2; --ox: 0.5; --oy: 0.9; --shade: 0%;
  /* Güneşin / ayın yolu yazısız bölgede: --ox yolda ilerleme, --oy yükseklik (0..1, home.js) */
  --orb-left: calc(34% + var(--ox) * 54%); --orb-top: calc(72% - var(--oy) * 54%);
  position: relative; z-index: 2; isolation: isolate; flex: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "hello wx edit" ". . ." "quick quick quick";
  column-gap: 10px; min-height: 136px; padding: 14px 18px 12px; border-radius: 14px; color: #fff;
}
.hm-sky {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 72%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
/* Yazı okunsun: soldan hafif gölge */
.hm-sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.08) 42%, transparent 66%);
}
.hm-stars { position: absolute; inset: 0 0 28% 0; opacity: var(--night); transition: opacity 3s; }
.hm-stars i { position: absolute; border-radius: 50%; background: #fff; opacity: 0.85; }
.hm-stars i.tw { animation: hm-twinkle 3.8s ease-in-out infinite; }
@keyframes hm-twinkle { 50% { opacity: 0.15; } }

/* Güneş ya da ay (evresiyle: gölge diski kayar) */
.hm-orb {
  position: absolute; left: var(--orb-left); top: var(--orb-top); width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; overflow: hidden; transition: left 3s, top 3s;
}
.hm-hero[data-orb="sun"] .hm-orb {
  background: radial-gradient(circle, #fff8dc 0 38%, color-mix(in srgb, #ff8a3d calc(var(--dusk) * 100%), #ffd45e) 100%);
  box-shadow: 0 0 20px 7px rgb(255 206 110 / 0.55), 0 0 80px 30px rgb(255 160 80 / calc(0.14 + var(--dusk) * 0.32));
  opacity: calc(1 - var(--clouds) * 0.45);
}
.hm-hero[data-orb="moon"] .hm-orb {
  width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #f2eedf;
  box-shadow: 0 0 18px 4px rgb(240 236 220 / 0.3); opacity: calc(1 - var(--clouds) * 0.7);
}
.hm-orb i { display: none; position: absolute; inset: -1px; border-radius: 50%; background: rgb(16 20 40 / 0.9); transform: translateX(var(--shade)); }
.hm-hero[data-orb="moon"] .hm-orb i { display: block; }

/* Bulutlar: yavaşça soldan sağa; hava kapalıysa koyulaşır */
.hm-clouds { position: absolute; inset: 0 0 26% 0; opacity: calc(0.12 + var(--clouds) * 0.8); }
.hm-clouds i {
  position: absolute; left: -260px; height: 20px; border-radius: 20px; background: var(--cloud); filter: blur(4px); opacity: 0.55;
  animation: hm-drift 150s linear infinite;
}
/* Kabarık üst: iki yuvarlak */
.hm-clouds i::before, .hm-clouds i::after { content: ""; position: absolute; bottom: 30%; border-radius: 50%; background: inherit; }
.hm-clouds i::before { left: 16%; width: 42%; height: 190%; }
.hm-clouds i::after { left: 48%; width: 32%; height: 150%; }
.hm-clouds i:nth-child(1) { top: 20%; width: 150px; animation-delay: -40s; }
.hm-clouds i:nth-child(2) { top: 40%; width: 100px; height: 15px; animation-duration: 190s; animation-delay: -130s; }
.hm-clouds i:nth-child(3) { top: 56%; width: 190px; height: 16px; opacity: 0.4; animation-duration: 230s; animation-delay: -70s; }
@keyframes hm-drift { to { transform: translateX(calc(100cqw + 560px)); } }

/* Karşı kıyı ve gece ışıkları; deniz ve güneşin / ayın yansıması */
.hm-hills { position: absolute; left: 0; bottom: 28%; width: 100%; height: 26px; fill: var(--hill); }
.hm-lights { position: absolute; left: 0; right: 0; bottom: 28%; height: 8px; opacity: var(--night); transition: opacity 3s; }
.hm-lights i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #ffd08a; box-shadow: 0 0 4px 1px rgb(255 190 100 / 0.55); }
.hm-lights i.w { background: #e6eeff; box-shadow: 0 0 4px 1px rgb(200 220 255 / 0.45); }
.hm-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; overflow: hidden; background: linear-gradient(180deg, var(--sea1), var(--sea2)); }
.hm-glint {
  position: absolute; top: 0; bottom: 0; left: var(--orb-left); width: 48px; margin-left: -24px;
  background: repeating-linear-gradient(180deg, rgb(255 236 196 / 0.6) 0 2px, transparent 2px 6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: calc((1 - var(--night)) * (1 - var(--clouds) * 0.8) * 0.75);
  animation: hm-glint 3.2s ease-in-out infinite alternate; transition: left 3s;
}
.hm-hero[data-orb="moon"] .hm-glint {
  width: 26px; margin-left: -13px; opacity: calc(var(--night) * 0.55 * (1 - var(--clouds) * 0.8));
  background: repeating-linear-gradient(180deg, rgb(236 236 255 / 0.5) 0 2px, transparent 2px 7px);
}
@keyframes hm-glint { to { transform: scaleX(1.3) translateY(1px); } }
.hm-ripple { position: absolute; height: 1px; border-radius: 1px; background: rgb(255 255 255 / 0.13); animation: hm-ripple 9s ease-in-out infinite; }
.hm-ripple:nth-child(2) { top: 26%; left: 8%; width: 16%; }
.hm-ripple:nth-child(3) { top: 58%; left: 30%; width: 12%; animation-delay: -3s; }
.hm-ripple:nth-child(4) { top: 40%; left: 52%; width: 10%; animation-delay: -6s; }
@keyframes hm-ripple { 50% { transform: translateX(16px); opacity: 0.35; } }

/* İskele (v6.2): sağdan uzanan güverte, fener direği, kasada balık tutan biri (oltasının ucunda şamandıra) ve kedisi;
   gece fener yanar. Şerit boyu yükseklikte; balıkçı ve fener hava kutusunun solunda kalır (sağdaki ~200 px güverte).
   Uzak tepeler, su çizgileri ve halka modern görünümde (modern.css). */
.hm-pier { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 400 / 100; }
.hm-pier-wood, .hm-pier-top, .hm-fisher, .hm-cat { fill: var(--sil); }
.hm-cat-tail { fill: none; stroke: var(--sil); stroke-width: 2; stroke-linecap: round; }
.hm-far, .hm-pier-water, .hm-wake, .hm-ring { display: none; }
.hm-rod { fill: none; stroke: var(--sil); stroke-width: 1.3; stroke-linecap: round; }
.hm-line { fill: none; stroke: var(--sil); stroke-width: 0.55; opacity: 0.7; }
/* sabit: SVG içindeki öğe canlanınca her karede sayfanın stili ve yerleşimi hesaplanıyordu (boştaki yükün kaynağı) */
.hm-bobber { fill: #e2553d; }
.hm-lamp { fill: color-mix(in srgb, #ffd58a calc(var(--night) * 100%), var(--sil)); }
.hm-lamp-glow { opacity: var(--night); }
.hm-lamp-glow circle { fill: rgb(255 200 110 / 0.32); filter: blur(7px); }

/* Yer (düzenle → yer; home.js data-place): iskele (varsayılan), İstanbul, kamp. Renkler gökyüzüyle aynı değişkenlerden:
   gün ışığına, gün batımına, geceye ve havaya göre değişir. */
.hm-city, .hm-ferry, .hm-peaks, .hm-ridge, .hm-ground, .hm-pines, .hm-camp { display: none; }
.hm-hero[data-place="city"] :is(.hm-city, .hm-ferry) { display: block; }
.hm-hero[data-place="city"] :is(.hm-pier, .hm-hills) { display: none; }
.hm-hero[data-place="camp"] :is(.hm-peaks, .hm-ridge, .hm-ground, .hm-pines, .hm-camp) { display: block; }
.hm-hero[data-place="camp"] :is(.hm-pier, .hm-hills, .hm-sea, .hm-lights) { display: none; }

/* İstanbul: karşı kıyıda siluet (camiler, Galata, Levent, köprü), gece pencereler ve köprü ışıkları; vapur geçer */
.hm-city { position: absolute; left: 0; bottom: calc(28% - 1px); width: 100%; height: 40%; fill: var(--hill); }
.hm-cable { fill: none; stroke: var(--hill); stroke-width: 1.4; }
.hm-cable-lights {
  fill: none; stroke: #ffd9a0; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 10;
  opacity: var(--night); filter: drop-shadow(0 0 2px rgb(255 200 120 / 0.9)); transition: opacity 3s;
}
.hm-hero[data-place="city"] .hm-lights { height: 24px; }
.hm-ferry {
  position: absolute; left: 0; bottom: 6%; height: 15px; aspect-ratio: 64 / 26; overflow: visible; cursor: pointer;
  animation: hm-sail 110s linear infinite; animation-delay: -38s;
}
@keyframes hm-sail { from { transform: translateX(-90px); } to { transform: translateX(calc(100cqw + 90px)); } }
.hm-ferry-body { fill: var(--sil); }
.hm-ferry-win { fill: #ffd58a; opacity: calc(0.15 + var(--night) * 0.85); }
.hm-smoke { display: none; } /* SVG içinde canlanan duman pahalı (bkz. .hm-bobber) */
.hm-honk {
  position: absolute; z-index: 3; padding: 3px 8px; border-radius: 10px; background: rgb(0 0 0 / 0.45); color: #fff;
  font-size: 11px; white-space: nowrap; pointer-events: none; animation: hm-honk 1.8s ease-out forwards;
}
@keyframes hm-honk { from { transform: translate(-50%, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(-50%, -26px); opacity: 0; } }

/* Kamp: uzak dağlar, yakın sırt, çamlar, toprak; çadır (gece içi yanar), kütükte oturan biri, çıtırdayan ateş */
.hm-peaks { position: absolute; left: 0; bottom: 17%; width: 100%; height: 52%; fill: color-mix(in srgb, var(--hill) 62%, var(--sky2)); }
.hm-ridge { position: absolute; left: 0; bottom: 14%; width: 100%; height: 30%; fill: var(--hill); }
.hm-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 19%; background: linear-gradient(180deg, color-mix(in srgb, var(--hill) 45%, var(--sil)), var(--sil)); }
.hm-pines { position: absolute; left: 0; bottom: 17%; width: 100%; height: 34%; fill: var(--sil); }
.hm-camp { position: absolute; right: 0; bottom: 0; height: 70%; aspect-ratio: 320 / 120; max-width: 62%; overflow: visible; }
.hm-tent, .hm-camper, .hm-log { fill: var(--sil); }
.hm-tent-door { fill: #ffb35c; opacity: calc(var(--night) * 0.85); transition: opacity 3s; }
.hm-fire, .hm-camper, .hm-tent { cursor: pointer; }
.hm-logs { fill: color-mix(in srgb, #5a3618 55%, var(--sil)); }
/* alevler home.js'ten saniyede ~8 kez titrer (transform özniteliği; CSS animasyonu her karede çalışırdı) */
.hm-flame.f1 { fill: #ff7a2a; }
.hm-flame.f2 { fill: #ffd45e; }
.hm-fire-glow { opacity: calc(0.3 + var(--night) * 0.7); transition: opacity 3s; }
.hm-fire-glow circle { fill: rgb(255 140 50 / 0.42); filter: blur(10px); }
.hm-spark { display: none; } /* dokununca HTML kıvılcımlar (.hm-ember) */
.hm-ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffc35a; box-shadow: 0 0 6px 2px rgb(255 150 60 / 0.7); pointer-events: none; animation: hm-ember 1.4s ease-out forwards; }
@keyframes hm-ember { to { transform: translate(var(--dx), -70px); opacity: 0; } }

/* Tema rengi (düzenle → tema rengi): manzara seçili temanın rengine bürünür (siyah / beyaz temada soluk, renkli
   temalarda o renk); yazılar ve düğmeler etkilenmez */
.hm-hero.tint .hm-sky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--accent); mix-blend-mode: color; opacity: 0.4;
}

/* Hava: yağmur / kar taneleri (home.js ekler), sis bandı, fırtınada arada bir hafif şimşek */
.hm-weatherfx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hm-hero:is([data-fx="rain"], [data-fx="storm"]) .hm-weatherfx i {
  position: absolute; top: -24px; width: 1px; height: 15px;
  background: linear-gradient(transparent, rgb(214 228 250 / 0.85)); animation: hm-rain linear infinite;
}
@keyframes hm-rain { from { transform: translate(0, 0) rotate(14deg); } to { transform: translate(-64px, 270px) rotate(14deg); } }
.hm-hero[data-fx="snow"] .hm-weatherfx i {
  position: absolute; top: -8px; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: hm-snow linear infinite;
}
@keyframes hm-snow { 50% { transform: translate(10px, 120px); } to { transform: translate(-6px, 250px); } }
.hm-hero[data-fx="fog"] .hm-weatherfx { background: linear-gradient(180deg, transparent 25%, rgb(218 224 232 / 0.32) 60%, rgb(218 224 232 / 0.5) 78%, rgb(218 224 232 / 0.2)); }
.hm-hero[data-fx="storm"] .hm-weatherfx { animation: hm-flash 11s infinite; }
@keyframes hm-flash { 0%, 91%, 93.5%, 100% { background: transparent; } 92%, 94% { background: rgb(230 236 255 / 0.18); } }

/* Selam ve tarih */
.hm-hello { grid-area: hello; min-width: 0; text-shadow: 0 1px 14px rgb(0 0 0 / 0.35); }
.hm-hello h2 { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.hm-hello p { margin-top: 5px; color: rgb(255 255 255 / 0.84); font-size: 12px; }
#hmSkyNote:not(:empty)::before { content: " · "; }

/* Hava durumu: manzaranın sağ üstünde cam bir kutu; tıklayınca şehir seçilir */
.hm-wx { grid-area: wx; position: relative; align-self: start; }
.hm-hero.no-wx .hm-wx { display: none; }
.hm-weather {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 9px; border-radius: 12px; text-align: left; line-height: 1.35;
  color: inherit; background: rgb(0 0 0 / 0.22); border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.15s;
}
.hm-weather:hover, .hm-weather[aria-expanded="true"] { background: rgb(0 0 0 / 0.34); }
.hm-wx-icon { font-size: 24px; line-height: 1; }
.hm-wx-text { display: grid; min-width: 0; }
.hm-wx-top { display: flex; align-items: baseline; gap: 8px; }
.hm-wx-top b { font-size: 16px; font-weight: 700; }
.hm-wx-top span { color: rgb(255 255 255 / 0.8); font-size: 12px; }
.hm-wx-text small { color: rgb(255 255 255 / 0.72); font-size: 11px; white-space: nowrap; }
.hm-wpick, .hm-dice {
  position: absolute; z-index: 30; top: calc(100% + 8px); padding: 8px; border-radius: 12px; color: var(--fg); text-shadow: none;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 38px rgb(0 0 0 / 0.32);
}
.hm-wpick { right: 0; width: 270px; display: grid; gap: 4px; }
.hm-wpick[hidden], .hm-dice[hidden] { display: none; }
.hm-wpick input {
  height: 32px; padding: 0 10px; margin-bottom: 2px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); outline: none;
}
.hm-wpick input:focus { border-color: var(--accent); }
.hm-wpick-here, .hm-wpick-row { padding: 6px 8px; border-radius: 7px; text-align: left; }
.hm-wpick-here { color: var(--muted); font-size: 12px; }
.hm-wpick-here:hover, .hm-wpick-row:hover, .hm-wpick-row:focus-visible { background: var(--raise); color: var(--fg); }
.hm-wpick-list { display: grid; }
.hm-wpick-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.hm-wpick-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-wpick-row small, .hm-wpick-note { color: var(--faint); font-size: 11px; }
.hm-wpick-note { padding: 4px 8px; }

/* Kısayollar ve düzenle: manzaranın altında cam düğmeler */
.hm-quick { grid-area: quick; align-self: end; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-right: 30%; }
.hm-quick[hidden] { display: none; }
.hm-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgb(0 0 0 / 0.26); border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.hm-chip:hover { background: rgb(0 0 0 / 0.38); border-color: rgb(255 255 255 / 0.32); transform: translateY(-1px); }
.hm-chip img { width: 18px; height: 18px; }
.hm-chip svg.i { width: 15px; height: 15px; }
.hm-chip b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff7a3d; color: #fff; font-size: 11px; }
.hm-chip b[hidden] { display: none; }
/* Düzenle: havanın yanında yuvarlak simge (iskele sağ altta kalsın) */
.hm-edit { grid-area: edit; align-self: start; justify-content: center; width: 34px; height: 34px; padding: 0; margin-top: 7px; }
.hm-edit span { display: none; }
.hm-edit svg.i { width: 15px; height: 15px; }
.hm-edit[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-fg); }

/* Ne oynasak?: makara döner, oyunda durur */
.hm-dice-wrap { position: relative; }
.hm-dice { left: 0; width: 290px; padding: 12px; }
.hm-reel { height: 46px; overflow: hidden; border-radius: 9px; background: var(--raise); border: 1px solid var(--line); transition: border-color 0.2s; }
.hm-reel-track { transition: transform 1.2s cubic-bezier(0.12, 0.72, 0.18, 1); }
.hm-reel-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; }
.hm-reel-row img { width: 28px; height: 28px; }
.hm-reel-row b { font-size: 14px; font-weight: 700; }
.hm-dice.landed .hm-reel { border-color: var(--accent); animation: hm-land 0.35s ease-out; }
@keyframes hm-land { 40% { transform: scale(1.035); } }
.hm-dice-why { min-height: 36px; margin: 10px 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hm-dice-foot { display: flex; align-items: center; justify-content: space-between; }
.hm-dice-again { padding: 5px 8px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.hm-dice-again:hover { background: var(--raise); color: var(--fg); }
.hm-dice .hm-btn { min-width: 86px; }
.hm-dice .hm-btn:disabled { opacity: 0.45; cursor: default; }

/* Sade manzara: temanın renkleriyle düz bir kutu */
.hm-hero[data-scene="plain"] { color: var(--fg); }
.hm-hero[data-scene="plain"] .hm-sky { background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel) 62%); box-shadow: inset 0 0 0 1px var(--line); }
.hm-hero[data-scene="plain"] .hm-sky > *, .hm-hero[data-scene="plain"] .hm-sky::after { display: none; }
.hm-hero[data-scene="plain"] .hm-hello { text-shadow: none; }
.hm-hero[data-scene="plain"] .hm-hello p { color: var(--muted); }
.hm-hero[data-scene="plain"] :is(.hm-chip, .hm-weather) { color: var(--fg); background: var(--raise); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hm-hero[data-scene="plain"] :is(.hm-chip:hover, .hm-weather:hover) { border-color: var(--accent); }
.hm-hero[data-scene="plain"] :is(.hm-wx-top span, .hm-wx-text small) { color: var(--muted); }
.hm-hero[data-scene="plain"] .hm-edit[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }

/* ---------- Görünüm çubuğu (manzara, yer, tema rengi, hava, Shorts) ---------- */

.hm-editbar {
  flex: none; display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); box-shadow: 0 10px 28px -18px rgb(0 0 0 / 0.6);
  animation: hm-bar-in 0.16s ease-out;
}
@keyframes hm-bar-in { from { opacity: 0; transform: translateY(-4px); } }
.hm-editbar[hidden] { display: none; }
.hm-eb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
.hm-eb-label { color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-eb-grow { flex: 1; }
.hm-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--raise); border: 1px solid var(--line); }
.hm-seg button { height: 26px; padding: 0 10px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.hm-seg button:hover { color: var(--fg); }
.hm-seg button[aria-checked="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.hm-eb-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.hm-eb-check:has(input:disabled) { opacity: 0.5; cursor: default; }
.hm-eb-reset { padding: 5px 8px; border-radius: 7px; color: var(--muted); }
.hm-eb-reset:hover { background: var(--raise); color: var(--fg); }

/* ---------- Izgara: şimdi + bugün | shorts | manifest + ligler ---------- */

.hm-grid { flex: 1; min-height: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) var(--shorts-w, 380px) minmax(0, 1fr); }
.hm-grid.no-shorts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hm-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.hm-shorts[hidden] { display: none; }

/* Kart: hepsi aynı yüzey, aynı başlık; tek vurgu rengi */
.hm-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.hm-card[hidden] { display: none; }
.hm-head {
  flex: none; display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px 0 14px;
  border-bottom: 1px solid var(--line); color: var(--fg); font-size: 12px; text-align: left;
}
button.hm-head { transition: background 0.12s; }
button.hm-head:hover { background: color-mix(in srgb, var(--raise) 55%, transparent); }
.hm-head .icon { width: 18px; height: 18px; }
.hm-head svg.i { flex: none; width: 15px; height: 15px; color: var(--muted); }
.hm-head b { font-weight: 700; letter-spacing: 0.01em; }
.hm-head small { flex: 1; min-width: 0; color: var(--faint); font-size: 11px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-head small.live { color: var(--err); }
.hm-go { color: var(--faint); font-size: 15px; transition: transform 0.15s, color 0.15s; }
button.hm-head:hover .hm-go { color: var(--accent); transform: translateX(2px); }
.hm-note { padding: 10px 8px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.hm-list { display: grid; align-content: start; min-height: 0; overflow: hidden; padding: 6px; }
.hm-btn {
  flex: none; height: 28px; padding: 0 12px; border-radius: 7px; white-space: nowrap;
  background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700;
}
.hm-btn[hidden] { display: none; }
.hm-btn.ghost { height: 26px; padding: 0 10px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font-weight: 600; }
.hm-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Şimdi ---------- */

.hm-now { flex: 1 1 auto; }
.hm-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.hm-now.active .hm-pulse { background: var(--ok); animation: hm-pulse 2.2s ease-out infinite; }
@keyframes hm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.hm-now-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; scrollbar-width: thin; }

/* Yayın: biri yayındaysa 16:9 önizleme; odadayken kimse yayında değilse tek satır */
.hm-live { flex: none; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.hm-live[hidden] { display: none; }
.hm-live.compact { border-style: dashed; background: transparent; }
.hm-live.compact .hm-preview { display: none; }
.hm-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; max-height: 34vh; overflow: hidden; background: #050506; }
.hm-live.on .hm-preview { cursor: pointer; }
.hm-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hm-preview-grid {
  position: absolute; inset: 0; display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 6px; overflow: auto; padding: 6px;
}
.hm-preview-tile {
  position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px; background: #090a0d; text-align: left;
}
.hm-preview-tile:hover { border-color: color-mix(in srgb, var(--accent) 70%, white); }
.hm-preview-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-preview-label {
  position: absolute; inset: auto 0 0; display: grid; gap: 1px; padding: 14px 8px 6px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.78)); color: #fff;
}
.hm-preview-label b, .hm-preview-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-preview-label b { font-size: 11px; }
.hm-preview-label small { color: rgb(255 255 255 / 0.68); font-size: 9px; }
.hm-idle strong { color: rgb(255 255 255 / 0.35); font-size: 12px; font-weight: 500; letter-spacing: 0.3em; }
.hm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 12px; color: var(--muted); font-size: 12px; }
.hm-live:not(.compact) .hm-foot { border-top: 1px solid var(--line); }
.hm-foot span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-live-open { min-width: 0; padding: 0; color: inherit; font: inherit; text-align: left; }
.hm-live-open:hover #hmLiveText { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.hm-live.on .hm-foot span { color: var(--fg); }
.hm-live.on .hm-foot span::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--err);
  animation: sc-pulse 1.4s ease-in-out infinite;
}

/* Satırlar: açık oyun, başka odadaki yayın, ateş başı, iskele, yoldakiler, dolu odalar */
.hm-activity-list { display: grid; align-content: start; gap: 2px; }
.hm-activity-list:empty { display: none; }
.hm-now-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 6px 8px; border-radius: 9px; }
.hm-now-row:hover { background: var(--raise); }
.hm-now-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--raise); font-size: 16px; }
.hm-now-row:hover .hm-now-icon { background: var(--panel); }
.hm-now-icon img { width: 20px; height: 20px; }
.hm-now-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.hm-now-text b, .hm-now-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-now-text b { font-size: 12.5px; font-weight: 600; }
.hm-now-text small { color: var(--muted); font-size: 11px; }
.hm-now-row.live .hm-now-icon { background: color-mix(in srgb, var(--err) 16%, var(--raise)); }
.hm-now-row.room.mine { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.hm-faces { flex: none; display: flex; min-width: 32px; padding-left: 6px; }
.hm-face {
  display: grid; place-items: center; width: 24px; height: 24px; margin-left: -6px; border-radius: 50%;
  border: 2px solid var(--panel); background: var(--raise); color: var(--nick); font-size: 11px; font-weight: 700;
}
.hm-now-row:hover .hm-face { border-color: var(--raise); background: var(--panel); }
.hm-face.more { color: var(--muted); font-size: 9px; }
.hm-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center; }
.hm-empty[hidden] { display: none; }
.hm-empty b { font-size: 13px; }
.hm-empty span { max-width: 240px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.hm-empty .hm-btn { margin-top: 6px; }

/* ---------- Bugün: maçlar, Günün Pangosu ---------- */

.hm-today { flex: none; }
.hm-matches { padding: 6px; }
.hm-match {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  height: 34px; padding: 0 8px; border-radius: 7px; text-align: left; font-size: 12px;
}
.hm-match:hover { background: var(--raise); }
.hm-match-status { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-match.in .hm-match-status { color: var(--err); font-weight: 600; }
.hm-match-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hm-match-team.away { justify-content: flex-end; }
.hm-match-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-match-score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-match.in .hm-match-score { color: var(--accent); }
.hm-match.goal { animation: sc-goal 1.6s ease-in-out 5; }
.hm-pango {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px 10px;
  padding: 10px 10px 10px 14px; border-top: 1px solid var(--line);
}
.hm-pango > .icon { width: 34px; height: 34px; }
.hm-pango-text { display: grid; min-width: 0; }
.hm-pango-text b { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pango-text small { color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pango-text small.on { color: var(--ok); }
.hm-pango-state { color: var(--faint); font-size: 11px; white-space: nowrap; }
.hm-pango-open { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--faint); font-size: 15px; }
.hm-pango-open:hover { background: var(--raise); color: var(--accent); }
/* günün ilk üçü: küçük haplar */
.hm-pango-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; overflow: visible; }
.hm-pango-top li { height: 26px; gap: 6px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--raise); }
.hm-pango-top li.hm-note { padding: 0 10px; background: none; color: var(--faint); }
.hm-pango-top .icon { width: 16px; height: 16px; }

/* ---------- Manifest ---------- */

.hm-hilal { flex: none; }
.hm-logo { height: 15px; }
.hm-pin { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 7px; text-align: left; font-size: 12px; }
.hm-pin:hover { background: var(--raise); }
.hm-pin-who { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pin-who b { color: var(--fg); font-weight: 600; }
.hm-pin-likes { color: var(--faint); white-space: nowrap; }
.hm-pin-likes.on { color: #ff5c8a; }

/* ---------- Ligler: kovan, uzun yol, bu hafta seste ---------- */

.hm-leagues { flex: 1 1 auto; }
.hm-tabs { display: inline-flex; margin-left: auto; padding: 2px; border-radius: 8px; background: var(--raise); }
.hm-tabs button { height: 24px; padding: 0 9px; border-radius: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.hm-tabs button:hover { color: var(--fg); }
.hm-tabs button[aria-selected="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
.hm-lg { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hm-lg[hidden] { display: none; }
.hm-stat { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 14px 6px; }
.hm-stat .icon { width: 34px; height: 34px; }
.hm-stat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-stat small { min-width: 0; color: var(--ok); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-stat .hm-rank { flex: none; margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 11px; }
.hm-stat .hm-rank:empty { display: none; }
.hm-road small:not(.hm-rank) { color: var(--faint); }
.hm-road small.on { color: var(--ok); }
.hm-week-total small.up { color: var(--ok); }
.hm-week-total small:not(.up):not(.hm-rank) { color: var(--faint); }
.hm-top { list-style: none; display: grid; align-content: start; min-height: 0; overflow: hidden; padding: 4px 6px 4px; }
.hm-top li { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 12px; }
.hm-top li.me { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hm-top .icon { width: 20px; height: 20px; }
.hm-top-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-top-score { color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-more { flex: none; align-self: flex-end; margin-top: auto; padding: 8px 14px 10px; color: var(--muted); font-size: 11.5px; }
.hm-more:hover { color: var(--accent); }
.hm-bars { flex: 1; min-height: 44px; max-height: 150px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 6px 14px 0; }
.hm-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; }
.hm-bar-track {
  flex: 1; display: flex; align-items: flex-end; width: 100%; max-width: 24px; min-height: 16px; overflow: hidden;
  border-radius: 5px; background: color-mix(in srgb, var(--fg) 6%, transparent);
}
.hm-bar-track i { width: 100%; border-radius: 5px 5px 0 0; background: color-mix(in srgb, var(--accent) 45%, transparent); transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-bar.today .hm-bar-track i { background: var(--accent); }
.hm-bar small { color: var(--faint); font-size: 10px; }
.hm-bar.today small { color: var(--fg); font-weight: 700; }
.hm-week-buddy { flex: none; padding: 8px 14px 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-week-buddy b { color: var(--fg); font-weight: 600; }

/* ---------- Dar ekran (telefon): alt alta, sayfa kayar ---------- */

@container home (max-width: 520px) {
  .hm-hero {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "hello" "wx" "." "quick"; min-height: 190px; padding: 14px;
  }
  .hm-hello { padding-right: 44px; }
  .hm-wx { justify-self: start; margin-top: 10px; }
  .hm-wpick { right: auto; left: 0; }
  .hm-hero { --orb-left: calc(58% + var(--ox) * 32%); --orb-top: calc(66% - var(--oy) * 22%); }
  .hm-edit { position: absolute; top: 12px; right: 12px; margin: 0; }
  .hm-quick { gap: 6px; padding-right: 0; }
  .hm-chip { padding: 0 10px 0 8px; gap: 6px; }
  .hm-pier { height: 50%; transform: translateX(45%); }
  .hm-dice { width: min(290px, calc(100cqw - 60px)); }
  .hm-grid, .hm-grid.no-shorts { flex: none; display: flex; flex-direction: column; }
  .hm-col { display: contents; }
  .hm-now { order: 1; }
  .hm-feed { order: 2; flex: none; }
  .hm-news { order: 3; }
  .hm-shorts { order: 4; }
  .hm-today { order: 5; }
  .hm-hilal { order: 6; }
  .hm-leagues { order: 7; flex: none; }
  .hm-now-body { overflow: visible; }
  .hm-preview { max-height: none; }
  .hm-bars { flex: none; height: 96px; }
  .hm-lg { padding-bottom: 4px; }
  .hm-seg button { padding: 0 7px; }
  .hm-tabs button { padding: 0 7px; }
}

/* Alçak ekran (ör. 1440x900, 1280x720): manzara biraz kısalır; kısa kartta ikincil satırlar gizlenir */
@media (max-height: 960px) {
  .hm-hero { min-height: 112px; padding-top: 12px; padding-bottom: 12px; }
  .hm-quick, .hm-edit { margin-top: 8px; }
}
@media (max-height: 800px) {
  .hm-pango-top { display: none; }
  .hm-stat { padding-top: 10px; }
  .hm-top li { height: 28px; }
  .hm-week-buddy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero *, .hm-reel-track { animation: none !important; transition: none !important; }
}

/* Manzarayla oynamak (home.js): gece kayan yıldız, gündüz kuşlar, balıkçının balığı */
.hm-fisher, .hm-rod, .hm-line, .hm-bobber { cursor: pointer; }
/* selamlama yazısının kutusu üst satırı kaplar: dokunuş arkasındaki gökyüzüne geçsin */
.hm-hello { pointer-events: none; }
.hm-shoot {
  position: absolute; width: 110px; height: 2px; border-radius: 2px; pointer-events: none; transform-origin: left center;
  background: linear-gradient(90deg, #fff, rgb(255 255 255 / 0)); filter: drop-shadow(0 0 4px rgb(255 255 255 / 0.9));
  rotate: -24deg; animation: hm-shoot 1.1s ease-out forwards;
}
@keyframes hm-shoot {
  from { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  to { opacity: 0; translate: -230px 105px; }
}
.hm-birds { position: absolute; left: -8%; display: flex; gap: 9px; pointer-events: none; animation: hm-fly 10s linear forwards; }
.hm-birds i { position: relative; width: 13px; height: 6px; animation: hm-flap 0.42s ease-in-out infinite alternate; }
.hm-birds i::before, .hm-birds i::after { content: ""; position: absolute; top: 2px; width: 7.5px; height: 1.6px; border-radius: 1px; background: var(--sil); }
.hm-birds i::before { left: 0; rotate: 22deg; }
.hm-birds i::after { right: 0; rotate: -22deg; }
@keyframes hm-fly { to { left: 108%; translate: 0 -26px; } }
@keyframes hm-flap { to { scale: 1 0.35; } }
.hm-pier.pull .hm-rod, .hm-pier.pull .hm-line { transform-box: view-box; transform-origin: 112px 62px; animation: hm-pull 0.9s ease-out; }
@keyframes hm-pull { 30% { rotate: -9deg; } }
.hm-pier.pull .hm-bobber { animation: hm-dip 0.5s ease-in 2; }
@keyframes hm-dip { 50% { translate: 0 3px; } }
.hm-jump { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; pointer-events: none; animation: hm-jump 1.2s ease-out forwards; }
@keyframes hm-jump {
  0% { opacity: 0; transform: translate(0, 4px) rotate(-40deg) scale(0.6); }
  12% { opacity: 1; }
  50% { transform: translate(-14px, -34px) rotate(10deg) scale(1); }
  100% { opacity: 0; transform: translate(-28px, 2px) rotate(70deg) scale(0.8); }
}
.hm-splash {
  position: absolute; width: 18px; height: 6px; margin: -3px 0 0 -9px; border: 1.5px solid rgb(255 255 255 / 0.75); border-radius: 50%;
  pointer-events: none; animation: hm-splash 1s ease-out forwards;
}
@keyframes hm-splash { from { opacity: 0.9; scale: 0.4; } to { opacity: 0; scale: 2.6; } }
.hm-catch {
  position: absolute; z-index: 3; padding: 5px 11px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(0 0 0 / 0.5); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hm-pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.hm-catch:hover { background: rgb(0 0 0 / 0.68); }
@keyframes hm-pop { from { opacity: 0; transform: translateY(6px) scale(0.85); } }
@media (prefers-reduced-motion: reduce) {
  .hm-shoot, .hm-birds, .hm-jump, .hm-splash { animation-duration: 0.01s; }
}

/* ---------- 5.77 eklemeler: başlat rafı, dar kartlar, orta genişlik ---------- */

/* Başlat: şimdi kartının altında oyunlar, tek tıkla */
.hm-launch { flex: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; padding: 6px 6px 8px; border-top: 1px solid var(--line); }
.hm-launch-btn { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 7px 0 5px; border-radius: 9px; color: var(--muted); }
.hm-launch-btn:hover { background: var(--raise); color: var(--fg); }
.hm-launch-btn img { width: 26px; height: 26px; transition: transform 0.15s cubic-bezier(0.2, 1.4, 0.4, 1); }
.hm-launch-btn:hover img { transform: translateY(-2px) scale(1.07); }
.hm-launch-btn small { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hm-label { padding: 4px 8px 2px; color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hm-top-n { display: grid; place-items: center; width: 20px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.hm-top.hm-pango-top { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; overflow: visible; }

/* Kart kendi genişliğine göre sadeleşir (1440 ve altı: yan sütunlar dar) */
.hm-card { container: card / inline-size; }
@container card (max-width: 420px) {
  .hm-launch { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container card (max-width: 330px) {
  .hm-match { grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .hm-match-name { font-size: 0; }
  .hm-match-name::after { content: attr(data-short); font-size: 12px; }
  .hm-faces { display: none; }
  .hm-leagues .hm-head > b { display: none; }
  .hm-pin-verb { display: none; }
  .hm-stat b { font-size: 19px; }
  .hm-pango-state { display: none; }
  .hm-pango { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
}
@container card (max-width: 250px) {
  .hm-launch-btn small { display: none; }
  .hm-tabs button { padding: 0 6px; }
}

/* Orta genişlik (yan sütunlar sığmaz): solda şimdi + bugün, sağda Shorts ekranı doldurur; Manifest ve ligler altta yan yana */
.hm-grid.mid { flex: none; grid-template-columns: minmax(0, 1fr) var(--shorts-w, 320px); grid-template-rows: var(--row1, 600px) auto; }
.hm-grid.mid .hm-col-b { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.hm-grid.mid .hm-col-b > .hm-card { flex: 1 1 0; }
.hm-grid.mid.no-shorts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: var(--row1, 600px); }
.hm-grid.mid.no-shorts .hm-col-b { grid-column: auto; flex-direction: column; }
.hm-grid.mid.no-shorts .hm-col-b > .hm-card { flex: none; }
.hm-grid.mid.no-shorts .hm-leagues { flex: 1 1 auto; }
/* odadayken kimse yayında değilse "ekranını paylaş" sade (asıl düğme sol alttaki ses panelinde) */
.hm-live.compact .hm-btn { height: 26px; padding: 0 10px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font-weight: 600; }
.hm-live.compact .hm-btn:hover { border-color: var(--accent); color: var(--accent); }
/* çok dar kartta (1440'ta yan sütunlar) maç satırında arma yok: kısaltma sığsın */
@container card (max-width: 260px) {
  .hm-match .sc-logo { display: none; }
  .hm-match { grid-template-columns: 34px minmax(0, 1fr) auto minmax(0, 1fr); }
}
/* yayın yokken paylaş satırı listenin altında (önce odalar ve etkinlikler) */
.hm-live.compact { order: 2; }
.hm-now-body > .hm-activity-list { order: 1; }
.hm-now-body > .hm-empty { order: 3; }

/* ---------- Çevrimiçi şeridi ve son olanlar akışı ---------- */
.hm-online { display: grid; align-content: start; gap: 2px; }
.hm-who { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 8px; border-radius: 8px; }
.hm-who:hover { background: var(--raise); }
.hm-who-open { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-align: left; }
.hm-who-av { position: relative; width: 30px; height: 30px; font-size: 13px; box-shadow: none; }
.hm-who-av .status-dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px var(--panel); }
.hm-who:hover .hm-who-av .status-dot { box-shadow: 0 0 0 2px var(--raise); }
.hm-who-text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.hm-who-text b, .hm-who-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-who-text b { font-size: 13.5px; font-weight: 600; }
.hm-who-text small { color: var(--muted); font-size: 12px; }
.hm-who-empty { padding: 12px 10px; color: var(--faint); font-size: 13px; }
.hm-feed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hm-feed-list { display: grid; align-content: start; gap: 2px; padding: 0 6px 8px; overflow: auto; min-height: 0; }
.hm-feed-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 8px; font-size: 13px; }
.hm-feed-row:hover { background: var(--raise); }
.hm-feed-row .hm-now-icon { width: 28px; height: 28px; font-size: 14px; }
.hm-feed-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-news { flex: none; display: flex; flex-direction: column; }
.hm-news[hidden] { display: none; }
.hm-news-list { display: grid; gap: 2px; padding: 0 6px 8px; }
.hm-news-row { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding: 5px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13px; }
.hm-news-row:hover { background: var(--raise); }
.hm-news-row.has-img { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-content: center; min-height: 56px; }
.hm-news-row.has-img > .hm-news-img { grid-row: 1 / span 2; align-self: center; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--raise); }
.hm-news-row.has-img > .hm-news-title { align-self: end; }
.hm-news-row.has-img > .hm-news-meta { align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-news-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.hm-news-meta { color: var(--faint); font-size: 12px; }
.hm-feed-when { flex: none; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
/* Haberler: dar sütunda sekmeler başlığın altına sarılır */
#hmNews .hm-head { height: auto; min-height: 44px; padding-block: 8px; flex-wrap: wrap; row-gap: 6px; }
.hm-news .hm-tabs { flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; }
.hm-news .hm-tabs button { padding: 0 7px; }

/* 6.4: haber sekmeleri tek satır, başlığın altında tam genişlikte, sığmazsa yana kayar (iki satıra sarılınca dağınık duruyordu) */
#hmNews .hm-tabs { flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
#hmNews .hm-tabs::-webkit-scrollbar { display: none; }
#hmNews .hm-tabs button { flex: none; white-space: nowrap; }
