:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --panel-2: #172238;
  --text: #edf3ff;
  --muted: #9db0d0;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 14px 40px rgba(0,0,0,0.25);
  --radius: 18px;
  --accent: #4f8cff;
  --accent-dim: rgba(79,140,255,0.2);
  --ok: #6ee7a8;
  --warn: #f4d03f;
  --err: #f1948a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: linear-gradient(180deg, #0b1220 0%, #0f1728 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 40px;
}

.hero {
  margin-bottom: 22px;
}
.hero--home {
  padding-bottom: 4px;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0;
  color: #c5d4ea;
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}

.card {
  background: rgba(18,26,43,0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.search-panel {
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}
.search-panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #c8d8f0;
  letter-spacing: 0.02em;
}
.search-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.search-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.search-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(122,184,255,0.58);
  background: #1b2a44;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(122,184,255,0.15);
}
input[type="search"]::-webkit-search-cancel-button {
  filter: invert(0.85);
}

/* Ana sayfa arama kutusu: açık zemin — yazılabilir alan olduğu net anlaşılsın */
.search-panel input.search-input-main,
.search-panel input[type="search"].search-input-main {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(79, 140, 255, 0.12);
}
.search-panel input.search-input-main::placeholder,
.search-panel input[type="search"].search-input-main::placeholder {
  color: #64748b;
}
.search-panel input.search-input-main:hover,
.search-panel input[type="search"].search-input-main:hover {
  border-color: rgba(79, 140, 255, 0.45);
}
.search-panel input.search-input-main:focus,
.search-panel input[type="search"].search-input-main:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-panel input.search-input-main::-webkit-search-cancel-button,
.search-panel input[type="search"].search-input-main::-webkit-search-cancel-button {
  filter: none;
  opacity: 0.55;
}

button,
.btn {
  min-height: 44px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary,
button.btn-primary {
  background: linear-gradient(180deg, #5b96ff 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 18px rgba(79,140,255,0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-secondary,
button.btn-secondary,
button.secondary {
  background: #24324d;
  color: #e8f0ff;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover,
button.secondary:hover {
  background: #2d3f5e;
}
button:focus-visible,
.btn:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:active {
  transform: scale(0.98);
}

.status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.status--info {
  color: #c5d4ea;
  background: rgba(79,140,255,0.08);
  border-color: rgba(79,140,255,0.2);
}
.status--loading {
  color: #b8d4ff;
  background: rgba(79,140,255,0.1);
  border-color: rgba(79,140,255,0.25);
}
.status--ok {
  color: var(--ok);
  background: rgba(46,204,113,0.1);
  border-color: rgba(46,204,113,0.25);
}
.status--warn {
  color: var(--warn);
  background: rgba(241,196,15,0.08);
  border-color: rgba(241,196,15,0.22);
}
.status--error {
  color: var(--err);
  background: rgba(231,76,60,0.1);
  border-color: rgba(231,76,60,0.28);
}

.summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.summary-card {
  padding: 14px 16px;
  background: rgba(18,26,43,0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sheet-card {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(18,26,43,0.95);
}
.sheet-header {
  padding: 14px 16px;
}
.sheet-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.sheet-meta {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #0b1220;
  -webkit-overflow-scrolling: touch;
}
.table-scroll-hint {
  margin: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(79,140,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
/* Arama sonuçları (index): sütun dikey çizgileri */
.sheet-card .table-wrap th,
.sheet-card .table-wrap td {
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sheet-card .table-wrap th:first-child,
.sheet-card .table-wrap td:first-child {
  border-left: 1px solid rgba(255,255,255,0.08);
}
th {
  position: sticky;
  top: 0;
  background: rgba(11,18,32,0.98);
  z-index: 1;
}
tr:hover td {
  background: rgba(255,255,255,0.03);
}
mark {
  background: #ffe16b;
  color: #111;
  padding: 0 2px;
  border-radius: 4px;
}

.empty,
.error-box {
  padding: 20px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.empty {
  background: rgba(18,26,43,0.92);
}
.empty--noresult {
  border-style: dashed;
  background: rgba(18,26,43,0.75);
}
.empty--noresult .empty-retry-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.error-box {
  background: rgba(231,76,60,0.1);
  border-color: rgba(231,76,60,0.35);
  color: #f5c4bc;
}
.error-box strong {
  color: #fff;
}

.checkbox { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: #4f8cff;
  cursor: pointer;
}
.remember-label {
  margin-top: 4px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.remember-label span {
  line-height: 1.45;
}
.small { font-size: 13px; color: var(--muted); }

.site-footer {
  margin-top: 36px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.site-footer-source {
  margin: 0 0 10px;
  max-width: 62ch;
}
.site-footer-source .site-footer-drive-link {
  color: #7ab8ff;
  font-weight: inherit;
  text-decoration: none;
}
.site-footer-source .site-footer-drive-link:hover {
  text-decoration: underline;
}
.site-footer-source .site-footer-drive-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer-source .site-footer-drive-link strong {
  font-weight: 700;
}
.site-footer-meta {
  margin: 0 0 12px;
}
.site-footer-updated time {
  color: #c5d4ea;
  font-weight: 600;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.site-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.site-footer-nav-btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.site-footer-nav-btn:active {
  transform: scale(0.98);
}
.site-footer-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Footer: ikincil linkler daha okunur tıklanabilir yüzey */
.site-footer-nav .site-footer-nav-btn.btn-secondary:not(.site-footer-nav-btn--telegram) {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f0f5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  filter: none;
}
.site-footer-nav .site-footer-nav-btn.btn-secondary:not(.site-footer-nav-btn--telegram):hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  filter: none;
}

/* Telegram: güçlü mavi gradient yerine sakin outline (footer dengesi) */
.site-footer-nav-btn--telegram {
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.42);
  color: #a8c8ff;
  box-shadow: none;
  filter: none;
}
.site-footer-nav-btn--telegram:hover {
  background: rgba(79, 140, 255, 0.18);
  border-color: rgba(79, 140, 255, 0.58);
  color: #cfe0ff;
  filter: none;
}
.site-footer-telegram-icon {
  flex-shrink: 0;
  display: block;
  opacity: 1;
  color: #8eb8ff;
}
.site-footer-sep {
  opacity: 0.45;
}

/* MHK / deplasmanli-lig-hakemleri.php — okunabilirlik & düzen */
.page-mhk {
  font-size: 17px;
  line-height: 1.6;
}
.page-mhk .container--mhk {
  width: min(880px, calc(100% - 32px));
  margin-top: 28px;
  margin-bottom: 48px;
}
.page-mhk .mhk-hero {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-mhk .mhk-hero .hero-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
}
.page-mhk .mhk-hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: min(100%, 40ch);
}
.mhk-hero-sub {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 450;
  color: var(--muted);
}
.mhk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(165deg, rgba(18, 26, 43, 0.92) 0%, rgba(11, 18, 32, 0.75) 100%);
  box-shadow: var(--shadow);
}
.mhk-toolbar-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8c9e6;
}
.mhk-toolbar-select {
  min-width: min(260px, 100%);
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.95);
  color: #f0f6ff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mhk-toolbar-select:hover {
  border-color: rgba(79, 140, 255, 0.45);
}
.mhk-toolbar-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.mhk-hero .hero-lead strong {
  color: #e8f0ff;
}
.mhk-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
}
.mhk-error-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 0.95rem;
  line-height: 1.55;
}
.mhk-err-label {
  font-weight: 600;
  color: #fde68a;
}
.mhk-empty {
  text-align: center;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.65;
}
.mhk-day-block {
  margin-bottom: 36px;
  padding: 22px 22px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.mhk-day-block:last-child {
  margin-bottom: 0;
}
.mhk-day-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f7ff;
}
.mhk-day-meta {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.mhk-lines-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: none;
  background: transparent;
  overflow: visible;
}
.mhk-pdf-line {
  margin: 0;
  padding: 16px 18px;
  font-size: clamp(0.94rem, 1.5vw, 1.02rem);
  line-height: 1.68;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 1, "kern" 1;
  color: rgba(237, 243, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.65);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mhk-pdf-line:hover {
  border-color: rgba(79, 140, 255, 0.22);
  background: rgba(18, 28, 48, 0.75);
}
.mhk-line-lead {
  font-weight: 700;
  color: #9ec5ff;
  letter-spacing: 0.01em;
}
.mhk-pdf-line u.mhk-ref-allowlist-hit {
  text-decoration: underline;
  text-decoration-color: rgba(79, 140, 255, 0.55);
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .page-mhk {
    font-size: 16px;
  }
  .page-mhk .container--mhk {
    width: calc(100% - 20px);
    margin-top: 16px;
  }
  .mhk-day-block {
    padding: 16px 14px 6px;
  }
  .mhk-pdf-line {
    padding: 14px 14px;
  }
}

@media (max-width: 760px) {
  .search-wrap { grid-template-columns: 1fr; }
  .search-actions { flex-direction: column; }
  .search-actions .btn,
  .search-actions button { width: 100%; }
}
