/* Açılışta öne çıkan duyuru: "Sinyal yakalandı" (yalnızca öne çıkan duyuru varken yüklenir) */

.spot {
  padding: 0; border: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: transparent; color: var(--paper); overflow: hidden;
}
.spot[open] { display: grid; place-items: center; }
.spot::backdrop { background: rgba(6, 12, 26, .7); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }

.spot__panel {
  --line: rgba(238, 240, 243, .12);
  --bg: var(--ink); --fg: var(--paper);   /* pencere <dialog>: data-theme taşımaz, açık varsayılandan değil koyu yüzeyden okunur (düğmelerin üzerine gelince yazı kaybolmasın) */
  position: relative; width: min(1040px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: clamp(20px, 2.6vw, 30px);
  padding: clamp(24px, 3.4vw, 44px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(229, 119, 107, .14), transparent 60%),
    linear-gradient(180deg, #101f3d, var(--ink) 55%);
  border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(0, 0, 0, .8);
}
.spot[open] .spot__panel { animation: spot-in .9s var(--e-out) both; }
@keyframes spot-in { from { opacity: 0; transform: translateY(36px) scale(.97); clip-path: inset(46% 0 46% 0); } 55% { clip-path: inset(0 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* Üst satır */
.spot__top { display: flex; align-items: center; gap: 14px; padding-right: 56px; min-height: 44px; }
.spot__live {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  background: rgba(229, 119, 107, .14); box-shadow: inset 0 0 0 1px rgba(229, 119, 107, .45);
}
.spot__live i, .spot-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(229, 119, 107, .7); animation: spot-dot 1.6s ease-out infinite; }
@keyframes spot-dot { 0% { box-shadow: 0 0 0 0 rgba(229, 119, 107, .7); } 70% { box-shadow: 0 0 0 10px rgba(229, 119, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 119, 107, 0); } }
.spot__kurum { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.spot__close {
  position: absolute; right: clamp(16px, 2.4vw, 28px); top: clamp(16px, 2.4vw, 28px); width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s, transform .4s var(--e-out);
}
.spot__close:hover { background: var(--paper); color: var(--ink); transform: rotate(90deg); }
.spot__close .ico { width: 20px; height: 20px; }

/* Frekans şeridi: önce parazit, sonra merkezde tek sinyal; kilitlendikten sonra çubuklar canlı yayın gibi oynamayı sürdürür */
.spot__band { position: relative; height: clamp(84px, 11vw, 128px); }
.spot__bars { position: absolute; inset: 0; display: flex; align-items: center; gap: clamp(2px, .35vw, 5px); }
.spot__bars i {
  flex: 1; height: 100%; border-radius: 1px; background: rgba(238, 240, 243, .32); transform-origin: center;
  transform: scaleY(var(--s)); transition: background-color .6s;
}
.spot__bars i.is-peak { background: var(--coral); }
.spot.is-tuning .spot__bars i { animation: spot-noise .14s steps(2) infinite alternate; transform: scaleY(var(--n)); }
.spot.is-tuning .spot__bars i:nth-child(3n) { animation-duration: .11s; }
.spot.is-tuning .spot__bars i:nth-child(5n) { animation-duration: .17s; }
.spot.is-locked .spot__bars i { animation: spot-lock .9s var(--e-out) var(--d) both, spot-live var(--t) ease-in-out calc(var(--d) + .9s) infinite; }
.spot.is-locked .spot__bars i.is-peak { animation: spot-lock .9s var(--e-out) var(--d) both, spot-live var(--t) ease-in-out calc(var(--d) + .9s) infinite, spot-pulse 2.4s ease-in-out 1.2s infinite; }
@keyframes spot-noise { from { transform: scaleY(calc(var(--n) * .4)); } to { transform: scaleY(var(--n)); } }
@keyframes spot-lock { from { transform: scaleY(var(--n)); } to { transform: scaleY(var(--s)); } }
/* scale, transform ile çarpılır: kilit yüksekliği (--s) bozulmadan çubuk kendi aralığında (--a … --b) oynar */
@keyframes spot-live { 0%, 100% { scale: 1 1; } 30% { scale: 1 var(--a); } 68% { scale: 1 var(--b); } }
@keyframes spot-pulse { 50% { opacity: .55; } }
.spot__station {
  position: absolute; left: 50%; top: -6px; transform: translate(14px, 0); display: grid; gap: 2px;
  font-size: .9375rem; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .6s .5s, transform .8s var(--e-out) .5s;
}
.spot__station .mono { font-size: .6875rem; letter-spacing: .1em; color: var(--coral); }
.spot.is-locked .spot__station { opacity: 1; transform: translate(18px, 0); }
.spot__band::after { content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px; width: 1px; background: rgba(229, 119, 107, .55); opacity: 0; transition: opacity .6s .4s; }
.spot.is-locked .spot__band::after { opacity: 1; }

/* Başlık ve geri sayım */
.spot__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.spot__text { display: grid; gap: 14px; }
.spot__title {
  font-family: var(--f-display); font-weight: 600; font-stretch: 90%; font-size: clamp(2rem, 3.9vw, 3.6rem);
  line-height: .98; letter-spacing: -.032em; text-wrap: balance;
}
.spot__title--long { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
.spot__sum { color: var(--muted-d); max-width: 58ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot[open] .spot__title, .spot[open] .spot__sum, .spot[open] .spot__count, .spot[open] .spot__line, .spot[open] .spot__acts { animation: spot-rise 1s var(--e-out) both; }
.spot[open] .spot__title { animation-delay: .35s; }
.spot[open] .spot__sum { animation-delay: .45s; }
.spot[open] .spot__count { animation-delay: .55s; }
.spot[open] .spot__line { animation-delay: .65s; }
.spot[open] .spot__acts { animation-delay: .75s; }
@keyframes spot-rise { from { opacity: 0; transform: translateY(24px); } }

.spot__count { display: grid; gap: 10px; justify-items: start; padding-left: clamp(0px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.spot__count-l { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.spot__digits { display: flex; gap: clamp(10px, 1.6vw, 18px); }
.spot__digits span { display: grid; gap: 4px; justify-items: center; }
.spot__digits b {
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: center;
}
.spot__digits b.is-tick { animation: spot-tick .5s var(--e-out); }
@keyframes spot-tick { from { transform: translateY(-35%); opacity: .2; } }
.spot__digits small { font-size: .75rem; color: var(--muted-d); }
.spot__sec b { color: var(--coral); }
.spot__count-date { font-size: .9375rem; color: var(--paper); }
.spot__lastday { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--coral); }

/* Zaman çizelgesi */
.spot__line { position: relative; height: 66px; margin: 6px 6px 0; list-style: none; padding: 0; }
.spot__line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.spot__ev { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; text-align: center; white-space: nowrap; }
.spot__ev.is-first { transform: none; justify-items: start; text-align: left; }
.spot__ev.is-last { transform: translateX(-100%); justify-items: end; text-align: right; }
.spot__ev i { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.spot__ev--son i { background: var(--coral); box-shadow: 0 0 0 4px rgba(229, 119, 107, .25); }
.spot__ev--sonuc i { box-shadow: inset 0 0 0 2px var(--muted-d); }
.spot__ev.is-past { opacity: .55; }
.spot__ev-l { font-size: .75rem; color: var(--muted-d); }
.spot__ev-d { font-size: .875rem; font-weight: 500; }
.spot__today { position: absolute; left: var(--x); top: -4px; height: 24px; width: 0; border-left: 1px dashed var(--coral); }
.spot__today span { position: absolute; left: 6px; white-space: nowrap; top: -16px; font-family: var(--f-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }

.spot__today.is-flip span { left: auto; right: 6px; }

/* Eylemler */
.spot__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.spot__ics { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9375rem; color: var(--paper); }
.spot__ics .ico { width: 19px; height: 19px; color: var(--coral); }

/* Kapatıldıktan sonra kalan çip */
.spot-chip {
  position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-wa);
  display: inline-flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 120px)); padding: 10px 16px 10px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1px rgba(238, 240, 243, .14), 0 16px 40px -16px rgba(0, 0, 0, .6);
  font-size: .875rem; text-align: left; transform: translateY(160%); transition: transform .7s var(--e-out), background-color .3s;
}
.spot-chip.is-on { transform: none; }
.spot-chip:hover { background: #16264a; }
.spot-chip__l { font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); flex: none; }
.spot-chip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.menu-open .spot-chip, html.nl-open .spot-chip, html.spot-open .spot-chip { transform: translateY(160%); }
/* Çip görünürken ana sayfadaki "imleci gezdirin" ipucu çakışmasın diye gizlenir */
.hero__hint { transition: opacity .4s; }
html.spot-chip-on .hero__hint { opacity: 0; }

/* Telefon: masaüstündeki gibi ekranın ortasında açılır; arkadaki sayfa hafif buğulu görünür, pencere daha sıkıdır */
@media (max-width: 760px) {
  .spot::backdrop { background: rgba(6, 12, 26, .48); -webkit-backdrop-filter: blur(9px) saturate(120%); backdrop-filter: blur(9px) saturate(120%); }
  .spot__panel { width: calc(100% - 28px); max-height: calc(100dvh - 40px); gap: 14px; padding: 18px 18px 20px; }
  .spot__top { min-height: 40px; padding-right: 48px; }
  .spot__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .spot__band { height: 40px; }
  .spot__station { display: none; }
  .spot__body { grid-template-columns: 1fr; gap: 14px; }
  .spot__title, .spot__title--long { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
  .spot__sum { -webkit-line-clamp: 2; font-size: .9375rem; }
  .spot__count { padding-left: 0; border-left: 0; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
  .spot__count-l { grid-column: 1 / -1; }
  .spot__digits b { font-size: 1.45rem; }
  .spot__count-date { font-size: .875rem; }
  .spot__sec { display: none !important; }
  .spot__line { display: none; }
  .spot__sum { display: none; }
  .spot__acts { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
  .spot__acts .btn:first-child { justify-content: space-between; }
  .spot__acts .btn--ghost { display: none; }   /* resmî bağlantı duyuru sayfasında */
  .spot__ics { margin-left: 0; }
  .spot-chip { bottom: max(14px, env(safe-area-inset-bottom)); max-width: calc(100vw - 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .spot *, .spot-chip, .spot__panel { animation: none !important; transition: none !important; }
  .spot__bars i { transform: scaleY(var(--s)) !important; }
  .spot__station, .spot__band::after { opacity: 1 !important; }
}
