/* OyunDostluğu portal — renkler ve köşe yuvarlaklığı yönetim panelinden (:root değişkenleri) gelir */
:root {
  --primary: #f2c14e; --accent: #1fae6b; --bg: #07130e; --surface: #0e2219; --text: #eef5f0; --radius: 16px;
  --muted: color-mix(in srgb, var(--text) 62%, transparent); --line: color-mix(in srgb, var(--text) 10%, transparent);
  --surface2: color-mix(in srgb, var(--surface) 82%, var(--text) 4%); --danger: #e5484d; --ok: #2fbf71; --info: #3d8bfd;
  --shadow: 0 10px 30px rgba(0,0,0,.28); --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-font="rounded"] { --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; }
:root[data-font="serif"] { --font: Georgia, "Times New Roman", serif; }
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: radial-gradient(1100px 520px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 850; } h2 { font-size: clamp(21px, 2.6vw, 28px); } h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #1a1200; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 2px; }

/* Üst çubuk */
/* Kayan duyuru */
.ticker-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; overflow: hidden; }
.ticker-label { flex: none; font-weight: 800; font-size: 15px; white-space: nowrap; margin: 0; color: var(--primary); }
.ticker { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ticker 35s linear infinite; }
.ticker-group { display: inline-flex; gap: 48px; padding-right: 48px; flex: none; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: inherit; text-decoration: none !important; }
.ticker-item img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; flex: none; }
a.ticker-item:hover span { text-decoration: underline; }
button.ticker-item { background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: inherit; cursor: pointer; }button.ticker-item:hover span { text-decoration: underline; }.tk-dlg { width: min(640px, calc(100% - 24px)); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; }.tk-dlg::backdrop { background: rgba(0,0,0,.65); }.tk-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }.tk-body { padding: 20px 22px; } .tk-body h3 { font-size: 22px; margin: 0 0 10px; } .tk-body .prose { font-size: 16px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { mask-image: none; } .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; gap: 8px 24px; } .ticker-group { flex-wrap: wrap; white-space: normal; gap: 8px 24px; } .ticker-group[aria-hidden] { display: none; } }
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; font-size: 20px; text-decoration: none !important; }
.brand img { height: 72px; width: auto; }
.brand .mk { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #e0731e)); color: #241700; font-size: 15px; font-weight: 900; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 650; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--line); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
.umenu { position: relative; }
.umenu > button { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; font: inherit; font-weight: 650; }
.umenu .dd { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; }
.umenu.open .dd { display: block; }
.dd a, .dd button { display: block; width: 100%; text-align: left; color: var(--text); padding: 10px 12px; border-radius: 9px; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.dd a:hover, .dd button:hover { background: var(--line); }
.dd hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.av.lg { width: 84px; height: 84px; font-size: 30px; }

/* Düğmeler ve formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none !important; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #1f1400; } .btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; } .btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 650; margin: 0 0 6px; font-size: 14px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], input[type=color], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--surface)); color: var(--text); font: inherit; }
input[type=color] { padding: 4px; height: 46px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--primary) 60%, transparent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-weight: 600; }
.alert-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.alert-err { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.alert-info { background: color-mix(in srgb, var(--info) 14%, transparent); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social { display: grid; gap: 8px; }
.social .btn { background: var(--surface2); border-color: var(--line); color: var(--text); }

/* Kartlar ve yerleşim */
main { flex: 1; padding: 28px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: 14px; }
.stack > * + * { margin-top: 20px; }
/* Portal düzeni: ortada içerik, panelden seçilen yan sütunlar (ikisi / sağ / sol / yok) */
.pl { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.pl-main { grid-area: main; min-width: 0; } .pl-left { grid-area: left; min-width: 0; } .pl-right { grid-area: right; min-width: 0; }
.pl.pl-right { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main right"; }
.pl.pl-left { grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "left main"; }
.pl.pl-both { grid-template-columns: 250px minmax(0, 1fr) 290px; grid-template-areas: "left main right"; }
.pl-top { margin-bottom: 20px; } .pl-bottom { margin-top: 20px; }
body:has(.pl-both) { --wrap: 1320px; }
/* Oyun sayfası: salonlar */
.salons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 12px; }
.salon { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--line); }
.salon.locked { opacity: .65; }
.salon-hd { display: flex; align-items: center; gap: 10px; } .salon-hd h3 { margin: 0; flex: 1; font-size: 18px; }
.salon-ic { font-size: 26px; line-height: 1; } .salon p { margin: 0; font-size: 14px; }
.stats.sm { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stats.sm .stat { padding: 8px 4px; } .stats.sm .stat b { font-size: 20px; }
.stats:has(.stat:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
/* Medya blokları */
.media-blk figure { margin: 0; } .media-blk img { width: 100%; height: auto; border-radius: 12px; } .media-blk figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
/* Videolar / Resimler şeritleri: masaüstünde tek satır ızgara, telefonda yana kaydırma */
.strip-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .strip-hd a { font-size: 14px; white-space: nowrap; }
.strip { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.strip > * { scroll-snap-align: start; margin: 0; } .strip-i { grid-auto-columns: minmax(150px, 1fr); }
.strip figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-i img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--line); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; } .lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; display: block; cursor: zoom-out; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--line); }
.yt { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; } .yt:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 14px; background: #e00; color: #fff; display: grid; place-items: center; font-size: 22px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.textimage { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.textimage img { width: 100%; height: auto; border-radius: 12px; } .textimage.img-left img { order: -1; }
.spacer { background: none; border: 0; box-shadow: none; padding: 0; height: 24px; }
.hero { padding: clamp(24px, 5vw, 48px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--surface)); overflow: hidden; position: relative; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: color-mix(in srgb, var(--text) 85%, transparent); max-width: 620px; }
.hero .hero-img { position: absolute; right: -20px; bottom: -20px; width: min(46%, 380px); opacity: .9; }
.games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.game { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .2s, border-color .2s; }
.game:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.game .ic { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--line); display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--primary); }
.game h3 { margin: 0; } .game p { margin: 0; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--line); color: var(--muted); }
.badge-ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: #7ee2a8; } .badge-warn { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }
.badge-err { background: color-mix(in srgb, var(--danger) 22%, transparent); color: #ff9a9d; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface2); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--primary); } .stat span { font-size: 13px; color: var(--muted); }
.news { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.news a.item { display: block; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important; }
.news .cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--line); }
.news .body { padding: 14px 16px; } .news h3 { font-size: 17px; margin: 0 0 6px; } .news p { color: var(--muted); font-size: 14px; margin: 0; }
.news time { font-size: 12px; color: var(--muted); }
.prose { font-size: 17px; } .prose h2 { margin-top: 1.4em; } .prose img { border-radius: 12px; margin: 1em 0; }
.prose blockquote { border-left: 4px solid var(--primary); margin: 1em 0; padding: 4px 16px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.auth { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 650; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.tabs a.on { color: #1f1400; background: var(--primary); border-color: var(--primary); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 650; font-size: 13px; }
.tscroll { overflow-x: auto; }
.page-cover { width: 100%; height: auto; border-radius: 12px; margin-bottom: 12px; }
.m0 { margin: 0; } .center { text-align: center; } .muted { color: var(--muted); } .mt { margin-top: 16px; }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .foot a { color: var(--muted); }

/* Mobil */
@media (max-width: 1100px) {
  .pl.pl-both { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "main right" "left right"; }
}
@media (max-width: 960px) {
  /* Telefonda/tablette tek sütun: önce içerik, sonra yan bloklar */
  .pl.pl-both, .pl.pl-right, .pl.pl-left { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; }
  .hero .hero-img { display: none; }
  .textimage { grid-template-columns: 1fr; } .textimage.img-left img { order: 0; }
}
@media (max-width: 760px) {
  .brand img { height: 56px; } .brand .mk { width: 52px; height: 52px; } .top .wrap { min-height: 76px; }
  .menu-btn { display: block; }
  .top .wrap { flex-wrap: wrap; }
  .nav, .top .right { display: none; width: 100%; margin: 0; }
  .top.open .nav { display: flex; flex-direction: column; padding: 8px 0; }
  .top.open .right { display: flex; flex-wrap: wrap; padding-bottom: 12px; }
  .umenu .dd { position: static; display: block; box-shadow: none; margin-top: 8px; }
  .umenu > button { display: none; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.mx { margin-left: auto; margin-right: auto; } .h3 { font-size: 19px; margin: 0; }
/* Üye paylaşımları: beğeni, görüntülenme, küçük resim */
.like { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.like span { color: #ff8a8f; } .like.on { border-color: #ff8a8f; background: color-mix(in srgb, #ff5a62 18%, transparent); }
.views { font-size: 13px; color: var(--muted); margin-left: 8px; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sc-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--line); }
