/* =========================================================
   KretaHaber — Tema Stilleri
   Haber yazılımı: KretaWeb
   Tüm renk/tipografi değerleri yönetici panelinden gelen
   CSS değişkenleriyle ezilebilir (inline style ile basılır).
   ========================================================= */

/* ---------------------------------------------------------
   1. Tasarım token'ları
   --------------------------------------------------------- */
:root {
  /* Marka */
  --kh-accent: #e10600;
  --kh-accent-hover: #b80500;
  --kh-accent-soft: rgba(225, 6, 0, 0.1);
  --kh-on-accent: #ffffff;

  /* Yüzeyler */
  --kh-paper: #ffffff;
  --kh-paper-2: #f5f5f7;
  --kh-paper-3: #ebebee;
  --kh-ink: #121317;
  --kh-ink-2: #1e2026;

  /* Metin */
  --kh-text: #15161a;
  --kh-muted: #5a5e66;
  --kh-line: #e2e3e7;
  --kh-line-2: #cdced4;
  --kh-on-dark: #ffffff;

  /* Kategori renkleri (admin'den override edilir) */
  --kh-cat-default: var(--kh-accent);

  /* Görsel davranışı — cover: görsel, boyu ne olursa olsun alanı boşluksuz doldurur */
  --kh-img-fit: cover;
  --kh-img-bg: #f2f2f4;

  /* Tipografi */
  --kh-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --kh-font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --kh-font-meta: "Barlow Condensed", "Arial Narrow", sans-serif;
  --kh-font-size-base: 16px;
  --kh-h1: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --kh-h2: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  --kh-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);

  /* Yerleşim */
  --kh-container: 1400px;
  --kh-gutter: 24px;
  --kh-radius: 2px;
  --kh-radius-sm: 2px;
  --kh-radius-pill: 999px;
  --kh-chip-radius: 2px;

  /* Efektler */
  --kh-shadow: 0 1px 2px rgba(18, 19, 23, 0.05), 0 8px 22px rgba(18, 19, 23, 0.07);
  --kh-shadow-lg: 0 4px 10px rgba(18, 19, 23, 0.07), 0 16px 34px rgba(18, 19, 23, 0.12);
  --kh-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Katmanlar */
  --kh-z-sticky: 40;
  --kh-z-drawer: 60;
  --kh-z-modal: 80;
  --kh-z-toast: 90;
}

[data-theme="dark"] {
  --kh-paper: #15161a;
  --kh-paper-2: #1c1e24;
  --kh-paper-3: #24262e;
  --kh-ink: #0d0e11;
  --kh-ink-2: #16181d;
  --kh-text: #f0f0f2;
  --kh-muted: #a0a3ad;
  --kh-line: #2e3038;
  --kh-line-2: #3c3f49;
  --kh-img-bg: #24262e;
  --kh-accent-soft: rgba(225, 6, 0, 0.18);
  --kh-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.36);
  --kh-shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.34), 0 16px 34px rgba(0, 0, 0, 0.44);
}

/* ---------------------------------------------------------
   2. Temel sıfırlama
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--kh-paper);
  color: var(--kh-text);
  font-family: var(--kh-font-body);
  font-size: var(--kh-font-size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--kh-font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

::selection {
  background: var(--kh-accent);
  color: var(--kh-on-accent);
}

:focus-visible {
  outline: 2px solid var(--kh-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------
   3. Yerleşim yardımcıları
   --------------------------------------------------------- */
.kh-container {
  width: 100%;
  max-width: var(--kh-container);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .kh-container { padding-inline: var(--kh-gutter); }
}

.kh-section {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.kh-grid {
  display: grid;
  gap: 28px;
}

.kh-grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.kh-grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.kh-grid--4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .kh-grid--2, .kh-grid--3, .kh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .kh-grid--3, .kh-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .kh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.kh-split {
  display: grid;
  gap: 36px;
}

@media (min-width: 1024px) {
  .kh-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; }
  .kh-split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .kh-split--sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
}

.kh-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kh-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--kh-z-toast);
  background: var(--kh-accent);
  color: var(--kh-on-accent);
  padding: 12px 20px;
  font-weight: 600;
}
.kh-skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------------------------------------------------------
   4. Tipografi yardımcıları
   --------------------------------------------------------- */
.kh-display { font-family: var(--kh-font-display); }
.kh-meta {
  font-family: var(--kh-font-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.kh-muted { color: var(--kh-muted); }

.kh-kicker {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--kh-accent);
}

/* Kategori etiketi — keskin köşeli, klasik */
.kh-chip {
  display: inline-block;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: var(--kh-chip-radius);
  background: var(--kh-cat, var(--kh-accent));
  color: var(--kh-on-accent);
  white-space: nowrap;
}

.kh-chip--outline {
  background: transparent;
  color: var(--kh-cat, var(--kh-accent));
  border: 1px solid currentColor;
}

.kh-chip--float {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.kh-chip--sponsored {
  background: #a16207;
}

/* Bölüm başlığı — gazete sekmesi: başlık ince çizginin üstüne oturur */
.kh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--kh-line-2);
}

.kh-section-head__title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -1px;
  border-bottom: 3px solid var(--kh-cat, var(--kh-accent));
  font-size: var(--kh-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.kh-section-head__link {
  padding-bottom: 10px;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--kh-muted);
  white-space: nowrap;
  transition: color 0.25s var(--kh-ease);
}
.kh-section-head__link:hover { color: var(--kh-cat, var(--kh-accent)); }

/* ---------------------------------------------------------
   5. Butonlar
   --------------------------------------------------------- */
.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--kh-radius-sm);
  background: var(--kh-accent);
  color: var(--kh-on-accent);
  transition: background 0.25s var(--kh-ease), transform 0.25s var(--kh-ease);
}
.kh-btn:hover { background: var(--kh-accent-hover); }
.kh-btn:active { transform: translateY(1px); }

.kh-btn--ghost {
  background: transparent;
  color: var(--kh-text);
  border: 1px solid var(--kh-line-2);
}
.kh-btn--ghost:hover { background: var(--kh-paper-2); }

.kh-btn--soft {
  background: var(--kh-paper-3);
  color: var(--kh-text);
}
.kh-btn--soft:hover { background: var(--kh-line); }
.kh-btn--dark { background: var(--kh-paper-3); color: var(--kh-text); }
.kh-btn--dark:hover { background: var(--kh-line); }

.kh-btn--sm { padding: 7px 14px; font-size: 0.82rem; }
.kh-btn--block { width: 100%; }

.kh-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kh-radius-pill);
  color: var(--kh-text);
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease);
}
.kh-icon-btn:hover { background: var(--kh-paper-2); }

/* ---------------------------------------------------------
   6. Üst bar + header
   --------------------------------------------------------- */
.kh-topbar {
  background: var(--kh-paper-2);
  color: var(--kh-muted);
  border-bottom: 1px solid var(--kh-line);
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
}

.kh-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 40px;
}

.kh-topbar__group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.kh-topbar a:hover { color: var(--kh-accent); }
.kh-topbar__sep { color: var(--kh-line-2); }

.kh-topbar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kh-header {
  position: sticky;
  top: 0;
  z-index: var(--kh-z-sticky);
  background: var(--kh-paper);
  border-bottom: 1px solid var(--kh-line);
  transition: box-shadow 0.3s var(--kh-ease);
}
.kh-header.is-scrolled { box-shadow: 0 6px 20px rgba(18, 19, 23, 0.08); }

.kh-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.kh-logo {
  font-family: var(--kh-font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  color: var(--kh-text);
}
.kh-logo img { max-height: 56px; width: auto; }

.kh-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kh-topbar__clock {
  color: var(--kh-text);
  font-variant-numeric: tabular-nums;
}

/* Logo yanı reklam alanı (gazete düzeni) */
.kh-header__promo {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 740px;
}
.kh-header__promo .kh-ad { margin: 0; }
.kh-header__promo .kh-ad__label { display: none; }
.kh-header__promo img { max-height: 90px; width: auto; }

/* Ana menü */
.kh-nav {
  display: none;
  border-top: 1px solid var(--kh-line);
}
@media (min-width: 1024px) {
  .kh-nav { display: block; }
}

.kh-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.94rem;
}

.kh-nav__list > li > a {
  display: block;
  padding-block: 13px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--kh-ease), border-color 0.2s var(--kh-ease);
}
.kh-nav__list > li > a:hover { border-color: var(--kh-line-2); }
.kh-nav__list > li.current-menu-item > a,
.kh-nav__list > li.kh-is-active > a {
  color: var(--kh-cat, var(--kh-accent));
  border-color: var(--kh-cat, var(--kh-accent));
}

/* Alt menü */
.kh-nav__list li { position: relative; }
.kh-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 210px;
  background: var(--kh-paper);
  border: 1px solid var(--kh-line);
  box-shadow: var(--kh-shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--kh-ease), transform 0.2s var(--kh-ease), visibility 0.2s;
  z-index: 5;
}
.kh-nav__list li:hover > .sub-menu,
.kh-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.kh-nav__list .sub-menu a {
  display: block;
  padding: 9px 16px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}
.kh-nav__list .sub-menu a:hover { background: var(--kh-paper-2); color: var(--kh-accent); }

/* Header varyantları */
.kh-header--centered .kh-header__bar { justify-content: center; text-align: center; }
.kh-header--centered .kh-logo { margin-inline: auto; }
.kh-header--compact .kh-header__bar { padding-block: 10px; }
.kh-header--compact .kh-logo { font-size: 1.6rem; }

/* Çerçeveli varyant: menü kutu içinde */
.kh-header--bordered .kh-nav {
  border-top: none;
}
.kh-header--bordered .kh-nav > .kh-container {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  margin-bottom: 12px;
  padding-inline: 18px;
}

/* "Vurgulu" varyant: menü şeridi marka renginde */
.kh-header--accent .kh-nav {
  background: var(--kh-accent);
  border-top-color: transparent;
}
.kh-header--accent .kh-nav__list { color: #fff; }
.kh-header--accent .kh-nav__list > li > a:hover { border-color: rgba(255, 255, 255, 0.6); }
.kh-header--accent .kh-nav__list > li.current-menu-item > a,
.kh-header--accent .kh-nav__list > li.kh-is-active > a {
  color: #fff;
  border-color: #fff;
}
.kh-header--accent .kh-nav__list .sub-menu a { color: var(--kh-text); }

/* ---------------------------------------------------------
   7. Son dakika şeridi
   --------------------------------------------------------- */
.kh-ticker {
  background: var(--kh-accent);
  color: var(--kh-on-accent);
}

.kh-ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
}

.kh-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.kh-live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--kh-radius-pill);
  background: currentColor;
  animation: kh-pulse 1.6s ease-in-out infinite;
}

@keyframes kh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.78); }
}

.kh-ticker__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.kh-ticker__track {
  display: flex;
  width: max-content;
  gap: 42px;
  font-family: var(--kh-font-meta);
  font-size: 0.95rem;
  animation: kh-marquee 36s linear infinite;
}
.kh-ticker__viewport:hover .kh-ticker__track { animation-play-state: paused; }

@keyframes kh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .kh-ticker__track { animation: none; }
}

/* ---------------------------------------------------------
   8. Mobil menü (drawer)
   --------------------------------------------------------- */
.kh-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--kh-z-drawer);
  visibility: hidden;
}
.kh-drawer[data-open="true"] { visibility: visible; }

.kh-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--kh-ease);
}
.kh-drawer[data-open="true"] .kh-drawer__backdrop { opacity: 1; }

.kh-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(86vw, 380px);
  background: var(--kh-paper);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s var(--kh-ease);
}
[dir="rtl"] .kh-drawer__panel { transform: translateX(100%); }
.kh-drawer[data-open="true"] .kh-drawer__panel { transform: none; }

.kh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.kh-drawer__nav a {
  display: block;
  padding-block: 13px;
  border-bottom: 1px solid var(--kh-line);
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}
.kh-drawer__nav .sub-menu a { padding-inline-start: 16px; font-size: 0.92rem; text-transform: none; }

/* ---------------------------------------------------------
   9. Manşet slider
   --------------------------------------------------------- */
.kh-slider { position: relative; background: var(--kh-paper); }

/* Mobilde yükseklik içeriğe göre büyür, masaüstünde sabitlenir */
.kh-slider__viewport {
  width: 100%;
  overflow: hidden;
}

@media (min-width: 900px) {
  .kh-slider__viewport { height: clamp(380px, 48vw, 580px); }
}

.kh-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--kh-ease);
}

.kh-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.kh-slide__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kh-slide__panel {
  order: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px 20px 30px;
  background: var(--kh-paper);
  color: var(--kh-text);
}

/* Panelin üstünde kategori renginde ince şerit */
.kh-slide__panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--kh-cat, var(--kh-accent));
}

.kh-slide__title {
  font-family: var(--kh-font-display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--kh-text);
  max-width: 22ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kh-slide__excerpt {
  display: none;
  color: var(--kh-muted);
  font-size: 0.96rem;
  max-width: 44ch;
}

.kh-slide__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
  color: var(--kh-muted);
}

.kh-slide__media {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--kh-img-bg, var(--kh-paper-3));
}
.kh-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: var(--kh-img-fit, cover);
}
.kh-slide__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--kh-paper) 0%, transparent 22%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .kh-slide__inner { flex-direction: row; }
  .kh-slide__panel {
    order: 0;
    flex: 0 0 42%;
    padding: clamp(28px, 4vw, 56px);
  }
  .kh-slide__excerpt { display: block; }
  .kh-slide__media { flex: 1; aspect-ratio: auto; min-height: 0; }
  .kh-slide__fade {
    background: linear-gradient(to right, var(--kh-paper) 0%, transparent 20%);
  }
  .kh-slide__panel::before {
    width: 4px;
    height: 100%;
  }
}

.kh-slide__badge {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--kh-radius-sm);
  background: var(--kh-accent);
  color: var(--kh-on-accent);
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.kh-slide__badge--video {
  background: var(--kh-paper);
  color: var(--kh-text);
  border: 1px solid var(--kh-line);
}

/* Numaralı pager */
.kh-pager {
  display: flex;
  align-items: stretch;
  background: var(--kh-paper);
  border-block: 1px solid var(--kh-line);
}

.kh-pager__track {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.kh-pager__track::-webkit-scrollbar { display: none; }

.kh-pager__btn {
  flex: 0 0 auto;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--kh-muted);
  border-inline-end: 1px solid var(--kh-line);
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease);
}
.kh-pager__btn:hover { background: var(--kh-paper-2); color: var(--kh-text); }
.kh-pager__btn.is-active { background: var(--kh-accent); color: var(--kh-on-accent); }

.kh-pager__arrow {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kh-paper-2);
  border-inline-start: 1px solid var(--kh-line);
}
.kh-pager__arrow:hover { background: var(--kh-paper-3); }

/* Slider varyantı: klasik ızgara manşet */
.kh-hero-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .kh-hero-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------------
   10. Story şeridi
   --------------------------------------------------------- */
.kh-stories {
  display: flex;
  gap: clamp(14px, 1.6vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 8px 2px 14px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
}
.kh-stories::-webkit-scrollbar { display: none; }

/* Hepsi ekrana sığıyorsa şeridi genişliğe yay */
@media (min-width: 1100px) {
  .kh-stories {
    justify-content: space-between;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.kh-story {
  flex: 0 0 auto;
  width: clamp(76px, 8vw, 116px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  scroll-snap-align: start;
}

.kh-story__ring {
  width: clamp(68px, 7vw, 104px);
  height: clamp(68px, 7vw, 104px);
  border-radius: var(--kh-radius-pill);
  border: 2.5px solid var(--kh-cat, var(--kh-accent));
  padding: 3px;
  display: flex;
  transition: transform 0.25s var(--kh-ease);
}
.kh-story:hover .kh-story__ring { transform: scale(1.06); }
.kh-story.is-seen .kh-story__ring { border-color: var(--kh-line-2); }

.kh-story__ring img {
  width: 100%;
  height: 100%;
  object-fit: var(--kh-img-fit, cover);
  border-radius: var(--kh-radius-pill);
  border: 2px solid var(--kh-paper);
}

.kh-story__label {
  font-family: var(--kh-font-meta);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--kh-text);
}

/* Story görüntüleyici */
.kh-story-viewer {
  position: fixed;
  inset: 0;
  z-index: var(--kh-z-modal);
  background: rgba(8, 9, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.kh-story-viewer[data-open="true"] { display: flex; }

.kh-story-viewer__stage {
  position: relative;
  width: min(440px, 94vw);
  height: min(820px, 92vh);
  background: #000;
  border-radius: var(--kh-radius);
  overflow: hidden;
}

.kh-story-viewer__img {
  width: 100%;
  height: 100%;
  object-fit: var(--kh-img-fit, cover);
}

.kh-story-viewer__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 44%, rgba(0,0,0,0.5) 100%);
}

.kh-story-viewer__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
}
.kh-story-viewer__content h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 10px;
}

.kh-story-viewer__bars {
  position: absolute;
  top: 12px;
  inset-inline: 12px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.kh-story-viewer__bar {
  flex: 1;
  height: 3px;
  border-radius: var(--kh-radius-pill);
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.kh-story-viewer__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.kh-story-viewer__bar.is-done span { width: 100%; }
.kh-story-viewer__bar.is-active span { animation: kh-story-progress var(--kh-story-duration, 6s) linear forwards; }

@keyframes kh-story-progress {
  from { width: 0; }
  to { width: 100%; }
}

.kh-story-viewer__nav {
  position: absolute;
  inset-block: 0;
  width: 34%;
  z-index: 4;
  background: transparent;
}
.kh-story-viewer__nav--prev { inset-inline-start: 0; }
.kh-story-viewer__nav--next { inset-inline-end: 0; }

.kh-story-viewer__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 5;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kh-radius-pill);
  background: rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------
   11. Haber kartları
   --------------------------------------------------------- */
/*
 * Klasik gazete kartı: kutu/çerçeve yok. Görsel + altında metin.
 * Ayrım çerçeveyle değil, boşluk ve tipografiyle kurulur.
 */
.kh-card {
  position: relative;
  background: transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.kh-card__body { padding: 14px 0 0; }

/* İsteğe bağlı kutulu biçim (panelden "kutulu kart" seçilirse) */
.kh-cards-boxed .kh-card {
  background: var(--kh-paper);
  border: 1px solid var(--kh-line);
  transition: box-shadow 0.3s var(--kh-ease), border-color 0.3s var(--kh-ease);
}
.kh-cards-boxed .kh-card:hover,
.kh-cards-boxed .kh-card:focus-within {
  border-color: var(--kh-line-2);
  box-shadow: var(--kh-shadow);
}
.kh-cards-boxed .kh-card__body { padding: 14px 14px 16px; }

.kh-card--flat { background: transparent; }

.kh-card__media {
  position: relative;
  display: block;
  min-width: 0;
}

.kh-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--kh-radius);
  background: var(--kh-img-bg, var(--kh-paper-3));
}
.kh-frame--sm { border-radius: var(--kh-radius-sm); }

/* Kırpmasız görselde kalan boşluğu dolduran bulanık zemin */
.kh-frame__blur {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2) brightness(0.97);
  opacity: 0.5;
  pointer-events: none;
}

.kh-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--kh-ease);
}
.kh-card:hover .kh-frame img { transform: scale(1.045); }
.kh-card:focus-within .kh-frame img { transform: scale(1.045); }

.kh-ratio-16-9 { aspect-ratio: 16 / 9; }
.kh-ratio-4-3 { aspect-ratio: 4 / 3; }
.kh-ratio-3-2 { aspect-ratio: 3 / 2; }
.kh-ratio-1-1 { aspect-ratio: 1 / 1; }

/* Ok rozeti — görselin köşesinde, yalnızca etkileşimde belirir */
.kh-open-badge {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kh-accent);
  color: #fff;
  opacity: 0;
  transform: translate(0, 6px);
  transition: opacity 0.3s var(--kh-ease), transform 0.3s var(--kh-ease), background 0.3s var(--kh-ease);
}
.kh-card:hover .kh-open-badge,
.kh-card:focus-within .kh-open-badge {
  opacity: 1;
  transform: translate(0, 0);
}
@media (hover: none) {
  .kh-open-badge { display: none; }
}

.kh-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.kh-card__title {
  font-family: var(--kh-font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.kh-card--lg .kh-card__title { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); }
.kh-card--sm .kh-card__title { font-size: 1.08rem; }

.kh-card__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--kh-ease);
}
.kh-card:hover .kh-card__title a { background-size: 100% 1px; }
.kh-card:focus-within .kh-card__title a { background-size: 100% 1px; }

.kh-card__excerpt {
  color: var(--kh-muted);
  font-size: 0.95rem;
  line-height: 1.58;
  max-width: 68ch;
  text-wrap: pretty;
}

.kh-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--kh-font-meta);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--kh-muted);
  margin-top: auto;
  padding-top: 12px;
}

/* Yatay liste kartı */
.kh-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--kh-line);
}
.kh-list-item:last-child { border-bottom: none; }

.kh-list-item__media {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
}

.kh-list-item__title {
  font-family: var(--kh-font-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.008em;
  transition: color 0.25s var(--kh-ease);
}
.kh-list-item:hover .kh-list-item__title { color: var(--kh-accent); }

.kh-list-item__time {
  flex: 0 0 auto;
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
  color: var(--kh-muted);
}

/* Numaralı liste (çok okunanlar) */
.kh-rank-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 16px;
  border-bottom: 1px solid var(--kh-line);
}
.kh-rank-item:last-child { border-bottom: none; }

.kh-rank-item__num {
  font-family: var(--kh-font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--kh-line-2);
  width: 30px;
  flex-shrink: 0;
}
.kh-rank-item__title { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }

/* Yatay kaydırma şeridi */
.kh-scroller {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.kh-scroller > * {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}

/* Video kartı */
.kh-video-card__media { position: relative; }
.kh-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kh-video-card__play span {
  width: 58px;
  height: 58px;
  border-radius: var(--kh-radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--kh-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--kh-ease), background 0.3s var(--kh-ease);
}
.kh-card:hover .kh-video-card__play span {
  background: var(--kh-accent);
  color: #fff;
  transform: scale(1.08);
}
.kh-video-card__duration {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  z-index: 2;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   12. Piyasalar paneli
   --------------------------------------------------------- */
.kh-markets {
  --kh-up: #16a34a;
  --kh-down: #dc2626;
  background: var(--kh-paper);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: clamp(14px, 1.4vw, 22px);
}

.kh-markets__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 16px;
}

.kh-markets__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kh-markets__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--kh-accent) 12%, transparent);
  color: var(--kh-accent);
  flex: 0 0 auto;
}

.kh-markets__title {
  font-family: var(--kh-font-body);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.kh-markets__sub {
  font-size: 0.85rem;
  color: var(--kh-muted);
  margin: 0;
}

.kh-markets__tabs {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  background: var(--kh-paper-2);
  border-radius: 10px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.kh-markets__tabs::-webkit-scrollbar { display: none; }

.kh-markets__tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--kh-muted);
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease);
}
.kh-markets__tab:hover { color: var(--kh-text); }
.kh-markets__tab.is-active {
  background: var(--kh-accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.kh-markets__status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kh-markets__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--kh-muted);
  white-space: nowrap;
}

.kh-markets__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kh-up);
  background: color-mix(in srgb, var(--kh-up) 10%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.kh-markets__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kh-up);
}
@media (prefers-reduced-motion: no-preference) {
  .kh-markets__live i { animation: kh-pulse 2s var(--kh-ease) infinite; }
}
@keyframes kh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* Kartlar */
.kh-markets__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.kh-mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 14px 0;
  border: 1px solid var(--kh-line);
  border-radius: 12px;
  background: var(--kh-paper-2);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.25s var(--kh-ease), box-shadow 0.25s var(--kh-ease), transform 0.25s var(--kh-ease);
}
.kh-mcard:hover {
  transform: translateY(-2px);
  border-color: var(--kh-line-2);
  box-shadow: 0 6px 20px rgba(18, 19, 23, 0.08);
}
.kh-mcard.is-up { background: color-mix(in srgb, var(--kh-up) 4%, var(--kh-paper)); }
.kh-mcard.is-down { background: color-mix(in srgb, var(--kh-down) 4%, var(--kh-paper)); }

.kh-mcard__head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.kh-mcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--kh-tone, var(--kh-accent)) 14%, transparent);
  color: var(--kh-tone, var(--kh-accent));
}

.kh-mcard__name {
  font-family: var(--kh-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--kh-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kh-mcard__value {
  font-family: var(--kh-font-body);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kh-mcard__change {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kh-mcard.is-up .kh-mcard__change { color: var(--kh-up); }
.kh-mcard.is-down .kh-mcard__change { color: var(--kh-down); }
.kh-mcard__arrow { display: inline-flex; }
.kh-mcard__pct { margin-inline-start: 2px; }

.kh-mcard__spark {
  display: block;
  margin: 4px -14px 0;
  height: 62px;
}
.kh-mcard__spark svg { width: 100%; height: 100%; display: block; }
.kh-mcard__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.kh-mcard.is-up .kh-mcard__line { stroke: var(--kh-up); }
.kh-mcard.is-down .kh-mcard__line { stroke: var(--kh-down); }
.kh-mcard__area { stroke: none; }
.kh-mcard.is-up .kh-mcard__area { fill: color-mix(in srgb, var(--kh-up) 16%, transparent); }
.kh-mcard.is-down .kh-mcard__area { fill: color-mix(in srgb, var(--kh-down) 16%, transparent); }

.kh-mcard[hidden] { display: none; }

/* Değer değiştiğinde kısa vurgu */
.kh-mcard.is-tick .kh-mcard__value { animation: kh-tick 0.9s var(--kh-ease); }
@keyframes kh-tick {
  0% { background: color-mix(in srgb, currentColor 14%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .kh-mcard.is-tick .kh-mcard__value { animation: none; }
}

/* Alt bant */
.kh-markets__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--kh-line);
}

.kh-markets__note {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.92rem;
  color: var(--kh-muted);
  min-width: 0;
}
.kh-markets__note-icon { color: var(--kh-up); display: inline-flex; }
.kh-markets__note a { color: var(--kh-text); font-weight: 500; }
.kh-markets__note a:hover { color: var(--kh-accent); }

.kh-markets__flash {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kh-accent);
  font-weight: 800;
  white-space: nowrap;
}
.kh-markets__flash i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kh-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .kh-markets__flash i { animation: kh-pulse 1.6s var(--kh-ease) infinite; }
}

.kh-markets__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--kh-line-2);
  border-radius: 10px;
  background: var(--kh-paper);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.2s var(--kh-ease), border-color 0.2s var(--kh-ease), color 0.2s var(--kh-ease);
}
.kh-markets__cta:hover {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  color: #fff;
}

@media (max-width: 720px) {
  .kh-markets__tabs { margin-inline-start: 0; order: 3; width: 100%; }
  .kh-markets__status { margin-inline-start: auto; }
  .kh-markets__grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .kh-mcard__spark { height: 48px; }
  .kh-markets__cta { width: 100%; justify-content: center; }
}


/* ---------------------------------------------------------
   12b. Piyasa sayfaları (genel + detay)
   --------------------------------------------------------- */
:root { --kh-up: #16a34a; --kh-down: #dc2626; }

.kh-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.kh-page-head__title {
  font-family: var(--kh-font-display);
  font-size: var(--kh-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.kh-page-head__desc {
  color: var(--kh-muted);
  max-width: 68ch;
  margin-top: 8px;
  text-wrap: pretty;
}
.kh-page-head__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Grup sekmeleri */
.kh-mtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--kh-paper-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 8px;
}
.kh-mtabs__item {
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--kh-muted);
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease);
}
.kh-mtabs__item:hover { color: var(--kh-text); }
.kh-mtabs__item.is-active { background: var(--kh-accent); color: #fff; }

/* Tablo */
.kh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  background: var(--kh-paper);
}
.kh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-variant-numeric: tabular-nums;
}
.kh-table th,
.kh-table td {
  padding: 13px 16px;
  text-align: start;
  border-bottom: 1px solid var(--kh-line);
  font-size: 0.95rem;
}
.kh-table thead th {
  font-family: var(--kh-font-meta);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kh-muted);
  background: var(--kh-paper-2);
  font-weight: 700;
  white-space: nowrap;
}
.kh-table tbody tr:last-child th,
.kh-table tbody tr:last-child td { border-bottom: none; }
.kh-table tbody tr:hover { background: var(--kh-paper-2); }
.kh-table .kh-num { text-align: end; white-space: nowrap; }
.kh-table__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.kh-table__name:hover { color: var(--kh-accent); }
.kh-table__name .kh-mcard__icon { width: 26px; height: 26px; }

.kh-up { color: var(--kh-up); font-weight: 700; }
.kh-down { color: var(--kh-down); font-weight: 700; }

.kh-minispark { width: 120px; height: 34px; display: block; }
.kh-minispark.is-up .kh-mcard__line { stroke: var(--kh-up); }
.kh-minispark.is-down .kh-mcard__line { stroke: var(--kh-down); }

/* Detay başlığı */
.kh-mdetail__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--kh-ink);
  margin-bottom: 14px;
}
.kh-mdetail__icon { width: 54px; height: 54px; }
.kh-mdetail__id { min-width: 0; }
.kh-mdetail__price {
  margin-inline-start: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.kh-mdetail__price strong {
  font-family: var(--kh-font-body);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.kh-mdetail__unit { color: var(--kh-muted); font-weight: 600; }
.kh-mdetail__price.is-up .kh-mcard__change { color: var(--kh-up); }
.kh-mdetail__price.is-down .kh-mcard__change { color: var(--kh-down); }

.kh-mdetail__desc {
  color: var(--kh-muted);
  max-width: 72ch;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.kh-mdetail__chart {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  background: var(--kh-paper-2);
  padding: 12px 12px 0;
  overflow: hidden;
}
.kh-mdetail__chart svg {
  width: 100%;
  height: clamp(180px, 26vw, 280px);
  display: block;
}
.kh-mdetail__chart.is-up .kh-mcard__line { stroke: var(--kh-up); }
.kh-mdetail__chart.is-down .kh-mcard__line { stroke: var(--kh-down); }
.kh-mdetail__chart.is-up .kh-mcard__area { fill: color-mix(in srgb, var(--kh-up) 15%, transparent); }
.kh-mdetail__chart.is-down .kh-mcard__area { fill: color-mix(in srgb, var(--kh-down) 15%, transparent); }
.kh-mdetail__axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 4px;
  border-top: 1px solid var(--kh-line);
  margin-top: 8px;
  font-family: var(--kh-font-meta);
  font-size: 0.82rem;
  color: var(--kh-muted);
}

/* Özet kutuları */
.kh-stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--kh-line);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  overflow: hidden;
  margin: 0;
}
.kh-stats__item {
  background: var(--kh-paper);
  padding: 16px 18px;
}
.kh-stats dt {
  font-family: var(--kh-font-meta);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kh-muted);
  margin-bottom: 5px;
}
.kh-stats dd {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .kh-mdetail__price { margin-inline-start: 0; width: 100%; }
}

.kh-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.kh-tag {
  font-family: var(--kh-font-meta);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 6px 14px;
  border-radius: var(--kh-radius-pill);
  border: 1px solid var(--kh-line);
  color: var(--kh-muted);
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease), border-color 0.2s var(--kh-ease);
}
.kh-tag:hover {
  background: var(--kh-text);
  border-color: var(--kh-text);
  color: var(--kh-paper);
}

/* ---------------------------------------------------------
   13. Bülten / anket / reklam
   --------------------------------------------------------- */
.kh-panel {
  position: relative;
  background: var(--kh-paper);
  color: var(--kh-text);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 28px;
  box-shadow: var(--kh-shadow);
  overflow: hidden;
}
.kh-panel::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--kh-accent);
}
.kh-panel p { color: var(--kh-muted); }

.kh-field {
  width: 100%;
  border-radius: var(--kh-radius-sm);
  border: 1px solid var(--kh-line);
  background: var(--kh-paper);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--kh-ease);
}
.kh-field:focus { outline: none; border-color: var(--kh-accent); }

.kh-panel .kh-field {
  background: var(--kh-paper-2);
  border-color: var(--kh-line);
}

.kh-form-note { font-size: 0.9rem; margin-top: 10px; }
.kh-form-note.is-success { color: #10b981; }
.kh-form-note.is-error { color: var(--kh-accent); }

.kh-poll {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 24px;
  background: var(--kh-paper);
  box-shadow: var(--kh-shadow);
}
.kh-poll__question {
  font-family: var(--kh-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 6px;
}
.kh-poll__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.kh-poll__option {
  position: relative;
  text-align: start;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  transition: border-color 0.2s var(--kh-ease);
}
.kh-poll__option:hover { border-color: var(--kh-accent); }
.kh-poll__option.is-chosen { border-color: var(--kh-accent); }
.kh-poll__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--kh-accent-soft);
  transition: width 0.6s var(--kh-ease);
}
.kh-poll__label, .kh-poll__pct { position: relative; z-index: 1; }
.kh-poll__pct { float: inline-end; font-family: var(--kh-font-meta); color: var(--kh-muted); display: none; }
.kh-poll.is-voted .kh-poll__pct { display: inline; }
.kh-poll__total { margin-top: 14px; font-family: var(--kh-font-meta); font-size: 0.84rem; color: var(--kh-muted); }

.kh-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  margin-block: 24px;
}
.kh-ad__label {
  font-family: var(--kh-font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kh-muted);
}
.kh-ad--placeholder {
  border: 1px dashed var(--kh-line-2);
  border-radius: var(--kh-radius-sm);
  padding: 40px 16px;
  color: var(--kh-muted);
  font-family: var(--kh-font-meta);
}

/* Metin reklamı (varsayılan KretaWeb çağrısı) — bant değil, sade bir kart */
.kh-ad__cta-link {
  display: inline-flex;
  width: 100%;
  max-width: 480px;
}
.kh-ad__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--kh-line-2);
  border-radius: var(--kh-radius-sm);
  background: var(--kh-paper-2);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.2s var(--kh-ease), border-color 0.2s var(--kh-ease);
}
.kh-ad__cta-link:hover .kh-ad__cta { background: var(--kh-accent-soft); border-color: var(--kh-accent); color: var(--kh-accent); }
.kh-ad__cta-icon { display: inline-flex; color: var(--kh-accent); flex: none; }

.kh-ad__body { width: min(100%, 970px); }
.kh-ad__body > img,
.kh-ad__body > a > img,
.kh-ad__body iframe { max-width: 100%; height: auto; }
.kh-ad--sidebar_top, .kh-ad--sidebar_sticky { margin-block: 16px; }
.kh-mobile-sticky-ad {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--kh-z-sticky);
  display: none;
  padding: 6px;
  background: var(--kh-paper);
  border-top: 1px solid var(--kh-line);
  text-align: center;
}
.kh-mobile-sticky-ad .kh-ad { margin: 0; }
@media (max-width: 767px) {
  .kh-mobile-sticky-ad { display: block; }
  .kh-mobile-sticky-ad .kh-ad__label { display: none; }
  .kh-mobile-sticky-ad .kh-ad__body { max-height: 56px; overflow: hidden; }
}

/* Mobile layout guardrails: prevent flex/grid children and long words from pushing pages sideways. */
.kh-container > *,
.kh-grid > *,
.kh-split > *,
.kh-hero-grid > *,
.kh-slide__inner > *,
.kh-footer__main > *,
.kh-list-item > * { min-width: 0; }

.kh-card__title,
.kh-list-item__title,
.kh-slide__title,
.kh-archive-head__title,
.kh-single__title,
.kh-page-head__title { overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .kh-container { padding-inline: 14px; }
  .kh-section { margin-top: 2.5rem; }
  .kh-topbar__inner { gap: 8px; }
  .kh-topbar__inner > :last-child { display: none; }
  .kh-topbar__group { gap: 8px; overflow: hidden; white-space: nowrap; }
  .kh-header__bar { gap: 10px; padding-block: 12px; }
  .kh-logo { font-size: 1.7rem; }
  .kh-slider__track, .kh-slide { height: auto; }
  .kh-slide__panel { padding: 22px 14px 26px; }
  .kh-slide__title { max-width: none; }
  .kh-pager__btn { min-width: 42px; }
  .kh-pager__arrow { width: 40px; }
  .kh-list-item { align-items: flex-start; gap: 12px; padding-block: 14px; }
  .kh-list-item__media { width: 88px; height: 72px; }
  .kh-list-item__time { display: block; margin-top: 5px; }
  .kh-section-head { align-items: flex-start; gap: 10px; }
  .kh-section-head__link { font-size: 0.76rem; padding-bottom: 12px; }
  .kh-archive-head--color, .kh-archive-head--hero .kh-archive-head__inner { padding: 22px 18px; }
}

/* ---------------------------------------------------------
   14. Tekil haber sayfası
   --------------------------------------------------------- */
.kh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
  color: var(--kh-muted);
}
.kh-breadcrumb a:hover { color: var(--kh-accent); }

.kh-single__title {
  font-size: var(--kh-h1);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.kh-single__dek {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  color: var(--kh-muted);
  line-height: 1.55;
  max-width: 62ch;
  margin-top: 16px;
}

.kh-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.kh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kh-radius-pill);
  background: var(--kh-paper-3);
  color: var(--kh-text);
  font-family: var(--kh-font-meta);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.kh-avatar img { border-radius: var(--kh-radius-pill); }

.kh-share-rail {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: max-content;
}

.kh-share-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--kh-radius-pill);
  border: 1px solid var(--kh-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kh-muted);
  background: var(--kh-paper);
  transition: background 0.2s var(--kh-ease), color 0.2s var(--kh-ease), border-color 0.2s var(--kh-ease);
}
.kh-share-btn:hover {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  color: #fff;
}
.kh-share-btn.is-copied { background: #047857; border-color: #047857; color: #fff; }

.kh-entry {
  max-width: 70ch;
  font-size: 1.09rem;
  line-height: 1.8;
}
.kh-entry > * + * { margin-top: 1.35rem; }
.kh-entry h2 { font-size: var(--kh-h3); margin-top: 2.4rem; }
.kh-entry h3 { font-size: 1.2rem; margin-top: 2rem; }
.kh-entry a { color: var(--kh-accent); text-underline-offset: 3px; text-decoration: underline; }
.kh-entry ul, .kh-entry ol { padding-inline-start: 1.4rem; }
.kh-entry ul li { list-style: disc; margin-top: 0.5rem; }
.kh-entry ol li { list-style: decimal; margin-top: 0.5rem; }
.kh-entry img { border-radius: var(--kh-radius-sm); }
.kh-entry figcaption {
  margin-top: 8px;
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
  color: var(--kh-muted);
}
.kh-entry blockquote {
  margin: 2.2rem 0;
  padding-inline-start: 22px;
  border-inline-start: 3px solid var(--kh-accent);
  font-family: var(--kh-font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.5;
}
.kh-entry blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--kh-font-meta);
  font-style: normal;
  font-size: 0.86rem;
  color: var(--kh-muted);
}

/* Canlı gelişmeler */
.kh-live {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  overflow: hidden;
  margin-block: 28px;
}
.kh-live__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.kh-live__item {
  padding: 18px;
  border-bottom: 1px solid var(--kh-line);
}
.kh-live__item:last-child { border-bottom: none; }
.kh-live__time {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--kh-accent);
}

/* İlgili haber kutusu (metin içi) */
.kh-related-inline {
  border-block: 2px solid var(--kh-line);
  padding-block: 16px;
  margin-block: 28px;
}
.kh-related-inline__label {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--kh-accent);
}
.kh-related-inline a {
  display: block;
  margin-top: 8px;
  font-family: var(--kh-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
}
.kh-related-inline a:hover { color: var(--kh-accent); }

.kh-author-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--kh-line);
  margin-top: 40px;
  padding-top: 32px;
}

/* Okuma ilerlemesi */
.kh-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--kh-accent);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---------------------------------------------------------
   15. Yorumlar
   --------------------------------------------------------- */
.kh-comment {
  display: flex;
  gap: 14px;
  padding-block: 20px;
  border-bottom: 1px solid var(--kh-line);
}
.kh-comment__body { flex: 1; min-width: 0; }
.kh-comment__author { font-weight: 700; font-size: 0.95rem; }
.kh-comment__time { font-family: var(--kh-font-meta); font-size: 0.82rem; color: var(--kh-muted); }
.kh-comment__actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--kh-font-meta);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--kh-muted);
}
.kh-comment__actions button:hover { color: var(--kh-accent); }
.kh-comment .children { padding-inline-start: 36px; }

/* ---------------------------------------------------------
   16. Footer
   --------------------------------------------------------- */
.kh-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--kh-paper-2);
  color: var(--kh-muted);
  border-top: 3px solid var(--kh-accent);
}

.kh-footer__main {
  display: grid;
  gap: 40px;
  padding-block: 56px;
}
@media (min-width: 640px) { .kh-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kh-footer__main { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }

.kh-footer__title {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--kh-text);
  margin-bottom: 16px;
}
.kh-footer a:hover { color: var(--kh-accent); }
.kh-footer__links li + li { margin-top: 10px; }
.kh-footer__links a { font-size: 0.95rem; }

.kh-footer__bottom {
  border-top: 1px solid var(--kh-line);
}
.kh-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px;
  font-size: 0.8rem;
  color: var(--kh-muted);
}
.kh-credit { font-family: var(--kh-font-meta); letter-spacing: 0.02em; }
.kh-credit a { color: var(--kh-text); font-weight: 600; }
.kh-credit a:hover { color: var(--kh-accent); }

/* Varyantlar */
.kh-footer--white { background: var(--kh-paper); }
.kh-footer--minimal .kh-footer__main { display: none; }

/* Geri dön butonu */
.kh-to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: var(--kh-z-sticky);
  width: 44px;
  height: 44px;
  border-radius: var(--kh-radius-pill);
  background: var(--kh-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--kh-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--kh-ease), transform 0.3s var(--kh-ease), visibility 0.3s;
}
.kh-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------------------
   17. Arşiv / sayfalama
   --------------------------------------------------------- */
.kh-archive-head {
  padding-block: 34px;
  border-bottom: 1px solid var(--kh-line);
  margin-bottom: 34px;
}
.kh-archive-head__title { font-size: var(--kh-h1); font-weight: 900; }
.kh-archive-head__desc { color: var(--kh-muted); margin-top: 10px; max-width: 70ch; }

.kh-archive-head--hero {
  position: relative;
  border-bottom: none;
  padding: 0;
  overflow: hidden;
  border-radius: var(--kh-radius);
  color: #fff;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}
/* Kapak görseli arka plan gibi davranır, bu yüzden her zaman doldurur. */
.kh-archive-head--hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kh-archive-head--hero .kh-archive-head__inner {
  position: relative;
  padding: 32px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.kh-archive-head--hero .kh-archive-head__title { color: #fff; }
.kh-archive-head--hero .kh-archive-head__desc { color: rgba(255,255,255,0.8); }

.kh-archive-head--color {
  background: var(--kh-cat, var(--kh-accent));
  color: #fff;
  border-radius: var(--kh-radius);
  padding: 36px;
  border-bottom: none;
}
.kh-archive-head--color .kh-archive-head__title { color: #fff; }
.kh-archive-head--color .kh-archive-head__desc { color: rgba(255, 255, 255, 0.85); }

.kh-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.kh-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  font-family: var(--kh-font-meta);
  font-weight: 700;
  transition: background 0.2s var(--kh-ease);
}
.kh-pagination .page-numbers:hover { background: var(--kh-paper-2); }
.kh-pagination .page-numbers.current {
  background: var(--kh-accent);
  border-color: var(--kh-accent);
  color: #fff;
}

/* ---------------------------------------------------------
   18. Özel modüller (gazete, radyo, şehir ekranı, özet)
   --------------------------------------------------------- */
/* =========================================================
   Araçlar (hava durumu, namaz, eczane, döviz, deprem, radyo)
   ========================================================= */
.kh-tool-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.kh-tool-card {
  display: block;
  background: var(--kh-paper);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 22px;
  transition: transform 0.25s var(--kh-ease), box-shadow 0.25s var(--kh-ease), border-color 0.25s var(--kh-ease);
}
.kh-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--kh-accent);
  box-shadow: var(--kh-shadow);
}
.kh-tool-card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--kh-accent-soft);
  color: var(--kh-accent);
}
.kh-tool-card__title { font-size: 1.2rem; margin-top: 14px; }
.kh-tool-card__desc { color: var(--kh-muted); font-size: 0.93rem; margin-top: 6px; line-height: 1.55; }
.kh-tool-card__go {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  color: var(--kh-accent);
  font-size: 0.88rem;
}

.kh-tool-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--kh-line);
  padding-bottom: 18px;
}
.kh-tool-head__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kh-accent);
  color: #fff;
  flex-shrink: 0;
}
.kh-tool-head > a { margin-inline-start: auto; }

.kh-tool-search { display: flex; gap: 10px; flex-wrap: wrap; }
.kh-tool-search .kh-field { flex: 1; min-width: 200px; }

.kh-tool-side {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 20px;
}
.kh-tool-side__list li { padding-block: 9px; border-bottom: 1px solid var(--kh-line); }
.kh-tool-side__list li:last-child { border-bottom: none; }
.kh-tool-side__list a:hover { color: var(--kh-accent); }

/* Hava durumu */
.kh-weather-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: var(--kh-radius);
  border: 1px solid var(--kh-line);
  background: linear-gradient(120deg, var(--kh-paper), var(--kh-accent-soft));
  padding: 22px 26px;
}
.kh-weather-hero__now { display: flex; align-items: center; gap: 16px; color: var(--kh-accent); }
.kh-weather-hero__temp { display: block; font-family: var(--kh-font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--kh-text); }
.kh-weather-hero__city { font-family: var(--kh-font-meta); color: var(--kh-muted); }
.kh-weather-hero__days { display: flex; gap: 18px; flex-wrap: wrap; }
.kh-weather-hero__day {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--kh-font-meta);
  font-size: 0.84rem;
  color: var(--kh-muted);
  min-width: 52px;
}
.kh-weather-hero__day strong { color: var(--kh-text); font-size: 1rem; }
.kh-weather-hero__day .kh-weather-icon { color: var(--kh-accent); }

.kh-weather-now {
  display: grid;
  gap: 22px;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  padding: 24px;
  background: var(--kh-paper);
}
@media (min-width: 700px) { .kh-weather-now { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }

.kh-weather-now__main { display: flex; align-items: center; gap: 18px; color: var(--kh-accent); }
.kh-weather-now__temp { font-family: var(--kh-font-display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--kh-text); }
.kh-weather-now__desc { font-size: 1.05rem; color: var(--kh-text); margin-top: 2px; }
.kh-weather-now__city { font-family: var(--kh-font-meta); color: var(--kh-muted); font-size: 0.9rem; }

.kh-weather-now__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.kh-weather-now__stats li {
  background: var(--kh-paper-2);
  border-radius: var(--kh-radius-sm);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.kh-weather-now__stats span { font-family: var(--kh-font-meta); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--kh-muted); }
.kh-weather-now__stats strong { font-size: 1.12rem; }

.kh-weather-hours {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.kh-weather-hours::-webkit-scrollbar { display: none; }
.kh-weather-hours__item {
  flex: 0 0 auto;
  min-width: 78px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  background: var(--kh-paper);
}
.kh-weather-hours__item .kh-weather-icon { color: var(--kh-accent); }
.kh-weather-hours__time { font-family: var(--kh-font-meta); font-size: 0.84rem; color: var(--kh-muted); }
.kh-weather-hours__rain { font-family: var(--kh-font-meta); font-size: 0.78rem; color: #1d4ed8; }

.kh-weather-days { border: 1px solid var(--kh-line); border-radius: var(--kh-radius); overflow: hidden; }
.kh-weather-days__row {
  display: grid;
  grid-template-columns: 1.2fr auto 1.4fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--kh-line);
}
.kh-weather-days__row:last-child { border-bottom: none; }
.kh-weather-days__row:nth-child(odd) { background: var(--kh-paper-2); }
.kh-weather-days__day { font-weight: 600; display: grid; }
.kh-weather-days__day small { font-family: var(--kh-font-meta); color: var(--kh-muted); font-weight: 400; }
.kh-weather-days__icon { color: var(--kh-accent); display: flex; }
.kh-weather-days__desc { color: var(--kh-muted); font-size: 0.92rem; }
.kh-weather-days__rain { font-family: var(--kh-font-meta); color: #1d4ed8; font-size: 0.88rem; }
.kh-weather-days__temp { display: flex; gap: 8px; align-items: baseline; }
.kh-weather-days__temp small { color: var(--kh-muted); }

@media (max-width: 640px) {
  .kh-weather-days__row { grid-template-columns: 1fr auto auto; }
  .kh-weather-days__desc, .kh-weather-days__rain { display: none; }
}

/* Namaz vakitleri */
.kh-prayer-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.kh-prayer-card {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  padding: 16px;
  text-align: center;
  background: var(--kh-paper);
}
.kh-prayer-card.is-next { border-color: var(--kh-accent); background: var(--kh-accent-soft); }
.kh-prayer-card__label { font-family: var(--kh-font-meta); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--kh-muted); display: block; }
.kh-prayer-card__time { font-family: var(--kh-font-display); font-size: 1.6rem; font-weight: 800; }

/* Depremler */
.kh-quake-list { display: grid; gap: 10px; }
.kh-quake {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  padding: 12px 16px;
  background: var(--kh-paper);
}
.kh-quake__mag {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kh-font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  background: #6b7280;
}
.kh-quake.is-low .kh-quake__mag { background: #047857; }
.kh-quake.is-mid .kh-quake__mag { background: #b45309; }
.kh-quake.is-high .kh-quake__mag { background: var(--kh-accent); }
.kh-quake__body { display: grid; gap: 2px; }

/* Döviz çevirici */
.kh-converter__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kh-converter__row .kh-field { max-width: 180px; }
.kh-converter__out { font-family: var(--kh-font-display); font-size: 1.4rem; font-weight: 800; }

/* Eczane */
.kh-pharmacy-list { display: grid; gap: 10px; }
.kh-pharmacy {
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  padding: 14px 18px;
  transition: border-color 0.2s var(--kh-ease);
}
.kh-pharmacy:hover { border-color: var(--kh-line-2); }

.kh-pharmacy-embed { width: 100%; }
.kh-pharmacy-embed a {
  display: block;
  border-radius: var(--kh-radius-sm) var(--kh-radius-sm) 0 0;
  overflow: hidden;
  border: 1px solid var(--kh-line);
  border-bottom: none;
}
.kh-pharmacy-embed img { width: 100%; display: block; }
.kh-pharmacy-embed iframe {
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1400px;
  border: 1px solid var(--kh-line);
  border-radius: 0 0 var(--kh-radius-sm) var(--kh-radius-sm);
}

.kh-notice { border: 1px dashed var(--kh-line-2); border-radius: var(--kh-radius-sm); padding: 20px; background: var(--kh-paper-2); }

/* Radyo sayfası — Haber TV ile aynı "yayın" dili: koyu sahne + rozet + ekolayzer */
.kh-radio-page { display: block; }

.kh-radio-page__now {
  position: relative;
  overflow: hidden;
  border-radius: var(--kh-radius);
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(155deg, #14161c 0%, #0b0c10 72%);
  color: #fff;
}
.kh-radio-page__now-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.kh-radio-page__now-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kh-radio-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.kh-radio-page__badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .kh-radio-page.is-playing .kh-radio-page__badge i { animation: kh-pulse 1.6s var(--kh-ease) infinite; }
}

/* Ekolayzer — Haber TV'dekiyle aynı dil */
.kh-radio-page__eq { position: relative; display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0.35; }
.kh-radio-page__eq i { display: block; width: 3px; height: 35%; background: #fff; border-radius: 1px; }
.kh-radio-page__eq.is-live { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .kh-radio-page__eq.is-live i { animation: kh-tv-eq 0.9s ease-in-out infinite; }
  .kh-radio-page__eq.is-live i:nth-child(2) { animation-delay: 0.12s; }
  .kh-radio-page__eq.is-live i:nth-child(3) { animation-delay: 0.24s; }
  .kh-radio-page__eq.is-live i:nth-child(4) { animation-delay: 0.36s; }
}

.kh-radio-page__kicker {
  position: relative;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 22px 0 6px;
}
.kh-radio-page__title {
  position: relative;
  font-family: var(--kh-font-display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.28;
  min-height: 2.4em;
  text-wrap: balance;
}

.kh-radio-page .kh-radio__controls { position: relative; }
.kh-radio-page .kh-radio__btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.kh-radio-page .kh-radio__btn:hover { background: rgba(255, 255, 255, 0.18); }
.kh-radio-page .kh-radio__btn--main { background: var(--kh-accent); }
.kh-radio-page .kh-radio__btn--main:hover { background: var(--kh-accent-hover); }
.kh-radio-page__speed {
  width: auto;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kh-radio-page__next {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}
.kh-radio-page__next span { color: rgba(255, 255, 255, 0.92); font-weight: 600; }

.kh-radio-page__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 2px 0;
  font-size: 0.86rem;
  color: var(--kh-muted);
}

.kh-radio-page--embed .kh-radio-page__now { padding: 20px; }
.kh-radio-page--embed .kh-radio-page__foot { display: none; }

/* =========================================================
   Dijital gazete — Türk gazetesi ön sayfa düzeni
   (taşma/kırılmaya karşı savunmalı yazıldı)
   ========================================================= */
.kh-gazette {
  background: #fff;
  color: #101114;
  border: 1px solid #c9cad0;
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06), 0 10px 30px rgba(16, 17, 20, 0.08);
  padding: clamp(12px, 1.6vw, 26px);
  font-family: var(--kh-font-display);
  overflow: hidden;
}
.kh-gazette * { min-width: 0; }
.kh-gazette a { color: inherit; }
.kh-gazette a:hover { color: var(--kh-accent); }
.kh-gazette h2,
.kh-gazette h3 { overflow-wrap: anywhere; }

/* Üst bant */
.kh-gazette__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #101114;
  color: #fff;
  padding: 8px 14px;
  font-family: var(--kh-font-meta);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Logo künyesi */
.kh-gazette__masthead {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding-block: 16px 12px;
  border-bottom: 3px solid #101114;
  margin-bottom: 16px;
}
@media (min-width: 820px) {
  .kh-gazette__masthead {
    grid-template-columns: 1fr auto 1fr;
    text-align: start;
  }
  .kh-gazette__masthead > :first-child { justify-self: start; }
  .kh-gazette__masthead > :last-child { justify-self: end; text-align: end; }
}

.kh-gazette__logo {
  font-size: clamp(1.9rem, 1rem + 4.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.kh-gazette__logo span { color: var(--kh-accent); }

.kh-gazette__meta {
  font-family: var(--kh-font-meta);
  font-size: 0.78rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4b4d55;
}

/* Ana ızgara: sol sütun + manşet + sağ sütun */
.kh-gazette__grid {
  display: grid;
  gap: 18px;
  align-items: start;
}
/* Sol dar sütun — yalnızca geniş ekranda açılır */
.kh-gazette__side { display: none; gap: 14px; align-content: start; }

@media (min-width: 760px) {
  .kh-gazette__grid { grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr); }
}
@media (min-width: 1120px) {
  .kh-gazette__grid { grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.6fr) minmax(210px, 1fr); }
  .kh-gazette__side { display: grid; }
}
.kh-gazette__side-item { border-bottom: 1px solid #d6d7dc; padding-bottom: 12px; }
.kh-gazette__side-item:last-child { border-bottom: none; }
.kh-gazette__side-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: var(--kh-img-bg, #f2f2f4);
  border: 1px solid #e3e4e8;
  margin-bottom: 8px;
}
.kh-gazette__side-title { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }

/* Manşet */
.kh-gazette__lead {
  border-bottom: 2px solid #101114;
  padding-bottom: 18px;
}
.kh-gazette__kicker {
  display: inline-block;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  padding: 4px 11px;
  margin-bottom: 10px;
}
.kh-gazette__headline {
  font-size: clamp(1.7rem, 0.9rem + 3.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}
.kh-gazette__lead-img {
  margin-top: 14px;
  border: 1px solid #c9cad0;
  background: var(--kh-img-bg, #f2f2f4);
}
.kh-gazette__lead-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
.kh-gazette__caption {
  font-family: var(--kh-font-meta);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6d75;
  margin-top: 6px;
}
.kh-gazette__spot {
  font-family: var(--kh-font-body);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-top: 12px;
  color: #23252b;
}
.kh-gazette__spot::first-letter {
  float: inline-start;
  font-family: var(--kh-font-display);
  font-size: 3.1rem;
  line-height: 0.82;
  font-weight: 900;
  padding-inline-end: 9px;
  padding-top: 3px;
  color: var(--kh-accent);
}

/* Sağ kolon kutuları */
.kh-gazette__aside { display: grid; gap: 14px; align-content: start; }
.kh-gazette__box {
  border: 1px solid #c9cad0;
  padding: 12px;
}
.kh-gazette__box--accent { border-color: var(--kh-accent); border-top: 4px solid var(--kh-accent); }
.kh-gazette__box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: var(--kh-img-bg, #f2f2f4);
  margin-bottom: 9px;
  border: 1px solid #e3e4e8;
  display: block;
}
.kh-gazette__box-title { font-size: 1.02rem; font-weight: 800; line-height: 1.25; }
.kh-gazette__box-cat {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--kh-accent);
  display: block;
  margin-bottom: 5px;
}
.kh-gazette__list li {
  padding-block: 8px;
  border-bottom: 1px solid #e3e4e8;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}
.kh-gazette__list li:last-child { border-bottom: none; }

/* Alt bant */
.kh-gazette__bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid #101114;
  display: grid;
  gap: 18px;
}
@media (min-width: 620px) { .kh-gazette__bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .kh-gazette__bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kh-gazette__col {
  border-inline-end: 1px solid #d6d7dc;
  padding-inline-end: 18px;
  min-width: 0;
}
.kh-gazette__col:last-child { border-inline-end: none; padding-inline-end: 0; }
@media (max-width: 999px) {
  .kh-gazette__col:nth-child(2n) { border-inline-end: none; padding-inline-end: 0; }
}
@media (max-width: 619px) {
  .kh-gazette__col { border-inline-end: none; padding-inline-end: 0; border-bottom: 1px solid #d6d7dc; padding-bottom: 16px; }
  .kh-gazette__col:last-child { border-bottom: none; }
}
.kh-gazette__col img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: var(--kh-img-bg, #f2f2f4);
  margin-bottom: 9px;
  border: 1px solid #e3e4e8;
  display: block;
}
.kh-gazette__col-title { font-size: 1.1rem; font-weight: 800; line-height: 1.22; }
.kh-gazette__col-text {
  font-family: var(--kh-font-body);
  font-size: 0.89rem;
  line-height: 1.55;
  color: #3d3f47;
  margin-top: 7px;
}

.kh-gazette__footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 3px double #101114;
  text-align: center;
  font-family: var(--kh-font-meta);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b4d55;
}

/* Gazete sayfası yazdırma */
@media print {
  .kh-gazette { border: none; box-shadow: none; padding: 0; }
  .kh-gazette__strip { background: #fff; color: #101114; border-block: 1px solid #101114; }
}

/* Eski basit gazete stili (yedek) */
.kh-paper-edition {
  background: #ffffff;
  color: #14151a;
  border: 1px solid #d9dade;
  padding: clamp(20px, 3vw, 48px);
  font-family: var(--kh-font-display);
}

.kh-paper-edition__masthead {
  text-align: center;
  border-bottom: 4px double #14151a;
  padding-bottom: 16px;
  margin-bottom: 8px;
}
.kh-paper-edition__name {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}
.kh-paper-edition__strap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--kh-font-meta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  border-block: 1px solid #14151a;
  padding-block: 6px;
  margin-bottom: 24px;
}
.kh-paper-edition__columns {
  column-gap: 32px;
  column-rule: 1px solid #d9dade;
}
@media (min-width: 768px) { .kh-paper-edition__columns { column-count: 2; } }
@media (min-width: 1100px) { .kh-paper-edition__columns { column-count: 3; } }

.kh-paper-article {
  break-inside: avoid;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9dade;
}
.kh-paper-article__title {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.kh-paper-article__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  font-family: var(--kh-font-body);
}
.kh-paper-article__lead::first-letter {
  float: inline-start;
  font-family: var(--kh-font-display);
  font-size: 3.1rem;
  line-height: 0.82;
  font-weight: 900;
  padding-inline-end: 8px;
  padding-top: 4px;
}
.kh-paper-article--lead .kh-paper-article__title { font-size: 2rem; }
.kh-paper-article img { margin-bottom: 10px; }
.kh-paper-article__byline {
  font-family: var(--kh-font-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--kh-accent);
  margin-bottom: 6px;
}

/* Haber radyosu çalar */
.kh-radio {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 76px;
  z-index: var(--kh-z-sticky);
  width: min(340px, calc(100vw - 40px));
  background: var(--kh-paper);
  color: var(--kh-text);
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius);
  box-shadow: var(--kh-shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--kh-ease);
}
.kh-radio[data-open="true"] { transform: none; opacity: 1; visibility: visible; }

.kh-radio__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}
.kh-radio__body { padding: 16px; }
.kh-radio__now {
  font-family: var(--kh-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 14px;
  min-height: 2.6em;
}
.kh-radio__controls { display: flex; align-items: center; gap: 10px; }
.kh-radio__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--kh-radius-pill);
  background: var(--kh-paper-2);
  color: var(--kh-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--kh-ease);
}
.kh-radio__btn:hover { background: var(--kh-paper-3); }
.kh-radio__btn--main { width: 52px; height: 52px; background: var(--kh-accent); color: #fff; }
.kh-radio__btn--main:hover { background: var(--kh-accent-hover); }
.kh-radio__queue {
  margin-top: 14px;
  max-height: 168px;
  overflow-y: auto;
  font-size: 0.88rem;
}
.kh-radio__queue li {
  padding: 8px 0;
  border-top: 1px solid var(--kh-line);
  color: var(--kh-muted);
  cursor: pointer;
}
.kh-radio__queue li.is-playing { color: var(--kh-accent); font-weight: 600; }

.kh-radio-toggle {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 76px;
  z-index: var(--kh-z-sticky);
  width: 44px;
  height: 44px;
  border-radius: var(--kh-radius-pill);
  background: var(--kh-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--kh-shadow-lg);
}

/* Günün özeti oynatıcı */
.kh-digest {
  position: relative;
  border-radius: var(--kh-radius);
  overflow: hidden;
  background: var(--kh-ink);
  color: #fff;
  aspect-ratio: 16 / 9;
}
.kh-digest__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--kh-ease);
}
.kh-digest__slide.is-active { opacity: 1; }
.kh-digest__slide img {
  width: 100%;
  height: 100%;
  object-fit: var(--kh-img-fit, cover);
  background: var(--kh-img-bg, #0b0c0f);
  animation: kh-kenburns 9s ease-out forwards;
}
@keyframes kh-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14); }
}
.kh-digest__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.15) 62%);
}
.kh-digest__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(18px, 3vw, 40px);
}
.kh-digest__caption h3 {
  color: #fff;
  font-size: clamp(1.1rem, 0.9rem + 1.4vw, 2rem);
  line-height: 1.22;
  max-width: 24ch;
}
.kh-digest__bar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}
.kh-digest__bar span { display: block; height: 100%; width: 0; background: var(--kh-accent); transition: width 0.3s linear; }
.kh-digest__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   18b. Haber TV — sunuculu video bülten
   --------------------------------------------------------- */
.kh-tv__stage {
  position: relative;
  border-radius: var(--kh-radius);
  overflow: hidden;
  background: #0b0c10;
}

.kh-tv__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(165deg, #14161c 0%, #0b0c10 60%);
}
.kh-tv__grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* Yayın çerçevesi: gerçek bir video karesi gibi 16:9 — karakter yok, tam kadraj haber görseli */
.kh-tv__scene {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s var(--kh-ease);
}

.kh-tv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.68) saturate(1.08);
  transition: opacity 0.5s var(--kh-ease);
}
.kh-tv__bg.is-visible { opacity: 1; }

.kh-tv__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.9) 0%, rgba(6, 7, 10, 0.25) 50%, transparent 74%);
}

/* Görseli olmayan bölümler (açılış/kapanış) için istasyon kartı */
.kh-tv__scene.is-card { background: linear-gradient(155deg, var(--kh-ink, #15161a) 0%, #0b0c10 72%); }
.kh-tv__scene.is-card .kh-tv__scrim { background: linear-gradient(to top, rgba(6, 7, 10, 0.55) 0%, transparent 60%); }
.kh-tv__ident {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s var(--kh-ease);
  pointer-events: none;
}
.kh-tv__scene.is-card .kh-tv__ident { opacity: 1; }
.kh-tv__ident-mark {
  font-family: var(--kh-font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3.2rem);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  text-align: center;
  max-width: 90%;
  overflow-wrap: anywhere;
}

/* Kanal logosu (bug) — üst köşede sabit, karaktersiz kimlik */
.kh-tv__bug {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(50%, 220px);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.38);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  overflow: hidden;
}
.kh-tv__bug svg { opacity: 0.9; flex: none; }
.kh-tv__bug span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alt üçüncü (lower-third) */
.kh-tv__lower {
  position: relative;
  z-index: 2;
  padding: 16px clamp(14px, 3vw, 26px) 20px;
  max-width: min(84%, 760px);
}
.kh-tv__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.kh-tv__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--kh-accent);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.kh-tv__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .kh-tv__badge i { animation: kh-pulse 1.6s var(--kh-ease) infinite; }
}

/* Konuşma göstergesi: yüz yerine küçük bir ekolayzer — sadece seslendirme sırasında hareket eder */
.kh-tv__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  padding: 0 2px;
  opacity: 0.4;
}
.kh-tv__eq i {
  display: block;
  width: 3px;
  height: 40%;
  background: #fff;
  border-radius: 1px;
}
.kh-tv.is-playing .kh-tv__eq { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .kh-tv.is-talking .kh-tv__eq i { animation: kh-tv-eq 0.9s ease-in-out infinite; }
  .kh-tv.is-talking .kh-tv__eq i:nth-child(2) { animation-delay: 0.15s; }
  .kh-tv.is-talking .kh-tv__eq i:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes kh-tv-eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.kh-tv__headline {
  color: #fff;
  font-family: var(--kh-font-meta);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin: 0 0 4px;
}
.kh-tv__caption {
  color: #fff;
  font-family: var(--kh-font-display);
  font-weight: 700;
  font-size: clamp(0.98rem, 0.85rem + 0.7vw, 1.5rem);
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
  /* Metin ne kadar uzun olursa olsun sahneyi taşmaz — dar ekranda kesin sınır. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.kh-tv__clock {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--kh-font-meta);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Kontroller */
.kh-tv__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.kh-tv__play { min-width: 168px; justify-content: center; }
.kh-tv__play [data-tv-icon-pause] { display: none; }
.kh-tv.is-playing .kh-tv__play [data-tv-icon-play] { display: none; }
.kh-tv.is-playing .kh-tv__play [data-tv-icon-pause] { display: inline-flex; }
[data-tv-mute] [data-tv-icon-muted] { display: none; }
[data-tv-mute].is-muted [data-tv-icon-unmuted] { display: none; }
[data-tv-mute].is-muted [data-tv-icon-muted] { display: inline-flex; }
.kh-tv__progress {
  flex: 1 1 140px;
  height: 4px;
  background: var(--kh-line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 90px;
}
.kh-tv__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--kh-accent);
  transition: width 0.25s linear;
}

/* Bülten listesi */
.kh-tv__playlist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px 0 0;
  padding: 4px 2px 6px;
  list-style: none;
}
.kh-tv__playlist::-webkit-scrollbar { display: none; }
.kh-tv__pitem {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  max-width: 240px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--kh-line);
  border-radius: 999px;
  background: var(--kh-paper);
  text-align: start;
  transition: border-color 0.2s var(--kh-ease), background 0.2s var(--kh-ease);
}
.kh-tv__pitem:hover { border-color: var(--kh-line-2); }
.kh-tv__pitem.is-active { border-color: var(--kh-accent); background: var(--kh-accent-soft); }
.kh-tv__pthumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  background-color: var(--kh-paper-3);
}
.kh-tv__pthumb--icon { display: flex; align-items: center; justify-content: center; color: var(--kh-muted); }
.kh-tv__ptext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kh-tv__pcat {
  font-family: var(--kh-font-meta);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kh-muted);
}
.kh-tv__ptitle {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Paylaşım / gömme kutusu */
.kh-tv__share { margin-top: 16px; }
.kh-tv__embed-box {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--kh-line);
  border-radius: var(--kh-radius-sm);
  background: var(--kh-paper-2);
}
.kh-tv__embed-code {
  width: 100%;
  resize: vertical;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  padding: 10px;
  border: 1px solid var(--kh-line);
  border-radius: 8px;
  background: var(--kh-paper);
  color: var(--kh-text);
  margin-bottom: 10px;
}

.kh-tv--embed .kh-tv__scene { max-height: 320px; }
.kh-tv--embed .kh-tv__playlist { max-height: 96px; overflow-y: auto; flex-wrap: wrap; }

@media (max-width: 640px) {
  /* Dar ekranda daha uzun bir kare: alt üçüncüye (lower-third) yer açar,
     rozet/saat ile başlık metni üst üste binmez. */
  .kh-tv__scene { aspect-ratio: 3 / 4; max-height: 460px; }
  .kh-tv__lower { max-width: 96%; }
  .kh-tv__caption { -webkit-line-clamp: 4; }
  .kh-tv__play { min-width: 0; flex: 1 1 auto; }
}

/* Şehir ekranı */
.kh-city-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.kh-city-card {
  background: var(--kh-paper-2);
  border-radius: var(--kh-radius);
  padding: 22px;
  border: 1px solid var(--kh-line);
}
.kh-city-card__label {
  font-family: var(--kh-font-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  color: var(--kh-muted);
}
.kh-city-card__value {
  font-family: var(--kh-font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
  margin-top: 6px;
}
.kh-city-card ul li {
  padding-block: 9px;
  border-bottom: 1px solid var(--kh-line);
  font-size: 0.94rem;
}
.kh-city-card ul li:last-child { border-bottom: none; }

/* Gömülebilir widget iskeleti */
.kh-embed-body {
  margin: 0;
  padding: 14px;
  background: var(--kh-paper);
  font-family: var(--kh-font-body);
}
.kh-embed-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--kh-line);
  font-family: var(--kh-font-meta);
  font-size: 0.76rem;
  color: var(--kh-muted);
}

/* ---------------------------------------------------------
   19. Giriş animasyonları
   --------------------------------------------------------- */
/*
 * İçerik varsayılan olarak GÖRÜNÜRDÜR. Gizleme yalnızca JS çalıştığında
 * (html.kh-anim) devreye girer; JS hata verirse veya engellenirse sayfa boş kalmaz.
 */
.kh-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .kh-anim .kh-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--kh-ease), transform 0.7s var(--kh-ease);
  }
  .kh-anim .kh-reveal.is-visible { opacity: 1; transform: none; }
  .kh-anim .kh-reveal-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--kh-ease), transform 0.6s var(--kh-ease);
  }
  .kh-anim .kh-reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
  .kh-anim .kh-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
}

/* ---------------------------------------------------------
   20. Yardımcı sınıflar
   --------------------------------------------------------- */
.kh-flex { display: flex; }
.kh-items-center { align-items: center; }
.kh-justify-between { justify-content: space-between; }
.kh-gap-sm { gap: 8px; }
.kh-gap { gap: 16px; }
.kh-gap-lg { gap: 28px; }
.kh-wrap { flex-wrap: wrap; }
.kh-mt-sm { margin-top: 10px; }
.kh-mt { margin-top: 20px; }
.kh-mt-lg { margin-top: 36px; }
.kh-mb { margin-bottom: 20px; }
.kh-text-center { text-align: center; }
.kh-hidden { display: none; }
.kh-relative { position: relative; }
.kh-full { width: 100%; }
.kh-stack { display: flex; flex-direction: column; gap: 28px; }

@media (min-width: 1024px) {
  .kh-lg-hidden { display: none; }
}
@media (max-width: 1023px) {
  .kh-lg-only { display: none; }
}

/* WordPress temel sınıfları */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.alignwide { max-width: min(1100px, 100%); margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption-text, .wp-element-caption {
  font-family: var(--kh-font-meta);
  font-size: 0.86rem;
  color: var(--kh-muted);
  margin-top: 8px;
}
.sticky .kh-card { border: 1px solid var(--kh-accent); }

/* Yazdırma */
@media print {
  .kh-header, .kh-topbar, .kh-ticker, .kh-footer, .kh-to-top, .kh-radio, .kh-radio-toggle, .kh-share-rail, .kh-ad { display: none !important; }
  body { background: #fff; color: #000; }
  .kh-entry { max-width: none; }
}
