/* ================================================================ Ana sayfa canlı harita (home-map.js) */

/* Başlık aksiyonları: şehir seçici + rastgele profil */
.trm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.trm-picker { position: relative; }
.trm-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px; /* "Rastgele Profil Getir" ile aynı yükseklik */
  padding: 0 12px 0 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(40, 26, 66, 0.95), rgba(24, 16, 40, 0.95)) padding-box,
    linear-gradient(135deg, rgba(253, 230, 138, 0.7), rgba(167, 139, 250, 0.5), rgba(244, 114, 182, 0.7)) border-box;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.trm-picker__btn:hover { transform: translateY(-1px); }
.trm-picker__btn > .material-symbols-outlined:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 17px;
  color: #1f1300;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
}
.trm-picker__lbl { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trm-picker__chev { font-size: 20px !important; color: #c4b5fd; transition: transform 0.2s ease; }
.trm-picker__btn[aria-expanded="true"] .trm-picker__chev { transform: rotate(180deg); }
.trm-picker__pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(170deg, #1d1430, #110c1d);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 40px -15px rgba(168, 85, 247, 0.6);
  animation: trm-pop 0.2s ease;
}
.trm-picker__pop[hidden] { display: none; }
.trm-picker__search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.trm-picker__search .material-symbols-outlined { font-size: 19px; color: #a99cc0; }
.trm-picker__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.trm-picker__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 2px 0 0;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.trm-picker__opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
}
.trm-picker__opt:hover, .trm-picker__opt.is-active { background: rgba(167, 139, 250, 0.16); }
.trm-picker__opt.is-current { box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.5); }
.trm-picker__opt img, .trm-picker__noimg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.trm-picker__noimg { display: grid; place-items: center; font-size: 16px !important; color: #6b5f86; background: rgba(255, 255, 255, 0.05); }
.trm-picker__rank { width: 30px; flex-shrink: 0; font-size: 11.5px; font-weight: 800; color: #fde68a; font-variant-numeric: tabular-nums; }
.trm-picker__name { flex: 1; min-width: 0; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trm-picker__pts { font-size: 12px; font-weight: 800; color: #c4b5fd; font-variant-numeric: tabular-nums; }
.trm-picker__opt.is-empty .trm-picker__name, .trm-picker__opt.is-empty .trm-picker__pts { color: #6b5f86; }
.trm-picker__opt.is-empty .trm-picker__rank { color: #4b3f66; }
.trm-picker__none { padding: 14px; text-align: center; color: #a99cc0; font-size: 13px; }

/* Sahne: harita + (odakta) yan panel */
.trm-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1024px) {
  #home-map.is-focus .trm-stage { grid-template-columns: minmax(0, 1fr) 340px; }
}
/* Odakta harita, ilk açılıştaki yüksekliğini korur (--trm-h, JS ölçer) → bölüm zıplamaz */
#home-map.is-focus .tr-map {
  min-width: 0 !important;
  aspect-ratio: auto !important;
  height: var(--trm-h, 320px);
}
#home-map.is-focus .tr-map-scroll { overflow: hidden; align-self: start; }
@media (min-width: 1024px) {
  /* Yan panel de harita kadar: içindeki yarışmacı listesi kayar */
  #home-map.is-focus .trm-panel { height: var(--trm-h, 320px); min-height: 0; }
}

/* Harita zemini: derin, ışıklı sahne */
#home-map .hp-map {
  background:
    radial-gradient(45% 60% at 50% 55%, rgba(124, 58, 237, 0.22), transparent 72%),
    radial-gradient(30% 40% at 15% 20%, rgba(236, 72, 153, 0.1), transparent 70%),
    radial-gradient(30% 40% at 85% 80%, rgba(251, 191, 36, 0.07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(167, 139, 250, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(167, 139, 250, 0.035) 0 1px, transparent 1px 34px),
    #0a0713;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 90px rgba(76, 29, 149, 0.25), 0 0 0 1px rgba(167, 139, 250, 0.25);
}
/* Haritanın üzerinden ara ara geçen ışık */
.trm-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.trm-sheen::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 25%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-12deg);
  animation: trm-sheen 9s ease-in-out infinite;
}
/* "Canlı" rozeti */
.trm-live {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 7, 19, 0.75);
  border: 1px solid rgba(244, 114, 182, 0.4);
  pointer-events: none;
}
.trm-live i { width: 7px; height: 7px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); animation: trm-live 1.6s ease-out infinite; }

/* Siluet ışığı: nefes animasyonu her karede yeniden çizer → 4 yerine 2 katman (zayıf ekran kartları) */
#home-map .tr-map .tr-land {
  filter:
    drop-shadow(0 0 1.2px rgba(168, 85, 247, 1))
    drop-shadow(0 0 9px rgba(168, 85, 247, 0.4));
}
/* İller */
#home-map .tr-il { transition: fill 0.8s ease, opacity 0.5s ease, stroke 0.25s ease, stroke-width 0.25s ease; }
/* Sıra değişince ilin çevresine sarı sınır çizilir (nefes efekti yok) */
#home-map .tr-il {
  transform-box: fill-box;
  transform-origin: center;
}
#home-map .trm-il--first {
  stroke: #fde68a;
  stroke-opacity: 1;
  stroke-width: 1.1;
  animation: trm-first 2.8s ease-in-out infinite;
}
/* Sıralama değişti: 3 belirgin nefes; lider değiştiyse ayrıca altın yanar */
#home-map .tr-il.trm-flash { animation: trm-flash 1.7s ease-out; }
/* Çevresine çizilip sönen parlak sınır */
#home-map .trm-ring {
  fill: none;
  stroke: #fde047;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(253, 224, 71, 0.95)) drop-shadow(0 0 9px rgba(250, 204, 21, 0.6));
  animation: trm-ring 2.5s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
/* Lider değişti: daha sıcak altın */
#home-map .trm-ring.is-lead {
  stroke: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 1)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.8));
}
#home-map.is-off .trm-sheen::before { animation-play-state: paused; }
/* Odak: diğer iller söner, seçilen öne çıkar */
#home-map .tr-il.is-dim { opacity: 0.16; }
#home-map .tr-il.is-dim:hover { opacity: 0.4; filter: none; }
#home-map .tr-il.is-focus { filter: none; stroke: transparent; }
#home-map .trm-outline {
  fill: none;
  stroke: #fde68a;
  /* kalınlık JS'te yakınlaşmaya göre verilir (ekranda ~2.5px) */
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(253, 230, 138, 0.9)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
  animation: trm-draw 1.4s cubic-bezier(0.6, 0, 0.3, 1) 0.25s forwards;
}
#home-map.is-focus .tr-marker { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); }
#home-map .tr-marker { transition: opacity 0.35s ease, transform 0.35s ease; }

/* İşaretçi: lider değişince döner */
.tr-marker.is-swap .tr-marker__pin { animation: trm-swap 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.tr-marker.is-swap .tr-marker__img { animation: trm-swap-glow 1.6s ease-out; }
.tr-marker.is-swap::after {
  content: "YENİ LİDER";
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  z-index: 5;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1f1300;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  box-shadow: 0 6px 16px -4px rgba(245, 158, 11, 0.9);
  transform: translateX(-50%);
  animation: trm-tag 1.7s ease forwards;
  pointer-events: none;
}

/* Haber: "Yeni lider" */
.trm-news {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.trm-news__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(40, 26, 20, 0.96), rgba(24, 16, 30, 0.96)) padding-box,
    linear-gradient(135deg, #fde68a, #f59e0b 45%, #f472b6) border-box;
  box-shadow: 0 14px 34px -12px rgba(245, 158, 11, 0.8);
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.trm-news__item.is-in { opacity: 1; transform: none; }
.trm-news__item.is-out { opacity: 0; transform: translateY(-8px); }
.trm-news__crown { font-size: 18px; animation: trm-crown 1.2s ease-in-out infinite; }
.trm-news__item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #f2c14e; }
.trm-news__txt { display: flex; flex-direction: column; line-height: 1.2; }
.trm-news__txt small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fde68a; }
.trm-news__txt b { font-size: 14px; font-weight: 800; }
.trm-news__txt em { font-style: normal; font-size: 11px; color: rgba(226, 226, 235, 0.6); }

/* Odak: lider iğnesi */
.trm-focus-pin {
  position: absolute;
  z-index: 35;
  transform: translate(-50%, -50%);
}
.trm-focus-pin[hidden] { display: none; }
.trm-focus-pin.is-in { animation: trm-pin 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.trm-focus-pin__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.trm-focus-pin__btn img {
  width: clamp(64px, 9vw, 96px);
  height: clamp(64px, 9vw, 96px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 0 0 3px #f2c14e, 0 0 0 7px rgba(10, 7, 19, 0.75), 0 0 40px rgba(253, 230, 138, 0.55), 0 18px 34px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}
.trm-focus-pin__btn:hover img { transform: scale(1.06); }
.trm-focus-pin__crown {
  position: absolute;
  top: -22px;
  font-size: 26px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  animation: trm-crown 2.4s ease-in-out infinite;
}
.trm-focus-pin__name {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  background: rgba(10, 7, 19, 0.82);
  border: 1px solid rgba(253, 230, 138, 0.45);
}
.trm-focus-pin__empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fde68a;
  white-space: nowrap;
  background: rgba(10, 7, 19, 0.82);
  border: 1px dashed rgba(253, 230, 138, 0.5);
}

/* Türkiye'ye dön */
.trm-back {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: rgba(10, 7, 19, 0.8);
  border: 1px solid rgba(167, 139, 250, 0.45);
  animation: trm-pop 0.3s ease;
}
.trm-back[hidden] { display: none; }
.trm-back:hover { border-color: #fde68a; }
.trm-back .material-symbols-outlined { font-size: 18px; }

/* ---------------------------------------------------------------- yan panel */
.trm-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
  color: #fff;
  border: 1px solid transparent;
  background:
    radial-gradient(90% 40% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 70%),
    linear-gradient(170deg, #1b1230, #100b1b) padding-box,
    linear-gradient(150deg, rgba(253, 230, 138, 0.55), rgba(167, 139, 250, 0.3) 40%, rgba(244, 114, 182, 0.5)) border-box;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s ease 0.25s, transform 0.5s cubic-bezier(0.2, 1.2, 0.4, 1) 0.25s;
}
.trm-panel[hidden] { display: none; }
.trm-panel.is-in { opacity: 1; transform: none; }
@media (max-width: 1023px) { .trm-panel { transform: translateY(12px); } }
.trm-p__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.trm-p__kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226, 226, 235, 0.55); }
.trm-p__kicker b { color: #fde68a; font-size: 13px; }
.trm-p__city {
  margin: 1px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trm-p__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
}
.trm-p__close:hover { background: rgba(255, 255, 255, 0.14); }

/* Lider kartı (rekabet bilgisi içinde) */
.trm-p__leader {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(253, 230, 138, 0.35);
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.14), rgba(236, 72, 153, 0.08));
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.trm-p__leader:hover { transform: translateY(-1px); border-color: #fde68a; }
.trm-p__leader-img { position: relative; flex-shrink: 0; }
.trm-p__leader-img img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #f2c14e; }
.trm-p__leader-img i { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 16px; }
.trm-p__leader-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.trm-p__leader-txt small { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fde68a; }
.trm-p__leader-txt b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trm-p__leader-txt em { font-style: normal; font-size: 12px; font-weight: 700; color: #f9a8d4; }
.trm-p__go { color: #fde68a; font-size: 20px !important; }
.trm-p__race {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  font-size: 11.5px;
  color: rgba(226, 226, 235, 0.8);
}
.trm-p__race b { color: #fff; }
.trm-p__race .material-symbols-outlined { font-size: 15px; color: #a78bfa; font-variation-settings: "FILL" 1; }
.trm-p__race .is-hot { color: #fb923c; animation: trm-crown 1.2s ease-in-out infinite; }

/* Yarışmacı listesi: kalan yüksekliği doldurur ve kayar */
.trm-p__listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.trm-p__sec { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(226, 226, 235, 0.55); }
.trm-p__all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #c4b5fd;
  text-decoration: none;
}
.trm-p__all:hover { color: #fde68a; }
.trm-p__all .material-symbols-outlined { font-size: 15px; }
.trm-p__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -6px;
  padding: 0 4px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.45) transparent;
  -webkit-mask: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
  mask: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
}
@media (max-width: 1023px) { .trm-p__list { max-height: 300px; } }
.trm-p__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
  padding: 5px 6px 5px 4px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  font: inherit;
  color: #fff;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.15s ease;
}
.trm-p__bar:hover { background: rgba(255, 255, 255, 0.05); }
.trm-p__bar-rank { width: 18px; flex-shrink: 0; text-align: center; font-size: 12px; font-weight: 800; color: rgba(226, 226, 235, 0.5); font-variant-numeric: tabular-nums; }
.trm-p__bar.is-first .trm-p__bar-rank { color: #fde68a; }
.trm-p__bar img { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.trm-p__bar.is-first img { box-shadow: 0 0 0 2px #f2c14e; }
.trm-p__bar-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.trm-p__bar-top { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; line-height: 1.1; }
.trm-p__bar-top b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trm-p__bar-top em { font-style: normal; font-weight: 800; color: #f9a8d4; font-variant-numeric: tabular-nums; }
.trm-p__bar-track { position: relative; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.trm-p__bar-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transition: width 0.9s cubic-bezier(0.3, 0.8, 0.3, 1);
  transition-delay: calc(var(--d, 0ms) + 250ms);
}
.trm-p__bar.is-first .trm-p__bar-track i { background: linear-gradient(90deg, #f59e0b, #fde68a); }
.trm-panel.is-drawn .trm-p__bar-track i,
.trm-panel.is-live .trm-p__bar-track i { width: var(--w); }
.trm-panel.is-live .trm-p__bar-track i { transition-delay: 0ms; }
.trm-p__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.35));
  border: 1px solid rgba(244, 114, 182, 0.45);
  transition: filter 0.15s ease;
}
.trm-p__cta:hover { filter: brightness(1.12); }
.trm-p__cta .material-symbols-outlined { font-size: 18px; }
.trm-p__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 10px 6px; text-align: center; }
.trm-p__empty > .material-symbols-outlined { font-size: 40px !important; color: #fde68a; }
.trm-p__empty b { font-size: 15px; }
.trm-p__empty p { margin: 0 0 6px; font-size: 12.5px; color: rgba(226, 226, 235, 0.7); }
.trm-p__empty .trm-p__cta { padding: 0 16px; }

/* ---------------------------------------------------------------- kızışan iller: harita üstünde dönen hap */
/* Alt satırda, "Zirvede"nin sağında (harita altı tek sıra) */
.trm-hot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(170deg, rgba(36, 18, 14, 0.92), rgba(20, 12, 24, 0.92)) padding-box,
    linear-gradient(135deg, #fdba74, #f97316 45%, #f472b6) border-box;
  box-shadow: 0 12px 30px -10px rgba(249, 115, 22, 0.75);
  animation: trm-pop 0.35s ease;
}
.trm-hot[hidden] { display: none; }
.trm-hot__lbl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 4px 9px 4px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
}
.trm-hot__lbl .material-symbols-outlined { font-size: 15px; font-variation-settings: "FILL" 1; animation: trm-crown 1.4s ease-in-out infinite; }
/* Pencere: aynı anda tek il görünür, diğerleri alttan kayarak gelir */
.trm-hot__win {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  height: 30px;
}
.trm-hot__item {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.3, 1.2, 0.4, 1), opacity 0.3s ease;
}
.trm-hot__item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.trm-hot__item.is-off { opacity: 0; transform: translateY(-100%); }
.trm-hot__item:hover b { color: #fde68a; }
.trm-hot__duo { display: inline-flex; align-items: center; }
.trm-hot__duo img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #2a1410; }
.trm-hot__duo i {
  z-index: 1;
  margin: 0 -5px;
  padding: 1px 3px;
  border-radius: 6px;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1f1300;
  background: #fdba74;
}
.trm-hot__item b { font-weight: 800; transition: color 0.15s ease; }
.trm-hot__item em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #fdba74; }
.trm-hot__dots { display: inline-flex; gap: 3px; flex-shrink: 0; }
.trm-hot__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(253, 186, 116, 0.3); transition: background-color 0.3s ease, width 0.3s ease; }
.trm-hot__dots i.is-on { width: 12px; border-radius: 3px; background: #fdba74; }

/* ---------------------------------------------------------------- animasyonlar */
@keyframes trm-pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes trm-sheen { 0%, 60% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(560%) skewX(-12deg); } }
@keyframes trm-live { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); } 100% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); } }
@keyframes trm-first { 0%, 100% { stroke-opacity: 0.55; } 50% { stroke-opacity: 1; } }
@keyframes trm-ring {
  0% { stroke-dashoffset: 1; opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes trm-flash {
  0% { fill: #fff6d5; stroke: #fff; stroke-width: 2; }
  35% { fill: #fbbf24; stroke: #fde68a; stroke-width: 2; }
  100% { stroke-width: 0.6; }
}
@keyframes trm-draw { to { stroke-dashoffset: 0; } }
@keyframes trm-swap {
  0% { transform: rotateY(0) scale(1); }
  45% { transform: rotateY(90deg) scale(1.25); }
  55% { transform: rotateY(90deg) scale(1.25); }
  100% { transform: rotateY(0) scale(1); }
}
@keyframes trm-swap-glow {
  0%, 30% { box-shadow: 0 0 0 2px #fde68a, 0 0 0 6px rgba(253, 230, 138, 0.5), 0 0 30px #fbbf24; }
  100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 4px 10px rgba(0, 0, 0, 0.55); }
}
@keyframes trm-tag {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
  15%, 75% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}
@keyframes trm-crown { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
@keyframes trm-pin { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.4); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes trm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); background: rgba(244, 114, 182, 0.14); } 100% { transform: scale(1); } }

@media (max-width: 639px) {
  .trm-actions { width: 100%; justify-content: stretch; }
  .trm-picker { flex: 1; }
  .trm-picker__btn { width: 100%; justify-content: flex-start; }
  .trm-picker__chev { margin-left: auto; }
  .trm-picker__pop { left: 0; right: auto; width: 100%; }
  .trm-p__city { font-size: 26px; }
  .trm-news { left: 12px; right: 12px; }
  .trm-live { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trm-sheen::before, .trm-live i, #home-map .trm-il--first, .trm-news__crown, .trm-focus-pin__crown, .trm-hot__lbl .material-symbols-outlined, .trm-p__race .is-hot { animation: none; }
  #home-map .trm-outline { animation: none; stroke-dashoffset: 0; }
}

/* Renk cetveli: haritanın sağ altında küçük cam etiket (alt satır tek sıra kalsın) */
.trm-legend {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 41;
  gap: 6px !important;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px !important;
  background: rgba(10, 7, 19, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.25);
  pointer-events: none;
}
.trm-legend .hp-map__scale { width: 70px; height: 5px; }
#home-map.is-focus .trm-legend { display: none; }
@media (max-width: 639px) {
  .trm-legend { display: none !important; }
}

/* "Animasyonları azalt" açık bilgisayarlar: sıra değişimi yine görünsün ama sakin (tek yumuşak nefes, sınır yavaşça belirir) */
@media (prefers-reduced-motion: reduce) {
  #home-map .trm-ring { stroke-dasharray: none; stroke-dashoffset: 0; animation: trm-ring-calm 2.5s ease forwards; }
}
@keyframes trm-ring-calm { 0% { opacity: 0; } 25%, 70% { opacity: 1; } 100% { opacity: 0; } }
