.market-page { padding-block: clamp(32px, 7vw, 76px); }
.market-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 1rem; }
.market-page h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 .75rem; }
.market-page h3 { margin: 1.4rem 0 .5rem; }
.market-page p { line-height: 1.7; margin-block: .65rem; }
.market-page section { margin-block: 2.5rem; }
.market-page a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
.market-page .market-lead { max-width: 74ch; font-size: 1.08rem; color: var(--text-2); }
.market-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; margin-block: 1.25rem; }
.market-list { padding-left: 1.25rem; }
.market-list li + li { margin-top: .5rem; }
.market-note { color: var(--text-2); }
.market-page video { display: block; width: 100%; max-width: 800px; height: auto; margin-top: 1rem; background: #000; border-radius: 10px; }
.guide { max-width: 72ch; }
.guide h2 { margin-top: 1.6rem; }
.table-scroll { overflow-x: auto; margin-block: 1rem; }
.market-page table { width: 100%; min-width: 32rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.market-page caption { text-align: left; padding-block: .65rem; color: var(--text-2); }
.market-page th, .market-page td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--border); }
.market-page thead { background: var(--surface); }
.market-page td:nth-child(2), .market-page td:nth-child(3) { white-space: nowrap; }
.market-page td a + a { margin-inline-start: .7rem; }
.discovery-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.discovery-filters label { display: grid; gap: .35rem; }
.discovery-filters input, .discovery-filters select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: .55rem;
  font: inherit;
}
.market-page [hidden] { display: none; }

.discovery-page section { margin-block: clamp(1.5rem, 4vw, 2.25rem); }
.discovery-page .discovery-session {
  font-size: .8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-block: 0 .5rem;
}
.discovery-mover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.discovery-mover-card {
  min-width: 0;
  padding-inline: .875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.discovery-mover-card h3 { font-size: .9375rem; margin: .75rem 0 .5rem; }
.discovery-mover-card p { font-size: .875rem; color: var(--text-2); }
.discovery-mover-list { list-style: none; margin: 0; padding: 0; }
.discovery-mover-list li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.discovery-mover-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.discovery-mover-list .up, .discovery-mover-list .down { font-weight: 600; white-space: nowrap; }
.discovery-name { color: var(--text-2); font-size: .75rem; font-weight: 400; }
.discovery-table .discovery-name { display: block; }
.discovery-filters label { max-width: 100%; }
.discovery-filters input, .discovery-filters select { min-height: 44px; max-width: 100%; }
.discovery-table table { min-width: 39rem; font-size: .875rem; }
.discovery-table caption { font-size: .8125rem; }
.discovery-table thead th { height: 44px; padding-block: 0; }
.discovery-table th:has([data-sort-asc]) { padding: 0; }
.discovery-table [data-sort-asc] {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding-inline: .75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.discovery-table [data-sort-asc]:hover,
.discovery-table [aria-sort] [data-sort-asc] { color: var(--accent-text); }
.discovery-table tbody th, .discovery-table tbody td { height: 46px; padding-block: .25rem; }
.discovery-table :is(th, td):nth-child(2),
.discovery-table :is(th, td):nth-child(3) { text-align: right; }
.discovery-table td.discovery-quote-meta {
  width: 40%;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--text-2);
}
.discovery-table td.discovery-actions { padding-block: 0; white-space: nowrap; }
.discovery-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.discovery-table :is(button, a):focus-visible,
.discovery-mover-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 600px) {
  .discovery-mover-grid { grid-template-columns: minmax(0, 1fr); }
  .discovery-filters label:first-child { flex-basis: 100%; }
}

/* Gece cilası: site ile aynı ritim, mobilde okunur tablo */
.discovery-page { padding-block: var(--s6) var(--s7); }
.discovery-page h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--s3); }
.discovery-page h2 { font-weight: 700; letter-spacing: -0.02em; }
.discovery-page .market-lead { font-size: 17px; line-height: 1.5; max-width: 60ch; }
.discovery-mover-card { border-radius: var(--radius-xl); }
.discovery-filters { gap: var(--s3); align-items: end; }
.discovery-filters label { font-size: 14px; color: var(--text-2); }
.discovery-table thead { background: var(--surface); }
.discovery-actions a { min-width: 44px; }
@media (max-width: 600px) {
  .discovery-page { padding-top: var(--s5); }
  .discovery-filters label { flex: 1 1 100%; }
  .discovery-filters select, .discovery-filters input { width: 100%; }
  /* Kaynak sütunu her satırda aynı; telefonda gizle, açıklama üstteki metinde */
  .discovery-table :is(th, td):nth-child(4) { display: none; }
  .discovery-table table { min-width: 0; font-size: .875rem; }
  .discovery-table :is(th, td) { padding-inline: .5rem; }
  .discovery-table [data-sort-asc] { padding-inline: .5rem; }
  .discovery-table th:first-child, .discovery-table td:first-child { padding-left: 0; }
  .discovery-table .discovery-name { max-width: 9.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .discovery-table td.discovery-actions { padding-right: 0; text-align: right; }
}
@media (max-width: 400px) {
  .discovery-table table { font-size: .8125rem; }
  .discovery-table thead th { font-size: .75rem; }
  .discovery-table [data-sort-asc] { padding-inline: .25rem; gap: .2rem; }
  .discovery-table .discovery-name { max-width: 7.5rem; }
}

/* Keşfet: durum satırı yüklenirken/temizlenirken içerik kaymasın (CLS). */
#discovery-status { min-height: 1.5em; }
/* Veri gelene kadar kart, süzgeç ve tablolar kendi dolu yüksekliğinde boş yer tutar; gelince alttaki içerik kaymaz. */
.discovery-page #discovery-movers[hidden], .discovery-page #discovery-filters[hidden],
.discovery-page #discovery-stocks[hidden], .discovery-page #discovery-indices[hidden] { display: block; visibility: hidden; }
.discovery-page #discovery-movers[hidden] { min-height: 206px; }
.discovery-page #discovery-filters[hidden] { min-height: 71px; }
.discovery-page #discovery-stocks[hidden] { min-height: 661px; }
.discovery-page #discovery-indices[hidden] { min-height: 277px; }
@media (max-width: 600px) {
  .discovery-page #discovery-movers[hidden] { min-height: 295px; }
  .discovery-page #discovery-filters[hidden] { min-height: 236px; }
  .discovery-page #discovery-stocks[hidden] { min-height: 643px; }
  .discovery-page #discovery-indices[hidden] { min-height: 271px; }
}
