/* Most Irritating Club: gazete arka sayfası tasarımı */
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap;
  src: url(fonts/anton-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap;
  src: url(fonts/anton-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-serif-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f4f0e6;
  --paper-light: #fbf9f2;
  --ink: #141414;
  --muted: #5f5b50;
  --line: #b9b4a6;
  --red: #cf1018;
  --red-dark: #a50c13;
  --red-tint: #f7d9d4;
  --green: #0b7a3a;
  --head: Anton, Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.45 var(--body); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
[hidden] { display: none !important; }

.page { max-width: 1180px; margin: 0 auto; padding: 12px 14px 0; }

/* Başlık */
.strap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.logo { display: block; color: inherit; text-decoration: none; text-align: center; font-family: var(--head); font-size: clamp(42px, 11.8vw, 122px); line-height: 1; text-transform: uppercase; padding: 8px 0 6px; }
.rule { border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink); height: 9px; }
.logo.small { font-size: clamp(34px, 9vw, 56px); }

/* Arama */
.search { position: relative; }
.search input { width: 100%; min-height: 46px; padding: 8px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-style: italic; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-results { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 60vh; overflow-y: auto; background: var(--paper-light); border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.search-results button { display: flex; gap: 8px; align-items: center; width: 100%; min-height: 46px; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--ui); font-size: 15px; }
.search-results button:hover { background: var(--paper); }
.search-results small { margin-left: auto; color: var(--muted); }

/* Manşet */
.lead { display: grid; gap: 16px; padding: 16px 0 18px; border-bottom: 1px solid var(--ink); }
.kick { display: inline-block; background: var(--red); color: #fff; font: 700 12.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; }
.leader h2 { font-size: clamp(30px, 8vw, 56px); line-height: 1.12; margin: 8px 0 6px; overflow-wrap: break-word; }
.leader.main h2 { font-size: clamp(44px, 12.5vw, 104px); padding-bottom: .1em; }
.leader.main h2.long { font-size: clamp(34px, 8vw, 72px); }
.leader h2 button, .leader .prev button { all: unset; cursor: pointer; }
.leader h2 button:focus-visible, .leader .prev button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.leader .deck { margin: 0; font-size: 17px; }
.leader.main .deck { font-size: 19px; }
.leader .prev { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font: 13.5px/1.4 var(--ui); }
.leader .prev button { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); }
.leader.empty h2 { color: var(--muted); }
.side-leaders { display: grid; gap: 16px; }
.narrow-only { display: none; }
.lead-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-actions .btn { display: flex; align-items: center; justify-content: center; margin: 0; text-align: center; text-decoration: none; }
.lead-actions .btn.ghost { margin: 0; color: var(--ink); }
html { scroll-behavior: smooth; }
#vote, #tables { scroll-margin-top: 14px; }

/* Telefon: üç lider küçük kutular halinde yan yana, oy kutusu hemen görünsün */
@media (max-width: 559px) {
  .lead { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; padding: 12px 0 14px; }
  .side-leaders { display: contents; }
  .leader { min-width: 0; padding: 0 8px; }
  .leader.main { padding-left: 0; }
  .leader + .side-leaders .leader, .side-leaders .leader { border-left: 1px solid var(--ink); }
  .side-leaders .leader:last-child { padding-right: 0; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .kick { font-size: 10.5px; padding: 4px 5px; }
  .leader h2, .leader.main h2, .leader.main h2.long { font-size: 21px; line-height: 1.08; margin: 6px 0 2px; padding: 0; hyphens: auto; overflow-wrap: anywhere; }
  .leader .deck, .leader.main .deck { font-size: 13.5px; }
  /* Telefonda en uzun kelime sütuna sığacak kadar küçülür (Anton harfi ~0.58em) */
  .leader h2, .leader.main h2, .leader.main h2.long { font-size: clamp(10px, calc((100vw - 76px) / (var(--w) * 1.75)), 21px); }
  .leader .prev { margin-top: 6px; padding-top: 4px; font-size: 11.5px; line-height: 1.3; overflow-wrap: anywhere; }
  .leader .prev-extra { display: block; font-size: 10.5px; }
  .lead-actions { grid-column: 1 / -1; }
  /* Yalnızca "This month" gösterilirken telefonda da büyük manşet */
  .lead.single { grid-template-columns: 1fr; gap: 14px; }
  .lead.single .wide-only { display: inline; }
  .lead.single .narrow-only { display: none; }
  .lead.single .kick { font-size: 12.5px; padding: 5px 7px; }
  .lead.single .leader.main h2, .lead.single .leader.main h2.long { font-size: clamp(26px, calc((100vw - 28px) / (var(--w) * .6)), 60px); margin: 8px 0 4px; }
  .lead.single .leader.main .deck { font-size: 17px; }
  .lead-actions .btn { min-height: 48px; font-size: 20px; }
  .lead-actions .btn.ghost { font-size: 15px; }
}

/* Ana ızgara */
.front { display: grid; gap: 22px; padding-top: 18px; }
.tables { min-width: 0; }
.table-filter { display: grid; gap: 10px; margin-bottom: 18px; }
#tableMeta { margin: 6px 0 0; }
.section-h { font-size: 27px; border-bottom: 3px solid var(--ink); padding-bottom: 4px; margin-bottom: 2px; }

/* Oy kuponu */
.coupon { position: relative; border: 2px dashed var(--ink); background: var(--paper-light); padding: 14px; align-self: start; scroll-margin-top: 12px; }
.coupon::before { content: "✂"; position: absolute; top: -14px; left: 12px; background: var(--paper); padding: 0 4px; font-size: 16px; }
.coupon h2 { font-size: 30px; line-height: 1.1; }
.coupon .tag { margin: 4px 0 12px; font-style: italic; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
label { display: block; font: 13px var(--ui); color: var(--muted); }
select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 36px 8px 10px; background: var(--paper-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--ink); border-radius: 0; font-family: var(--ui); font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
select::-ms-expand { display: none; }
.notice { border-left: 4px solid var(--red); padding: 8px 10px; margin-bottom: 12px; background: var(--paper); font-size: 15px; }
select:disabled { opacity: .55; cursor: not-allowed; }
.pickers .wide { grid-column: 1 / -1; }
.flag { width: 20px; height: 15px; flex: none; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

.btn { display: block; width: 100%; min-height: 50px; padding: 11px 13px; background: var(--red); color: #fff; border: 0; font-family: var(--head); font-size: 22px; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { background: #c9c4b6; color: #4f4c44; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-family: var(--ui); font-size: 15px; text-transform: none; letter-spacing: 0; margin-top: 12px; min-height: 46px; }
.btn.ghost:hover { background: var(--paper); }
.link { background: none; border: 0; color: var(--red-dark); padding: 10px 0 0; min-height: 44px; font-family: var(--ui); font-size: 15px; text-decoration: underline; }
.table-actions { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0 14px; }
.error { color: var(--red-dark); margin: 10px 0 0; font-size: 15px; }
.meta { color: var(--muted); font: 14px var(--ui); margin: 0 0 8px; }

/* Tablolar */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; min-height: 44px; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rank-list li:hover { background: rgba(0,0,0,.04); }
.rank-list .pos { font-family: var(--head); font-size: 19px; }
.rank-list li:first-child .pos { color: var(--red); }
.rank-list .name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-width: 0; font-weight: 600; }
.rank-list .name small { color: var(--muted); font: 12.5px var(--ui); }
.rank-list .val { text-align: right; font-variant-numeric: tabular-nums; }
.rank-list .val small { display: block; color: var(--muted); font: 12.5px var(--ui); }
.rank-list .empty { display: block; color: var(--muted); font-style: italic; cursor: default; padding: 12px 0; }
.rank-list .empty:hover { background: none; }
.rank-list li.mine { background: var(--red-tint); }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--red-dark); font-weight: 600; }

/* Bölümler */
.card { padding-top: 26px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.tab { min-height: 42px; padding: 7px 11px; background: transparent; border: 1px solid var(--ink); font-family: var(--ui); font-size: 14px; }
.tab.active { background: var(--ink); color: #fff; }

/* Reklam */
.ad { display: flex; align-items: center; justify-content: center; min-height: 110px; margin-top: 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--muted); font: 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; }

/* Kulüp penceresi */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(20,20,20,.65); }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 22px 18px 18px; background: var(--paper-light); border: 2px solid var(--ink); }
.close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; background: none; border: 0; font: 30px/1 var(--ui); }
.club-head { display: flex; align-items: center; gap: 10px; padding-right: 34px; margin-top: 8px; }
.club-head h3 { font-size: 34px; line-height: 1.05; overflow-wrap: anywhere; }
.club-head .flag { width: 28px; height: 21px; }
.club-league { margin: 2px 0 12px; color: var(--muted); font: 14px var(--ui); }
.big-rank { font-family: var(--head); font-size: 68px; line-height: 1; color: var(--red); margin: 6px 0; }
.big-line { margin: 0 0 14px; font-style: italic; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border-top: 3px solid var(--ink); }
.stat { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-weight: 400; font-size: 27px; line-height: 1.15; }
.stat span { color: var(--muted); font: 13px/1.35 var(--ui); display: block; }
.share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.share a, .share button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 2px; background: var(--ink); color: #fff; border: 0; text-decoration: none; font: 13px var(--ui); text-align: center; }

.share-title { font-size: 30px; line-height: 1.1; padding-right: 34px; margin-top: 4px; }
.share-preview { display: block; width: 100%; max-width: 260px; margin: 12px auto; min-height: 120px; background: var(--paper); border: 1px solid var(--line); }
.share-image { margin-top: 6px; }

/* Alt bilgi ve metin sayfaları */
footer { margin-top: 26px; padding: 14px 0 34px; border-top: 5px solid var(--ink); color: var(--muted); font-size: 14px; text-align: center; }
footer p { margin: 4px 0; }
footer a { color: inherit; }
.prose { max-width: 66ch; padding-top: 18px; }
.prose h2 { font-size: 34px; margin-bottom: 10px; }
.prose h3 { font-size: 22px; margin: 20px 0 4px; }

@media (max-width: 520px) { .pickers { grid-template-columns: 1fr; } .share { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) {
  .side-leaders { grid-template-columns: 1fr 1fr; }
  .side-leaders .leader + .leader { border-left: 1px solid var(--ink); padding-left: 16px; }
}
@media (min-width: 720px) {
  .page { padding: 16px 24px 0; }
  .table-filter { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1040px) {
  .lead-actions { display: none; }
  .front { grid-template-columns: 5fr 8fr; }
  .lead { grid-template-columns: 6fr 7fr; gap: 22px; }
  .lead.single { grid-template-columns: 1fr; }
  .side-leaders { border-left: 1px solid var(--ink); padding-left: 22px; }
  .side-leaders .leader h2 { font-size: 44px; }
}
