/* ==========================================================================
   PERDE | Türkiye Sinema Haritası
   Tasarım dili: gece sineması + marquee ışığı + 35mm film karesi.
   Bkz. dosya sonundaki "Tasarım Notları" bölümü.
   ========================================================================== */

:root {
  /* -- Renkler -------------------------------------------------------- */
  --bg-night: #0e0f18;
  --bg-panel: #171827;
  --bg-panel-raised: #1f2136;
  --bg-panel-hover: #262943;
  --border-soft: rgba(232, 172, 63, 0.14);
  --border-soft-strong: rgba(232, 172, 63, 0.30);
  --border-hairline: rgba(148, 150, 184, 0.14);

  --ink: #f4f2ec;
  --ink-muted: #9496b8;
  --ink-faint: #62638a;

  --gold: #e8ac3f;
  --gold-strong: #f5c46a;
  --gold-wash: rgba(232, 172, 63, 0.12);

  --teal: #35d0c0;
  --teal-wash: rgba(53, 208, 192, 0.14);

  --red: #e6533c;
  --red-wash: rgba(230, 83, 60, 0.14);

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* -- Tipografi -------------------------------------------------------- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --topbar-h: 68px;
  --divider-h: 10px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg-night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font-family: inherit;
  color: inherit;
}

a { color: var(--gold-strong); }

::selection { background: var(--gold); color: #100e05; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ==========================================================================
   Yükleme ekranı: film countdown leader'a (10-9-8… geri sayım) selam
   ========================================================================== */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(ellipse at center, #171928 0%, var(--bg-night) 70%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.countdown { width: 84px; height: 84px; }
.countdown svg { width: 100%; height: 100%; }
.countdown__track {
  fill: none;
  stroke: var(--border-hairline);
  stroke-width: 2;
}
.countdown__ticks {
  fill: none;
  stroke: var(--border-soft-strong);
  stroke-width: 2;
  stroke-dasharray: 2 15.2;
}
.countdown__wedge {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 50px 50px;
  animation: spin 1.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.countdown__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dots span { animation: blink 1.4s infinite; opacity: 0; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ==========================================================================
   App iskeleti
   ========================================================================== */

#app {
  height: 100%;
  height: 100dvh; /* mobil tarayıcı adres çubuğu açılıp kapanınca da tam ekran */
  display: flex;
  flex-direction: column;
}

/* -- Üst çubuk ---------------------------------------------------------- */

.topbar {
  height: var(--topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
  z-index: 1000; /* ayarlar paneli Leaflet katmanlarının (z-index 400+) üstünde açılsın */
}

.brand {
  text-decoration: none; /* logo: ana sayfa bağlantısı */
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex: 0 0 auto;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--gold-strong);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.searchbox {
  position: relative;
  flex: 1 1 380px;
  max-width: 460px;
  display: flex;
  align-items: center;
}
.searchbox__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--ink-faint);
  pointer-events: none;
}
.searchbox input {
  width: 100%;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  padding: 10px 34px;
  font-size: 14px;
  color: var(--ink);
}
.searchbox input {
  -webkit-appearance: none;
  appearance: none;
}
.searchbox input::-webkit-search-cancel-button,
.searchbox input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.searchbox input::placeholder { color: var(--ink-faint); }
.searchbox input:focus {
  border-color: var(--border-soft-strong);
  outline: none;
}
.searchbox__clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 6px;
  font-size: 12px;
}
.searchbox__clear:hover { color: var(--ink); }

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

/* -- Site menüsü (Harita / API / Hakkında) ------------------------------ */
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar__actions .topnav { margin-left: 0; }
.topnav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}
.topnav a:hover { color: var(--gold-strong); background: var(--gold-wash); }
.topnav a[aria-current="page"] { color: var(--gold-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-soft-strong);
  color: var(--gold-strong);
}
.btn--ghost:hover { background: var(--gold-wash); }
.btn--ghost.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130a;
}
.btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.btn__icon { display: none; }
.btn--ghost.is-active .btn__dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.6); opacity: 1; }
}

.stat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.stat span { color: var(--teal); font-weight: 600; }

/* -- Ayarlar ------------------------------------------------------------ */
.settings { position: relative; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid var(--border-hairline);
  background: transparent;
  color: var(--ink-muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { color: var(--gold-strong); border-color: var(--border-soft-strong); }
.icon-btn[aria-expanded="true"] {
  color: var(--gold-strong);
  border-color: var(--border-soft-strong);
  background: var(--gold-wash);
}
.icon-btn:focus-visible, .switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 14px 16px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}
.settings-panel[hidden] { display: none; }
.settings-panel__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}
.switch-row__text { display: flex; flex-direction: column; gap: 3px; }
.switch-row__label { font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.switch-row__hint { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--bg-panel-hover);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch:checked { background: var(--gold); border-color: var(--gold); }
.switch:checked::after { transform: translateX(18px); background: #17130a; }

/* -- Sprocket ayraç (film şeridi deliği) --------------------------------- */

.sprocket-divider {
  height: var(--divider-h);
  flex: 0 0 auto;
  background-color: var(--bg-panel);
  background-image:
    radial-gradient(circle at 11px 5px, var(--bg-night) 3px, transparent 3.4px);
  background-size: 22px var(--divider-h);
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--border-hairline);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr 360px;
}

/* -- Sidebar -------------------------------------------------------------- */

.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar__tabs {
  display: flex;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border-hairline);
}
.tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--ink-muted); }
.tab[aria-selected="true"] {
  color: var(--gold-strong);
  border-bottom-color: var(--gold);
}

.sidebar__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
}

.sidebar__hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 14px 10px;
  line-height: 1.6;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 6px 14px;
  cursor: pointer;
}
.back-row:hover { color: var(--gold-strong); }

.city-row, .cinema-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  padding: 11px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.city-row:hover, .cinema-row:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-soft-strong);
  transform: translateX(2px);
}
.city-row.is-active, .cinema-row.is-active {
  border-color: var(--gold);
  background: var(--gold-wash);
}

.city-row__name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}
.city-row__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--bg-night);
  border-radius: 2px;
  padding: 3px 7px;
}

.cinema-row__body { flex: 1; min-width: 0; }
.cinema-row__name {
  display: block; /* span: block olmazsa "…" ile kesilmez, satırdan taşar */
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 2. satır: konum solda, uzaklık sağda (isimle aynı satırda olunca üst üste biniyordu) */
.cinema-row__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 2px;
}
.cinema-row__sub {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cinema-row__distance {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal);
  flex: 0 0 auto;
  white-space: nowrap;
}

.search-section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 6px 6px;
}

/* ==========================================================================
   Harita
   ========================================================================== */

.map-wrap {
  position: relative;
  min-height: 0;
  isolation: isolate; /* Leaflet katmanları (z-index 400+) burada kalsın; mobil paneller/düğmeler üstte */
}
#map {
  width: 100%;
  height: 100%;
  background: var(--bg-night);
}

/* Leaflet zemin rengi & kontrolleri gece paletine uydur */
.leaflet-container { background: var(--bg-night); font-family: var(--font-body); }
.leaflet-control-zoom a {
  background: var(--bg-panel-raised) !important;
  color: var(--ink) !important;
  border-color: var(--border-hairline) !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-panel-hover) !important; }
.leaflet-control-attribution { display: none; }

.cinema-marker {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-marker__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #17130a;

  box-shadow:
    0 0 0 4px rgba(232, 172, 63, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cinema-marker__icon {
  font-size: 17px;
  color: #17130a;
}

.cinema-marker:hover .cinema-marker__dot,
.cinema-marker--active .cinema-marker__dot {
  transform: scale(1.25);

  box-shadow:
    0 0 0 7px rgba(53, 208, 192, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.4);

  background: var(--teal);
}

/* -- Kapalı sinemalar: siyah-beyaz ------------------------------------ */
.cinema-marker--closed .cinema-marker__dot {
  background: #7b7d8c;
  border-color: #1b1b20;
  box-shadow:
    0 0 0 4px rgba(150, 150, 160, 0.20),
    0 3px 8px rgba(0, 0, 0, 0.35);
  filter: grayscale(1);
}
.cinema-marker--closed .cinema-marker__icon { color: #26262c; }
.cinema-marker--closed:hover .cinema-marker__dot,
.cinema-marker--closed.cinema-marker--active .cinema-marker__dot {
  background: #b9bac4;
  box-shadow:
    0 0 0 7px rgba(235, 235, 240, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.4);
}

.cinema-row.is-closed { filter: grayscale(1); opacity: 0.7; }
.cinema-row.is-closed:hover, .cinema-row.is-closed.is-active { opacity: 1; }

.film-frame--closed { filter: grayscale(1); }

.closed-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1px dashed var(--border-hairline);
  border-radius: 2px;
  text-align: center;
}
.closed-note__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.closed-note__text { font-size: 12.5px; color: var(--ink-faint); }

.user-marker { position: relative; }
.user-marker__pin {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
  animation: userDrop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.user-marker__pin path { fill: #4ea1ff; stroke: #eaf3ff; stroke-width: 2; }
.user-marker__pin circle { fill: #eaf3ff; }
/* Ucun altında yere düşen gölge / nabız */
.user-marker__shadow {
  position: absolute;
  left: 50%;
  top: 29px;
  width: 12px;
  height: 5px;
  margin: -2px 0 0 -6px;
  border-radius: 50%;
  background: rgba(78, 161, 255, 0.45);
  animation: userPulse 2.2s ease-in-out infinite;
}
@keyframes userDrop {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes userPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(78, 161, 255, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(78, 161, 255, 0.08); }
}

.cinema-tooltip {
  background: var(--bg-panel-raised) !important;
  border: 1px solid var(--border-soft-strong) !important;
  color: var(--ink) !important;
  font-size: 12.5px !important;
  font-weight: 600;
  border-radius: 3px !important;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-tooltip-top.cinema-tooltip::before { border-top-color: var(--border-soft-strong) !important; }

.map-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 24, 39, 0.9);
  border: 1px solid var(--border-hairline);
  border-radius: 3px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  backdrop-filter: blur(6px);
}
.map-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.map-badge__dot.is-ok { background: var(--teal); }
.map-badge__dot.is-error { background: var(--red); }

.map-attrib {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1000;
  font-size: 10px;
  color: var(--ink-faint);
  background: rgba(14, 15, 24, 0.6);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ==========================================================================
   Detay paneli
   ========================================================================== */

.detail-panel {
  background: var(--bg-panel);
  border-left: 1px solid var(--border-hairline);
  overflow-y: auto;
  padding: 16px;
}

.detail-empty {
  height: 100%;
  display: flex;
  align-items: center;
}
.detail-empty__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.detail-empty__body {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 0;
}

/* -- "Film karesi" imza öğesi: sprocket delikli kart çerçevesi -- */
.film-frame {
  position: relative;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 18px 16px;
}
.film-frame::before, .film-frame::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 9px;
  background-image: radial-gradient(circle at 9px 4.5px, var(--bg-panel) 2.6px, transparent 3px);
  background-size: 18px 9px;
  background-repeat: repeat-x;
}
.film-frame::before { top: -1px; }
.film-frame::after { bottom: -1px; }
.film-frame--empty { padding: 26px 20px; }

.cinema-detail__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 4px 0 6px;
}
.cinema-detail__addr {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 4px;
}
.cinema-detail__distance {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
  margin: 0 0 14px;
}

.directions-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 2px;
  border: 1px solid;
}
.tag--imax { color: var(--teal); border-color: var(--teal); background: var(--teal-wash); }
.tag--feature { color: var(--gold-strong); border-color: var(--gold); background: var(--gold-wash); }
.tag--badge { color: var(--red); border-color: var(--red); background: var(--red-wash); }

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-hairline);
}

.movie-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.movie-card:last-child { border-bottom: none; }

.movie-card__poster {
  flex: 0 0 auto;
  width: 56px;
  height: 80px;
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.movie-card__poster::before, .movie-card__poster::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 7px;
  background-image: radial-gradient(circle at 7px 3.5px, var(--bg-panel-raised) 2px, transparent 2.4px);
  background-size: 14px 7px;
  background-repeat: repeat-x;
}
.movie-card__poster::before { top: -1px; }
.movie-card__poster::after { bottom: -1px; }
.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-card__poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.movie-card__body { flex: 1; min-width: 0; }
.movie-card__title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 3px;
}
.movie-card__meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.showtime-row { display: flex; flex-wrap: wrap; gap: 6px; }
.showtime-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-soft-strong);
  color: var(--ink-muted);
}
.showtime-pill.is-sold-out {
  color: var(--ink-faint);
  border-color: var(--border-hairline);
  text-decoration: line-through;
}

.detail-loading, .detail-empty-note {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 10px 0;
}

/* ==========================================================================
   Hata banner'ı
   ========================================================================== */

.error-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(640px, 90vw);
  background: #241419;
  border: 1px solid var(--red);
  color: #ffd9d0;
  padding: 12px 14px 12px 16px;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.5;
}
.error-banner[hidden] { display: none; }
.error-banner button {
  background: none;
  border: none;
  color: #ffd9d0;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
}

/* ==========================================================================
   Mobil
   ========================================================================== */

.mobile-list-toggle, .mobile-detail-close { display: none; }

@media (max-width: 880px) {
  /* -- Üst çubuk: 1. satır marka + düğmeler, 2. satır tam genişlik arama -- */
  .topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .brand { order: 1; }
  .brand__mark { font-size: 24px; }
  .brand__tag { display: none; }
  .topbar__actions { order: 2; gap: 8px; }
  .searchbox { order: 3; flex: 1 1 100%; max-width: none; }
  /* iOS, 16px altındaki kutulara odaklanınca sayfayı yakınlaştırır */
  .searchbox input { font-size: 16px; padding-top: 9px; padding-bottom: 9px; }
  .stat { display: none; }

  #nearMeBtn { padding: 0; width: 38px; height: 38px; justify-content: center; }
  #nearMeBtn .btn__dot, #nearMeBtn .btn__label { display: none; }
  #nearMeBtn .btn__icon { display: inline-block; font-size: 16px; }
  #nearMeBtn.is-active .btn__icon { animation: pulse 1.6s ease-in-out infinite; }

  .layout { grid-template-columns: 1fr; grid-template-rows: 1fr; }

  /* -- Harita üstü rozetler: alttaki düğmelerle çakışmasın -- */
  .map-badge { top: 10px; bottom: auto; left: 10px; padding: 5px 9px; font-size: 10px; }
  .map-attrib { top: 10px; bottom: auto; right: 10px; max-width: 46%; text-align: right; font-size: 9px; }
  .leaflet-bottom.leaflet-right { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* -- Liste ve detay: alttan açılan panel (bottom sheet) -- */
  .sidebar, .detail-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60dvh;
    z-index: 40;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    border: none;
    border-top: 1px solid var(--border-soft-strong);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
    overscroll-behavior: contain;
  }
  .sidebar.is-open, .detail-panel.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s ease;
  }
  .detail-panel {
    height: 72dvh;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  /* tutamaç çizgisi */
  .sidebar::before, .detail-panel::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--border-soft-strong);
  }
  .detail-panel::before { margin: -6px auto 12px; }
  .sidebar__body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .detail-empty { height: auto; }

  .tab { padding: 12px 10px; }
  .city-row, .cinema-row { padding: 13px 12px; } /* parmakla dokunmaya uygun yükseklik */
  .city-row:hover, .cinema-row:hover { transform: none; }

  .cinema-detail__name { font-size: 25px; }
  .showtime-pill { font-size: 12px; padding: 5px 9px; }
  .directions-btn { padding-top: 12px; padding-bottom: 12px; }

  /* -- Alttaki yüzen düğmeler -- */
  .mobile-list-toggle, .mobile-detail-close {
    display: block;
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 50;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-list-toggle[hidden], .mobile-detail-close[hidden] { display: none; }
  .mobile-list-toggle {
    background: var(--gold);
    color: #17130a;
    border: none;
  }
  .mobile-detail-close {
    background: var(--bg-panel-raised);
    color: var(--ink);
    border: 1px solid var(--border-soft-strong);
  }

  .error-banner { bottom: calc(76px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
}

/* ==========================================================================
   Erişilebilirlik: hareket azaltma tercihi
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .countdown__wedge { animation: none; }
  .dots span { animation: none; opacity: 1; }
  .btn--ghost.is-active .btn__dot, .btn--ghost.is-active .btn__icon { animation: none; }
  .user-marker__pin, .user-marker__shadow { animation: none; }
  .city-row, .cinema-row { transition: none; }
  .sidebar, .detail-panel { transition: none; }
  .switch, .switch::after, .icon-btn { transition: none; }
}

/* ==========================================================================
   Tasarım Notları
   --------------------------------------------------------------------------
   Palet   : gece lacivert-siyahı (--bg-night) + marquee altını (--gold) +
             perde/ekran turkuazı (--teal) + bobin kırmızısı (--red, sadece
             "tükendi" ve "şehrin tek sineması" gibi vurgularda).
   Tipografi: Big Shoulders Display (marquee tabelası ruhunda, dar ve iri
             başlıklar) + IBM Plex Sans (gövde metni, TR karakter desteği
             sağlam) + IBM Plex Mono (saat/mesafe/sayaç gibi "veri" alanları).
   İmza öğe: "Film karesi": üstte/altta sprocket (film şeridi) delikleri
             olan kart çerçevesi. Sinema detay paneli ve film posterlerinde
             tekrar eder; süs değil, "bu bir film/gösterim" bilgisini taşır.
   Hareket : Şehre tıklayınca haritanın flyTo ile o noktaya odaklanması tek
             ve amaçlı animasyon; geri kalan hareketler (hover, pulse)
             kısık tutuldu.
   ========================================================================== */
