:root {
  --paper: #EEF1F6;
  --line: #C9D3E6;
  --ink: #1F3A93;
  --text: #16203F;
  --muted: #6B7390;
  --seal: #C21E2B;
  --oath-h: min(32vh, 260px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: Archivo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button { font: inherit; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.page { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }

/* Dil seçici */
.top { display: flex; justify-content: flex-end; padding: 14px 0 0; }
.langs { display: flex; gap: 4px; }
.langs button {
  background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 2px 8px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--text); color: var(--text); }

/* Profil */
.profile { text-align: center; padding: 18px 0 8px; }
.title {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(36px, 9vw, 58px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 auto 10px; max-width: 12ch; text-wrap: balance;
}
.subtitle { color: var(--muted); margin: 0 auto 18px; max-width: 40ch; }

.counts { display: flex; justify-content: center; gap: 36px; margin: 0 0 14px; }
.counts div { display: flex; flex-direction: column-reverse; }
.counts dd { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.1; }
.counts dt { font-size: 13px; color: var(--muted); }

/* Kayan yemin metni */
.oath {
  height: var(--oath-h); overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.oath-track {
  font-family: Spectral, Georgia, serif;
  font-size: clamp(17px, 2.4vw, 20px); line-height: 1.6;
  padding-top: var(--oath-h);
  animation: oath-scroll 55s linear -9s infinite;
}
.oath-track p { margin: 0 0 0.9em; }
.oath-track p:last-child { font-weight: 600; font-size: 1.1em; margin-top: 1.2em; }
.oath:hover .oath-track, .oath:focus .oath-track { animation-play-state: paused; }
@keyframes oath-scroll { from { transform: translateY(0); } to { transform: translateY(-100%); } }

.take {
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 24px; font-weight: 700; font-stretch: 108%; cursor: pointer; margin-top: 16px;
}
.take:hover { background: #172c72; }

/* Izgara */
.grid-wrap { margin-top: 22px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: 6px; overflow: hidden; background: var(--text); color: #fff; cursor: pointer;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.tile .name {
  position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: left;
  font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .badge {
  position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--seal); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.tile .review {
  position: absolute; left: 6px; top: 6px; font-size: 11px; font-style: italic;
  background: rgba(22, 32, 63, 0.75); padding: 1px 6px; border-radius: 4px;
}

.empty { text-align: center; padding: 28px 0; color: var(--muted); }

.foot { margin-top: 36px; text-align: center; font-size: 13px; color: var(--muted); }

/* Tam ekran oynatıcı */
.player {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #0d1430; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
}
.player:not([open]) { display: none; }
.player::backdrop { background: #0d1430; }
.player-close {
  justify-self: end; margin: 10px 12px 6px; background: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
.player-stage {
  height: 100%; max-height: calc(100dvh - 130px); aspect-ratio: 9 / 16; max-width: 100vw;
  display: flex; align-items: center; justify-content: center; background: #000; border-radius: 8px; overflow: hidden;
}
.player-stage iframe { width: 100%; height: 100%; border: 0; }
.player-ext { color: #fff; font-weight: 700; }
.player-meta { padding: 10px 16px 14px; text-align: center; }
.player-name { font-weight: 700; font-size: 17px; }
.player-channel { color: #c9d3e6; font-size: 14px; }
.player-review { font-size: 12px; font-style: italic; color: #c9d3e6; font-weight: 400; }
.badge-inline {
  display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--seal);
  font-size: 11px; align-items: center; justify-content: center; vertical-align: 2px;
}
.player-navs { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.player-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15);
  color: #fff; font-size: 18px; cursor: pointer;
}
.player-nav:disabled { opacity: 0.3; cursor: default; }

/* Yemin et formu */
.sheet {
  width: min(480px, calc(100vw - 24px)); border: 0; border-radius: 14px; padding: 20px;
  background: #fff; color: var(--text);
}
.sheet::backdrop { background: rgba(22, 32, 63, 0.55); }
.sheet form { display: grid; gap: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 24px; font-weight: 800; font-stretch: 110%; }
.sheet-close { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.sheet-intro { margin: 0; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 4px; }
.field-label { font-weight: 600; font-size: 15px; }
.field-hint { font-size: 13px; color: var(--muted); }
.field input {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; color: var(--text);
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(31, 58, 147, 0.18); }
.form-error { margin: 0; color: var(--seal); font-size: 14px; min-height: 1.2em; }
.sheet .take { justify-self: start; margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .oath { height: auto; -webkit-mask-image: none; mask-image: none; }
  .oath-track { animation: none; padding-top: 0; }
}
