:root {
  --bg: #0e0c12;
  --bg2: #17141d;
  --card: #1c1823;
  --line: #2c2735;
  --text: #f4efe8;
  --muted: #a69daf;
  --dim: #6f6779;
  --awe1: #ff7a59;
  --awe2: #ffc56b;
  --awe3: #c78bff;
  --radius: 18px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", var(--sans);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
html.playing, html.playing body { overflow: hidden; }
:focus-visible { outline: 3px solid var(--awe2); outline-offset: 3px; border-radius: 10px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Yazı markası: komşu tuşlar, harf harf ışık geçer */
.mark { display: inline-flex; gap: 1px; text-decoration: none; font: 800 24px/1 var(--round); letter-spacing: -0.02em; }
.mark span { display: inline-block; animation: key 6s ease-in-out infinite; }
.mark span:nth-child(2) { animation-delay: .12s } .mark span:nth-child(3) { animation-delay: .24s } .mark span:nth-child(4) { animation-delay: .36s }
.mark span:nth-child(5) { animation-delay: .48s } .mark span:nth-child(6) { animation-delay: .6s } .mark span:nth-child(7) { animation-delay: .72s }
@keyframes key { 0%, 8%, 100% { color: var(--text); transform: none; } 3% { color: var(--awe2); transform: translateY(-2px); } }
.mark.tiny { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { .mark span { animation: none; } }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px max(20px, env(safe-area-inset-left)); background: linear-gradient(var(--bg) 60%, transparent); }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav a.pill { color: var(--text); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.top nav a.pill:hover { border-color: var(--awe1); }

.view { max-width: 1240px; margin: 0 auto; padding: 0 20px 60px; }

/* Giriş */
.hero { text-align: center; padding: 8vh 0 5vh; position: relative; }
.hero::before { content: ""; position: absolute; inset: -10% 10% 20%; background: radial-gradient(closest-side, rgba(255,122,89,.22), transparent), radial-gradient(closest-side at 70% 40%, rgba(199,139,255,.18), transparent); filter: blur(30px); z-index: -1; }
.hero h1 { font: 800 clamp(44px, 8vw, 96px)/1 var(--round); letter-spacing: -0.035em; margin: 0 0 22px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; background: linear-gradient(90deg, var(--awe1), var(--awe2) 55%, var(--awe3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.sub { color: var(--muted); font-size: clamp(16px, 2vw, 20px); max-width: 620px; margin: 0 auto 30px; }
.hint { color: var(--dim); font-size: 14px; margin-top: 16px; }

.awe { display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; padding: 18px 34px; border-radius: 999px; font: 800 22px/1 var(--round); color: #1a0f0a;
  background: linear-gradient(100deg, var(--awe1), var(--awe2)); box-shadow: 0 10px 40px rgba(255,122,89,.35), inset 0 -2px 0 rgba(0,0,0,.15); transition: transform .15s, box-shadow .15s; }
a.awe { text-decoration: none; color: #1a0f0a; }
.awe:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 50px rgba(255,122,89,.45), inset 0 -2px 0 rgba(0,0,0,.15); }
.awe:active { transform: scale(.98); }
.awe svg { width: 24px; height: 24px; stroke-width: 2.6; }
.awe.small { padding: 13px 24px; font-size: 17px; }
.awe.small svg { width: 20px; height: 20px; }

/* Süzgeç */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0 26px; }
.chips button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; }
.chips button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Kartlar */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: #4a4156; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.thumb { aspect-ratio: 16 / 10; background: var(--bg2) center / cover no-repeat; position: relative; overflow: hidden; }
.thumb.gen { display: grid; place-items: center; font: 800 26px/1.1 var(--round); padding: 18px; text-align: center; letter-spacing: -0.02em; }
.thumb .badge { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(14,12,18,.72); backdrop-filter: blur(6px); color: var(--text); }
.thumb .badge.ai { color: var(--awe2); }
.thumb .ext { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(14,12,18,.72); color: var(--muted); }
.card .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font: 750 18px/1.25 var(--round); letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.card .by { margin-top: auto; padding-top: 8px; color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.card .by .h { color: var(--awe1); }

.foot { text-align: center; color: var(--muted); padding: 70px 0 10px; }
.foot .small, .small { color: var(--dim); font-size: 13px; }

/* Sayfa (gönderim, hakkında) */
.page { max-width: 680px; margin: 4vh auto 0; }
.page h1 { font: 800 clamp(34px, 5vw, 52px)/1.05 var(--round); letter-spacing: -0.03em; margin: 0 0 14px; }
.page .sub { margin: 0 0 30px; text-align: left; }
.prose p { color: #d9d2e0; font-size: 18px; }
.agent { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(199,139,255,.1), rgba(255,122,89,.06)); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 34px; }
.agent h2 { margin: 0 0 6px; font: 750 20px/1.2 var(--round); }
.agent p { margin: 0 0 12px; color: var(--muted); }
.copy { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 10px; }
.copy code { flex: 1; font-size: 15px; overflow: auto; white-space: nowrap; }
.copy button { border: 0; background: var(--text); color: var(--bg); border-radius: 8px; padding: 7px 14px; font-weight: 700; cursor: pointer; }
form label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 16px; }
form .opt { color: var(--dim); font-weight: 500; font-size: 13px; }
form input, form select { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 16px var(--sans); }
form input:focus, form select:focus { outline: none; border-color: var(--awe1); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rules { color: var(--muted); font-size: 14px; padding-left: 18px; margin: 6px 0 22px; }
.msg { min-height: 1.5em; margin-top: 14px; color: var(--awe2); }
.msg.err { color: #ff8f8f; }

/* Oynatıcı */
.player { position: fixed; inset: 0; z-index: 20; background: #000; display: flex; flex-direction: column; }
.bar { height: 56px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 10px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
.bar .info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.bar .info strong { font: 750 15px/1.2 var(--round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .info span { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .info span a { color: var(--muted); text-decoration: none; }
.depth { color: var(--dim); font-size: 12px; font-weight: 700; white-space: nowrap; }
.depth b { color: var(--awe2); }
.ctl { display: flex; align-items: center; gap: 4px; }
.ctl button, .ctl a { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; }
.ctl button:hover, .ctl a:hover { background: var(--bg2); color: var(--text); }
.ctl #pLike.on { color: var(--awe1); }
.ctl #pLike.on svg { fill: var(--awe1); }
.ctl .next { background: linear-gradient(100deg, var(--awe1), var(--awe2)); color: #1a0f0a; padding: 0 16px; margin-left: 6px; font: 800 15px/1 var(--round); }
.ctl .next:hover { background: linear-gradient(100deg, var(--awe1), var(--awe2)); color: #1a0f0a; filter: brightness(1.08); }
.stage { position: relative; flex: 1; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--bg); transition: opacity .4s; pointer-events: none; }
.stage .loading h2 { font: 800 clamp(28px, 5vw, 54px)/1.05 var(--round); letter-spacing: -0.03em; color: var(--text); margin: 0 0 10px; }
.stage .loading.gone { opacity: 0; }
.outside { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.outside .box { max-width: 560px; text-align: center; }
.outside .thumb { border-radius: var(--radius); margin-bottom: 22px; }
.outside h2 { font: 800 34px/1.1 var(--round); margin: 0 0 8px; letter-spacing: -0.02em; }
.outside p { color: var(--muted); margin: 0 0 22px; }

/* Önizleme */
.peek { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(6,5,9,.78); backdrop-filter: blur(10px); animation: fade .2s; }
@keyframes fade { from { opacity: 0 } }
.peek-card { position: relative; width: min(980px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: rise .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes rise { from { transform: translateY(20px) scale(.97); opacity: 0 } }
.peek-frame { aspect-ratio: 16 / 10; max-height: 62vh; width: 100%; position: relative; background: #000; }
.peek-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.peek-frame .thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.peek-info { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 22px 22px; }
.peek-info h2 { margin: 0 0 4px; font: 800 24px/1.15 var(--round); letter-spacing: -0.02em; }
.peek-info p { margin: 0; color: var(--muted); }
.peek-info .by { color: var(--dim); font-size: 14px; margin-top: 6px; }
.peek-info .by a { color: var(--muted); }
.x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(14,12,18,.8); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }

@media (max-width: 720px) {
  .hero { padding-top: 5vh; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 15.5px; }
  .card p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .meta { padding: 10px 11px 12px; }
  .card .by { font-size: 11.5px; flex-direction: column; gap: 0; }
  .thumb .badge { font-size: 9.5px; padding: 3px 7px; left: 7px; top: 7px; }
  .thumb .ext { display: none; }
  .bar { gap: 8px; padding-left: 12px; }
  .bar .mark.tiny, .depth, #pShare, #pBack { display: none; }
  .ctl .next span { display: none; }
  .ctl .next { padding: 0 14px; }
  .peek { padding: 10px; align-items: end; }
  .peek-info { flex-direction: column; align-items: stretch; }
  .peek-ctl .awe { width: 100%; justify-content: center; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 1800px) {
  html { font-size: 18px; }
  .view { max-width: 1680px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}
