:root {
  color-scheme: light;
  /* ===== Design Tokens ===== */
  /* Spacing scale (8px baseline) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Typography scale */
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;

  /* Font weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* Light theme — Turkish news site style with improved contrast */
  --bg: #f3f4f6;
  --bg-alt: #eef0f3;
  --bg-soft: #e9edf2;
  --panel: #ffffff;
  --card: #ffffff;
  --card-hover: #fafbfc;
  --line: #dee2e6;
  --line-soft: #e9edf1;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --brand: #dc2626;
  --brand-hover: #b91c1c;
  --brand-soft: #fef2f2;
  --brand-border: #fecaca;

  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.2);

  --transition-fast: 120ms ease;
  --transition-normal: 180ms ease;
  --transition-slow: 250ms ease;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(220, 38, 38, 0.35);
}

/* Dark theme — optimized for night reading */
body.dark {
  color-scheme: dark;
  --bg: #0b0f19;
  --bg-alt: #111727;
  --bg-soft: #141b2e;
  --panel: #151c2e;
  --card: #1a2238;
  --card-hover: #1e2942;
  --line: #2a354d;
  --line-soft: #232d45;
  --line-strong: #3a4865;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #8b9bb4;
  --faint: #64748b;

  --brand-soft: #2c1215;
  --brand-border: #451a1f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);

  --focus-ring: 0 0 0 3px rgba(220, 38, 38, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

a {
  color: inherit;
  text-decoration: none;
}

b, strong {
  font-weight: var(--weight-bold);
}

.spacer {
  flex: 1;
}

.muted {
  color: var(--muted);
  font-size: var(--text-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-4);
  background: var(--brand);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.skip-link:focus {
  left: var(--space-4);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.ncard:focus-visible,
.msmall:focus-visible,
.manset-main:focus-visible,
.mr-item:focus-visible,
.vcard:focus-visible,
.ti:focus-visible,
.toast:focus-visible,
.searchbox input:focus-visible,
.city-tab:focus-visible,
.cat:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.date {
  color: var(--muted);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  letter-spacing: 0.06em;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

.currencies {
  display: flex;
  gap: var(--space-4);
}

.cur {
  color: var(--muted);
  font-weight: var(--weight-medium);
}

.cur b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
}

.weather {
  color: var(--muted);
  white-space: nowrap;
}

.weather b {
  color: var(--text);
  font-weight: var(--weight-semibold);
}

.api-link {
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.api-link:hover {
  opacity: 0.8;
}

.sponsor {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.sponsor:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--card);
}

.theme-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* ===== Masthead ===== */
.masthead {
  background: var(--panel);
  border-bottom: 3px solid var(--brand);
}

.masthead-in {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  display: inline-grid;
  place-items: center;
  font-weight: var(--weight-black);
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  flex-shrink: 0;
}

.brand-name {
  font-weight: var(--weight-black);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.brand-tag {
  color: var(--faint);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: 2px;
}

.searchbox {
  flex: 1;
  display: flex;
  gap: var(--space-2);
  max-width: 500px;
  margin-left: auto;
}

.searchbox input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.searchbox input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.searchbox input::placeholder {
  color: var(--faint);
}

/* ===== Category Nav ===== */
.catnav {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.catnav-in {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding: 0 var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
  scroll-padding: 0 var(--space-4);
}

.catnav-in::-webkit-scrollbar {
  display: none;
}

.cat-hamburger {
  display: none;
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 768px) {
  .catnav {
    position: sticky;
  }
  .catnav .container {
    position: relative;
  }
  .cat-hamburger {
    display: inline-grid;
    place-items: center;
    z-index: 5;
  }
  .catnav-in {
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
  }
  /* JS varsa hamburger menüye geç; JS yoksa nav açık kalır (erişilebilirlik). */
  body.js .catnav-in {
    display: none;
  }
  .catnav-in.open {
    display: flex;
  }
}

.cat {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 48px;
}

.cat:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.cat.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: var(--brand-soft);
}

/* ===== Ticker ===== */
.ticker {
  background: #111827;
  color: #e5e7eb;
  overflow: hidden;
}

.ticker-in {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-4);
  position: relative;
  z-index: 2;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.ticker-items {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 50s linear infinite;
  font-size: var(--text-sm);
  will-change: transform;
}

.ticker-items:hover {
  animation-play-state: paused;
}

.ti {
  padding: var(--space-2) var(--space-4);
  border-right: 1px solid #1f2937;
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  color: #d1d5db;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.ti:hover {
  color: #fff;
}

.ti .b {
  color: #fda4af;
  font-weight: var(--weight-extrabold);
  flex-shrink: 0;
}

@keyframes tick {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Manset (Hero) ===== */
.manset {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-8);
}

.manset-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}

.manset-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-slow);
}

.manset-main:hover img {
  transform: scale(1.05);
}

.manset-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.manset-main .body {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: #fff;
}

.manset-main h3 {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  margin: var(--space-2) 0;
  max-width: 90%;
}

.manset-main p {
  color: #d1d5db;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  max-width: 85%;
}

.manset-meta {
  font-size: var(--text-xs);
  color: #9ca3af;
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.manset-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
}

.msmall {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.msmall:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.msmall img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-slow);
}

.msmall:hover img {
  transform: scale(1.05);
}

.msmall::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.msmall .body {
  position: relative;
  z-index: 2;
  padding: var(--space-3);
  color: #fff;
}

.msmall h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
}

/* Responsive Manset */
@media (max-width: 1024px) {
  .manset {
    grid-template-columns: 1fr;
  }
  .manset-side {
    grid-template-columns: 1fr 1fr;
  }
  .manset-main {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .manset-side {
    grid-template-columns: 1fr;
  }
  .manset-main {
    min-height: 280px;
  }
  .manset-main .body {
    padding: var(--space-4);
  }
}

/* ===== Layout ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Block Sections ===== */
/* ===== Kategori sekmeleri ===== */
.tabbar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--line-strong);
  scrollbar-width: thin;
}
.tabbar .tab {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tabbar .tab:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.tabbar .tab.on {
  color: #fff;
  background: var(--brand);
}

.block {
  margin-bottom: var(--space-8);
}

.block-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.01em;
}

.block-title span {
  position: relative;
  padding-bottom: var(--space-1);
}

.block-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--brand);
}

/* Blok notu ("son 30 dk" gibi): vurgu çizgisiz, soluk rozet */
.block-title .block-note {
  padding-bottom: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  white-space: nowrap;
}
.block-title .block-note::after { display: none; }

.block-more {
  margin-left: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.block-more:hover {
  color: var(--brand);
}

.city-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-left: auto;
}

.city-tab {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.city-tab:hover {
  color: var(--text);
  border-color: var(--brand);
}

.city-tab.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Block Grid */
.block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .block-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== News Card ===== */
.ncard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  animation: fadeup 0.4s ease;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ncard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.ncard .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-alt), var(--bg), var(--bg-alt));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

body.dark .ncard .thumb {
  background: linear-gradient(90deg, #1a2236, #222c45, #1a2236);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ncard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ncard:hover .thumb img {
  transform: scale(1.05);
}

.ncard .body {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.ncard h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ncard .sum {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ncard .meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--faint);
  margin-top: auto;
  padding-top: var(--space-1);
  border-top: 1px solid var(--line);
}

/* Pills / Badges */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  line-height: 1.5;
  min-height: 24px;
  white-space: nowrap;
}

.pill.local { background: var(--green-soft); color: var(--green); }
.pill.national { background: var(--purple-soft); color: var(--purple); }
.pill.regional { background: var(--teal-soft); color: var(--teal); }
.pill.international { background: #dbeafe; color: #1d4ed8; }
.pill.unknown { background: #e5e7eb; color: #374151; }
.pill.sondakika { background: var(--brand-soft); color: var(--brand); }
.pill.kaza, .pill.yangin, .pill.asayis { background: #fef2f2; color: #dc2626; }
.pill.saglik { background: #fdf2f8; color: #db2777; }
.pill.ekonomi { background: var(--green-soft); color: var(--green); }
.pill.spor { background: var(--blue-soft); color: var(--blue); }
.pill.siyaset { background: #cffafe; color: #0e7490; }
.pill.kultur { background: #fae8ff; color: #a21caf; }
.pill.tarim { background: #ecfccb; color: #3f6212; }
.pill.teknoloji { background: #e0e7ff; color: #4338ca; }
.pill.egitim { background: #fef9c3; color: #854d0e; }
.pill.hava { background: #ccfbf1; color: #0f766e; }
.pill.video { background: #ede9fe; color: #6d28d9; }
.pill.genel { background: #f3f4f6; color: #4b5563; }

body.dark .pill.local { background: rgba(5, 150, 105, 0.2); color: #34d399; }
body.dark .pill.national { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
body.dark .pill.regional { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; }
body.dark .pill.international { background: rgba(29, 78, 216, 0.25); color: #93c5fd; }
body.dark .pill.unknown { background: rgba(107, 114, 128, 0.25); color: #d1d5db; }
body.dark .pill.sondakika { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }
body.dark .pill.kaza, body.dark .pill.yangin, body.dark .pill.asayis { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }
body.dark .pill.saglik { background: rgba(219, 39, 119, 0.2); color: #f9a8d4; }
body.dark .pill.ekonomi { background: rgba(5, 150, 105, 0.2); color: #34d399; }
body.dark .pill.spor { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
body.dark .pill.siyaset { background: rgba(14, 116, 144, 0.3); color: #67e8f9; }
body.dark .pill.kultur { background: rgba(162, 28, 175, 0.3); color: #f0abfc; }
body.dark .pill.tarim { background: rgba(63, 98, 18, 0.35); color: #bef264; }
body.dark .pill.teknoloji { background: rgba(67, 56, 202, 0.3); color: #a5b4fc; }
body.dark .pill.egitim { background: rgba(133, 77, 14, 0.3); color: #fde047; }
body.dark .pill.hava { background: rgba(15, 118, 110, 0.3); color: #5eead4; }
body.dark .pill.video { background: rgba(109, 40, 217, 0.3); color: #c4b5fd; }
body.dark .pill.genel { background: #374151; color: #9ca3af; }

.timeago {
  font-weight: var(--weight-bold);
  color: var(--muted);
}

/* Quality badge */
.qbadge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  border: 1px solid transparent;
}

.qbadge.quality-high { background: var(--amber-soft); color: #b45309; border-color: #fcd34d; }
.qbadge.quality-mid { background: var(--purple-soft); color: var(--purple); border-color: #c4b5fd; }
.qbadge.quality-low { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

body.dark .qbadge.quality-high { background: rgba(180, 83, 9, 0.2); color: #fcd34d; border-color: #fcd34d; }
body.dark .qbadge.quality-mid { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; border-color: #c4b5fd; }
body.dark .qbadge.quality-low { background: rgba(185, 28, 28, 0.2); color: #fca5a5; border-color: #fca5a5; }

/* ===== Video Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.vcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.vcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.vcard .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.vcard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform var(--transition-slow);
}

.vcard:hover .thumb img {
  transform: scale(1.03);
}

.vcard .body {
  padding: var(--space-3) var(--space-4);
}

.vcard h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.side-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}

/* Most Read */
.mr-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mr-item:last-child {
  border-bottom: 0;
}

.mr-item:hover .mr-title {
  color: var(--brand);
}

.mr-num {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--muted);
  min-width: 30px;
  line-height: var(--leading-tight);
}

.mr-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.mr-meta {
  color: var(--faint);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

/* Weather */
.weather-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.w-select {
  flex: 1 1 100%;
  margin-top: 2px;
  padding: 6px 8px;
  font-size: var(--text-xs);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
}

.w-locate {
  flex: 1 1 100%;
  margin-top: 2px;
  padding: 6px 8px;
  font-size: var(--text-xs);
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.w-locate:hover {
  border-color: var(--brand);
  color: var(--brand);
}

#hmToast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #f9fafb;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 120;
  max-width: 90vw;
}
#hmToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.w-temp {
  font-size: 44px;
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
  line-height: 1;
}

.w-desc {
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.w-city {
  color: var(--faint);
  font-size: var(--text-xs);
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.newsletter input {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.newsletter input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* Cookie banner ghost variant */
.cookie-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #e5e7eb;
}

.cookie-banner .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Footer ===== */
footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: var(--space-12);
}

.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.foot .logo {
  width: 32px;
  height: 32px;
  font-size: 16px;
  vertical-align: middle;
  margin-right: var(--space-2);
}

.foot b {
  color: #fff;
  font-size: var(--text-lg);
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.foot-col h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-extrabold);
}

.foot-col a {
  color: #94a3b8;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.foot-col a:hover {
  color: #fff;
}

.foot .muted {
  color: #64748b;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  border-top: 1px solid #1e293b;
  padding: var(--space-4) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.foot-bottom .muted {
  color: #64748b;
}

.foot-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.foot-bottom a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .foot {
    grid-template-columns: 1fr;
  }
}

/* ===== Cookie Banner (KVKK) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  background: #0f172a;
  color: #e5e7eb;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-top: 3px solid var(--brand);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner a {
  color: #fda4af;
  text-decoration: underline;
}

.cookie-banner .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .cookie-banner {
    font-size: var(--text-xs);
    text-align: center;
    flex-direction: column;
  }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 100;
}

.modal.open {
  display: flex;
}

.mbox {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  animation: fade 0.25s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.mbox .close {
  float: right;
  cursor: pointer;
  color: var(--faint);
  font-size: 24px;
  line-height: 1;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  display: inline-grid;
  place-items: center;
}

.mbox .close:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.mbox .dthumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 var(--space-4);
  background: var(--bg-alt);
}

.mbox .dthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mbox h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(22px, 3vw, 28px);
  line-height: var(--leading-tight);
  font-weight: var(--weight-black);
  padding-right: var(--space-10);
}

.mbox .dmeta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  color: var(--muted);
  align-items: center;
}

.mbox .sum-b {
  font-size: var(--text-md);
  font-weight: var(--weight-extrabold);
  color: var(--text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.mbox .mbody {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.sharebar {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.share-x { background: #111827; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }

.read-source {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  transition: all var(--transition-fast);
}

.read-source:hover {
  background: var(--brand-hover);
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.related .ncard h3 {
  font-size: var(--text-sm);
}

.mbox .foot {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: var(--text-xs);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Read progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99;
  pointer-events: none;
}

.read-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  border-radius: 0;
  transition: width 0.1s linear;
  transform-origin: left;
}

/* ===== Breaking News Banner ===== */
.breaking-banner {
  background: linear-gradient(100deg, #7f1d1d 0%, #dc2626 45%, #991b1b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(220, 38, 38, 0.35);
}
/* Kayan parlama efekti */
.breaking-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: breaking-sheen 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breaking-sheen {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.breaking-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.breaking-banner:not(.closed) .breaking-in {
  animation: breaking-drop 0.35s ease;
}
@keyframes breaking-drop {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

.breaking-banner.closed {
  display: none;
}

/* ===== Offline Indicator ===== */
body.offline::after {
  content: 'Çevrimdışı — önbellekteki içerik gösteriliyor';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #b45309;
  color: #fff;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  pointer-events: none;
}

.breaking-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
/* Nabız gibi atan canlı nokta */
.breaking-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.breaking-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  animation: breaking-ping 1.6s ease-out infinite;
}
@keyframes breaking-ping {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

.breaking-content {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}
.breaking-content a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.breaking-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Haberler arası geçişte yumuşak belirme */
.breaking-content.fade {
  animation: breaking-fade 0.4s ease;
}
@keyframes breaking-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.breaking-time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Otomatik kapanma geri sayımı */
.breaking-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: rgba(255, 255, 255, 0.9);
}
.breaking-progress.run {
  animation-name: breaking-count;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes breaking-count {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.breaking-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-1);
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

.breaking-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== Ad slots ===== */
.adbox {
  min-height: 100px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin: var(--space-4) 0;
  position: relative;
}

.adbox::before {
  content: attr(data-label);
  color: var(--faint);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
}

.adbox.ad-placeholder {
  background: var(--bg-alt);
  border-style: dashed;
}
.adbox.ad-placeholder span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

/* Kenar (sağ/sol) banner reklamları — yalnızca geniş ekran */
.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 40;
  display: none;
}
.side-ad .adbox { min-height: 600px; margin: 0; }
#ad-left { left: 12px; }
#ad-right { right: 12px; }
@media (max-width: 1559px) {
  .side-ad { display: none !important; }
}

.adslot-wrap {
  grid-column: 1 / -1;
}

/* ===== Toast notifications ===== */
#toasts {
  position: fixed;
  top: 70px;
  right: var(--space-4);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 360px;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--brand);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  animation: toastin 0.35s ease;
}

.toast:hover {
  transform: translateX(-4px);
}

.toast.out {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s ease;
}

@keyframes toastin {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: none; }
}

.toast .t-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: var(--space-1);
}

.toast .t-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Live bar ===== */
.livebar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: var(--space-2) var(--space-3);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
}

.live-dot-s {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}

/* ===== Search status ===== */
#searchStatus {
  text-align: center;
  padding: var(--space-6);
}

#searchStatus .muted {
  font-size: var(--text-base);
}

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .dot, .live-dot-s { animation: none; }
  .breaking-banner::before, .breaking-dot::after,
  .breaking-banner:not(.closed) .breaking-in,
  .breaking-content.fade, .breaking-progress.run { animation: none; }
  .ncard, .toast, .mbox, .qbadge { animation: none; transition: none; }
  .ncard .thumb, .msmall img, .vcard .thumb img { animation: none; background: var(--bg); }
  * { scroll-behavior: auto; }
}

/* ===== Print styles ===== */
@media print {
  .topbar, .catnav, .ticker, .sidebar, .modal, .cookie-banner, .breaking-banner,
  .livebar, .adbox, .adslot-wrap, .btn, .theme-btn, .api-link, .sponsor, footer {
    display: none !important;
  }
  .manset, .ncard, .msmall, .vcard { break-inside: avoid; }
  body { background: #fff; color: #000; }
  .ncard { border: 1px solid #ccc; box-shadow: none; }
}
/* ===== Arşiv sayfası ===== */
.arsiv-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end;
  padding: 12px 14px; background: var(--card, #fff); border: 1px solid #e5e7eb;
  border-radius: 12px; margin-bottom: 14px;
}
.arsiv-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.arsiv-bar input, .arsiv-bar select {
  padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff;
  min-width: 0; max-width: 100%;
}
.arsiv-bar label { min-width: 0; }
body.dark .arsiv-bar { background: #1f2937; border-color: #374151; }
body.dark .arsiv-bar input, body.dark .arsiv-bar select { background: #111827; color: #e5e7eb; border-color: #4b5563; }
.arsiv-card {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px;
}
.arsiv-card time { font-weight: 800; font-size: 13px; color: var(--muted); min-width: 44px; }
.arsiv-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.arsiv-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arsiv-body a { font-weight: 700; font-size: 15px; line-height: 1.35; color: inherit; text-decoration: none; }
.arsiv-body a:hover { text-decoration: underline; }
.arsiv-body .muted { font-size: 12px; }
.arsiv-pills { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .arsiv-thumb { width: 84px; height: 64px; }
  .arsiv-bar { align-items: stretch; }
  .arsiv-bar label { flex: 1 1 45%; }
}

/* ===== API satış sayfası (api.html) ===== */
.api-page .topbar-msg { font-size: var(--text-xs); color: var(--muted); }

.api-nav {
  display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap;
}
.api-nav a {
  color: var(--muted); text-decoration: none; font-size: var(--text-sm);
  font-weight: var(--weight-semibold); padding: 6px 2px; border-bottom: 2px solid transparent;
}
.api-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.api-hero {
  background:
    radial-gradient(1200px 400px at 50% -80px, rgba(220, 38, 38, 0.08), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-12) 0;
}
.badge-live {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border);
  font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: var(--space-4);
}
.api-hero h1 {
  font-size: clamp(28px, 5vw, 44px); line-height: var(--leading-tight);
  font-weight: var(--weight-black); letter-spacing: -0.02em; margin: 0 0 var(--space-4);
}
.grad {
  background: linear-gradient(92deg, var(--brand), #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 720px; margin: 0 auto var(--space-6); color: var(--muted);
  font-size: var(--text-md); line-height: 1.65;
}
.hero-cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* API hero: iki sütun + istatistik şeridi */
.api-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center; }
.api-hero-copy .hero-sub { margin: 0 0 var(--space-6); }
.api-hero-copy .hero-cta { justify-content: flex-start; }
.api-hero-code .codeblock { margin: 0; }
.api-live-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); color: #059669; font-weight: var(--weight-bold);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-3);
}
.api-live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #059669; animation: pulse 1.4s infinite; }
.api-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.api-stat { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: var(--space-4); text-align: center; }
.api-stat b { display: block; font-size: 26px; color: var(--brand); line-height: 1.1; }
.api-stat span { font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 960px) {
  .api-hero-grid { grid-template-columns: 1fr; }
  .api-stats { grid-template-columns: repeat(2, 1fr); }
}

.btn-lg { padding: var(--space-3) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-md); }

.section { padding: var(--space-12) 0; }
.section.alt { background: var(--bg-alt); }
.sec-title { font-size: clamp(22px, 3.4vw, 30px); font-weight: var(--weight-extrabold); letter-spacing: -0.01em; margin: 0 0 var(--space-2); text-align: center; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 0 var(--space-8); font-size: var(--text-md); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.card {
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm);
}
.card h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.card p { margin: 0; color: var(--muted); font-size: var(--text-base); line-height: 1.6; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--brand-soft); color: var(--brand);
  font-weight: var(--weight-black); font-size: var(--text-sm);
}

.steps { display: flex; align-items: stretch; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.step {
  flex: 1 1 240px; max-width: 320px; background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-5); text-align: left;
}
.step h3 { margin: var(--space-2) 0; font-size: var(--text-md); font-weight: var(--weight-bold); }
.step p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: var(--brand); color: #fff; font-weight: var(--weight-black); font-size: var(--text-sm);
}
.step-arrow { align-self: center; color: var(--muted); font-size: var(--text-xl); font-weight: var(--weight-black); }

.codeblock {
  background: #0b1220; color: #dbe4ff; border: 1px solid #1e293b; border-radius: var(--radius-lg);
  padding: var(--space-5); overflow-x: auto;
}
.codeblock pre {
  margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.65; white-space: pre;
}
.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 1px 6px; font-size: 0.9em; color: var(--brand); white-space: nowrap;
}

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6); box-shadow: var(--shadow-sm);
}
.plan.popular { border-color: var(--brand); box-shadow: 0 8px 28px rgba(220, 38, 38, 0.14); }
.plan h3 { margin: 0 0 var(--space-2); font-size: var(--text-xl); font-weight: var(--weight-extrabold); }
.price { font-size: 34px; font-weight: var(--weight-black); letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.price span { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: var(--text-base); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--brand-soft); border: 1px solid var(--brand-border);
}
.plan li::after {
  content: ""; position: absolute; left: 3.5px; top: 10.5px; width: 7px; height: 4px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-black);
  letter-spacing: 0.08em; padding: 4px 14px; border-radius: var(--radius-full);
}

.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #fff; padding: var(--space-12) 0; text-align: center;
}
.cta h2 { font-size: clamp(24px, 4vw, 34px); font-weight: var(--weight-black); margin: 0 0 var(--space-3); }
.cta p { max-width: 620px; margin: 0 auto var(--space-6); opacity: 0.94; font-size: var(--text-md); line-height: 1.6; color: #fff; }
.cta .sec-sub { color: #fff; opacity: 0.95; }
.cta a { color: #fff; font-weight: var(--weight-bold); }
.newsletter { display: flex; gap: var(--space-2); justify-content: center; align-items: center; flex-wrap: wrap; }
.cta .newsletter input {
  padding: 12px 16px; border-radius: var(--radius-md); border: none; font-size: var(--text-base);
  min-width: min(300px, 80vw);
}
.cta .muted { color: rgba(255, 255, 255, 0.85); }

.foot-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: var(--text-sm); }
.foot-links a:hover { color: var(--brand); }

.foot-legal { border-top: 1px solid var(--line); margin-top: var(--space-8); padding-top: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--text-xs); color: var(--muted); }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--brand); }

/* Başvuru formu */
.apply-form { max-width: 620px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: var(--space-4); }
.apply-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-bold); color: #fff; }
.apply-form input, .apply-form select, .apply-form textarea {
  padding: 11px 14px; border-radius: var(--radius-md); border: none; font-size: var(--text-base);
  background: #fff; color: #111827; width: 100%; box-sizing: border-box; font-weight: 400;
}
.apply-form select { appearance: auto; }
.apply-form .af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.apply-form .af-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: rgba(255,255,255,0.94); }
.apply-form .af-check input { width: auto; margin-top: 2px; }
.apply-form .af-check a { color: #fff; text-decoration: underline; }
.apply-form .af-sep { border: none; border-top: 1px solid rgba(255,255,255,0.3); margin: var(--space-6) 0; }
.cta .apply-form .muted { color: rgba(255,255,255,0.85); }
.cta.alt { background: var(--bg-soft); color: var(--text); }
.cta.alt h2 { color: var(--text); }
.cta.alt a { color: var(--brand); }
.cta.alt .sec-sub { color: var(--muted); }
@media (max-width: 520px) { .apply-form .af-grid { grid-template-columns: 1fr; } }

/* API sayfası — koyu tema */
body.dark .api-hero { background: radial-gradient(1200px 400px at 50% -80px, rgba(220, 38, 38, 0.12), transparent 70%), var(--bg); }
body.dark .codeblock { background: #0d1526; border-color: #24304d; color: #cbd8f5; }
body.dark .code-inline { background: #111727; }
body.dark .step-arrow { color: #64748b; }

@media (max-width: 720px) {
  .api-nav { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .hero-cta .btn { width: 100%; }
}

/* ===== Mobile polish ===== */
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 560px) {
  .topbar-in { gap: var(--space-2); }
  .topbar .date { display: none; }
  .topbar .weather { display: none; }
  .currencies { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .masthead-in { flex-wrap: wrap; gap: var(--space-2); }
  .masthead .searchbox { order: 3; width: 100%; }
  .masthead .searchbox input { width: 100%; }
  .brand-tag { display: none; }
  .ticker-label { font-size: 11px; padding: var(--space-2) var(--space-3); }
  .ti { min-height: 40px; }
  .tabbar .tab { min-height: 44px; }
  .city-tab { min-height: 44px; }
  .breaking-in { gap: var(--space-2); }
  .breaking-label { font-size: 11px; }
  .breaking-time { display: none; }
  .breaking-in { min-height: 48px; }
  .cookie-banner .btn { padding: var(--space-2) var(--space-3); }
  .manset-main { min-height: 240px; }
  .manset-main h3 { font-size: 20px; }
  .ncard h3 { font-size: 15px; }
}

/* ===== Mobile v2: dokunma + iOS + safe-area ===== */
body { -webkit-tap-highlight-color: transparent; }
input, select, textarea, button { font-size: 16px; } /* iOS 16px'den küçükse otomatik zoom yapar */
.tabbar { -webkit-overflow-scrolling: touch; }
@supports (padding: env(safe-area-inset-bottom)) {
  .cookie-banner { padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); }
  footer .foot { padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .breaking-in { padding-left: calc(var(--space-4) + env(safe-area-inset-left)); padding-right: calc(var(--space-4) + env(safe-area-inset-right)); }
  #hmToast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .modal.open { padding-bottom: env(safe-area-inset-bottom); }
  .mbox { margin-bottom: env(safe-area-inset-bottom); }
}

/* ===== Kategori nav linkleri (her kategori kendi sayfasına gider) ===== */
.catnav a.cat {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== Manşet carousel ===== */
#manset { display: block; }
.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  overflow: hidden;
}
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-slow);
}
.carousel-slide:hover img { transform: scale(1.04); }
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85));
  z-index: 1;
}
.carousel-body {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: #fff;
}
.carousel-body h3 {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  margin: var(--space-2) 0;
  max-width: 90%;
}
.carousel-body p {
  color: #d1d5db;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  max-width: 85%;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.prev { left: var(--space-4); }
.carousel-arrow.next { right: var(--space-4); }
.carousel-arrow:focus-visible { opacity: 1; outline: 2px solid var(--brand); }
.carousel-dots {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-4);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.carousel-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
}
/* Görsel 9px kalır; dokunma alanı görünmez şekilde 44px'e genişler */
.carousel-dot::before {
  content: '';
  position: absolute;
  inset: -17px -10px;
}
.carousel-dot.on { background: #fff; transform: scale(1.25); }
@media (max-width: 768px) {
  .carousel-slide { min-height: 260px; }
  .carousel-arrow { display: none; }
  .carousel-body { padding: var(--space-4); }
  .carousel-body h3 { font-size: 20px; }
}

/* Kategori sayfası SSR manşet kartları (JS öncesi / SEO) */
.card.cat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--panel);
}
.card.cat-card h3 { margin: 0 0 6px; font-size: 17px; }
.card.cat-card h3 a { color: var(--text); text-decoration: none; }
.card.cat-card h3 a:hover { color: var(--brand); }
.card.cat-card p { font-size: var(--text-sm); color: var(--muted); margin: 0 0 8px; }
.card.cat-card time { font-size: var(--text-xs); color: var(--muted); }

/* ===== Konum kişiselleştirme çubuğu ===== */
.loc-banner {
  background: linear-gradient(90deg, var(--brand), #be123c);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.loc-banner-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-4);
}
.loc-title { font-weight: var(--weight-bold); font-size: var(--text-sm); }
.loc-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  color: #111827;
  font-size: var(--text-sm);
  max-width: 200px;
}
.loc-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.loc-note { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.85); width: 100%; }

/* Yerel blok konum kartı */
.loc-card {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  background: var(--bg-alt);
}
.loc-card b { display: block; margin-bottom: 4px; color: var(--text); }
.loc-card p { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-3); }

/* ===== Fixes (audit): tema bütünlüğü + mobil responsive ===== */

/* Token dışı kalan sabit renkler — dark modda okunabilirlik */
.loc-select { background: var(--card); color: var(--text); border-color: var(--line-strong); }
#ad-top { max-width: 1120px; margin: 10px auto 0; padding: 0 var(--space-4); }
.newsletter label { color: var(--muted) !important; }

/* Skeleton (app.js yükleme yer tutucusu) — CSS'i tanımsızdı */
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius-md); }
.skeleton > * { visibility: hidden; }
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .18), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.2s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* arsiv/api dahil tüm sayfalarda yatay safe-area */
@supports (padding: env(safe-area-inset-left)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* iOS otomatik zoom: 16px kuralı sınıf kurallarınca eziliyordu → mobilde zorla */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
  .sidebar .mr-item { min-height: 44px; }
}

/* Sidebar ≤1024: sticky davranışını kapat (telefonda iç scroll taşması) */
@media (max-width: 1024px) {
  .sidebar { position: static; top: auto; max-height: none; overflow: visible; }
}

/* Küçük telefon (<520px): ek düzenleme (hiç breakpoint yoktu) */
@media (max-width: 520px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 18px; }
  .block-title { font-size: 17px; }
  .ncard h3 { font-size: 15px; line-height: 1.3; }
  .carousel-slide { min-height: 240px; }
  .carousel-body h3 { font-size: 18px; }
  .carousel-arrow { display: none; }
  .foot { gap: var(--space-4); }
}

/* overflow-x: clip — hidden'ın sticky'yi bozan etkisi olmadan yatay taşmayı engeller */
body { overflow-x: clip; }

/* ===== Konum izni banner'ı butonları ===== */
.loc-banner .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.loc-banner .loc-title { flex: 1 1 auto; }

/* ===== PWA: ana ekrana ekle banner'ı (mobil) ===== */
.pwa-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px 12px;
}
.pwa-banner .pwa-icon { border-radius: 9px; flex-shrink: 0; }
.pwa-banner .pwa-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pwa-banner .pwa-txt b { font-size: 13.5px; }
.pwa-banner .pwa-txt span { font-size: 11.5px; color: var(--muted); }
.pwa-banner .pwa-add { flex-shrink: 0; }
.pwa-banner .pwa-close {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-soft); border: 0; color: var(--muted); font-size: 15px; cursor: pointer;
}
@media (min-width: 769px) {
  .pwa-banner { left: auto; right: 20px; bottom: 20px; max-width: 400px; }
}

/* ===== Mobil alt navigasyon çubuğu ===== */
.mobnav { display: none; }
@media (max-width: 768px) {
  .mobnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--panel); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobnav .mn-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 7px 2px; min-height: 52px; font-size: 10.5px; font-weight: 600;
    color: var(--muted); text-decoration: none;
  }
  .mobnav .mn-item span { font-size: 18px; line-height: 1; }
  .mobnav .mn-item.on { color: var(--brand); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .pwa-banner { bottom: calc(66px + env(safe-area-inset-bottom)); }

  /* Genişletilmiş mobil düzen */
  .manset .carousel-slide { min-height: 250px; }
  .carousel-body h3 { font-size: 19px; line-height: 1.3; }
  .carousel-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ncard h3 { font-size: 16px; }
  .side-card { margin-top: 12px; }
  .mr-item { min-height: 48px; }
  .city-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
  .city-tabs::-webkit-scrollbar { display: none; }
  .block { margin-bottom: 20px; }
  .block-title { font-size: 18px; }
}
