/* Herkese açık kanal sayfası — "Kağıt" teması (18 Eylül 2026, sahip seçimi B).
   Açık zemin, koyu kartlar; lime yalnız vurgu. Yayın sahnesi ve açılış koyu kalır. */
/* Belirteçler yalnız kanal sayfası gövdesinde: bu dosya index.html'e de (rütbe armaları için)
   yüklenir; :root'a yazmak açılış sayfasının renklerini ezer. */
.channel-body {
  --paper: #f3f4ef;
  --paper-2: #ffffff;
  --pitch: #e6efe4;
  --pitch-2: #d6e5d3;
  --ink: #101410;
  --ink-2: #2f3733;
  --muted: #5b655f;
  --line: #0f1a1424;
  --line-2: #0f1a1412;
  --lime: #c6ff3a;
  --lime-ink: #0f1a14;
  --green: #1d6b3a;
  --green-2: #3f8a00;
  --display: Manrope, Arial, sans-serif;
  --body: Manrope, Arial, sans-serif;
  --condensed: 'Barlow Condensed', Barlow, 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rank-0: #b9865c;
  --rank-1: #8f9aa3;
  --rank-2: #d1a80f;
  --rank-3: #e0b64a;
  --rank-4: #1f1f1f;
  --rank-5: #6a4ff0;
  --rank-6: #6fa800;
  --rank-7: #d94aa8;
  --rank-8: #0f97b8;
  --rank-9: #e07a1f;
  --rank-10: #d63c3c;
  --rank-11: #101410;
}
[data-rank='0'] {
  --rank: var(--rank-0);
}
[data-rank='1'] {
  --rank: var(--rank-1);
}
[data-rank='2'] {
  --rank: var(--rank-2);
}
[data-rank='3'] {
  --rank: var(--rank-3);
}
[data-rank='4'] {
  --rank: var(--rank-4);
}
[data-rank='5'] {
  --rank: var(--rank-5);
}
[data-rank='6'] {
  --rank: var(--rank-6);
}
[data-rank='7'] {
  --rank: var(--rank-7);
}
[data-rank='8'] {
  --rank: var(--rank-8);
}
[data-rank='9'] {
  --rank: var(--rank-9);
}
[data-rank='10'] {
  --rank: var(--rank-10);
}
[data-rank='11'] {
  --rank: var(--rank-11);
}
.channel-body :where(*, *::before, *::after) {
  box-sizing: border-box;
}
html:has(> body.channel-body) {
  background: #f3f4ef;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body.channel-body {
  margin: 0;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  min-height: 100svh;
  overflow-x: hidden;
}
.channel-body :where(a) {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--lime);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
}
/* ---- üst çubuk ------------------------------------------------------------------------------ */
.ch-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: #f3f4efe6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.ch-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}
.ch-brand-main {
  font-family: var(--condensed);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1px;
}
.ch-brand-main > span {
  color: var(--green-2);
}
.ch-brand-main em {
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0;
  margin-left: 4px;
}
.ch-brand small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.ch-nav {
  display: flex;
  gap: 4px;
}
.ch-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s;
}
.ch-nav a:hover {
  background: var(--pitch);
}
.ch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: 700 13px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s var(--ease);
}
.ch-button svg {
  width: 14px;
  height: 14px;
}
.ch-button:hover {
  background: #1e2822;
  transform: translateY(-1px);
}
.ch-button:focus-visible,
.ch-tab:focus-visible,
.ch-search input:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 3px;
}
/* ---- kahraman alanı ------------------------------------------------------------------------ */
.ch-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px) 40px;
}
.ch-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  margin: 28px 0 12px;
  padding: 36px 36px 32px;
  background: var(--pitch);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
}
.ch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--green-2);
}
.ch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-2);
}
.ch-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
/* Uzun kanal adları kelime içinden bölünmek yerine küçülür (channel.js data-length ayarlar). */
.ch-hero h1[data-length='long'] {
  font-size: clamp(30px, 4.8vw, 56px);
}
.ch-hero h1[data-length='xl'] {
  font-size: clamp(24px, 3.6vw, 40px);
}
.ch-hero h1 .at {
  color: var(--green-2);
}
.ch-sub {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.ch-sub b {
  color: var(--ink);
}
.ch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-chips span,
.ch-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.ch-chips b {
  color: var(--ink);
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 700;
}
.ch-chips .live {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}
.ch-chips .live b {
  color: var(--lime);
}
.ch-chips .live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  align-self: center;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.ch-hero-art {
  position: relative;
  height: 220px;
}
.ch-lines {
  position: absolute;
  inset: 0;
  border: 2px solid #ffffffb3;
  border-radius: 12px;
  background:
    linear-gradient(#ffffffb3, #ffffffb3) 50% 0 / 2px 100% no-repeat,
    radial-gradient(
      circle at 50% 50%,
      transparent 46px,
      #ffffffb3 47px,
      #ffffffb3 49px,
      transparent 50px
    );
}
.ch-ball {
  position: absolute;
  right: -10px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -18px -14px 0 #1e2822;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
/* ---- bölümler ------------------------------------------------------------------------------- */
.ch-section {
  padding: 36px 0 8px;
}
.ch-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}
.ch-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.ch-heading h2 span {
  color: var(--green-2);
}
.ch-description {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.ch-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.ch-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 700 13px var(--body);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.ch-tab:hover {
  color: var(--ink);
}
.ch-tab.active {
  background: var(--ink);
  color: var(--lime);
}
.ch-period {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  min-height: 18px;
}
/* ---- liderlik tablosu (koyu kart) -------------------------------------------------------- */
.ch-board {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--ink);
  color: #f4f4e9;
  border-radius: 20px;
  display: grid;
  gap: 4px;
}
.ch-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    'no name pts'
    'no bar bar';
  align-items: center;
  gap: 4px 14px;
  padding: 12px 16px 12px 10px;
  border-radius: 14px;
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.ch-row:hover {
  background: #ffffff0a;
}
.ch-row.podium {
  background: #ffffff10;
}
.ch-row .no {
  grid-area: no;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 22px;
  color: #8a948e;
  text-align: center;
}
.ch-row.podium .no {
  color: var(--lime);
}
.ch-row .name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
}
.ch-row .name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-row .name small {
  color: #8a948e;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.ch-row .pts {
  grid-area: pts;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #f4f4e9;
}
.ch-row.podium .pts {
  color: var(--lime);
}
.ch-row .bar {
  grid-area: bar;
  height: 6px;
  border-radius: 3px;
  background: #ffffff14;
  overflow: hidden;
}
.ch-row .bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: #7ac800;
  border-radius: 3px;
  transition: width 0.6s var(--ease);
}
.ch-row.podium .bar i {
  background: var(--lime);
}
.ch-empty {
  padding: 28px 16px;
  text-align: center;
  color: #b7c0ba;
}
.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff12;
  color: #e6eadf;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.rank-chip i,
.rank-emblem i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rank, #8a948e);
}
/* ---- rütbe merdiveni ---------------------------------------------------------------------- */
.ch-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.rank-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.rank-step strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.rank-step small {
  color: var(--muted);
  font-size: 13px;
}
.rank-count {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
}
.rank-emblem {
  position: relative;
  width: 48px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 20px;
}
.rank-emblem svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px #0f1a1426);
}
.rank-emblem .shield {
  fill: var(--rank, #8a948e);
}
.rank-emblem .shine {
  fill: none;
  stroke: #ffffff;
  stroke-opacity: 0.45;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.rank-emblem b {
  position: relative;
  text-shadow: 0 1px 2px #0000004d;
  margin-top: -4px;
}
.rank-emblem i {
  display: none;
}
.rank-emblem.big {
  width: 64px;
  height: 72px;
  font-size: 26px;
}
/* ---- kendini bul ---------------------------------------------------------------------------- */
.ch-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.ch-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: 15px var(--body);
}
.ch-search input::placeholder {
  color: #8a948e;
}
.ch-viewer {
  margin-top: 18px;
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  animation: rise 0.5s var(--ease) both;
}
.viewer-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.viewer-head h3 {
  margin: 2px 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.viewer-head .ch-eyebrow {
  margin: 0;
}
.viewer-points {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.viewer-points strong {
  color: var(--ink);
  font-family: var(--condensed);
  font-size: 22px;
}
.rank-progress {
  height: 10px;
  margin: 18px 0 8px;
  border-radius: 5px;
  background: var(--pitch-2);
  overflow: hidden;
}
.rank-progress i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--green-2);
  border-radius: 5px;
  transition: width 0.8s var(--ease);
}
.viewer-next {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.viewer-next b {
  color: var(--ink);
}
.viewer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.viewer-grid > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pitch);
}
.viewer-grid small {
  display: block;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.viewer-grid b {
  display: block;
  font-family: var(--condensed);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.viewer-grid span {
  font-size: 12px;
  color: var(--muted);
}
.ch-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.ch-hint code {
  font:
    600 13px ui-monospace,
    Menlo,
    Consolas,
    monospace;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
}
/* ---- alt bilgi ve bildirim ---------------------------------------------------------------- */
.ch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 13px;
}
.ch-footer p {
  margin: 0;
}
.ch-footer a {
  color: var(--ink);
  font-weight: 700;
}
.ch-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #f4f4e9;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 50;
  max-width: min(92vw, 480px);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
/* ---- mobil ---------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .ch-header {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .ch-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ch-nav a {
    white-space: nowrap;
  }
  .ch-button {
    min-height: 40px;
    padding: 0 14px;
  }
  .ch-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .ch-hero-art {
    display: none;
  }
  .ch-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .ch-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ch-tab {
    flex: 1;
    padding: 0 8px;
    white-space: nowrap;
  }
  .ch-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 10px 12px 10px 6px;
  }
  .ch-row .name {
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 15px;
  }
  .ch-row .pts {
    font-size: 19px;
  }
  .ch-search {
    flex-direction: column;
  }
  .ch-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch-row,
  .rank-step,
  .ch-viewer {
    animation: none;
  }
  .ch-ball,
  .ch-chips .live::before {
    animation: none;
  }
  .ch-button:hover {
    transform: none;
  }
}
