:root {
    --primary-color: #00a551;
    --secondary-color: #1a1a1a;
    --text-primary: #333333;
    --text-secondary: #666666;
    --header-height: 56px;
    --bottom-nav-height: 60px;
    --content-top-margin: 24px; /* Уменьшаем с 80px до 24px */
}

/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* Добавляем отступ для всего body */
}

/* Табы */
.tab-active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Спортивные иконки */
.sport-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: 60px;
    color: var(--text-secondary);
}

.sport-icon i {
    font-size: 1.5rem;
}

/* Баннер */
.banner-carousel {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 2.67 / 1;
    width: 100%;
    height: auto;
    background: #f5f5f5;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    border-radius: 0 0 0.5rem 0.5rem;
}

.banner-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Анимации для баннера */
.banner-slide > div {
    transition: opacity 0.3s ease-in-out;
}

/* Карточка матча */
.match-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    min-height: 120px; /* Фиксированная минимальная высота */
}

.match-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.teams {
    font-weight: 500;
    color: var(--text-primary);
}

.badges {
    display: flex;
    gap: 0.5rem;
    color: var(--primary-color);
}

.odds {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.odd-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 0.25rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.odd-btn:hover {
    background: #e5e5e5;
    transform: scale(1.02);
}

/* Нижняя навигация */
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.tab-item i {
    font-size: 1.25rem;
}

/* Сайдбар */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #f5f5f5;
}

/* Тёмная тема */
.dark {
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

.dark .match-card {
    background: #2d2d2d;
}

.dark .odd-btn {
    background: #3d3d3d;
    color: #ffffff;
}

.dark .odd-btn:hover {
    background: #4d4d4d;
}

.dark .nav-item:hover {
    background-color: #3d3d3d;
}

/* Анимации */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar-open {
    transform: translateX(0) !important;
    animation: slideIn 0.3s ease-out;
}

/* Фиксированные размеры для иконок */
.sport-icon img,
.match-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Фиксированная высота для нижней навигации */
.bottom-nav {
    height: 60px;
}

/* Контейнер для основного контента */
.content-wrapper {
    padding-top: var(--content-top-margin);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* Стабилизация сайдбара */
.sidebar {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

/* Стабилизация сайдбаров */
.sidebar.sticky {
    top: calc(var(--header-height) + 12px); /* Уменьшаем отступ сайдбаров с 20px до 12px */
    height: calc(100vh - var(--header-height) - 24px);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Фильтры */
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.filter-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color) !important;
}

.dark .filter-item:hover {
    background-color: #3d3d3d;
}

.filter-item i {
    width: 1.5rem;
    text-align: center;
} 