/* Скопировано из stavkinamu с актуальными правками ширины, плашки и кнопки WINLINE */
/* Импорт шрифта TT Neoris */
@import url('https://fonts.googleapis.com/css2?family=TT+Neoris:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* Современная Sports.ru цветовая схема и переменные */
:root {
    /* Branded Colors for Sports.ru */
    --sports-primary-color: #000000;
    --sports-primary-color-hover: #333333;
    --sports-primary-light: #f0f0f0;
    --sports-green-850: #333333;
    --sports-green-900: #000000;
    --sports-green-50: #f0f0f0;
    --sports-yellow-A700: #ffc300;
    --sports-yellow-100: #f2f2f0;
    --sports-yellow-50: #f9f9f7;
    --sports-red-a700: #ff003c;
    --sports-red-50: #ffe7eb;
    --sports-orange-900: #d26e00;
    --sports-orange-50: #fff1d9;
    --sports-cyan-A700: #00a0f0;
    --sports-cyan-900: #006496;
    --sports-blue-A700: #0040fc;
    --sports-blue-A400: #235bff;
    --sports-blue-50: #dfe7ff;
    --sports-purple-500: #964ba0;
    --sports-purple-50: #aaa9aa;
    --sports-black: #000;
    --sports-grey-1050: #1a1a1a;
    --sports-grey-1000: #171717;
    --sports-grey-900: #222;
    --sports-grey-850: #323232;
    --sports-grey-800: #4a4a4a;
    --sports-grey-700: #4c4c4c;
    --sports-grey-600: #757575;
    --sports-grey-500: #7f7f7f;
    --sports-grey-400: #9b9b9b;
    --sports-grey-300: #c4c4c4;
    --sports-grey-200: #e0e0e0;
    --sports-grey-100: #d8d8d8;
    --sports-grey-50: #efefef;

    /* Современные UI переменные */
    --ui-bg: #f5f6f8;
    --ui-card-bg: #ffffff;
    --ui-font-family-body: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --ui-font-family-heading: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --ui-font-family-heading-primary: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Основные переменные для компонентов */
    --primary-color: #000000;
    --primary-hover: #333333;
    --background-color: #f5f6f8;
    --text-primary: #000000;
    --text-secondary: #757575;
    --text-muted: #9b9b9b;
    --border-color: #e0e0e0;
    --card-background: #ffffff;
    --surface-color: #efefef;
    --hover-background: #f8f9fa;

    /* Современные размеры и отступы */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;

    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Современные тени */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

/* Базовые стили */
html {
    box-sizing: border-box;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    word-break: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Принудительное отображение текста */
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.container {
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--background-color);
}

.betting-results {
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.betting-results h2 {
    font-family: var(--ui-font-family-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: 0;
    border-bottom: none;
}

.notice {
    display: block;
    margin-top: 4px;
    margin-bottom: var(--spacing-2xl);
    padding: 10px 12px;
    background: var(--sports-yellow-50, #f9f9f7);
    border: 1px solid var(--sports-yellow-100, #f2f2f0);
    border-radius: var(--border-radius-md);
    color: var(--sports-grey-900, #222);
    font-size: 13px;
}

.strategy-selector { margin-bottom: var(--spacing-2xl); }
.strategy-selector h3 { font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 400; color: var(--text-primary); margin-bottom: var(--spacing-lg); }
.strategy-buttons { display: flex; gap: var(--spacing-sm); background-color: var(--surface-color); padding: 4px; border-radius: var(--border-radius-md); }
.strategy-btn { flex: 1; min-width: 70px; padding: var(--spacing-md) var(--spacing-sm); border: none; background-color: transparent; color: var(--text-secondary); border-radius: var(--border-radius-sm); font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-align: center; line-height: 1.2; }
.strategy-btn:hover { background-color: var(--card-background); color: var(--text-primary); }
.strategy-btn.active { background-color: var(--card-background); color: var(--text-primary); box-shadow: var(--shadow-sm); font-weight: 500; }

.bottom-controls { display: flex; gap: var(--spacing-2xl); margin-bottom: var(--spacing-2xl); align-items: flex-start; }
.bet-amount-selector { flex: 1; min-width: 280px; }
.bet-amount-selector h3 { font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 400; color: var(--text-primary); margin-bottom: var(--spacing-lg); }
.amount-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-sm); background-color: var(--surface-color); padding: 4px; border-radius: var(--border-radius-md); }
.amount-btn { min-width: 60px; padding: var(--spacing-md) var(--spacing-sm); border: none; background-color: transparent; color: var(--text-secondary); border-radius: var(--border-radius-sm); font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.amount-btn:hover { background-color: var(--card-background); color: var(--text-primary); }
.amount-btn.active { background-color: var(--card-background); color: var(--text-primary); box-shadow: var(--shadow-sm); font-weight: 500; }
.custom-amount { position: relative; display: flex; align-items: center; background-color: var(--card-background); border-radius: var(--border-radius-sm); padding: 2px; grid-column: span 2; margin-top: var(--spacing-xs); }
.custom-amount input { width: 100%; border: none; background: transparent; padding: var(--spacing-md) var(--spacing-sm); font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 500; color: var(--text-primary); text-align: center; outline: none; }
.custom-amount input::placeholder { color: var(--text-secondary); font-weight: 400; }
.custom-amount .currency { position: absolute; right: var(--spacing-sm); color: var(--text-secondary); font-size: 14px; font-weight: 500; pointer-events: none; }
.custom-amount input:focus { background-color: var(--card-background); }
.custom-amount.active { box-shadow: var(--shadow-sm); }

.matches-table { margin-bottom: var(--spacing-2xl); overflow: hidden; border-radius: var(--border-radius-lg); background-color: var(--card-background); box-shadow: var(--shadow-card); border: 1px solid var(--border-color); }
.matches-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-caption { caption-side: top; text-align: left; padding: var(--spacing-lg); font-size: 13px; color: var(--text-secondary); }
.matches-table th { background-color: var(--surface-color); padding: var(--spacing-lg); text-align: left; font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--border-color); font-family: var(--ui-font-family-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.matches-table td { padding: var(--spacing-lg); border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-family: var(--ui-font-family-body); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matches-table tbody tr { transition: background-color 0.15s ease; }
.matches-table tbody tr:hover { background-color: rgba(0, 0, 0, 0.02); }
.matches-table td:hover { position: relative; overflow: visible; z-index: 10; }
.matches-table td:hover::after { content: attr(title); position: absolute; top: 100%; left: 0; background: #000000; color: #ffffff; padding: 4px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; z-index: 1000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); display: block; min-width: max-content; }
.matches-table tbody tr:last-child td { border-bottom: none; }

.match-result { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.match-result.win { background-color: var(--sports-green-50); color: var(--sports-green-850); }
.match-result.loss { background-color: var(--sports-red-50); color: var(--sports-red-a700); }
.match-result.draw { background-color: var(--sports-grey-100); color: var(--sports-grey-600); }

.betting-summary { background-color: var(--card-background); border-radius: var(--border-radius-lg); padding: var(--spacing-2xl); box-shadow: var(--shadow-card); border: 1px solid var(--border-color); flex: 1; min-width: 300px; }
.betting-summary h3 { font-family: var(--ui-font-family-heading); font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: var(--spacing-xl); }
.summary-stats-container { display: flex; gap: var(--spacing-2xl); margin-bottom: var(--spacing-2xl); align-items: flex-start; }
.summary-stats { display: flex; justify-content: center; gap: var(--spacing-md); flex: 1; }
.summary-item { padding: var(--spacing-lg) var(--spacing-xl); background-color: var(--surface-color); border-radius: var(--border-radius-md); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: fit-content; height: auto; min-width: 180px; }
.make-bet-container { flex-shrink: 0; width: 200px; }
.summary-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: var(--spacing-sm); text-transform: uppercase; font-weight: 500; letter-spacing: 0.5px; }
.summary-value { font-size: 24px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.summary-value.positive { color: var(--sports-primary-color); }
.summary-value.negative { color: var(--sports-red-a700); }

.make-bet-btn { display: flex; align-items: center; justify-content: center; gap: var(--spacing-sm); width: 100%; padding: var(--spacing-xl) var(--spacing-2xl); background-color: var(--primary-color); color: white; border: none; border-radius: var(--border-radius-md); font-family: var(--ui-font-family-body); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-decoration: none; position: relative; overflow: hidden; }
.make-bet-btn:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.make-bet-btn:active { transform: translateY(0); }
.make-bet-btn svg { width: 18px; height: 18px; }
.bonus-text { display: block; font-size: 11px; opacity: 0.9; margin-top: 2px; font-weight: 400; }

@media (max-width: 768px) {
    .container { padding: var(--spacing-lg); }
    .betting-results { padding: var(--spacing-xl); margin-bottom: var(--spacing-xl); }
    .betting-results h2 { font-size: 18px; text-align: center; margin-bottom: var(--spacing-xl); }
    .strategy-selector { margin-bottom: var(--spacing-xl); }
    .bottom-controls { flex-direction: column; gap: var(--spacing-xl); align-items: center; }
    .bet-amount-selector, .betting-summary { min-width: auto; width: 100%; max-width: 400px; }
    .strategy-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; }
    .strategy-btn { min-width: auto; width: 100%; padding: var(--spacing-lg); border-radius: var(--border-radius-sm); font-size: 14px; font-weight: 500; line-height: 1.3; }
    .amount-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; }
    .custom-amount { grid-column: span 2; }
    .amount-btn { min-width: auto; width: 100%; padding: var(--spacing-lg); border-radius: var(--border-radius-sm); font-size: 14px; font-weight: 500; }
    .matches-table { margin: var(--spacing-xl) 0; border-radius: var(--border-radius-lg); overflow: visible; }
    .matches-table table { width: 100%; font-size: 12px; table-layout: fixed; }
    .matches-table th, .matches-table td { padding: var(--spacing-sm) 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .matches-table th:nth-child(2), .matches-table td:nth-child(2) { display: none; }
    .matches-table th:nth-child(1), .matches-table td:nth-child(1) { width: 45%; min-width: 140px; white-space: normal; line-height: 1.3; padding: var(--spacing-sm) 2px; }
    .desktop-match { display: none; }
    .mobile-match { display: block; }
    .matches-table td:nth-child(1) .match-link { display: block; font-weight: 700; margin-bottom: 2px; font-size: 12px; }
    .matches-table td:nth-child(1) .match-date { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
    .matches-table th:nth-child(3), .matches-table td:nth-child(3) { width: 15%; min-width: 45px; }
    .matches-table th:nth-child(4), .matches-table td:nth-child(4) { width: 20%; min-width: 60px; }
    .matches-table th:nth-child(5), .matches-table td:nth-child(5) { width: 25%; min-width: 70px; }
    .summary-stats-container { flex-direction: column; gap: var(--spacing-lg); align-items: center; }
    .summary-stats { display: flex; flex-direction: column; gap: var(--spacing-md); width: 100%; max-width: 400px; }
    .summary-item { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: var(--spacing-lg); width: 100%; height: auto; background-color: var(--surface-color); border-radius: var(--border-radius-md); }
    .summary-label { margin-bottom: 0; font-size: 13px; font-weight: 500; }
    .summary-value { font-size: 18px; font-weight: 600; }
    .make-bet-container { width: 100%; max-width: 400px; }
    .make-bet-btn { padding: var(--spacing-lg) var(--spacing-xl); font-size: 14px; }
}

@media (max-width: 480px) {
    .container { padding: var(--spacing-md); }
    .betting-results { padding: var(--spacing-lg); }
    .betting-results h2 { font-size: 16px; }
    .bottom-controls { align-items: center; }
    .bet-amount-selector, .betting-summary { max-width: 350px; }
    .matches-table table { font-size: 11px; }
    .matches-table th, .matches-table td { padding: var(--spacing-sm) 1px; font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .matches-table th:nth-child(2), .matches-table td:nth-child(2) { display: none; }
    .matches-table th:nth-child(1), .matches-table td:nth-child(1) { width: 48%; min-width: 120px; white-space: normal; line-height: 1.2; padding: var(--spacing-xs) 1px; }
    .desktop-match { display: none; }
    .mobile-match { display: block; }
    .matches-table td:nth-child(1) .match-link { display: block; font-weight: 700; margin-bottom: 1px; font-size: 11px; line-height: 1.2; }
    .matches-table td:nth-child(1) .match-date { display: block; font-size: 10px; color: var(--text-muted); margin-top: 1px; }
    .matches-table th:nth-child(3), .matches-table td:nth-child(3) { width: 14%; min-width: 38px; }
    .matches-table th:nth-child(4), .matches-table td:nth-child(4) { width: 18%; min-width: 48px; }
    .matches-table th:nth-child(5), .matches-table td:nth-child(5) { width: 26%; min-width: 60px; }
    .summary-stats-container { align-items: center; }
    .summary-stats { max-width: 350px; }
    .summary-item { padding: var(--spacing-md) var(--spacing-lg); }
    .summary-label { font-size: 12px; }
    .summary-value { font-size: 16px; }
    .make-bet-container { max-width: 350px; }
    .make-bet-btn { padding: var(--spacing-md) var(--spacing-lg); font-size: 13px; }
}

@media (max-width: 768px) { .strategy-btn:active, .amount-btn:active, .make-bet-btn:active { transform: scale(0.98); transition: transform 0.1s ease; } }

* { -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -o-font-feature-settings: "kern" 1; font-feature-settings: "kern" 1; }
h1, h2, h3, h4, h5, h6, p, span, div, td, th, button { color: inherit !important; font-family: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; visibility: visible !important; opacity: 1 !important; }
.matches-table th, .matches-table td { color: #000000 !important; font-family: var(--ui-font-family-body) !important; background-color: transparent !important; }
.matches-table th { background-color: #efefef !important; color: #000000 !important; font-weight: 500 !important; }
.matches-table tbody tr:hover { background-color: rgba(0, 199, 139, 0.05) !important; }
.matches-table tbody tr:hover td { color: #000000 !important; }
.strategy-btn, .amount-btn { color: #000000 !important; font-family: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; background-color: #ffffff !important; border: 1px solid #e0e0e0 !important; }
.strategy-btn.active, .amount-btn.active { color: #ffffff !important; background-color: #000000 !important; border-color: #000000 !important; }
.betting-results h2, .betting-results h3 { color: #000000 !important; font-family: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; }
.summary-content p, .summary-label, .summary-value { color: #000000 !important; }
.summary-value.positive { color: #000000 !important; }
.summary-value.negative { color: #ff003c !important; }
.match-link { color: #000000 !important; text-decoration: none !important; font-weight: 700 !important; transition: color 0.15s ease; }
.match-link:hover { color: var(--sports-primary-color) !important; text-decoration: underline !important; }
.desktop-match { display: inline; }
.mobile-match { display: none; }
.make-bet-btn { color: #ffffff !important; border: none !important; }
.make-bet-btn--winline { background-color: #FF6913 !important; }
.make-bet-btn--winline:hover { background-color: #e45e11 !important; }
.bet-result-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: var(--border-radius-sm); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s ease; color: #ffffff !important; min-width: 80px; text-align: center; }
.bet-result-btn:hover { transform: translateY(-1px); }
.bet-result-btn.positive { background-color: #00c78b !important; color: #ffffff !important; }
.bet-result-btn.positive:hover { background-color: #21a67e !important; }
.bet-result-btn.negative { background-color: #ff003c !important; color: #ffffff !important; }
.bet-result-btn.negative:hover { background-color: #e6002f !important; }
.match-result { color: #ffffff !important; }
.match-result.win { background-color: #000000 !important; color: #ffffff !important; }
.match-result.loss { background-color: #ff003c !important; color: #ffffff !important; }
.match-result.draw { background-color: #ffc300 !important; color: #000000 !important; }
* { font-family: "TT Neoris", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; }
* { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.2; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-hover); }
button:focus, .strategy-btn:focus, .amount-btn:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Стили для кнопки "Посмотреть все кэфы" */
.table-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-lg);border-bottom:1px solid var(--border-color)}
.table-header .table-caption{padding:0;margin:0}
.view-all-odds-btn{padding:8px 16px;background-color:var(--sports-primary-color);color:#fff!important;border:none;border-radius:var(--border-radius-sm);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;font-family:var(--ui-font-family-body)!important}
.view-all-odds-btn:hover{background-color:var(--sports-primary-color-hover);transform:translateY(-1px)}
.view-all-odds-btn.active{background-color:var(--sports-cyan-A700)!important}

/* Режим всех кэфов */
.all-odds-mode .odds-column{display:none}
.all-odds-mode th.odds-header-win,.all-odds-mode th.odds-header-draw,.all-odds-mode th.odds-header-lose,.all-odds-mode th.odds-header-not-lose,.all-odds-mode th.odds-header-not-win{display:table-cell}
.all-odds-cell{display:table-cell;text-align:center;padding:var(--spacing-lg);font-size:14px;font-weight:500}
.all-odds-cell.won-odd{background-color:#d8f7e5!important;color:#000!important;font-weight:700!important}

@media (max-width:768px){
  .table-header{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}
  .view-all-odds-btn{width:100%;text-align:center}
  .all-odds-cell{font-size:11px;padding:var(--spacing-sm)}
}



