@import "https://senoval.cdn.sports.ru/static-resources/fonts/roboto.css";
@import "https://senoval.cdn.sports.ru/static-resources/fonts/sports.css";

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;
}

:root {
    --sports-primary-color: #00A876;
    --sports-primary-color-hover: #21a67e;
    --sports-primary-light-color-hover: #d8f7e5;
    --sports-green-850: #1f6650;
    --sports-green-900: #003d2b;
    --sports-green-50: #d8f7e5;
    --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-100: #d8d8d8;
    --sports-grey-50: #efefef;

    --ui-bg: #fff;
    --ui-font-family-body: "Neoris", "Roboto", sans-serif;
    --ui-font-family-heading: "Sports", sans-serif;
    --ui-font-family-heading-primary: "Sports", sans-serif;
    --ui-font-family-heading-secondary: "Neoris", "Roboto", sans-serif;
}

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

body {
    font-family: var(--ui-font-family-body);
    background: var(--ui-bg);
    color: var(--sports-grey-900);
    line-height: 1.6;
    padding: 0;
}

.container {
    margin: 0 auto;
    background: var(--ui-bg);
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 24px 24px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.pattern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.betcity-logo {
    height: 30px;
    width: auto;
    max-width: 100%;
}

.logo-separator {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1;
}

@media (max-width: 480px) {
    .header-logos {
        gap: 10px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .betcity-logo {
        height: 24px;
    }
    
    .logo-separator {
        font-size: 18px;
    }
}

.title {
    font-family: var(--ui-font-family-heading);
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    padding: 0 10px;
}

.form-link {
    color: var(--sports-primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

/* Форма */
.prediction-form {
    background: var(--ui-bg);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ui-font-family-heading);
    font-size: 20px;
    color: var(--sports-black);
    margin-bottom: 12px;
    font-weight: bold;
}

.label-icon {
    font-size: 24px;
    vertical-align: top;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sports-grey-100);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--ui-font-family-body);
    color: var(--sports-grey-900);
    background: var(--ui-bg);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--sports-primary-color);
    box-shadow: 0 0 0 3px var(--sports-primary-light-color-hover);
}

.form-input::placeholder {
    color: var(--sports-grey-400);
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sports-grey-100);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--ui-font-family-body);
    color: var(--sports-grey-900);
    background: var(--ui-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--sports-primary-color);
    box-shadow: 0 0 0 3px var(--sports-primary-light-color-hover);
}

.double-points-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--sports-grey-50);
}

.double-points-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.double-points-option {
    background: var(--ui-bg);
    border: 2px solid var(--sports-grey-100);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.double-points-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sports-primary-color) 0%, var(--sports-primary-color-hover) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.double-points-option:hover {
    border-color: var(--sports-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 118, 0.15);
}

.double-points-option:hover::before {
    opacity: 0.05;
}

.double-points-option.selected {
    border-color: var(--sports-primary-color);
    background: var(--sports-primary-light-color-hover);
    box-shadow: 0 0 0 3px rgba(0, 168, 118, 0.1);
}

.double-points-option.selected::before {
    opacity: 0.1;
}

.double-points-option-content {
    position: relative;
    z-index: 1;
}

.double-points-option-text {
    font-family: var(--ui-font-family-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--sports-black);
    display: block;
    text-align: center;
}

.double-points-match-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.double-points-match-number {
    font-family: var(--ui-font-family-heading);
    font-size: 11px;
    font-weight: bold;
    color: var(--sports-grey-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.double-points-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.double-points-team {
    font-family: var(--ui-font-family-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--sports-black);
    text-align: center;
}

.double-points-option.selected .double-points-team {
    color: var(--sports-primary-color);
}

.double-points-vs {
    font-family: var(--ui-font-family-heading);
    font-size: 12px;
    color: var(--sports-grey-400);
    font-weight: 500;
}

.double-points-option.selected .double-points-vs {
    color: var(--sports-primary-color);
}

@media (max-width: 480px) {
    .double-points-picker {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .double-points-option {
        padding: 12px 14px;
    }
    
    .double-points-team {
        font-size: 13px;
    }
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--sports-grey-500);
}

/* Секция матчей */
.matches-section {
    margin: 40px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ui-font-family-heading);
    font-size: 24px;
    color: var(--sports-black);
    margin-bottom: 25px;
    font-weight: bold;
}

.title-icon {
    font-size: 28px;
    vertical-align: top;
}

.matches-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка матча */
.match-card {
    background: var(--ui-bg);
    border: 2px solid var(--sports-grey-50);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: var(--sports-primary-color);
    box-shadow: 0 4px 12px rgba(0, 199, 139, 0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -14px -14px 10px -14px;
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--sports-grey-50);
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.match-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://dumpster.cdn.sports.ru/5/30/01b6278e80cb78799a67b62ff694e.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--pattern-position, 0% 0%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.match-header > * {
    position: relative;
    z-index: 1;
}

.match-number {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
}

.match-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sports-black);
    border: none;
    border-radius: 6px;
    font-family: var(--ui-font-family-body);
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 12px;
    backdrop-filter: blur(4px);
}

.match-link-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--sports-primary-color);
    transform: translateY(-1px);
}

.match-link-btn .link-icon {
    color: var(--sports-black);
}

.link-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    vertical-align: top;
}

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

.match-date-time {
    font-family: var(--ui-font-family-body);
    font-size: 14px;
    color: var(--sports-grey-600);
    text-align: center;
    padding: 0 8px;
    line-height: 1.4;
    min-width: 80px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sports-grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: bold;
    color: var(--sports-grey-700);
}

.team-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 6px;
}

.team-name {
    font-family: var(--ui-font-family-heading);
    font-size: 15px;
    font-weight: bold;
    color: var(--sports-black);
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .team-logo-img {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }
    
    .team-name {
        font-size: 13px;
    }
    
    .match-date-time {
        font-size: 10px;
    }
}

.vs-divider {
    font-family: var(--ui-font-family-heading);
    font-size: 14px;
    color: var(--sports-grey-400);
    font-weight: bold;
    padding: 0 6px;
}

/* Форма команд */
.form-indicators {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
}

.form-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.form-details {
    margin-top: 12px;
    padding: 8px;
    background: var(--sports-grey-50);
    border-radius: 8px;
    font-size: 13px;
    color: var(--sports-grey-700);
    text-align: center;
}

.form-details-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-details-team {
    margin-bottom: 8px;
}

.form-details-team:last-child {
    margin-bottom: 0;
}

.form-details-team strong {
    color: var(--sports-black);
}

.form-toggle-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--sports-grey-100);
    border-radius: 6px;
    font-size: 12px;
    color: var(--sports-grey-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ui-font-family-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 480px) {
    .form-toggle-btn {
        min-height: 40px;
    }
}

.form-toggle-btn:hover {
    background: var(--sports-primary-light-color-hover);
    color: var(--sports-primary-color);
    border-color: var(--sports-primary-color);
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.toggle-text {
    flex: 1;
}

.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--sports-grey-100);
}

.form-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--sports-grey-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--ui-font-family-body);
    margin-bottom: -2px;
}

.form-tab-btn:hover {
    color: var(--sports-primary-color);
}

.form-tab-btn.active {
    color: var(--sports-primary-color);
    border-bottom-color: var(--sports-primary-color);
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

.form-match-item {
    padding: 6px 0;
    border-bottom: 1px solid var(--sports-grey-50);
}

.form-match-item:last-child {
    border-bottom: none;
}

.form-match-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--sports-grey-500);
    text-align: center;
    padding: 0 8px;
}

.form-match-tournament {
    font-weight: 500;
}

.form-match-date {
    color: var(--sports-grey-400);
}

.form-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 0 8px;
}

.form-match-team {
    flex: 1;
    color: var(--sports-grey-700);
    text-align: center;
}

.form-match-winner {
    font-weight: bold;
    color: var(--sports-black);
}

.form-match-result {
    font-family: var(--ui-font-family-heading);
    font-weight: bold;
    color: var(--sports-black);
    min-width: 50px;
    text-align: center;
}

/* Коэффициенты */
.odds-section {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--sports-grey-50);
    border-radius: 8px;
    position: relative;
}

.odds-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.betcity-odds-logo {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: auto;
    object-fit: contain;
    z-index: 1;
}

.odd-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--ui-bg);
    border-radius: 6px;
    border: none;
}

.odd-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.odd-link:hover {
    background: var(--sports-primary-light-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 168, 118, 0.2);
}

.odd-label {
    font-family: var(--ui-font-family-heading);
    font-size: 11px;
    font-weight: bold;
    color: var(--sports-grey-700);
    text-transform: uppercase;
}

.odd-value {
    font-family: var(--ui-font-family-heading);
    font-size: 14px;
    font-weight: bold;
    color: var(--sports-primary-color);
}

/* Ввод счёта */
.score-selection {
    margin-top: 10px;
}

.score-input-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.score-team-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 100px;
}


.score-input-team {
    width: 100%;
    padding: 14px 12px;
    border: 2px solid var(--sports-grey-100);
    border-radius: 10px;
    font-size: 20px;
    font-family: var(--ui-font-family-heading);
    font-weight: bold;
    color: var(--sports-grey-900);
    background: var(--ui-bg);
    text-align: center;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

@media (max-width: 480px) {
    .score-input-team {
        inputmode: numeric;
        pattern: "[0-9]*";
    }
}

.score-input-team::-webkit-outer-spin-button,
.score-input-team::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input-team:focus {
    outline: none;
    border-color: var(--sports-primary-color);
    box-shadow: 0 0 0 3px var(--sports-primary-light-color-hover);
}

.score-input-team::placeholder {
    color: var(--sports-grey-400);
    font-weight: normal;
}

.score-input-team:valid:not(:placeholder-shown) {
    border-color: var(--sports-primary-color);
}

.score-input-team:invalid:not(:placeholder-shown) {
    border-color: var(--sports-red-a700);
}

.score-input-animated {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--sports-grey-100);
        box-shadow: 0 0 0 0 rgba(0, 199, 139, 0);
    }
    50% {
        border-color: var(--sports-primary-color);
        box-shadow: 0 0 0 3px rgba(0, 199, 139, 0.2);
    }
}

.score-input-animated:focus {
    animation: none;
}

.score-separator {
    font-family: var(--ui-font-family-heading);
    font-size: 24px;
    font-weight: bold;
    color: var(--sports-grey-400);
    padding-bottom: 6px;
    line-height: 1;
}

/* Кнопка отправки */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--sports-primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--ui-font-family-heading);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 199, 139, 0.3);
    width: 100%;
}

.submit-btn:hover {
    background: var(--sports-primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 199, 139, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--sports-grey-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--sports-grey-500);
    text-align: center;
}

/* Сообщения */
.success-message,
.error-message {
    margin-top: 30px;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.success-message {
    background: var(--sports-green-50);
    border: 2px solid var(--sports-primary-color);
}

.error-message {
    background: var(--sports-red-50);
    border: 2px solid var(--sports-red-a700);
}

.success-content,
.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.success-message h3,
.error-message h3 {
    font-family: var(--ui-font-family-heading);
    font-size: 24px;
    color: var(--sports-black);
    margin-bottom: 8px;
}

.success-message p,
.error-message p {
    font-size: 16px;
    color: var(--sports-grey-700);
    line-height: 1.6;
    white-space: pre-line;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .form-label {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .match-card {
        padding: 12px;
    }

    .match-teams {
        gap: 8px;
        margin-bottom: 10px;
    }

    .team-logo {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .team-name {
        font-size: 12px;
    }

    .vs-divider {
        font-size: 12px;
        padding: 0 4px;
    }
    
    .form-indicator {
        width: 6px;
        height: 6px;
    }

    .odds-section {
        padding: 6px 4px;
        margin-top: 8px;
        min-height: 40px;
    }

    .odds-wrapper {
        gap: 10px;
    }

    .odd-item {
        padding: 3px 6px;
    }

    .odd-label {
        font-size: 9px;
    }

    .odd-value {
        font-size: 10px;
    }

    .score-input-wrapper {
        gap: 6px;
    }

    .score-team-input {
        max-width: 90px;
    }

    .score-input-team {
        font-size: 18px;
        padding: 8px 10px;
    }

    .score-separator {
        font-size: 20px;
        padding-bottom: 5px;
    }


    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 18px;
    }

    .match-teams {
        flex-direction: row;
        gap: 10px;
    }

    .vs-divider {
        padding: 0 6px;
    }
}

