/* AslanForum — Sarı-Kırmızı tema */
:root {
  --red: #d1102f;
  --red-dark: #8f0a22;
  --yellow: #ffc21a;
  --yellow-soft: #fff3cf;
  --bg: #faf3e8;
  --card: #ffffff;
  --text: #1f1a1c;
  --muted: #7a6f73;
  --border: #e4dbd3;
  --row-alt: #fbf8f5;
  --radius: 8px;
  --link: #c40e2c;
  --ok-bg: #e3f6e8; --ok-text: #17682f; --err-bg: #fde4e8; --err-text: #a90432;
  color-scheme: light;
}
/* Gece modu: sistem ayarı ya da üstteki 🌙 düğmesi */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161214; --card: #221c1f; --text: #f1ebe6; --muted: #a99ca1;
    --border: #3a3034; --row-alt: #1d181a; --yellow-soft: #3a2f12; --link: #ff6b8a;
    --ok-bg: #143322; --ok-text: #7fe0a0; --err-bg: #3d1420; --err-text: #ff8fa6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161214; --card: #221c1f; --text: #f1ebe6; --muted: #a99ca1;
  --border: #3a3034; --row-alt: #1d181a; --yellow-soft: #3a2f12; --link: #ff6b8a;
  --ok-bg: #143322; --ok-text: #7fe0a0; --err-bg: #3d1420; --err-text: #ff8fa6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 15px;
  background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
h1 { margin: 0 0 4px; font-size: 24px; }

/* Header */
.site-header { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #4a0115 100%); color: #fff;
  border-bottom: 4px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 28px; }
.logo:hover { text-decoration: none; }
.logo strong { color: var(--yellow); }
.logo small { display: block; font-size: 12px; opacity: .85; letter-spacing: .3px; }
.logo-icon { font-size: 40px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.search input { padding: 9px 14px; border-radius: 20px; border: 0; width: 260px; max-width: 100%; }
.navbar { background: rgba(0,0,0,.25); }
.nav-inner { display: flex; justify-content: space-between; flex-wrap: wrap; }
.navbar a { color: #fff; display: inline-block; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.navbar a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.nav-cta { background: var(--yellow); color: var(--red-dark) !important; }
.nav-admin { color: var(--yellow) !important; }

main.wrap { padding-top: 20px; padding-bottom: 30px; }
.announcement { background: var(--yellow-soft); border-left: 5px solid var(--yellow); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-weight: 600; }
.flash.success { background: var(--ok-bg); color: var(--ok-text); }
.flash.error { background: var(--err-bg); color: var(--err-text); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .layout, .grid-2 { grid-template-columns: 1fr; } }

.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.box.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.box-head { background: linear-gradient(90deg, var(--red), var(--red-dark)); color: #fff; padding: 10px 16px; font-weight: 700;
  border-bottom: 3px solid var(--yellow); }
.box-body { padding: 16px; }
.box.box-body { padding: 16px; }

.breadcrumb { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Tables */
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 8px 12px;
  border-bottom: 1px solid var(--border); background: var(--row-alt); }
.forum-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.forum-table tbody tr:hover { background: var(--row-alt); }
.forum-table tr:last-child td { border-bottom: 0; }
.forum-table .icon { width: 50px; font-size: 26px; text-align: center; }
.forum-table .num { width: 90px; text-align: center; }
.forum-table .last { width: 220px; font-size: 14px; }
.forum-name { font-size: 16px; font-weight: 700; }
.topic-title { font-weight: 600; }
tr.pinned { background: var(--yellow-soft); }
.empty { text-align: center; padding: 30px !important; color: var(--muted); }
@media (max-width: 700px) {
  .forum-table .num, .forum-table th.num, .forum-table .last, .forum-table th.last { display: none; }
}

.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-right: 4px; }
.tag-pin { background: var(--yellow); color: var(--red-dark); }
.tag-lock { background: #555; color: #fff; }

/* Sidebar */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.stats { display: flex; justify-content: space-around; text-align: center; }
.stats b { display: block; font-size: 22px; color: var(--red); }
.stats span { font-size: 12px; color: var(--muted); }

/* Badges */
.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; background: #ddd; color: #333; }
.badge.role-admin { background: var(--red); color: var(--yellow); }
.badge.role-moderator { background: var(--yellow); color: var(--red-dark); }
.badge.role-banned { background: #222; color: #fff; }
.role-admin-text { color: var(--red) !important; font-weight: 700; }
.role-moderator-text { color: #c98a00 !important; font-weight: 700; }
.rank { font-size: 12px; color: var(--muted); font-style: italic; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; flex-shrink: 0;
  background: linear-gradient(135deg, var(--yellow) 50%, var(--red) 50%); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Posts */
.post { display: grid; grid-template-columns: 180px 1fr; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.post-user { background: var(--row-alt); border-right: 1px solid var(--border); padding: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.post-username { font-weight: 700; font-size: 16px; }
.post-user dl { display: grid; grid-template-columns: auto auto; gap: 2px 6px; margin: 6px 0 0; text-align: left; }
.post-user dt { font-weight: 600; } .post-user dd { margin: 0; }
.post-main { padding: 12px 18px; display: flex; flex-direction: column; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.post-body { padding: 14px 0; flex: 1; overflow-wrap: anywhere; }
.post-body img { max-width: 100%; border-radius: 6px; }
blockquote { margin: 8px 0; padding: 10px 14px; background: var(--row-alt); border-left: 4px solid var(--yellow); border-radius: 4px; }
blockquote cite { display: block; font-weight: 700; font-style: normal; font-size: 13px; color: var(--red); margin-bottom: 4px; }
.signature { border-top: 1px dashed var(--border); padding-top: 8px; font-size: 13px; color: var(--muted); }
.edited { font-size: 12px; font-style: italic; }
.post-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.post-actions form, .mod-tools form { display: inline; }
.mod-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) {
  .post { grid-template-columns: 1fr; }
  .post-user { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; padding: 10px; }
  .post-user .avatar { width: 40px !important; height: 40px !important; font-size: 20px !important; }
  .post-user dl { display: none; }
}

.profile-head { display: flex; gap: 20px; align-items: center; }

/* Forms & buttons */
.form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.form label.check { font-weight: 400; }
input, textarea, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.form input:not([type=checkbox]), .form textarea, .form select { display: block; width: 100%; margin-top: 4px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.btn { display: inline-block; background: var(--red); color: #fff !important; border: 0; padding: 9px 18px; border-radius: 6px;
  font-weight: 700; cursor: pointer; font-size: 14px; text-decoration: none !important; }
.btn:hover { background: var(--red-dark); }
.btn.block { display: block; width: 100%; text-align: center; margin-bottom: 8px; }
.btn-ghost { background: transparent; color: var(--red) !important; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--yellow-soft); }
.btn-danger { background: #2b2b2b; }
.btn-danger:hover { background: #000; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.editor { margin-bottom: 12px; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--row-alt); border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; }
.editor-bar button { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; cursor: pointer; color: var(--text); }
.editor-bar button:hover { background: var(--yellow-soft); }
.editor textarea { border-radius: 0 0 6px 6px; margin-top: 0 !important; width: 100%; display: block; resize: vertical; }

.pagination { display: flex; gap: 4px; margin: 10px 0 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--card); font-size: 14px; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

.site-footer { background: #1a1416; color: #ddd; text-align: center; padding: 20px 0; border-top: 4px solid var(--yellow); font-size: 14px; }
.site-footer p { margin: 4px 0; }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--red-dark), #3d0111); padding: 20px 0; border-right: 4px solid var(--yellow); }
.admin-side .logo { padding: 0 20px 20px; font-size: 22px; }
.admin-side .logo-icon { font-size: 30px; }
.admin-side nav a { display: block; color: #fff; padding: 11px 20px; font-weight: 600; font-size: 14px; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.12); text-decoration: none; border-left: 4px solid var(--yellow); padding-left: 16px; }
.admin-main { padding: 24px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 16px; }
.stat-card b { display: block; font-size: 28px; color: var(--red); }
.stat-card span { color: var(--muted); font-size: 13px; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 200px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 50px; background: linear-gradient(180deg, var(--yellow), var(--red)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; }
.bar-col small { margin-top: 6px; color: var(--muted); }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-row input { color: var(--text); }
.inline-form { display: flex; gap: 6px; align-items: center; }
.admin-table td { padding: 8px; }
.admin-table td form { display: inline; }
.admin-table input:not([type=checkbox]) { width: 100%; }
.w-xs { width: 70px !important; } .w-lg { min-width: 240px; }
.nowrap { white-space: nowrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.banned-row { opacity: .6; }
@media (max-width: 800px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 4px solid var(--yellow); padding: 12px 0; }
  .admin-side nav { display: flex; flex-wrap: wrap; }
  .admin-side nav a { padding: 8px 12px; }
  .admin-main { padding: 16px; }
  .box { overflow-x: auto; }
}

/* ---------- v2: bildirim, beğeni, mesaj, maç, anket, şikayet ---------- */
.count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: var(--yellow);
  color: var(--red-dark); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: top; }
.nav-user { display: inline-flex !important; align-items: center; gap: 6px; }
img.avatar { object-fit: cover; background: var(--row-alt); border: 2px solid var(--yellow); }

.like-btn { background: var(--card); color: var(--muted) !important; border: 1px solid var(--border); }
.like-btn:hover:not([disabled]) { background: var(--err-bg); }
.like-btn.liked { background: var(--err-bg); color: var(--err-text) !important; border-color: var(--red); }
.like-btn[disabled] { opacity: .6; cursor: default; }
.post-actions form { display: inline; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 2px solid var(--border); }
.tabs a { padding: 8px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--red); border-bottom-color: var(--red); }
.tabs a:hover { text-decoration: none; color: var(--red); }
tr.unread td { background: var(--yellow-soft); }

.notif-list li.unread { background: var(--yellow-soft); }
.notif { display: flex; align-items: center; gap: 10px; color: var(--text); }
.notif:hover { text-decoration: none; }
.notif-icon { font-size: 18px; width: 22px; text-align: center; }

.match-box .next-match { padding: 14px 16px; text-align: center; background: linear-gradient(180deg, var(--yellow-soft), transparent); }
.match-box .teams { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 6px 0; }
.match-box .teams .gs { color: var(--red); }
.match-box .teams b { color: var(--muted); font-size: 12px; }
.match-box .when { font-size: 13px; color: var(--muted); }
.countdown { display: flex; justify-content: center; gap: 6px; margin-top: 10px; font-weight: 700; }
.countdown span { background: var(--red); color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 11px; display: flex; flex-direction: column; min-width: 44px; }
.countdown b { font-size: 18px; color: var(--yellow); }
.small-list { border-top: 1px solid var(--border); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.result { display: flex; align-items: center; gap: 6px; }
.result .score { margin-left: auto; }
.res { width: 20px; height: 20px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.res-w { background: #1e9e4a; } .res-d { background: #888; } .res-l { background: var(--red); }
.match-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.match-form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 4px; }

.poll-row { margin-bottom: 10px; }
.poll-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 3px; }
.poll-bar { height: 12px; background: var(--row-alt); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.poll-bar div { height: 100%; background: linear-gradient(90deg, var(--yellow), var(--red)); }
.poll-row.mine .poll-label { font-weight: 700; color: var(--red); }
.poll-form label { display: block; padding: 6px 0; cursor: pointer; }
.poll-add { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 6px; }
.poll-add summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

.report-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.report .toolbar form { display: inline; }

/* ---------- v3: rütbe, sohbet kutusu, mobil menü, gece modu ---------- */
.rank-badge { display: inline-block; font-size: 11px; font-weight: 700; font-style: normal; padding: 1px 8px; border: 1px solid; border-radius: 10px; white-space: nowrap; }

.header-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 18px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.25); }
.menu-btn { display: none; }
.menu-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

@media (max-width: 760px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 22px; }
  .logo-icon { font-size: 30px; }
  .logo small { display: none; }
  .search { order: 3; width: 100%; }
  .search input { width: 100%; }
  .menu-btn { display: inline-block; }
  .navbar { display: none; }
  .navbar.open { display: block; }
  .nav-inner, .nav-inner > div { flex-direction: column; display: flex; width: 100%; }
  .navbar a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-inner > div + div { border-top: 2px solid var(--yellow); }
  main.wrap { padding-top: 12px; }
  h1 { font-size: 20px; }
  .page-head .btn { width: 100%; text-align: center; }
  .forum-table td { padding: 10px 8px; }
  .forum-table .icon { width: 36px; font-size: 20px; }
  .editor-bar .emojis { width: 100%; }
}

.shoutbox .box-head { display: flex; justify-content: space-between; align-items: center; }
.live-dot { color: #7fe0a0 !important; font-size: 11px; }
.shout-list { height: 260px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.shout { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.shout .avatar { flex-shrink: 0; }
.shout-user { font-weight: 700; }
.shout-body { overflow-wrap: anywhere; }
.shout-body img { max-width: 160px; max-height: 120px; border-radius: 4px; }
.shout-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; opacity: 0; }
.shout:hover .shout-del { opacity: 1; }
.shout-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.shout-form input { flex: 1; min-width: 0; }
@media (hover: none) { .shout-del { opacity: 1; } }

#uploadStatus { min-height: 18px; margin-top: 4px; }
.post-body a img { cursor: zoom-in; }

/* ---------- v4: sohbet yönetimi ---------- */
.shout-pinned { padding: 8px 12px; background: var(--yellow-soft); border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.live-dot.off { color: var(--muted) !important; }
.shout-mute { background: none; border: 0; cursor: pointer; font-size: 11px; opacity: 0; padding: 0 2px; }
.shout:hover .shout-mute { opacity: 1; }
@media (hover: none) { .shout-mute { opacity: 1; } }
.admin-table td.shout-body { max-width: 420px; }
.admin-table td.shout-body img { max-width: 120px; max-height: 90px; }

/* ---------- v5: logo + canlı renkler ---------- */
:root { --gold: #f5b82e; --gold-light: #ffe08a; --gold-dark: #b7791f; --crimson: #e3122f; --wine: #5c0014; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Üst bant: parlak kırmızı + ince sarı-kırmızı çapraz desen + altın alt çizgi */
.site-header {
  background:
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 15% 0%, rgba(255,120,60,.45), transparent 55%),
    linear-gradient(135deg, var(--crimson) 0%, #b80d29 45%, var(--wine) 100%);
  border-bottom: 0; box-shadow: 0 4px 18px rgba(120,0,20,.35); position: relative;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark)); }
.header-inner { padding-top: 10px; padding-bottom: 10px; }
.logo-img { display: block; height: 78px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); transition: transform .2s; }
.logo:hover .logo-img { transform: scale(1.03); }
.navbar { background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.38)); border-top: 1px solid rgba(255,194,26,.25); }
.navbar a { transition: background .15s, color .15s; }
.navbar a:hover { background: rgba(255,194,26,.16); color: var(--gold-light); }
.nav-cta { background: linear-gradient(180deg, var(--gold-light), var(--gold)) !important; color: var(--wine) !important; }
.nav-admin { color: var(--gold-light) !important; }
.search input { box-shadow: inset 0 1px 3px rgba(0,0,0,.15); border: 2px solid transparent; }
.search input:focus { border-color: var(--gold); outline: 0; }

/* Kutular: canlı başlık, altın çizgi, hafif gölge */
.box { box-shadow: 0 2px 10px rgba(140,10,30,.07); border-color: rgba(209,16,47,.12); }
.box-head { background: linear-gradient(100deg, var(--crimson) 0%, #b30c28 60%, #85081f 100%); border-bottom: 0; position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,.3); letter-spacing: .2px; }
.box-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.forum-table tbody tr:hover { background: var(--yellow-soft); }
.forum-name { color: var(--red); }
.forum-table .icon { filter: saturate(1.3); }

/* Düğmeler: parlak geçiş + ışıltı */
.btn { background: linear-gradient(180deg, #ea1f3c, var(--red) 60%, #b00d27); box-shadow: 0 2px 6px rgba(209,16,47,.35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .1s, box-shadow .15s, filter .15s; }
.btn:hover { background: linear-gradient(180deg, #f2304c, #d81432 60%, #b80e29); box-shadow: 0 4px 12px rgba(209,16,47,.45); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; box-shadow: none; border-color: rgba(209,16,47,.3); }
.btn-ghost:hover { background: var(--yellow-soft); box-shadow: none; filter: none; }
.btn-danger { background: linear-gradient(180deg, #3a3a3a, #1f1f1f); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.btn-danger:hover { background: #000; }
.like-btn { background: var(--card); box-shadow: none; }

/* Duyuru, rozetler, sayaçlar */
.announcement { background: linear-gradient(90deg, var(--yellow-soft), rgba(255,243,207,.4)); border-left-color: var(--gold); box-shadow: 0 1px 4px rgba(183,121,31,.15); }
.badge.role-admin { background: linear-gradient(180deg, var(--crimson), #a00c25); color: var(--gold-light); }
.badge.role-moderator { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); }
.count { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.avatar { background: linear-gradient(135deg, var(--gold) 50%, var(--crimson) 50%); }
img.avatar { border-color: var(--gold); }
.pagination .current { background: linear-gradient(180deg, #ea1f3c, var(--red)); }
.stats b, .stat-card b { background: linear-gradient(180deg, var(--crimson), #9e0b24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--crimson), var(--gold)) 1; }
.countdown span { background: linear-gradient(180deg, #ea1f3c, #a50c26); box-shadow: 0 2px 6px rgba(209,16,47,.3); }
.countdown b { color: var(--gold-light); }
.res-w { background: linear-gradient(180deg, #2bc061, #178a41); }

/* Alt bilgi */
.site-footer { background: linear-gradient(180deg, #2a0710, #12080b); border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--crimson)); }

/* Yönetim paneli */
.admin-side { background: linear-gradient(180deg, #b00d28, var(--wine) 70%, #2a0710); border-right: 0; box-shadow: 4px 0 0 var(--gold); }
.admin-logo { flex-direction: column; align-items: flex-start; gap: 4px; }
.admin-logo .logo-img { height: auto; width: 100%; max-width: 200px; }
.admin-logo span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

/* Gece modunda da canlı kalsın */
:root[data-theme="dark"] .box, :root[data-theme="dark"] .post { box-shadow: 0 2px 12px rgba(0,0,0,.4); border-color: #3a2a2f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .box { box-shadow: 0 2px 12px rgba(0,0,0,.4); border-color: #3a2a2f; } }

@media (max-width: 760px) {
  .logo-img { height: 52px; }
  .admin-logo .logo-img { max-width: 150px; }
}
/* Logo kırmızı zeminde kaybolmasın: arkası koyu, kenarı belirgin */
.site-header {
  background:
    radial-gradient(ellipse 420px 140px at 170px 50%, rgba(40,0,8,.75), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 60% 0%, rgba(255,120,60,.35), transparent 55%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 35%, var(--crimson) 60%, #8a0920 100%);
}
.logo-img { height: 86px; filter: drop-shadow(0 0 1px rgba(0,0,0,.95)) drop-shadow(0 0 2px rgba(0,0,0,.8)) drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
@media (max-width: 760px) {
  .site-header { background:
    radial-gradient(ellipse 260px 90px at 110px 34px, rgba(40,0,8,.75), transparent 70%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 40%, var(--crimson) 70%, #8a0920 100%); }
  .logo-img { height: 56px; }
}

/* ---------- v6: takım logoları ---------- */
.team-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; object-fit: contain; }
img.team-logo { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.team-ini { border-radius: 50%; color: #fff; font-weight: 800; letter-spacing: -.5px; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(0,0,0,.3); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.match-box .teams { gap: 6px; align-items: flex-start; margin: 10px 0 6px; }
.match-box .team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.match-box .team span { overflow-wrap: anywhere; line-height: 1.2; }
.match-box .vs { align-self: center; margin-top: -18px; font-size: 13px !important; font-weight: 900; color: var(--gold-dark) !important; background: var(--yellow-soft); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.small-list .result { gap: 6px; }
.fx-date { min-width: 34px; }

/* ---------- v7: turnuva rozetleri + puan durumu ---------- */
.comp-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); }
.small-list .comp-badge { font-size: 10px; padding: 0 5px; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); background: var(--row-alt); }
.standings td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.standings .num, .standings th.num { text-align: center; width: 38px; }
.standings .rk { width: 28px; font-weight: 700; color: var(--muted); text-align: center; }
.standings .tm { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.standings .tm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standings .pts { font-weight: 800; color: var(--red); }
.standings .form { white-space: nowrap; }
.standings .form .res { width: 18px; height: 18px; font-size: 10px; margin-right: 2px; }
.standings tr.gs-row td { background: linear-gradient(90deg, rgba(255,194,26,.28), rgba(209,16,47,.10)); font-weight: 700; }
.standings tr.gs-row .rk { color: var(--red); }
.standings tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
.standings.compact td { padding: 6px; }
.standings.compact .tm { font-size: 13px; }
.standings tr.z-cl td:first-child { box-shadow: inset 4px 0 0 #1a56db; }
.standings tr.z-el td:first-child { box-shadow: inset 4px 0 0 #f06a00; }
.standings tr.z-rel td:first-child { box-shadow: inset 4px 0 0 #6b6b6b; }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: middle; }
.legend .lg.z-cl { background: #1a56db; } .legend .lg.z-el { background: #f06a00; } .legend .lg.z-rel { background: #6b6b6b; }
.table-scroll { overflow-x: auto; }
.standings-box .small-list { flex-direction: row; justify-content: space-between; }

/* ---------- v8: özel mesajlar (sohbet görünümü) ---------- */
.chat-app { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 230px); min-height: 460px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(140,10,30,.07); }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 12px; background: linear-gradient(100deg, var(--crimson), #85081f); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.chat-new { display: flex; gap: 6px; }
.chat-new input { flex: 1; min-width: 0; border-radius: 16px; border: 0; padding: 6px 12px; }
.chat-convs { overflow-y: auto; flex: 1; }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.conv:hover { background: var(--row-alt); text-decoration: none; }
.conv.active { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--red); }
.conv.unread .conv-last { color: var(--text); font-weight: 700; }
.conv-av { position: relative; flex-shrink: 0; display: inline-flex; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--card); }
.conv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
.chat-empty { padding: 30px 16px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,194,26,.07), transparent 40%), radial-gradient(circle at 80% 70%, rgba(209,16,47,.06), transparent 45%), var(--bg); }
.chat-placeholder { margin: auto; text-align: center; color: var(--muted); }
.chat-placeholder div { font-size: 64px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--border); }
.chat-head form { margin-left: auto; }
.chat-who { display: flex; flex-direction: column; line-height: 1.2; }
.chat-back { display: none; font-size: 28px; line-height: 1; padding: 0 6px; color: var(--red); }
.chat-back:hover { text-decoration: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { text-align: center; margin: 10px 0 6px; }
.day-sep span { background: var(--card); color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bubble { max-width: min(75%, 520px); padding: 7px 10px 5px; border-radius: 14px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.12); overflow-wrap: anywhere; }
.bubble.theirs { align-self: flex-start; background: var(--card); border-top-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(180deg, #e8203d, #c40e2c); color: #fff; border-top-right-radius: 4px; }
.bubble.mine a { color: var(--gold-light); }
.bubble .b-body img { max-width: 100%; max-height: 280px; border-radius: 8px; display: block; margin: 2px 0; }
.bubble .b-body blockquote { background: rgba(0,0,0,.12); border-left-color: var(--gold); color: inherit; }
.b-meta { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }
.tick { font-style: normal; letter-spacing: -2px; margin-left: 2px; }
.tick.seen { color: var(--gold-light); opacity: 1; }
.chat-hello { margin: auto; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; resize: none; border-radius: 20px; padding: 9px 14px; max-height: 140px; line-height: 1.4; }
.chat-attach { background: var(--row-alt) !important; color: var(--text); flex-shrink: 0; }
.chat-send { border-radius: 50%; width: 42px; height: 42px; padding: 0; font-size: 18px; flex-shrink: 0; }
@media (max-width: 760px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 170px); }
  .chat-app.has-conv .chat-list { display: none; }
  .chat-app:not(.has-conv) .chat-main { display: none; }
  .chat-back { display: inline; }
  .bubble { max-width: 85%; }
}

/* ---------- v9: rütbe resim ikonları ---------- */
.rank-img { height: 16px; width: auto; max-width: 48px; vertical-align: -3px; object-fit: contain; }
.rank-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rank-img-big { max-width: 140px; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.rank-preview { min-width: 120px; display: flex; justify-content: center; }

/* ---------- v10: logo boyutu orantılı ---------- */
.header-inner { padding-top: 8px; padding-bottom: 8px; }
.logo-img { height: 64px; max-width: 220px; object-fit: contain; }
.site-header { background:
    radial-gradient(ellipse 320px 110px at 140px 50%, rgba(40,0,8,.7), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    radial-gradient(ellipse at 60% 0%, rgba(255,120,60,.35), transparent 55%),
    linear-gradient(120deg, #5c0014 0%, #b80d29 35%, var(--crimson) 60%, #8a0920 100%); }
@media (max-width: 760px) {
  .logo-img { height: 46px; max-width: 160px; }
}

/* ---------- v11: gizli alanlar her zaman gizli kalsın ---------- */
[hidden], input[type="file"][hidden] { display: none !important; }

/* ---------- v12: bakım modu ---------- */
.maint-banner { background: repeating-linear-gradient(135deg, #ffc21a 0 16px, #ffd54d 16px 32px); color: #3d000d; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.maint-banner a { color: #8a0920; font-weight: 800; }
.maint-box.on { border: 2px solid var(--gold); }
.maint-box.on .box-head { background: repeating-linear-gradient(135deg, #b80d29 0 16px, #9e0b24 16px 32px); }
.maint-toggle { font-size: 16px; padding: 10px 12px; background: var(--yellow-soft); border-radius: 8px; }

/* ---------- v13: profil fotoğrafı ayarı + imza resimleri ---------- */
.av-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.av-current { flex-shrink: 0; }
.av-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 14px; }
.crop-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15,0,5,.78); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.crop-modal[hidden] { display: none !important; }
.crop-box { background: var(--card); border-radius: 14px; width: 100%; max-width: 360px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.crop-head { padding: 12px 16px; font-weight: 800; color: #fff; background: linear-gradient(100deg, var(--crimson), #85081f); }
.crop-stage { position: relative; width: 280px; height: 280px; margin: 16px auto 8px; overflow: hidden; border-radius: 12px; background: #111; cursor: grab; touch-action: none; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
/* Yuvarlak çerçeve: dışı karartılır, profil fotoğrafının görünecek kısmı */
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); border: 3px solid var(--gold); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.crop-zoom input { flex: 1; accent-color: var(--red); padding: 0; border: 0; }
.crop-btns { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 16px 16px; }
.sig-edit { margin-bottom: 12px; font-size: 14px; }
.sig-edit .editor-bar { margin-top: 6px; }
.sig-edit textarea { display: block; width: 100%; border-radius: 0 0 6px 6px; margin-top: 0 !important; }
.sig-count { font-size: 12px; margin-top: 2px; }
.sig-preview-label { margin-top: 8px; font-size: 12px; }
.sig-preview { border: 1px dashed var(--border); border-radius: 6px; padding: 8px; min-height: 40px; background: var(--row-alt); }
/* İmzadaki resimler mesajları boğmasın */
.signature img { max-width: 100%; max-height: 140px; width: auto; height: auto; vertical-align: middle; border-radius: 4px; }

/* ---------- v14: profil sayfası + ayrı düzenleme sayfası ---------- */
.profile-card { overflow: hidden; }
.profile-cover { height: 90px; background:
  repeating-linear-gradient(135deg, rgba(255,194,26,.10) 0 14px, transparent 14px 28px),
  linear-gradient(120deg, #5c0014, var(--crimson) 55%, #8a0920); border-bottom: 3px solid var(--gold); }
.profile-card .profile-head { align-items: flex-end; gap: 18px; margin-top: -55px; flex-wrap: wrap; }
.profile-card .profile-head > .avatar { border: 4px solid var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.profile-info { flex: 1; min-width: 220px; }
.profile-info h1 { margin-bottom: 4px; }
.profile-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.profile-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-stats div { background: var(--row-alt); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; text-align: center; min-width: 80px; }
.profile-stats b { display: block; font-size: 16px; color: var(--red); }
.profile-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-cta { align-self: center; }
.profile-sig { border-top: 1px dashed var(--border); }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edit-grid .box { margin-bottom: 0; }
.edit-wide { grid-column: 1 / -1; }
.edit-profile .av-edit { margin-bottom: 0; }
.edit-save { display: flex; justify-content: flex-end; gap: 10px; margin: 20px 0; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
@media (max-width: 760px) {
  .edit-grid { grid-template-columns: 1fr; }
  .profile-card .profile-head { margin-top: -45px; }
  .profile-cta { width: 100%; }
  .profile-cta .btn { width: 100%; text-align: center; }
  .edit-save .btn { flex: 1; text-align: center; }
}
/* Sadece fotoğraf kapağa taşsın, isim beyaz alanda kalsın */
.profile-card .profile-head { margin-top: 0; align-items: center; }
.profile-card .profile-head > .avatar { margin-top: -62px; align-self: flex-start; }
@media (max-width: 760px) { .profile-card .profile-head { margin-top: 0; } .profile-card .profile-head > .avatar { margin-top: -55px; } }

/* ---------- v15: profesyonel menü ikonları + reklam alanları ---------- */
.ico { display: block; flex-shrink: 0; }
.header-inner { flex-wrap: nowrap; }
.header-ad { flex: 1; display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.nav-inner { align-items: center; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.nav-links .ico { display: inline-block; vertical-align: -3px; }
.nav-user-area { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.navbar a.nav-icon, .nav-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important;
  border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.navbar a.nav-icon:hover, .nav-icon:hover { background: rgba(255,194,26,.18); color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.25); text-decoration: none; }
.badge-count { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: linear-gradient(180deg, #ff5a6a, #d1102f); color: #fff; font-size: 10px; font-weight: 800; line-height: 15px; text-align: center;
  border: 2px solid #6b0619; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.navbar a.nav-profile { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px 3px 3px !important; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .15s, box-shadow .15s; }
.navbar a.nav-profile:hover { background: rgba(255,194,26,.16); box-shadow: 0 4px 12px rgba(0,0,0,.25); text-decoration: none; }
.nav-profile .avatar { border: 2px solid var(--gold) !important; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.np-name { font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar a.nav-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.navbar a.nav-pill.nav-cta { border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
/* Tema düğmesi: ay ↔ güneş dönerek geçer */
.theme-btn { overflow: hidden; margin-left: 4px; background: linear-gradient(180deg, rgba(255,224,138,.18), rgba(255,194,26,.06)) !important; border-color: rgba(255,224,138,.35) !important; }
.theme-btn span { position: absolute; display: flex; transition: transform .45s cubic-bezier(.4,1.6,.5,1), opacity .3s; }
.theme-btn .t-moon { color: var(--gold-light); }
.theme-btn .t-sun { color: #ffd23f; transform: rotate(-90deg) scale(.4); opacity: 0; }
.theme-btn.is-dark .t-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
.theme-btn.is-dark .t-sun { transform: none; opacity: 1; }
.menu-btn { display: none; flex-shrink: 0; }
.menu-btn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid #8a0920; }

/* Reklam alanları */
.ad { position: relative; text-align: center; margin: 0 auto 20px; max-width: 100%; overflow: hidden; }
.ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.ad-label { position: absolute; top: 3px; right: 4px; z-index: 1; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.header-ad .ad { margin: 0; max-width: 728px; }
.header-ad .ad img { max-height: 90px; width: auto; }
.ad-sidebar { max-width: 300px; }
.ad-topic { margin: 0 0 14px; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .header-ad { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; color: #fff; }
  .nav-inner .nav-user-area { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px; padding: 12px 16px; }
  .navbar .nav-user-area a { border-bottom: 0; }
  .nav-links { flex-direction: column; align-items: stretch; }
}

/* Admin: reklam kartları */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.ads-grid .box { margin-bottom: 0; }
.ad-card.on { border: 2px solid #22c55e; }
.ad-size { float: right; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 10px; }
.ad-type { display: flex; gap: 16px; margin-bottom: 10px; }
.ad-toggle { background: var(--yellow-soft); padding: 8px 12px; border-radius: 8px; }
.ad-card form[data-type="image"] .ad-fields[data-for="html"], .ad-card form[data-type="html"] .ad-fields[data-for="image"] { display: none; }
.ad-preview { background: var(--row-alt); border: 1px dashed var(--border); border-radius: 6px; padding: 8px; margin-bottom: 8px; text-align: center; }
.ad-preview img { max-width: 100%; max-height: 120px; }
.ad-card textarea { font-family: Consolas, monospace; font-size: 12px; }
@media (max-width: 500px) { .ads-grid { grid-template-columns: 1fr; } }

/* ---------- v16: maç kartı (otomatik maç konuları) ---------- */
.match-card { max-width: 620px; margin: 4px 0 12px; border-radius: 16px; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,194,26,.25), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,194,26,.06) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #5c0014, #b80d29 50%, #3d000d);
  box-shadow: 0 8px 24px rgba(92,0,20,.35); border: 2px solid var(--gold); }
.mc-top { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 12px 0; font-size: 13px; color: rgba(255,255,255,.85); }
.mc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px 16px 10px; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.mc-team .team-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.mc-team img.team-logo { background: rgba(255,255,255,.92); border-radius: 50%; padding: 6px; }
.mc-team b { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.mc-team.gs b { color: var(--gold-light); }
.mc-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.mc-vs { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900;
  color: #5c0014; background: linear-gradient(180deg, var(--gold-light), var(--gold)); box-shadow: 0 0 0 4px rgba(255,224,138,.25), 0 6px 16px rgba(0,0,0,.35); }
.mc-score { font-size: 46px; font-weight: 900; line-height: 1; color: var(--gold-light); text-shadow: 0 3px 8px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.mc-score span { margin: 0 8px; color: rgba(255,255,255,.6); }
.mc-ms { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 10px; background: rgba(0,0,0,.3); }
.mc-ms.w { background: #1e9e4a; } .mc-ms.l { background: #555; }
.mc-live { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.35); animation: mcPulse 1.4s infinite; }
@keyframes mcPulse { 50% { opacity: .55; } }
.mc-countdown { display: flex; gap: 5px; }
.mc-countdown span { display: flex; flex-direction: column; min-width: 40px; padding: 4px 4px 3px; border-radius: 8px; font-size: 10px; text-transform: uppercase;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,224,138,.35); }
.mc-countdown b { font-size: 17px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.mc-date { padding: 10px 12px 14px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); border-top: 1px solid rgba(255,224,138,.2); margin-top: 6px; }
.match-topic-btn { display: inline-block; margin-top: 12px; }
@media (max-width: 520px) {
  .mc-body { padding: 14px 8px 8px; gap: 4px; }
  .mc-team .team-logo { width: 56px !important; height: 56px !important; }
  .mc-team b { font-size: 14px; }
  .mc-mid { min-width: 90px; }
  .mc-score { font-size: 34px; }
  .mc-countdown span { min-width: 30px; }
  .mc-countdown b { font-size: 14px; }
}

/* ---------- v17: konu etiketleri ---------- */
.prefix { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; margin-right: 2px; border-radius: 6px; font-size: 12px; font-weight: 800;
  line-height: 1.6; vertical-align: 2px; white-space: nowrap; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12); letter-spacing: .2px; }
.prefix i { font-style: normal; display: inline-flex; align-items: center; }
.prefix img { height: 14px; width: auto; max-width: 28px; object-fit: contain; }
h1 .prefix { font-size: 15px; padding: 2px 10px 2px 8px; vertical-align: 4px; border-radius: 8px; }
h1 .prefix img { height: 18px; }
.list .prefix, .forum-table .last .prefix { font-size: 11px; padding: 0 6px 0 5px; }
.title-row { display: flex; gap: 12px; align-items: flex-end; }
.title-row label { margin-bottom: 12px; }
.title-row .grow { flex: 1; }
.prefix-select { min-width: 150px; }
.mod-tools .prefix-select { min-width: 0; padding: 4px 6px; font-size: 13px; }
@media (max-width: 600px) { .title-row { flex-direction: column; align-items: stretch; gap: 0; } }

/* ---------- v18: alt bölümler ---------- */
.subforums { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13px; }
.subforums a { display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px; border-radius: 12px; background: var(--row-alt); border: 1px solid var(--border); font-weight: 600; }
.subforums a:hover { background: var(--yellow-soft); border-color: var(--gold); text-decoration: none; }
.admin-table tr.sub-row td { background: var(--row-alt); }
.sub-arrow { color: var(--muted); font-weight: 800; margin-right: 4px; }

/* ---------- v19: ana sayfa anket kutusu ---------- */
.pw-q { font-weight: 800; font-size: 15px; margin-bottom: 10px; line-height: 1.35; }
.pw-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; font-size: 14px; }
.pw-opt:hover { background: var(--yellow-soft); border-color: var(--gold); }
.pw-opt input { accent-color: var(--red); margin: 0; }
.pw-opt:has(input:checked) { background: var(--yellow-soft); border-color: var(--red); font-weight: 700; }
.pw-form .btn { margin-top: 4px; }
.pw-row { margin-bottom: 9px; }
.pw-label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 3px; }
.pw-label b { color: var(--red); }
.pw-row.mine .pw-label span { font-weight: 800; color: var(--red); }
.pw-foot { font-size: 12px; margin-top: 6px; text-align: center; }
.pw-link { display: block; text-align: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.other-polls { border-top: 1px solid var(--border); }
.op-head { padding: 10px 16px 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.op-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-top: 1px solid var(--border); color: var(--text); }
.op-item:hover { background: var(--row-alt); text-decoration: none; }
.op-q { font-weight: 700; font-size: 14px; color: var(--link); }
.op-item .muted { font-size: 12px; }

/* ---------- v20: sohbet emoji paneli (Galatasaray temalı) ---------- */
.shout-form { position: relative; align-items: center; }
.emoji-wrap { position: relative; flex-shrink: 0; }
.emoji-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--row-alt); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .15s, border-color .15s; }
.emoji-toggle:hover, .emoji-toggle.on { background: var(--yellow-soft); border-color: var(--gold); transform: scale(1.06); }
.emoji-panel { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 50; width: 340px; max-width: calc(100vw - 40px);
  background: var(--card); border: 2px solid var(--gold); border-radius: 14px; box-shadow: 0 12px 32px rgba(60,0,15,.35); overflow: hidden; }
.emoji-panel[hidden] { display: none !important; }
.emoji-panel::after { content: ""; position: absolute; bottom: -8px; left: 14px; width: 14px; height: 14px; background: var(--card); border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.ep-tabs { display: flex; background: linear-gradient(100deg, var(--crimson), #85081f); }
.ep-tabs button { flex: 1; border: 0; background: transparent; color: rgba(255,255,255,.75); font-weight: 700; font-size: 12px; padding: 9px 4px; cursor: pointer; border-bottom: 3px solid transparent; }
.ep-tabs button.active { color: #fff; border-bottom-color: var(--gold); background: rgba(0,0,0,.15); }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; max-height: 190px; overflow-y: auto; }
.ep-grid[hidden] { display: none; }
.ep-grid button { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; transition: background .1s, transform .1s; }
.ep-grid button:hover { background: var(--yellow-soft); transform: scale(1.18); }
.ep-chants { grid-template-columns: 1fr 1fr; gap: 6px; }
.ep-chants button { font-size: 13px; font-weight: 700; text-align: left; padding: 8px 10px; background: var(--row-alt); border: 1px solid var(--border); color: var(--text); }
.ep-chants button:hover { transform: none; border-color: var(--gold); }
@media (max-width: 520px) {
  .emoji-panel { width: calc(100vw - 40px); }
  .ep-grid { grid-template-columns: repeat(7, 1fr); }
  .ep-chants { grid-template-columns: 1fr; }
}
/* Emoji paneli sohbet kutusunun dışına taşabilsin (kesilmesin) */
.box.shoutbox { overflow: visible; }
.shoutbox .box-head { border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- v21: son mesaj hücresi (profil resmi + başlık + tarih · yazan) ---------- */
.forum-table .last { width: 270px; }
.lp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp .avatar { flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.lp-text { min-width: 0; flex: 1; line-height: 1.35; }
.lp-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.lp-title .prefix { font-size: 10px; padding: 0 5px 0 4px; vertical-align: 1px; }
.lp-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-meta a { color: var(--link); font-weight: 600; }
.list li .lp { padding: 2px 0; }

/* ---------- v22: görev rozeti görselleri ---------- */
.role-img { height: 20px; width: auto; max-width: 70px; object-fit: contain; vertical-align: middle; }
.role-img-big { height: auto; max-height: 64px; max-width: 150px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.role-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--row-alt); }
.role-preview { min-height: 70px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px dashed var(--border); border-radius: 8px; padding: 6px; }
.role-btns { display: flex; gap: 6px; }
.profile-badges .role-img { height: 26px; max-width: 90px; }

/* ---------- v23: gömülü video / gönderi (YouTube, X, Instagram) ---------- */
.embed { margin: 8px 0; max-width: 640px; }
.embed-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.embed-yt.shorts { aspect-ratio: 9 / 16; max-width: 340px; }
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-ig { max-width: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.embed-ig iframe { display: block; width: 100%; height: 640px; border: 0; }
.embed-x { max-width: 550px; }
.embed-x blockquote.twitter-tweet { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid #000; border-radius: 12px; background: var(--row-alt); }
.bubble .embed { max-width: 100%; }
@media (max-width: 520px) { .embed-ig iframe { height: 560px; } }

/* ---------- v24: okunmamış konular ---------- */
.new-badge { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .5px; vertical-align: 2px;
  color: #fff !important; background: linear-gradient(180deg, #ff4d5e, #d1102f); box-shadow: 0 1px 4px rgba(209,16,47,.45); text-decoration: none !important; animation: newPulse 2.4s ease-in-out infinite; }
@keyframes newPulse { 50% { box-shadow: 0 0 0 4px rgba(209,16,47,.15); } }
tr.is-unread .topic-title { font-weight: 800; }
tr.is-unread td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.forum-table .icon { position: relative; }
.forum-table .icon.has-new::after { content: ""; position: absolute; top: 8px; right: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #ff6b7a, #d1102f); box-shadow: 0 0 0 2px var(--card), 0 0 8px rgba(209,16,47,.7); }
.forum-table .icon:not(.has-new) { opacity: .75; }
.badge-count.inline { position: static; display: inline-block; margin-left: 5px; vertical-align: 1px; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }

/* ---------- v25: @etiketleme ve konu takibi ---------- */
a.mention { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 700; background: var(--yellow-soft); color: var(--red) !important; border: 1px solid rgba(209,16,47,.18); text-decoration: none !important; }
a.mention:hover { background: var(--gold); color: var(--wine) !important; }
.editor { position: relative; }
.mention-box { position: absolute; left: 12px; bottom: 34px; z-index: 40; min-width: 220px; max-width: 300px; background: var(--card); border: 2px solid var(--gold);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(60,0,15,.3); overflow: hidden; }
.mention-box[hidden] { display: none !important; }
.mb-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; border: 0; background: transparent; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.mb-item.active, .mb-item:hover { background: var(--yellow-soft); color: var(--red); }
.follow-form { margin-left: auto; }
.follow-form .btn { display: inline-flex; align-items: center; gap: 6px; }
.follow-form .btn .ico { display: inline-block; }
.follow-form .following { color: var(--red) !important; border-color: var(--red); }
.notify-pref { padding: 10px 12px; background: var(--yellow-soft); border-radius: 8px; line-height: 1.5; }

/* ---------- v26: uygulama olarak yükle ---------- */
.navbar .install-btn { background: linear-gradient(180deg, var(--gold-light), var(--gold)) !important; color: var(--wine) !important; border: 0 !important; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.navbar .install-btn[hidden] { display: none !important; }
/* Uygulama olarak açıldığında (ana ekrandan) üst boşluğu iPhone çentiğine göre ayarla */
@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } }

/* ---------- v27: paylaş butonu ---------- */
.share-menu { position: absolute; z-index: 1000; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text) !important; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); }
.share-menu .sm-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; flex: none; }

/* ---------- v28: ana sayfa manşeti ---------- */
.headline { position: relative; margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: #3d000d; box-shadow: 0 10px 30px rgba(92,0,20,.25); aspect-ratio: 21 / 8; min-height: 230px; }
.hl-track, .hl-slide { position: absolute; inset: 0; }
.hl-slide { display: block; color: #fff !important; text-decoration: none !important; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hl-slide.active { opacity: 1; visibility: visible; }
.hl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 7s ease; }
.hl-slide.active .hl-img { transform: scale(1.08); }
.hl-noimg { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 70% 30%, rgba(255,201,40,.35), transparent 60%), linear-gradient(135deg, #c8102e, #5c0014 70%); }
.hl-noimg img { width: min(46%, 360px); opacity: .9; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.hl-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 60px 26px 34px; background: linear-gradient(180deg, transparent, rgba(20,0,5,.72) 45%, rgba(20,0,5,.92)); }
.hl-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hl-tag { padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #f5b82e); color: #3d000d; font-size: 12px; font-weight: 800; }
.hl-title { font-size: clamp(18px, 2.6vw, 28px); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.5); max-width: 900px; }
.hl-slide:hover .hl-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hl-ex { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.5; max-width: 760px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-meta { color: rgba(255,255,255,.7); font-size: 12px; }
.hl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; z-index: 2; }
.headline:hover .hl-nav, .hl-nav:focus-visible { opacity: 1; }
.hl-nav:hover { background: rgba(200,16,46,.85); }
.hl-prev { left: 12px; } .hl-next { right: 12px; }
.hl-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.hl-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hl-dots button.active { width: 24px; background: #ffc928; }
.mod-tools .is-featured { color: #b07800 !important; border-color: #f5b82e !important; }
@media (max-width: 700px) {
  .headline { aspect-ratio: 4 / 3; min-height: 0; border-radius: 12px; }
  .hl-text { padding: 40px 16px 30px; }
  .hl-ex { display: none; }
  .hl-nav { display: none; }
  .hl-dots { left: 0; right: 0; justify-content: center; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hl-slide, .hl-img { transition: none; } .hl-slide.active .hl-img { transform: none; } }

/* ---------- v28: haftanın en aktifleri ---------- */
.weekly-list { list-style: none; margin: 0; padding: 6px 12px; }
.weekly-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.weekly-list li:last-child { border-bottom: 0; }
.wk-rank { width: 24px; text-align: center; font-size: 18px; font-weight: 800; color: var(--muted); flex: none; }
.wk-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-stat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wk-stat b { color: var(--text); font-size: 14px; }