@charset "UTF-8";

html {
            font-size: 12px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Noto Sans', 'Arial', sans-serif;
        }

        body {
            background: #1e1e2f;
            color: #f0f0f0;
            line-height: 1.55;
            font-size: 0.95rem;
            min-height: 100vh;
            overflow-x: auto;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
        }

        .section-pane,
        .bolum,
        .bölüm {
            font-size: 0.88rem;
        }

        .section-pane p,
        .bolum p,
        .bölüm p,
        .section-pane li,
        .bolum li,
        .bölüm li {
            font-size: 0.88rem;
            line-height: 1.5;
        }

        /* Force public page content to fit without overflow */
        .section-pane h1 { font-size: 1.25rem; line-height: 1.25; }
        .section-pane h2 { font-size: 1.1rem; line-height: 1.25; }
        .section-pane h3 { font-size: 1rem; line-height: 1.3; }
        .section-pane h4 { font-size: 0.95rem; line-height: 1.3; }

        .section-pane table {
            width: 100%;
            table-layout: fixed;
            font-size: 10px;
        }

        .section-pane th,
        .section-pane td {
            font-size: 10px;
            padding: 4px 5px;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
            line-height: 1.25;
            vertical-align: top;
        }

        .kapsayıcı {
            width: min(980px, 100%);
            margin: 0 auto;
            padding: 0 18px;
        }

        /* ASCII class aliases (template uses these names) */
        .kapsayici {
            width: min(980px, 100%);
            margin: 0 auto;
            padding: 0 18px;
        }

        .logo_kapsayici {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .altbilgi_icerik {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        @media (max-width: 900px) {
            .altbilgi_icerik {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 560px) {
            .altbilgi_icerik {
                grid-template-columns: 1fr;
            }
        }

        .altbilgi_bolum h3 {
            margin-bottom: 25px;
            font-size: 18px;
            border-bottom: 2px solid #ea5455;
            padding-bottom: 12px;
            display: inline-block;
            color: #e0e0ff;
            font-weight: 700;
        }

        .altbilgi_bolum p,
        .altbilgi_bolum a {
            color: #c0c8ff;
            margin-bottom: 12px;
            display: block;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .sosyal_baglantilar {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .telif_hakki {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 13px;
            color: #8a90c0;
        }

        .legal-disclaimer {
            margin-top: 10px;
            text-align: center;
            font-size: 12px;
            line-height: 1.45;
            color: #9ca3af;
            opacity: 0.95;
        }

        /* Prevent content clipping; allow horizontal scroll where needed */
        .section-pane,
        .bolum {
            max-width: 100%;
            overflow-x: auto;
        }

        .section-pane > * {
            max-width: 100%;
        }

        /* ----- BAÅLIK ----- */
        header {
            background: rgba(22, 27, 36, 0.98);
            backdrop-filter: blur(10px);
            color: white;
            padding: 18px 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            border-bottom: 3px solid #ea5455;
            position: sticky;
            top: 0;
            z-index: 220;
        }

        .logo_kapsayıcı {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .logo {
            font-size: clamp(20px, 2.4vw, 28px);
            font-weight: 800;
            display: flex;
            align-items: center;
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 10px rgba(234, 84, 85, 0.3);
            letter-spacing: 1px;
        }

.logo i {
            margin-right: 12px;
            color: #ea5455;
            filter: drop-shadow(0 0 5px rgba(234, 84, 85, 0.5));
            font-size: clamp(22px, 2.8vw, 32px);
        }

.logo-mark {
  display: inline-flex;
  width: clamp(30px, 2.8vw, 38px);
  height: clamp(30px, 2.8vw, 38px);
  margin-right: 12px;
  filter: drop-shadow(0 0 6px rgba(234, 84, 85, 0.35));
  flex: 0 0 auto;
}

.atsoyu-app {
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.atsoyu-sidebar,
.atsoyu-main {
    display: grid;
    gap: 18px;
}

.atsoyu-panel {
    border: 1px solid rgba(234, 84, 85, 0.18);
    background: linear-gradient(180deg, rgba(37, 42, 74, 0.96), rgba(24, 27, 49, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.atsoyu-tab-shell {
    padding: 10px 12px;
}

.atsoyu-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atsoyu-tab-btn {
    border: 1px solid rgba(192, 200, 255, 0.14);
    background: rgba(8, 11, 22, 0.5);
    color: #dfe4ff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.atsoyu-tab-btn:hover {
    background: rgba(234, 84, 85, 0.1);
    border-color: rgba(234, 84, 85, 0.28);
}

.atsoyu-tab-btn.active {
    background: rgba(234, 84, 85, 0.2);
    border-color: rgba(234, 84, 85, 0.4);
    color: #fff;
}

.atsoyu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.atsoyu-panel-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #f7f8ff;
}

.atsoyu-local-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234, 84, 85, 0.14);
    color: #ffb4b5;
    border: 1px solid rgba(234, 84, 85, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.atsoyu-head-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atsoyu-lang-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7ddff;
    font-size: 0.82rem;
}

.atsoyu-lang-picker select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(192, 200, 255, 0.16);
    background: rgba(10, 13, 26, 0.7);
    color: #f4f5ff;
    outline: none;
}

.atsoyu-search-form {
    display: grid;
    gap: 12px;
}

.atsoyu-search-form input,
.atsoyu-form-grid input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(192, 200, 255, 0.16);
    background: rgba(10, 13, 26, 0.55);
    color: #f4f5ff;
    outline: none;
}

.atsoyu-search-form input:focus,
.atsoyu-form-grid input:focus {
    border-color: rgba(234, 84, 85, 0.58);
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.12);
}

.atsoyu-toolbar,
.atsoyu-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atsoyu-help {
    color: #b9c2f0;
}

.atsoyu-results-wrap,
.atsoyu-pedigree-table-wrap {
    overflow: auto;
}

.atsoyu-results-table,
.atsoyu-pedigree-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.83rem;
}

.atsoyu-results-table th,
.atsoyu-results-table td,
.atsoyu-pedigree-table th,
.atsoyu-pedigree-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(192, 200, 255, 0.08);
    vertical-align: top;
    white-space: nowrap;
}

.atsoyu-results-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.atsoyu-results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.atsoyu-results-table tbody tr.is-selected {
    background: rgba(234, 84, 85, 0.12);
}

.atsoyu-status {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(192, 200, 255, 0.08);
    color: #b9c2f0;
    font-size: 0.82rem;
}

.atsoyu-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.atsoyu-flow-item {
    padding: 14px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 8px;
}

.atsoyu-flow-item strong {
    color: #fff;
    font-size: 0.92rem;
}

.atsoyu-flow-item span {
    color: #cad2fb;
    line-height: 1.55;
    font-size: 0.8rem;
}

.atsoyu-flow-item code {
    color: #ffd0d0;
    font-size: 0.78rem;
}

.atsoyu-tab-panel {
    display: none;
}

.atsoyu-tab-panel.active {
    display: block;
    border-color: rgba(234, 84, 85, 0.24);
}

.atsoyu-hero {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.atsoyu-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 14px;
}

.atsoyu-hero-card-detail {
    align-items: start;
}

.atsoyu-identity {
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(234, 84, 85, 0.18), rgba(88, 110, 255, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.atsoyu-identity h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #fff;
}

.atsoyu-identity p {
    margin: 4px 0;
    color: #d7ddff;
}

.atsoyu-parents {
    padding: 16px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.atsoyu-parent-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(192, 200, 255, 0.08);
}

.atsoyu-parent-row:last-child {
    border-bottom: 0;
}

.atsoyu-parent-row span:first-child {
    color: #98a2d3;
    font-weight: 600;
}

.atsoyu-parent-row span:last-child {
    color: #f4f5ff;
    text-align: right;
}

.atsoyu-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.atsoyu-metric-card {
    padding: 14px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.atsoyu-metric-label {
    display: block;
    color: #98a2d3;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.atsoyu-metric-value {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.atsoyu-text-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #dde3ff;
    line-height: 1.65;
}

.atsoyu-text-card-tight {
    margin-top: 12px;
}

.atsoyu-text-pre {
    white-space: pre-wrap;
    font-family: "Segoe UI", sans-serif;
}

.atsoyu-summary-block {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.atsoyu-summary-block strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.atsoyu-summary-block p {
    margin: 0;
    color: #d7ddff;
}

.atsoyu-note-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.atsoyu-common-list {
    display: grid;
    gap: 8px;
}

.atsoyu-common-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.atsoyu-graph-wrap {
    overflow: auto;
    min-height: 420px;
    padding: 12px;
    border-radius: 14px;
    background: #f7f8fc;
}

.atsoyu-graph {
    width: 100%;
    min-width: 920px;
    display: block;
}

.atsoyu-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.atsoyu-form-grid label {
    display: grid;
    gap: 8px;
    color: #dce2ff;
    font-weight: 600;
}

.atsoyu-races-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.atsoyu-races-wrap {
    overflow: auto;
}

.atsoyu-races-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.84rem;
}

.atsoyu-races-table th,
.atsoyu-races-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(192, 200, 255, 0.08);
    vertical-align: top;
    white-space: nowrap;
}

.atsoyu-reco-grid {
    grid-template-columns: minmax(0, 1fr) auto;
}

.atsoyu-compare-grid,
.atsoyu-reco-list {
    display: grid;
    gap: 12px;
}

.atsoyu-compare-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 14px;
}

.atsoyu-reco-card {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 10px;
}

.atsoyu-reco-scorelines {
    display: grid;
    gap: 4px;
    color: #d7ddff;
    font-size: 0.87rem;
}

.atsoyu-reco-scorelines p {
    margin: 0;
}

.atsoyu-reco-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.atsoyu-reco-head strong {
    color: #fff;
    font-size: 1rem;
}

.atsoyu-reco-score {
    color: #ffb4b5;
    font-weight: 800;
    font-size: 0.95rem;
}

.atsoyu-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.atsoyu-mini-grid span {
    display: block;
    font-size: 0.76rem;
    color: #98a2d3;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.atsoyu-mini-grid strong {
    color: #fff;
    font-size: 0.98rem;
}

.atsoyu-candidate-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.atsoyu-candidate-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.atsoyu-empty {
    color: #b9c2f0;
}

@media (max-width: 1100px) {
    .atsoyu-app {
        grid-template-columns: 1fr;
    }

    .atsoyu-hero-card,
    .atsoyu-form-grid,
    .atsoyu-reco-grid {
        grid-template-columns: 1fr;
    }
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

        .slogan {
            font-size: clamp(12px, 1.2vw, 14px);
            font-style: italic;
            opacity: 0.9;
            margin-top: 8px;
            color: #c0c8ff;
            font-weight: 300;
            letter-spacing: 0.5px;
        }

        /* ----- MENÃœ ----- */
        nav {
            background: rgba(22, 27, 36, 0.98);
            backdrop-filter: blur(10px);
            position: sticky;
            top: var(--header-offset, 0px);
            z-index: 210;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
            border-bottom: 1px solid rgba(234, 84, 85, 0.3);
            border-top: 1px solid rgba(240, 123, 63, 0.1);
        }

        .gezinti_kapsayıcı,
        .gezinti_kapsayici {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .gezinti_menü,
        .gezinti_menu {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
        }

        .gezinti_menü li,
        .gezinti_menu li {
            position: relative;
        }

        .gezinti_menü a,
        .gezinti_menu a,
        .nav-link {
            color: #e0e0ff;
            text-decoration: none;
            padding: 12px 13px;
            display: block;
            font-weight: 600;
            transition: all 0.3s ease;
            letter-spacing: 0.2px;
            position: relative;
            overflow: hidden;
            font-size: 12px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .gezinti_menü a::before,
        .gezinti_menu a::before,
        .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            transition: width 0.4s ease;
        }

        .gezinti_menü a:hover,
        .gezinti_menu a:hover,
        .nav-link:hover {
            color: white;
            background: rgba(234, 84, 85, 0.1);
        }

        .gezinti_menü a:hover::before,
        .gezinti_menu a:hover::before,
        .nav-link:hover::before {
            width: 100%;
        }

        .gezinti_menü a.aktif,
        .gezinti_menu a.aktif,
        .nav-link.active {
            color: white;
            background: rgba(234, 84, 85, 0.25);
        }

        .gezinti_menü a.aktif::before,
        .gezinti_menu a.aktif::before,
        .nav-link.active::before {
            width: 100%;
        }

        .mobil_geçiş,
        .mobil_gecis {
            display: none;
            font-size: 28px;
            color: #ea5455;
            cursor: pointer;
            padding: 10px;
            border-radius: 5px;
            background: rgba(234, 84, 85, 0.1);
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .icon-svg {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1em;
            height: 1em;
            color: currentColor;
        }

        .icon-svg svg {
            display: block;
            width: 100%;
            height: 100%;
            fill: currentColor;
        }

        .mobil_geÃ§iÅŸ [data-menu-icon],
        .mobil_gecis [data-menu-icon] {
            width: 20px;
            height: 20px;
        }

        /* ----- ANA İÃ‡ERİK ----- */
        main {
            padding: 30px 0;
            min-height: 70vh;
        }

        .bölüm,
        .bolum {
            display: none;
            animation: içeri_geçiş 0.6s ease;
        }

        .bölüm.aktif,
        .bolum.aktif,
        .bölüm.active,
        .bolum.active {
            display: block;
        }

        .bölüm_başlık {
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(234, 84, 85, 0.3);
            font-size: clamp(21px, 2.5vw, 30px);
            font-weight: 800;
            letter-spacing: 1px;
            position: relative;
        }

        .bölüm_başlık::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100px;
            height: 2px;
            background: #ea5455;
        }

        .bolum_baslik {
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid rgba(234, 84, 85, 0.3);
            font-size: clamp(21px, 2.5vw, 30px);
            font-weight: 800;
            letter-spacing: 1px;
            position: relative;
        }

.program_header_row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

.sonuc-program-4 {
  width: 100%;
}

        .program_date_controls {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(234, 84, 85, 0.25);
            border-radius: 10px;
            padding: 4px 8px;
        }

        .program_date_btn {
            border: none;
            background: #ea5455;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            line-height: 1;
        }

        .program_date_label {
            color: #e5e7eb;
            font-size: 12px;
            font-weight: 700;
            min-width: 120px;
            text-align: center;
        }

        .bölüm_içerik {
            background: rgba(45, 64, 85, 0.7);
            backdrop-filter: blur(10px);
            padding: clamp(16px, 2.2vw, 24px);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(234, 84, 85, 0.2);
            position: relative;
            overflow: hidden;
        }

        .bölüm_içerik::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
        }

        /* Placeholder içerik - diğer bölümler için */
        .içerik-placeholder {
            text-align: center;
            padding: 20px;
        }

        .içerik-placeholder i {
            font-size: 56px;
            color: #ea5455;
            margin-bottom: 30px;
            opacity: 0.7;
        }

        .içerik-placeholder h3 {
            font-size: clamp(20px, 2.2vw, 24px);
            font-weight: 600;
            color: #e0e0ff;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }

        .içerik-placeholder p {
            font-size: clamp(14px, 1.5vw, 16px);
            color: #b0b8ff;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.8;
            opacity: 0.9;
        }

        /* Ana sayfa mesaj */
        .anasayfa-mesaj {
            text-align: center;
            padding: 8px 6px;
            max-width: 620px;
            margin: 0 auto;
        }

        .anasayfa-mesaj h2 {
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin: 0 auto 10px;
            font-size: clamp(18px, 3vw, 30px);
            font-weight: 800;
            max-width: 100%;
            white-space: nowrap;
        }

        .anasayfa-mesaj p {
            font-size: clamp(14px, 1.8vw, 16px);
            color: #c0c8ff;
            max-width: 100%;
            margin: 0 auto 10px;
            white-space: nowrap;
        }

        /* ----- İLETİÅİM BÃ–LÃœMÃœ Ã–ZEL STİLLERİ ----- */
        .iletisim-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .form-kapsayici, .iban-kapsayici {
            background: rgba(22, 27, 36, 0.6);
            padding: clamp(18px, 2.5vw, 28px);
            border-radius: 15px;
            border: 1px solid rgba(234, 84, 85, 0.3);
        }

        .form-kapsayici h3, .iban-kapsayici h3 {
            color: #e0e0ff;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 25px;
            border-bottom: 2px solid #ea5455;

            padding-bottom: 12px;
            display: inline-block;
        }

        .form-grup {
            margin-bottom: 20px;
        }

        .form-grup label {
            display: block;
            margin-bottom: 8px;
            color: #c0c8ff;
            font-weight: 500;
            font-size: 15px;
        }

        .form-grup input,
        .form-grup textarea {
            width: 100%;
            padding: 14px 18px;
            background: rgba(30, 35, 48, 0.8);
            border: 1px solid rgba(234, 84, 85, 0.3);
            border-radius: 8px;
            color: white;
            font-size: 16px;
            transition: all 0.3s;
        }

        .form-grup input:focus,
        .form-grup textarea:focus {
            outline: none;
            border-color: #ea5455;
            background: rgba(40, 45, 60, 0.9);
        }

        .btn-gonder {
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            color: white;
            border: none;
            padding: 16px 30px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            letter-spacing: 1px;
        }

        .btn {
            background: linear-gradient(90deg, #ea5455 0%, #f07b3f 100%);
            color: white;
            border: none;
            padding: 12px 22px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-gonder:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(234, 84, 85, 0.3);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(234, 84, 85, 0.3);
        }

        .iban-kutu {
            background: rgba(234, 84, 85, 0.1);
            padding: 25px;
            border-radius: 12px;
            border-left: 6px solid #ea5455;
            margin-top: 20px;
        }

        .iban-kutu p {
            margin-bottom: 15px;
            color: #e0e0ff;
            font-size: 16px;
        }

        .iban-numara {
            font-size: 20px;
            font-weight: 700;
            color: white;
            letter-spacing: 2px;
            background: rgba(0,0,0,0.3);
            padding: 12px 18px;
            border-radius: 8px;
            font-family: monospace;
            border: 1px solid #ea5455;
            word-break: break-all;
        }

        .banka-bilgi {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
            color: #c0c8ff;
        }

        .social-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.6em;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            line-height: 1;
        }

        .banka-bilgi i {
            color: #ea5455;
            font-size: 24px;
        }

        /* ----- ALTBİLGİ ----- */
        footer {
            background: rgba(18, 22, 30, 0.98);
            backdrop-filter: blur(10px);
            color: white;
            padding: 28px 0 16px;
            margin-top: 28px;
            border-top: 3px solid #ea5455;
        }

        .altbilgi_içerik {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .altbilgi_bölüm h3 {
            margin-bottom: 25px;
            font-size: 18px;
            border-bottom: 2px solid #ea5455;
            padding-bottom: 12px;
            display: inline-block;
            color: #e0e0ff;
            font-weight: 700;
        }

        .altbilgi_bölüm p, 
        .altbilgi_bölüm a {
            color: #c0c8ff;
            margin-bottom: 12px;
            display: block;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .altbilgi_bölüm a:hover {
            color: #ea5455;
            padding-left: 8px;
        }

        .sosyal_bağlantılar {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .sosyal_bağlantılar a {
            display: inline-flex;
            width: 45px;
            height: 45px;
            background: rgba(234, 84, 85, 0.1);
            border-radius: 50%;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(234, 84, 85, 0.2);
            font-size: 18px;
            color: #c0c8ff;
        }

        .sosyal_bağlantılar a:hover {
            background: #ea5455;
            color: white;
            transform: translateY(-5px);
        }

        .telif_hakkı {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 12px;
            color: #8a90c0;
        }

        /* Animasyon */
        @keyframes içeri_geçiş {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Duyarlılık */
        @media (max-width: 768px) {
            .kapsayıcı {
                padding: 0 10px;
            }
            header {
                padding: 10px 0;
            }
            .gezinti_menü,
            .gezinti_menu {
                display: none;
                width: 100%;
                flex-direction: column;
                background: rgba(22, 27, 36, 0.98);
                border-radius: 0 0 10px 10px;
                margin-top: 10px;
                border: 1px solid rgba(234, 84, 85, 0.2);
            }
            .gezinti_menü.göster,
            .gezinti_menu.goster {
                display: flex;
            }
            .mobil_geçiş,
            .mobil_gecis {
                display: block;
            }
            .gezinti_menü li,
            .gezinti_menu li {
                width: 100%;
            }
            .gezinti_menü a,
            .gezinti_menu a,
            .nav-link {
                padding: 12px 14px;
                font-size: 12px;
            }
            .iletisim-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }
            main {
                padding: 20px 0;
            }
            .bölüm_içerik {
                padding: 12px 10px;
            }
            .bölüm_başlık {
                font-size: 20px;
            }
            .anasayfa-mesaj p {
                white-space: normal;
            }
        }

        @media (min-width: 769px) {
            .gezinti_menü,
            .gezinti_menu {
                display: flex !important;
            }
            .mobil_geçiş,
            .mobil_gecis {
                display: none !important;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 18px;
            }
            .logo i {
                font-size: 20px;
            }
            .slogan {
                font-size: 11px;
            }
            .bölüm_başlık {
                font-size: 18px;
            }
            .anasayfa-mesaj h2 {
                font-size: 18px;
            }
            .anasayfa-mesaj p {
                font-size: 12px;
            }
            .tablo {
                min-width: 520px;
            }
        }


/* --- Dinamik tablolar --- */
.kart {
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  color: #1f2937;
}
.tablo {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
  color: #111827;
}
.tablo th, .tablo td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  white-space: nowrap;
  color: #111827;
}
.tablo thead th {
  background: rgba(0,0,0,0.04);
  font-weight: 700;
  color: #0f172a;
}

/* Atsoyu readability overrides */
.page-shell-atsoyu {
  font-size: 14px;
}

.page-shell-atsoyu .kart.atsoyu-panel {
  background: linear-gradient(180deg, rgba(30, 36, 64, 0.98), rgba(16, 20, 38, 0.99));
  border: 1px solid rgba(255, 120, 105, 0.24);
  box-shadow: 0 20px 48px rgba(4, 8, 18, 0.48);
  color: #edf2ff;
}

.page-shell-atsoyu .kart.atsoyu-panel h3,
.page-shell-atsoyu .kart.atsoyu-panel p,
.page-shell-atsoyu .kart.atsoyu-panel label,
.page-shell-atsoyu .kart.atsoyu-panel li,
.page-shell-atsoyu .kart.atsoyu-panel td,
.page-shell-atsoyu .kart.atsoyu-panel th,
.page-shell-atsoyu .kart.atsoyu-panel .small,
.page-shell-atsoyu .kart.atsoyu-panel .muted {
  color: inherit;
}

.page-shell-atsoyu .atsoyu-panel-head h3 {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.page-shell-atsoyu #atsoyu-profile-headline,
.page-shell-atsoyu #atsoyu-result-count,
.page-shell-atsoyu .atsoyu-help,
.page-shell-atsoyu .atsoyu-status,
.page-shell-atsoyu .muted,
.page-shell-atsoyu .icerik-placeholder p,
.page-shell-atsoyu .atsoyu-empty {
  color: #d8e0ff !important;
}

.page-shell-atsoyu .atsoyu-local-badge {
  background: rgba(255, 120, 105, 0.18);
  color: #ffd8d0;
  border-color: rgba(255, 120, 105, 0.42);
}

.page-shell-atsoyu .atsoyu-tab-btn {
  background: rgba(8, 12, 24, 0.82);
  border-color: rgba(179, 192, 255, 0.24);
  color: #f8fbff;
  font-size: 0.95rem;
  font-weight: 800;
}

.page-shell-atsoyu .atsoyu-tab-btn:hover {
  background: rgba(255, 120, 105, 0.16);
  border-color: rgba(255, 120, 105, 0.48);
}

.page-shell-atsoyu .atsoyu-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 120, 105, 0.32), rgba(255, 159, 67, 0.22));
  border-color: rgba(255, 120, 105, 0.62);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.page-shell-atsoyu .atsoyu-search-form input,
.page-shell-atsoyu .atsoyu-form-grid input {
  background: rgba(6, 10, 20, 0.88);
  border-color: rgba(179, 192, 255, 0.26);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
}

.page-shell-atsoyu .atsoyu-search-form input::placeholder,
.page-shell-atsoyu .atsoyu-form-grid input::placeholder {
  color: #9eacd8;
}

.page-shell-atsoyu .btn {
  background: linear-gradient(135deg, #29407a, #21315f);
  border: 1px solid rgba(160, 182, 255, 0.3);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(7, 10, 20, 0.35);
}

.page-shell-atsoyu .btn:hover {
  filter: brightness(1.08);
}

.page-shell-atsoyu .atsoyu-identity {
  background: linear-gradient(135deg, rgba(255, 120, 105, 0.26), rgba(73, 108, 255, 0.24));
  border-color: rgba(255, 255, 255, 0.12);
}

.page-shell-atsoyu .atsoyu-identity h4 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}

.page-shell-atsoyu .atsoyu-identity p,
.page-shell-atsoyu .atsoyu-summary-block p,
.page-shell-atsoyu .atsoyu-reco-scorelines,
.page-shell-atsoyu .atsoyu-note-list,
.page-shell-atsoyu .atsoyu-common-item {
  color: #ebf0ff;
}

.page-shell-atsoyu .atsoyu-parents,
.page-shell-atsoyu .atsoyu-metric-card,
.page-shell-atsoyu .atsoyu-text-card,
.page-shell-atsoyu .atsoyu-races-card,
.page-shell-atsoyu .atsoyu-summary-block,
.page-shell-atsoyu .atsoyu-reco-card,
.page-shell-atsoyu .atsoyu-candidate-item,
.page-shell-atsoyu .atsoyu-flow-item {
  background: rgba(10, 14, 28, 0.76);
  border-color: rgba(255, 255, 255, 0.09);
}

.page-shell-atsoyu .atsoyu-loading-note {
  background: linear-gradient(135deg, rgba(255, 120, 105, 0.16), rgba(255, 159, 67, 0.1));
  border: 1px solid rgba(255, 159, 67, 0.38);
}

.page-shell-atsoyu .atsoyu-loading-note strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff3cd;
  font-size: 0.98rem;
  font-weight: 900;
}

.page-shell-atsoyu .atsoyu-loading-note strong::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 159, 67, 0.24);
  border: 1px solid rgba(255, 159, 67, 0.45);
  color: #fff7e6;
}

.page-shell-atsoyu .atsoyu-loading-note p {
  margin: 0;
  color: #ffe6d9 !important;
  font-weight: 700;
}

.page-shell-atsoyu .atsoyu-parent-row span:first-child,
.page-shell-atsoyu .atsoyu-metric-label,
.page-shell-atsoyu .atsoyu-mini-grid span,
.page-shell-atsoyu .atsoyu-flow-item span {
  color: #b7c4f5;
}

.page-shell-atsoyu .atsoyu-parent-row span:last-child,
.page-shell-atsoyu .atsoyu-metric-value,
.page-shell-atsoyu .atsoyu-summary-block strong,
.page-shell-atsoyu .atsoyu-reco-head strong,
.page-shell-atsoyu .atsoyu-mini-grid strong,
.page-shell-atsoyu .atsoyu-flow-item strong {
  color: #ffffff;
}

.page-shell-atsoyu .atsoyu-results-table,
.page-shell-atsoyu .atsoyu-pedigree-table,
.page-shell-atsoyu .atsoyu-races-table {
  font-size: 0.9rem;
}

.page-shell-atsoyu .atsoyu-results-table thead th,
.page-shell-atsoyu .atsoyu-pedigree-table thead th,
.page-shell-atsoyu .atsoyu-races-table thead th {
  color: #f9fbff;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.page-shell-atsoyu .atsoyu-results-table td,
.page-shell-atsoyu .atsoyu-pedigree-table td,
.page-shell-atsoyu .atsoyu-races-table td {
  color: #e7edff;
}

.page-shell-atsoyu .atsoyu-results-table tbody tr:hover {
  background: rgba(255, 120, 105, 0.08);
}

.page-shell-atsoyu .atsoyu-results-table tbody tr.is-selected {
  background: rgba(255, 120, 105, 0.2);
}

/* Idman result table: keep header/data columns strictly aligned */
.idman-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.prediction-table-wrap,
.idman-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.prediction-table-wrap > table,
.idman-table-wrap > table {
  min-width: 100%;
}

.idman-table th,
.idman-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  text-align: center;
}

.idman-table th:nth-child(1),
.idman-table td:nth-child(1) {
  width: 64px;
  text-align: left;
  padding-left: 0;
}

.idman-table th:nth-child(2),
.idman-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.idman-table th:nth-child(3),
.idman-table td:nth-child(3) {
  width: auto;
  text-align: center;
}

.idman-table th:nth-child(4),
.idman-table td:nth-child(4) {
  width: 180px;
  text-align: center;
}

.idman-rank-cell {
  font-weight: 800;
}

.rank-tone-cell {
  font-weight: 800;
}

.tablo td.rank-tone-1 {
  color: #0f766e;
}

.tablo td.rank-tone-2 {
  color: #1d4ed8;
}

.tablo td.rank-tone-3 {
  color: #b45309;
}

.tablo td.rank-tone-rest {
  color: #334155;
}

.horse-name-cell {
  font-weight: inherit !important;
  color: inherit !important;
}

.tablo td.horse-tone-1 { color: inherit !important; }
.tablo td.horse-tone-2 { color: inherit !important; }
.tablo td.horse-tone-3 { color: inherit !important; }
.tablo td.horse-tone-4 { color: inherit !important; }
.tablo td.horse-tone-5 { color: inherit !important; }
.tablo td.horse-tone-6 { color: inherit !important; }

.tablo td.winner-no-cell {
  background: #ea5455 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Make winner horse clearly visible on Derece/Idman tables. */
.tablo tr.gelen-at-row td {
  background: rgba(234, 84, 85, 0.12) !important;
}

.tablo tr.gelen-at-row td.gelen-at-cell {
  background: #ea5455 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Fallback: force visible top-3 coloring even if JS class binding is stale/cached. */
.idman-table tbody tr:nth-child(1) td:first-child { background: #16a34a !important; color: #fff !important; font-weight: 900; }
.idman-table tbody tr:nth-child(2) td:first-child { background: #2563eb !important; color: #fff !important; font-weight: 900; }
.idman-table tbody tr:nth-child(3) td:first-child { background: #d97706 !important; color: #fff !important; font-weight: 900; }

.derece-single-race-table tbody tr:nth-child(1) td.col-derece { background: rgba(22, 163, 74, 0.16) !important; color: #14532d !important; font-weight: 900; }
.derece-single-race-table tbody tr:nth-child(2) td.col-derece { background: rgba(37, 99, 235, 0.16) !important; color: #1e3a8a !important; font-weight: 900; }
.derece-single-race-table tbody tr:nth-child(3) td.col-derece { background: rgba(217, 119, 6, 0.20) !important; color: #92400e !important; font-weight: 900; }

/* Hard disable winner highlight everywhere. */
.altili-winner-row td {
  background: transparent !important;
  color: inherit !important;
  text-shadow: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.altili-winner-row td:first-child {
  position: static !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-weight: inherit !important;
}

.altili-winner-row td:first-child::before,
.altili-winner-row td:first-child::after {
  display: none !important;
}

.home-bet-line.altili-winner-row {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.puan-board-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.puan-leg-tabs {
  display: none;
}

.puan-leg-tab {
  border: 1px solid rgba(15, 23, 42, 0.28);
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.puan-leg-tab.active {
  background: #ea5455;
  border-color: #ea5455;
  color: #ffffff;
}

.puan-board {
  display: grid;
  /* Keep 6 legs side-by-side, but let them shrink to fit the available width. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .puan-leg-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    margin: 0 0 8px 0;
    padding: 2px 0;
    width: 100%;
    min-width: 0;
  }

  .puan-leg-tab {
    width: 100%;
    min-width: 0;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }

  .puan-board.mobile-leg-mode {
    display: block;
    width: 100%;
  }

  .puan-board.mobile-leg-mode .puan-leg {
    display: none;
  }

  .puan-board.mobile-leg-mode .puan-leg.is-active {
    display: block;
  }
}

.puan-leg {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.35);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  min-width: 0; /* allow grid item to shrink */
}

.puan-leg-baslik {
  background: #f0f0f0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.22);
  padding: 4px 5px;
  font-weight: 800;
  font-size: clamp(9px, 0.72vw, 11px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: #0f172a;
}

.puan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(10px, 0.9vw, 11px);
  color: #0f172a;
}

.puan-table th,
.puan-table td {
  border: 1px solid rgba(15, 23, 42, 0.22);
  padding: 3px 3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.puan-table thead th {
  background: #ffffff;
  font-weight: 800;
}

.puan-cell .puan-val {
  font-weight: 900;
}

.puan-yesil .puan-val { color: #27ae60; }
.puan-sari .puan-val { color: #f1c40f; }
.puan-kirmizi .puan-val { color: #e74c3c; }
.puan-mavi .puan-val { color: #3498db; }

/* Highlight horses that match today's 6'li winners (brand/logo colors). */
.altili-winner-row td {
  background: linear-gradient(90deg, rgba(234, 84, 85, 0.20), rgba(240, 123, 63, 0.12));
  border-top: 1px solid rgba(234, 84, 85, 0.55);
  border-bottom: 1px solid rgba(234, 84, 85, 0.55);
}
.altili-winner-row td:first-child {
  position: relative;
  background: #ea5455;
  color: #ffffff;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.altili-winner-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ea5455, #f07b3f);
}
.altili-winner-row td:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ea5455, #f07b3f);
}

/* Do not use winner-row red highlight on Idman / Derece / Bilgisayar pages. */
.idman-table tr.altili-winner-row td,
.derece-single-race-table tr.altili-winner-row td {
  background: transparent !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #111827 !important;
  text-shadow: none !important;
}

.idman-table tr.altili-winner-row td:first-child,
.derece-single-race-table tr.altili-winner-row td:first-child:not(.winner-no-cell) {
  background: transparent !important;
  color: inherit !important;
  position: static !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.idman-table td.winner-no-cell,
.derece-single-race-table td.winner-no-cell {
  background: #ea5455 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

.idman-table tr.altili-winner-row td:first-child::before,
.idman-table tr.altili-winner-row td:first-child::after,
.derece-single-race-table tr.altili-winner-row td:first-child::before,
.derece-single-race-table tr.altili-winner-row td:first-child::after {
  display: none !important;
}

/* Keep top-3 coloring visible on Idman / Derece / Bilgisayar tables. */
.idman-table tbody tr:nth-child(1) td:first-child { background: #16a34a !important; color: #fff !important; font-weight: 900; }
.idman-table tbody tr:nth-child(2) td:first-child { background: #2563eb !important; color: #fff !important; font-weight: 900; }
.idman-table tbody tr:nth-child(3) td:first-child { background: #d97706 !important; color: #fff !important; font-weight: 900; }

.derece-single-race-table tbody tr:nth-child(1) td.col-derece { background: rgba(22, 163, 74, 0.16) !important; color: #14532d !important; font-weight: 900; }
.derece-single-race-table tbody tr:nth-child(2) td.col-derece { background: rgba(37, 99, 235, 0.16) !important; color: #1e3a8a !important; font-weight: 900; }
.derece-single-race-table tbody tr:nth-child(3) td.col-derece { background: rgba(217, 119, 6, 0.20) !important; color: #92400e !important; font-weight: 900; }

.race-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.race-city-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #ea5455;
  background: #ffffff;
  color: #132238;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.race-city-btn:hover {
  background: #fff5f5;
  border-color: #ea5455;
  color: #c63d40;
}

.race-city-btn.active {
  background: #ea5455;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.race-city-btn:focus-visible {
  outline: 2px solid rgba(240, 123, 63, 0.95);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .race-city-tabs {
    gap: 6px;
  }

  .race-city-btn {
    max-width: 100%;
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
  }

  .race-city-tabs-main[data-race-city-tabs="1"] {
    display: block;
    margin: 0 -12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
  }

  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn {
    position: relative;
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 58px;
    justify-content: flex-start;
    padding: 14px 48px 14px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: #5b5b5b;
    color: #f8fafc;
    font-size: clamp(15px, 4.8vw, 19px);
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn:last-child {
    border-bottom: 0;
  }

  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.86);
    border-bottom: 2px solid rgba(255, 255, 255, 0.86);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.18s ease;
  }

  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn:hover,
  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn.active {
    background: #4f4f4f;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .race-city-tabs-main[data-race-city-tabs="1"] .race-city-btn.active::after {
    transform: translateY(-30%) rotate(-135deg);
  }

  .race-city-panel[data-race-city-panel="1"] {
    margin: 0 -12px 12px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .race-city-panel[data-race-city-panel="1"] > h3 {
    display: none;
  }

  .race-city-panel[data-race-city-panel="1"] .race-city-body {
    padding-top: 4px;
  }
}

.race-city-panel {
  display: none;
}

.race-city-panel.active {
  display: block;
}

.race-no-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.race-extra-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.race-extra-btn {
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #ffffff;
  color: #334155;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.race-extra-btn.active {
  background: #334155;
  color: #ffffff;
  border-color: #334155;
}

.race-extra-current {
  margin-bottom: 8px;
  font-size: 10px;
  color: #334155;
  font-weight: 700;
}

.race-no-btn {
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.race-no-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.race-no-panel {
  display: none;
}

.race-no-panel.active {
  display: block;
}

.race-all-block {
  margin-bottom: 12px;
}

.race-all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.race-all-grid .race-all-block {
  margin-bottom: 0;
}

.race-all-block h4 {
  margin: 0 0 6px 0;
  font-size: 11px;
  color: #0f172a;
}

@media (max-width: 920px) {
  .race-all-grid {
    grid-template-columns: 1fr;
  }
}

/* Race tables: keep rows aligned, use horizontal scroll when needed */
.race-city-panel .tablo {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: clamp(8px, calc(190px / var(--col-count, 16)), 11px);
}

.race-city-panel .tablo th,
.race-city-panel .tablo td {
  padding: clamp(2px, calc(36px / var(--col-count, 16)), 6px) 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  vertical-align: middle;
}

.race-city-panel .tablo th {
  font-weight: 700;
}

.derece-columns-table {
  width: 100%;
  table-layout: fixed;
}

.derece-columns-table th,
.derece-columns-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.derece-columns-table th {
  text-align: left;
}

.derece-race-tabs {
  margin-bottom: 10px;
}

.derece-race-panel {
  display: none;
}

.derece-race-panel.active {
  display: block;
}

.derece-single-race-table {
  width: min(100%, 980px);
  margin: 0 auto;
  table-layout: fixed;
  min-width: 420px;
}

.derece-single-race-table th,
.derece-single-race-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.derece-single-race-table .col-no {
  width: 72px;
}

.derece-single-race-table .col-adi {
  width: auto;
}

.derece-single-race-table .col-derece {
  width: 180px;
}


/* seed'den taşınan inline stiller */
.mt-50 { margin-top: 8px; }
.hero-icon { font-size: 34px; color: #ea5455; opacity: 0.5; }
.anasayfa-mesaj .mt-50 { display: none; }


/* Üyelik */
.uye-panel {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.uye-adi {
  font-size: 14px;
  opacity: 0.9;
}
.uye-buton {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: #1e2a5a;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}
.uye-gerekli {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: #fff;
}
.uye-gerekli h3 { margin: 0 0 6px 0; }
.uye-gerekli p { margin: 0 0 12px 0; opacity: 0.9; }


/* Genel buton (site.html'de kullanılıyor) */
.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  background: #1e2a5a;
  color: #fff;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ikincil { background: #2c3e50; }
.btn-danger { background: #b33939; }


/* Farkım widget */
.farkim-kart { margin-top: 18px; }
.home-altili-kart { margin-top: 18px; }
.home-altili-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-altili-group {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 8px 10px;
}
.home-altili-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 6px;
}
.home-altili-left { min-width: 0; }
.home-bet-panel {
  background: #f7f8fb;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 8px;
}
.home-bet-head {
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 6px;
  color: #0f172a;
}
.home-bet-countdown,
.home-puan-countdown {
  display: none;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(241, 245, 249, 0.92);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.home-bet-body { min-height: 96px; }
.home-bet-result { overflow-x: auto; }
.home-bet-legs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.home-bet-leg {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 6px;
  min-width: 0;
}
.home-bet-leg-title {
  font-weight: 900;
  font-size: 11px;
  margin-bottom: 4px;
  color: #0f172a;
}
.home-bet-pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #0f172a;
}
.home-bet-line {
  display: block;
  padding: 0 2px;
}
.home-bet-line.home-bet-sep-high {
  color: #16a34a;
  font-weight: 900;
}
.home-bet-line.home-bet-sep-mid {
  color: #eab308;
  font-weight: 900;
}
.home-bet-line.home-bet-sep-low {
  color: #dc2626;
  font-weight: 900;
}
.home-bet-line.altili-winner-inline {
  font-weight: 900;
  border-left: 4px solid #ea5455;
  border-right: 4px solid #f07b3f;
  background: linear-gradient(90deg, rgba(234, 84, 85, 0.10), rgba(240, 123, 63, 0.06));
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 4px;
}
.home-bet-line.altili-winner-row {
  font-weight: 900;
  border-left: 4px solid #ea5455;
  border-right: 4px solid #f07b3f;
  background: linear-gradient(90deg, rgba(234, 84, 85, 0.20), rgba(240, 123, 63, 0.12));
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 4px;
}
.home-bet-leg-tabs {
  display: none;
}

.home-bet-leg-tab {
  border: 1px solid rgba(15, 23, 42, 0.28);
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.home-bet-leg-tab.active {
  background: #ea5455;
  border-color: #ea5455;
  color: #ffffff;
}
.home-altili-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
}
.home-altili-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.home-puan-panel { margin-top: 8px; }
.puan-page-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.puan-page-groups .home-puan-panel {
  margin-top: 0;
  margin-bottom: 0 !important;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.puan-page-groups .home-puan-body .puan-board-wrap {
  overflow-x: auto;
}
.home-puan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  padding: 8px 10px;
  background: rgba(0,0,0,0.035);
  border-radius: 10px;
  flex-wrap: nowrap;
}
.home-puan-title {
  flex: 1 1 auto;
  min-width: 0; /* required for ellipsis in flex */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-puan-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.home-puan-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  opacity: 0.9;
  white-space: nowrap;
}
.home-date-nav {
  border: none;
  background: #ea5455;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.home-date-nav:hover { filter: brightness(1.02); }
.home-date-nav:active { transform: translateY(0.5px); }
.home-date-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(234, 84, 85, 0.25);
  font-size: 11px;
}
.home-share-btn {
  border: 1px solid rgba(234, 84, 85, 0.35);
  background: #ffffff;
  color: #ea5455;
  border-radius: 8px;
  width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.home-share-btn .icon-svg {
  width: 12px;
  height: 12px;
}
.home-share-btn:hover { filter: brightness(0.98); }
.home-share-btn:active { transform: translateY(0.5px); }
.home-puan-details { margin-top: 8px; }
.home-puan-details summary {
  cursor: pointer;
  font-weight: 900;
  padding: 8px 10px;
  background: rgba(0,0,0,0.035);
  border-radius: 10px;
  outline: none;
}
.home-puan-body { margin-top: 8px; }
.home-puan-body .puan-board-wrap { padding-bottom: 6px; }
.home-puan-body .puan-board { gap: 8px; }
.home-puan-body .puan-leg-baslik {
  font-size: clamp(9px, 0.72vw, 11px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 5px;
}
.home-puan-body .puan-table {
  font-size: clamp(10px, 0.9vw, 11px);
  table-layout: auto;
}
.home-puan-body .puan-table th,
.home-puan-body .puan-table td {
  padding: 3px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-altili-legs {
  width: auto;
  min-width: 0;
  margin-top: 6px;
  display: inline-table;
  table-layout: auto;
}
.home-altili-legs th,
.home-altili-legs td {
  text-align: left;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.home-altili-legs th:first-child,
.home-altili-legs td:first-child {
  width: 28px;
  min-width: 28px;
  padding-left: 4px;
  padding-right: 6px;
}
.home-altili-legs th:nth-child(2),
.home-altili-legs td:nth-child(2) {
  padding-left: 4px;
}
.farkim-aciklama { margin: 0 0 12px 0; opacity: 0.85; color: #222; }
.farkim-form label { display: block; font-weight: 700; margin-bottom: 6px; color: #111; }
.farkim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.farkim-field-wide { grid-column: 1 / -1; }
.farkim-form input[type="text"],
.farkim-form input[type="date"],
.farkim-form select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
}
.farkim-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.farkim-status { margin-top: 10px; font-size: 13px; opacity: 0.85; color: #111; }
.farkim-leg { margin-top: 12px; }
.farkim-leg summary {
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  outline: none;
}
.farkim-nr { font-weight: 700; opacity: 0.75; }
.farkim-tablewrap { overflow-x: auto; margin-top: 10px; }
.farkim-tablo { min-width: 560px; }
.fark-pozitif { font-weight: 900; color: #0a7a2b; }
.fark-negatif { font-weight: 900; color: #b33939; }

.faq-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  margin: 0 0 8px;
  padding: 0 10px;
}

.faq-question {
  cursor: pointer;
  font-weight: 800;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-views {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}

.faq-answer {
  padding: 0 0 10px;
  color: #111827;
  line-height: 1.5;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  #altili,
  .gezinti_menu a[data-section="altili"] {
    display: none !important;
  }
  .kapsayici,
  .kapsayıcı {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section-pane,
  .bolum {
    overflow-x: visible;
  }
  .prediction-table-wrap,
  .idman-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    touch-action: pan-x pan-y;
  }
  .kart {
    padding: 12px 8px;
    border-radius: 12px;
  }
  .farkim-grid { grid-template-columns: 1fr; }
  .farkim-tablo { min-width: 520px; }
  .home-altili-groups { grid-template-columns: 1fr; }
  .home-altili-group {
    padding: 8px 4px;
  }
  .home-altili-row,
  .home-altili-left,
  .home-bet-panel,
  .home-bet-body {
    min-width: 0;
    width: 100%;
  }
  .home-bet-result {
    overflow-x: hidden;
  }
  .home-altili-legs {
    width: 100%;
    display: table;
    table-layout: fixed;
  }
  .home-altili-legs th,
  .home-altili-legs td {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 11px;
    padding: 5px 4px;
  }
  .home-altili-legs th:first-child,
  .home-altili-legs td:first-child {
    width: 24px;
    min-width: 24px;
  }
  .puan-page-groups { grid-template-columns: 1fr; }
  .home-bet-leg-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    margin: 0 0 8px 0;
    padding: 2px 0;
    width: 100%;
    min-width: 0;
  }
  .home-bet-leg-tab {
    width: 100%;
    min-width: 0;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }
  .home-bet-legs.mobile-leg-mode {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }
  .home-bet-legs.mobile-leg-mode .home-bet-leg {
    display: none;
    min-width: 0;
  }
  .home-bet-legs.mobile-leg-mode .home-bet-leg.is-active {
    display: block;
  }
  .home-bet-leg {
    width: 100%;
  }
  .home-bet-pre {
    font-size: 11px;
    line-height: 1.35;
  }
  .ikr-layout {
    grid-template-columns: 1fr;
  }
  .ikr-left,
  .ikr-right {
    padding: 8px 6px;
  }
  .ikr-header {
    font-size: 1rem;
    padding: 7px 6px;
  }
  .ikr-city-tabs {
    gap: 6px;
  }
  .ikr-city-tab {
    padding: 7px 10px;
    font-size: 0.92rem;
  }
  .ikr-group-tabs {
    gap: 6px;
  }
  .ikr-group-tab,
  .ikr-leg-tab {
    font-size: 0.88rem;
    padding: 7px 6px;
  }
  .ikr-table,
  .ikr-picked-table {
    table-layout: fixed;
    font-size: 0.82rem;
  }
  .ikr-table th,
  .ikr-table td,
  .ikr-picked-table th,
  .ikr-picked-table td {
    padding: 5px 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .ikr-table th:nth-child(1),
  .ikr-table td:nth-child(1) {
    width: 48px;
  }
  .ikr-table th:nth-child(2),
  .ikr-table td:nth-child(2) {
    width: 36px;
  }
  .ikr-table th:nth-child(4),
  .ikr-table td:nth-child(4) {
    width: 72px;
  }
  .ikr-table th:nth-child(5),
  .ikr-table td:nth-child(5) {
    width: 54px;
  }
  .ikr-picked-table th:nth-child(1),
  .ikr-picked-table td:nth-child(1) {
    width: 38px;
  }
  .ikr-picked-table th:nth-child(3),
  .ikr-picked-table td:nth-child(3) {
    width: 58px;
  }
  .ikr-picked-table th:nth-child(4),
  .ikr-picked-table td:nth-child(4) {
    width: 50px;
  }
  .ikr-pick-btn {
    padding: 4px 6px;
    font-size: 0.78rem;
  }
  .ikr-actions {
    grid-template-columns: 1fr;
  }
  .ikr-estimate-display {
    font-size: 1rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .home-bet-leg-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-table-wrap > table,
  .idman-table-wrap > table,
  .derece-single-race-table,
  .idman-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .derece-single-race-table th,
  .derece-single-race-table td,
  .idman-table th,
  .idman-table td {
    font-size: 10px;
    padding: 5px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .derece-single-race-table .col-no {
    width: 18%;
  }

  .derece-single-race-table .col-adi {
    width: 50%;
  }

  .derece-single-race-table .col-derece {
    width: 32%;
    text-align: center;
  }

  .idman-table th:nth-child(1),
  .idman-table td:nth-child(1) {
    width: 12%;
    padding-left: 3px;
  }

  .idman-table th:nth-child(2),
  .idman-table td:nth-child(2) {
    width: 14%;
  }

  .idman-table th:nth-child(3),
  .idman-table td:nth-child(3) {
    width: 42%;
  }

  .idman-table th:nth-child(4),
  .idman-table td:nth-child(4) {
    width: 32%;
  }
}




/* ------------------------------------------------------------
   TJK - Günlük Yarış Programı / Sonuçları
------------------------------------------------------------ */
.tjk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.tjk-nav {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.tjk-nav:hover {
  background: rgba(255,255,255,0.10);
}

.tjk-date-text {
  font-weight: 700;
  letter-spacing: .2px;
}

.tjk-date-input {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 10px;
  padding: 6px 10px;
}

.tjk-hipodrom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.tjk-hip-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

.tjk-hip-btn:hover {
  background: rgba(255,255,255,0.10);
}

.tjk-hip-btn.aktif {
  background: rgba(255,255,255,0.18);
  font-weight: 700;
}

.tjk-hip-block {
  margin: 18px 0 28px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.tjk-hip-block h3 {
  margin-bottom: 12px;
}

.tjk-table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
}

.tjk-table-title {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}

table.tjk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table.tjk-table th,
table.tjk-table td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  vertical-align: top;
  white-space: nowrap;
}

table.tjk-table th {
  background: rgba(255,255,255,0.06);
  font-weight: 700;
}

.tjk-puan {
  margin-top: 16px;
}


.global-date{opacity:.85;font-size:12px;margin-right:10px;}

/* --- Idman submenu --- */
.has-submenu .submenu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(22, 27, 36, 0.98);
  border: 1px solid rgba(234, 84, 85, 0.25);
  border-radius: 8px;
  overflow: hidden;
  z-index: 120;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu .submenu-link {
  padding: 10px 12px;
  font-size: 12px;
}

.footer-sub-link {
  padding-left: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .has-submenu .submenu {
    display: block;
    position: static;
    min-width: unset;
    border: none;
    border-radius: 0;
    background: transparent;
    padding-left: 8px;
  }
}

.pc-board-info {
  margin-bottom: 12px;
  font-size: 13px;
  color: #334155;
  background: rgba(255, 255, 255, 0.95);
}

/* Final winner style: match the red "5" badge tone exactly. */
.altili-winner-row td:first-child {
  background: #ea5455 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  border-color: #ea5455 !important;
}

.home-bet-line.altili-winner-row,
.home-bet-line.altili-winner-inline {
  background: transparent !important;
  border: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-bet-winner-badge {
  display: inline-block;
  min-width: 18px;
  padding: 2px 10px;
  border-radius: 4px;
  line-height: 1.15;
  background: #ea5455;
  color: #ffffff;
  font-weight: 900;
}

.altili-winner-row td:first-child::before,
.altili-winner-row td:first-child::after {
  display: none !important;
}






/* Per-page admin lock: keep page in nav but hide content until unlocked. */
.section-pane.page-locked > * {
  display: none !important;
}

.section-pane.page-locked > .page-lock-notice {
  display: block !important;
}

/* Hard lock at render-level: no JS dependency. */
body[data-admin-preview="0"] .section-pane[data-page-locked="1"] > * {
  display: none !important;
}

body[data-admin-preview="0"] .section-pane[data-page-locked="1"]::before {
  content: "Bu sayfa yonetici tarafindan gecici olarak kilitlendi. Yayin acildiginda tekrar gorunur.";
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(19, 24, 41, 0.86);
  border: 1px solid rgba(240, 123, 63, 0.35);
  color: #d7def7;
}

.ikramiye-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f4b1f;
}

.ikramiye-calc {
  margin-bottom: 12px;
}

.ikramiye-calc-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.ikramiye-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ikramiye-agf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.ikramiye-actions {
  display: flex;
  justify-content: flex-end;
}

.ikramiye-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.ikramiye-results-grid > div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ikramiye-key {
  font-size: 0.86rem;
  color: #334155;
  font-weight: 700;
}

#altili_ikramiyesi .ikramiye-calc {
  display: none;
}

.ikr-board {
  display: block;
}

.ikr-city-tabs {
  margin-bottom: 10px;
}

.ikr-city-tab {
  min-height: 34px;
  max-width: 100%;
  padding: 6px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.ikr-city-tab.active {
  background: #ea5455;
  color: #fff;
  border-color: transparent;
}

#altili_ikramiyesi .ikr-city-tab:hover {
  background: #fff5f5;
  border-color: #ea5455;
  color: #c63d40;
}

#altili_ikramiyesi .ikr-city-tab.active:hover {
  background: #ea5455;
  color: #fff;
  border-color: transparent;
}

.ikr-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.ikr-left,
.ikr-right {
  background: rgba(8, 12, 20, 0.96);
  border: 1px solid rgba(234, 84, 85, 0.2);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
}

.ikr-header {
  background: linear-gradient(180deg, #d41717 0%, #a51118 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.ikr-leg-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.ikr-group-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.ikr-group-tab {
  border: 1px solid rgba(234, 84, 85, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #f6d4d4;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ikr-group-tab.active {
  background: linear-gradient(180deg, #ea5455 0%, #c62828 100%);
  color: #fff;
  border-color: rgba(234, 84, 85, 0.75);
}

.ikr-leg-tab {
  border: 1px solid rgba(234, 84, 85, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #f3d1d1;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ikr-leg-tab.active {
  background: linear-gradient(180deg, #ea5455 0%, #c62828 100%);
  color: #fff;
  border-color: rgba(234, 84, 85, 0.72);
}

.ikr-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ikr-table,
.ikr-picked-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  table-layout: fixed;
  font-size: 0.95rem;
}

.ikr-table th,
.ikr-table td,
.ikr-picked-table th,
.ikr-picked-table td {
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 6px 7px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.25;
}

#altili_ikramiyesi .ikr-table-wrap .ikr-table,
#altili_ikramiyesi .ikr-table-wrap .ikr-table th,
#altili_ikramiyesi .ikr-table-wrap .ikr-table td {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.ikr-inline-no,
.ikr-inline-name {
  display: inline-block;
  vertical-align: baseline;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.ikr-inline-no {
  margin-right: 6px;
  font-weight: 800;
}

.ikr-table td,
.ikr-picked-table td {
  color: #0f172a;
  font-weight: 500;
}

.ikr-table tr.ikr-row-winner td {
  background: #f3f4f6;
  color: #0f172a;
  font-weight: 600;
}

.ikr-table tr.ikr-row-winner td:nth-child(2) {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #fff;
  font-weight: 800;
}

.ikr-table tr.ikr-row-winner .ikr-inline-no {
  color: #fff;
}

.ikr-table tr.ikr-row-winner .ikr-pick-btn {
  border-color: #ea5455;
  background: linear-gradient(180deg, #ff7a59 0%, #ea5455 100%);
  box-shadow: 0 10px 22px rgba(234, 84, 85, 0.22);
}

#altili_ikramiyesi .ikr-picked-table tr.ikr-picked-row-winner .ikr-picked-no,
#altili_ikramiyesi .ikr-table-wrap .ikr-table tr.ikr-row-winner td:nth-child(2) {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

#altili_ikramiyesi .ikr-picked-table tr.ikr-picked-row-winner td .ikr-picked-no {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.5em !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
  color: #fff !important;
  line-height: 1.1 !important;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24) !important;
}

#altili_ikramiyesi .ikr-table-wrap .ikr-table tr.ikr-row-winner .ikr-inline-no {
  color: #fff !important;
}

.ikr-picked-no {
  display: inline-block;
  min-width: 1.4em;
  margin-right: 6px;
  font-weight: 800;
}

.ikr-picked-no.is-winner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.5em !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
  color: #fff !important;
  line-height: 1.1 !important;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24) !important;
}

.ikr-picked-name {
  font-weight: 600;
}

.ikr-picked-jockey {
  font-size: 0.86rem;
  line-height: 1.15;
  font-weight: 500;
}

.ikr-table td.muted,
.ikr-picked-table td.muted {
  color: #64748b;
  font-weight: 500;
}

.ikr-table th,
.ikr-picked-table th {
  background: #151b24;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Left table column widths */
.ikr-table th:nth-child(1),
.ikr-table td:nth-child(1) {
  width: 62px;
  text-align: center;
}

.ikr-table th:nth-child(2),
.ikr-table td:nth-child(2) {
  width: 56px;
  text-align: center;
}

.ikr-table th:nth-child(3),
.ikr-table td:nth-child(3) {
  width: auto;
}

.ikr-table th:nth-child(4),
.ikr-table td:nth-child(4) {
  width: 96px;
}

.ikr-table th:nth-child(5),
.ikr-table td:nth-child(5) {
  width: 72px;
  text-align: right;
}

/* Right table column widths */
.ikr-picked-table th:nth-child(1),
.ikr-picked-table td:nth-child(1) {
  width: 52px;
  text-align: center;
}

.ikr-picked-table th:nth-child(2),
.ikr-picked-table td:nth-child(2) {
  width: auto;
}

.ikr-picked-table th:nth-child(3),
.ikr-picked-table td:nth-child(3) {
  width: 74px;
}

.ikr-picked-table th:nth-child(4),
.ikr-picked-table td:nth-child(4) {
  width: 64px;
  text-align: right;
}

.ikr-pick-btn {
  border: 1px solid #ea5455;
  background: linear-gradient(180deg, #ff7a59 0%, #ea5455 100%);
  color: #fff;
  border-radius: 7px;
  padding: 4px 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(234, 84, 85, 0.22);
}

.ikr-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.ikr-actions label {
  color: #d7def7;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ikr-actions label input {
  min-width: 0;
}

.ikr-actions .btn {
  grid-column: 1 / -1;
  width: 100%;
  appearance: none;
  background: linear-gradient(180deg, #ff7a59 0%, #ea5455 100%);
  color: #fff;
  border: 1px solid rgba(234, 84, 85, 0.7);
  box-shadow: 0 14px 28px rgba(234, 84, 85, 0.18);
}

.ikr-actions .btn:hover {
  filter: brightness(1.03);
}

.ikr-actions .btn.btn-ikincil,
.ikr-actions .btn[name="ikr_clear"] {
  background: rgba(255, 255, 255, 0.04);
  color: #ffdede;
  border: 1px solid rgba(234, 84, 85, 0.28);
  box-shadow: none;
}

.ikr-estimate-display {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(234, 84, 85, 0.18) 0%, rgba(122, 19, 34, 0.22) 100%);
  border: 1px solid rgba(234, 84, 85, 0.42);
  color: #fff2f2;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.35;
}

.ikr-estimate-display.is-placeholder {
  color: #ffd7d7;
}

.ikr-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 245, 214, 0.92);
  border: 1px solid rgba(255, 184, 77, 0.95);
  color: #8a3d12;
  font-weight: 700;
}

.ikr-note.error {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

@media (max-width: 1000px) {
  .ikr-layout {
    grid-template-columns: 1fr;
  }
  .ikr-leg-tabs {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
  .ikr-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #altili_ikramiyesi .ikr-table-wrap {
    padding-bottom: 2px;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table {
    width: max-content;
    min-width: 420px;
    table-layout: auto !important;
    font-size: 0.68rem !important;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th,
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    letter-spacing: -0.01em;
    padding: 4px 5px !important;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(1),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(1) {
    width: 52px;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(2),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(2) {
    display: none;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(3),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(3) {
    min-width: 250px;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(4),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(4) {
    display: none;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(5),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(5) {
    width: 46px;
    text-align: right;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(3),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(3),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table th:nth-child(5),
  #altili_ikramiyesi .ikr-table-wrap .ikr-table td:nth-child(5) {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-overflow: clip;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-pick-btn {
    padding: 3px 6px;
    font-size: 0.64rem;
  }

  #altili_ikramiyesi .ikr-table-wrap .ikr-inline-no,
  #altili_ikramiyesi .ikr-table-wrap .ikr-inline-name {
    white-space: nowrap !important;
  }
}
