:root {
            --bg-base: #111318;
            --bg-surface: #181a20;
            --bg-card: #1c1e25;
            --bg-elevated: #21232b;
            --bg-header: #141519;
            --bg-sidebar: #131418;
            --bg-input: #1a1c23;
            --border: rgba(255, 255, 255, 0.06);
            --border-light: rgba(255, 255, 255, 0.04);
            --border-active: rgba(255, 255, 255, 0.12);
            --text-primary: #e4e6ec;
            --text-secondary: #9599a3;
            --text-tertiary: #6b6f78;
            --text-muted: #52565e;
            --accent: #e63946;
            --accent-soft: rgba(230, 57, 70, 0.12);
            --accent-glow: rgba(230, 57, 70, 0.25);
            --green: #4ade80;
            --green-soft: rgba(74, 222, 128, 0.12);
            --red: #f87171;
            --red-soft: rgba(248, 113, 113, 0.12);
            --amber: #fbbf24;
            --amber-soft: rgba(251, 191, 36, 0.12);
            --blue: #60a5fa;
            --blue-soft: rgba(96, 165, 250, 0.12);
            --purple: #a78bfa;
            --live-dot: #ef4444;
            --radius-xs: 6px;
            --radius-sm: 10px;
            --radius-md: 14px;
            --radius-lg: 18px;
            --radius-xl: 22px;
            --radius-full: 999px;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
            --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
            --header-h: 54px;
            --bottom-nav-h: 58px;
            --sidebar-w: 240px;
            --sidebar-r-w: 280px;
            --transition-fast: 0.15s ease;
            --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        html {
            font-size: 15px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-base);
            color: var(--text-primary);
            min-height: 100vh;
            min-height: 100dvh;
            line-height: 1.5;
            overflow-x: hidden;
            letter-spacing: -0.01em;
        }

        .app {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            min-height: 100dvh;
        }

        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg-header);
            border-bottom: 1px solid var(--border);
            height: var(--header-h);
            display: flex;
            align-items: center;
            padding: 0 12px;
            gap: 8px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            user-select: none;
        }
        .header-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            font-size: 1.15rem;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            text-decoration: none;
            flex-shrink: 0;
            margin-right: 4px;
        }
        .header-logo svg {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }
        .header-logo .dot {
            color: var(--accent);
        }
        .header-search {
            flex: 1;
            max-width: 380px;
            position: relative;
            display: none;
        }
        .header-search input {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            padding: 8px 14px 8px 38px;
            font-size: 0.875rem;
            color: var(--text-primary);
            outline: none;
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
            letter-spacing: -0.01em;
        }
        .header-search input::placeholder {
            color: var(--text-tertiary);
        }
        .header-search input:focus {
            border-color: var(--border-active);
            background: var(--bg-elevated);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        .header-search .search-icon {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--text-tertiary);
        }
        .header-actions {
            display: flex;
            align-items: center;
            gap: 2px;
            margin-left: auto;
            flex-shrink: 0;
        }
        .header-btn {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all var(--transition-fast);
            position: relative;
            flex-shrink: 0;
        }
        .header-btn:hover {
            background: var(--bg-elevated);
            color: var(--text-primary);
        }
        .header-btn .badge {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--live-dot);
            border: 2px solid var(--bg-header);
        }
        .header-avatar {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-full);
            border: 1.5px solid var(--border-active);
            cursor: pointer;
            object-fit: cover;
            flex-shrink: 0;
            transition: all var(--transition-fast);
            background: var(--bg-elevated);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.8rem;
            color: var(--accent);
        }
        .header-avatar:hover {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px var(--accent-soft);
        }

        .dropdown-wrap {
            position: relative;
        }
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 6px;
            min-width: 200px;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px) scale(0.96);
            transition: all var(--transition-smooth);
            pointer-events: none;
            z-index: 200;
        }
        .dropdown-wrap.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .dropdown-menu a,
        .dropdown-menu button {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            color: var(--text-primary);
            font-size: 0.875rem;
            cursor: pointer;
            text-decoration: none;
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
            letter-spacing: -0.01em;
            white-space: nowrap;
        }
        .dropdown-menu a:hover,
        .dropdown-menu button:hover {
            background: var(--bg-card);
            color: var(--accent);
        }
        .dropdown-divider {
            height: 1px;
            background: var(--border);
            margin: 4px 0;
        }
        .dropdown-menu .icon-sm {
            flex-shrink: 0;
            color: var(--text-tertiary);
        }

        .layout {
            display: flex;
            flex: 1;
            position: relative;
        }

        .sidebar-left {
            display: none;
            width: var(--sidebar-w);
            flex-shrink: 0;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border);
            padding: 16px 10px;
            flex-direction: column;
            gap: 4px;
            position: sticky;
            top: var(--header-h);
            height: calc(100vh - var(--header-h));
            height: calc(100dvh - var(--header-h));
            overflow-y: auto;
            z-index: 50;
            user-select: none;
        }
        .sidebar-left::-webkit-scrollbar {
            width: 3px;
        }
        .sidebar-left::-webkit-scrollbar-thumb {
            background: var(--border-active);
            border-radius: 10px;
        }
        .sidebar-nav-item {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 9px 13px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 500;
            transition: all var(--transition-fast);
            letter-spacing: -0.01em;
            cursor: pointer;
            border: none;
            background: transparent;
            width: 100%;
            font-family: var(--font-sans);
            white-space: nowrap;
        }
        .sidebar-nav-item:hover {
            background: var(--bg-card);
            color: var(--text-primary);
        }
        .sidebar-nav-item.active {
            background: var(--accent-soft);
            color: var(--accent);
            font-weight: 600;
        }
        .sidebar-nav-item svg {
            flex-shrink: 0;
            width: 19px;
            height: 19px;
        }
        .sidebar-section-title {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-muted);
            padding: 16px 13px 6px;
            font-weight: 600;
        }
        .sidebar-league {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 13px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-decoration: none;
            letter-spacing: -0.01em;
        }
        .sidebar-league:hover {
            background: var(--bg-card);
            color: var(--text-primary);
        }
        .sidebar-league-logo {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .sidebar-league-logo .league-logo,
        .sidebar-league-logo .team-logo-fallback {
            border-radius: 4px;
        }
        .sidebar-league-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }
        .league-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .league-dot.live {
            background: var(--live-dot);
            box-shadow: 0 0 6px var(--live-dot);
            animation: pulse-dot 2s infinite;
        }
        @keyframes pulse-dot {
            0%,
            100% {
                box-shadow: 0 0 4px var(--live-dot);
            }
            50% {
                box-shadow: 0 0 12px var(--live-dot), 0 0 20px rgba(239, 68, 68, 0.4);
            }
        }

        .main-content {
            flex: 1;
            min-width: 0;
            padding: 12px 10px 80px;
            max-width: 100%;
        }
        @media (min-width: 768px) {
            .main-content {
                padding: 16px 16px 24px;
                max-width: 760px;
                margin: 0 auto;
            }
        }
        @media (min-width: 1100px) {
            .main-content {
                max-width: 740px;
                margin: 0 auto;
                padding: 20px 16px 24px;
            }
        }

        .sidebar-right {
            display: none;
            width: var(--sidebar-r-w);
            flex-shrink: 0;
            background: var(--bg-sidebar);
            border-left: 1px solid var(--border);
            padding: 16px 12px;
            position: sticky;
            top: var(--header-h);
            height: calc(100vh - var(--header-h));
            height: calc(100dvh - var(--header-h));
            overflow-y: auto;
            z-index: 50;
            user-select: none;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .sidebar-right::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: var(--bg-header);
            border-top: 1px solid var(--border);
            height: var(--bottom-nav-h);
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 0 6px;
            padding-bottom: env(safe-area-inset-bottom, 0);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            cursor: pointer;
            color: var(--text-tertiary);
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
            font-size: 0.65rem;
            font-weight: 500;
            letter-spacing: 0.01em;
            text-decoration: none;
            min-width: 52px;
        }
        .bottom-nav-item.active {
            color: var(--accent);
        }
        .bottom-nav-item svg {
            width: 22px;
            height: 22px;
            transition: all var(--transition-fast);
        }
        .bottom-nav-item.active svg {
            color: var(--accent);
        }
        .bottom-nav-item .nav-dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--accent);
            opacity: 0;
            transition: all var(--transition-fast);
        }
        .bottom-nav-item.active .nav-dot {
            opacity: 1;
        }

        /* Общие карточки */
        .stories-carousel {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding: 4px 0 8px;
            margin-bottom: 14px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            user-select: none;
        }
        .stories-carousel::-webkit-scrollbar {
            display: none;
        }
        .story-card {
            flex: 0 0 auto;
            scroll-snap-align: start;
            width: 140px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 14px 12px;
            cursor: pointer;
            transition: all var(--transition-fast);
            text-align: center;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .story-card:hover {
            border-color: var(--border-active);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }
        .story-card.live-match {
            border-color: rgba(239, 68, 68, 0.3);
            background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, var(--bg-card) 50%);
        }
        .story-card .live-badge {
            position: absolute;
            top: 8px;
            right: 10px;
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.65rem;
            font-weight: 700;
            color: var(--live-dot);
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .story-card .live-badge .live-dot-circle {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--live-dot);
            animation: pulse-dot 1.5s infinite;
        }
        .story-card .team-names {
            font-weight: 600;
            font-size: 0.78rem;
            color: var(--text-primary);
            line-height: 1.2;
            letter-spacing: -0.01em;
        }
        .story-card .match-score {
            font-family: var(--font-mono);
            font-size: 1.3rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: var(--text-primary);
        }
        .story-card .match-time {
            font-size: 0.7rem;
            color: var(--text-tertiary);
        }
        .story-card .odds-row {
            display: flex;
            gap: 5px;
            font-size: 0.68rem;
        }
        .odds-chip {
            padding: 3px 8px;
            border-radius: var(--radius-xs);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            font-family: var(--font-mono);
            font-size: 0.68rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            color: var(--text-secondary);
            transition: all var(--transition-fast);
        }
        .odds-chip:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }
        .odds-chip.highlight {
            border-color: var(--green);
            color: var(--green);
            background: var(--green-soft);
        }

        .composer {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 14px 16px;
            margin-bottom: 12px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .composer-avatar {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            background: var(--bg-elevated);
            flex-shrink: 0;
            border: 1.5px solid var(--border-active);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.75rem;
            color: var(--accent);
        }
        .composer-input {
            flex: 1;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            padding: 9px 16px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .composer-input:hover {
            border-color: var(--border-active);
            background: var(--bg-elevated);
            color: var(--text-primary);
        }
        .composer-btn {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: var(--bg-elevated);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }
        .composer-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .feed-post {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 10px;
            transition: all var(--transition-fast);
        }
        .feed-post:hover {
            border-color: var(--border-active);
            box-shadow: var(--shadow-sm);
        }
        .post-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .post-avatar {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-full);
            background: var(--bg-elevated);
            flex-shrink: 0;
            border: 1.5px solid var(--border-active);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.8rem;
            color: var(--purple);
        }
        .post-user-info {
            flex: 1;
            min-width: 0;
        }
        .post-username {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }
        .post-time {
            font-size: 0.7rem;
            color: var(--text-tertiary);
        }
        .post-more {
            width: 30px;
            height: 30px;
            border-radius: var(--radius-full);
            border: none;
            background: transparent;
            cursor: pointer;
            color: var(--text-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }
        .post-more:hover {
            background: var(--bg-elevated);
            color: var(--text-primary);
        }
        .post-body {
            font-size: 0.875rem;
            line-height: 1.55;
            color: var(--text-primary);
            margin-bottom: 12px;
            letter-spacing: -0.01em;
        }
        .post-body .mention {
            color: var(--accent);
            font-weight: 500;
        }
        .post-body .hashtag {
            color: var(--blue);
            font-weight: 500;
        }
        .prediction-card {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px;
            margin-bottom: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .prediction-teams {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: -0.01em;
        }
        .prediction-teams .vs {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 400;
            flex-shrink: 0;
        }
        .prediction-teams .team {
            text-align: center;
            flex: 1;
            color: var(--text-primary);
        }
        .prediction-odds-line {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .prediction-odds-line .odds-btn {
            flex: 1;
            padding: 8px 6px;
            border-radius: var(--radius-xs);
            border: 1px solid var(--border);
            background: var(--bg-card);
            cursor: pointer;
            font-family: var(--font-mono);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-align: center;
            transition: all var(--transition-fast);
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .odds-btn .odds-label {
            font-size: 0.6rem;
            font-weight: 400;
            color: var(--text-muted);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-family: var(--font-sans);
        }
        .odds-btn .odds-val {
            font-size: 0.85rem;
            font-weight: 700;
        }
        .odds-btn:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
        }
        .odds-btn.picked {
            border-color: var(--green);
            background: var(--green-soft);
            color: var(--green);
            box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
        }
        .odds-btn.picked .odds-val {
            color: var(--green);
        }
        .odds-1x2-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            width: 100%;
        }
        .odds-bk-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            width: 100%;
        }
        .odds-bk-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px 4px;
            border-radius: var(--radius-xs);
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            min-height: 44px;
        }
        .odds-bk-label {
            font-size: 0.62rem;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .odds-bk-value {
            font-family: var(--font-mono);
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-primary);
        }
        .odds-bk-grid-compact .odds-bk-cell { min-height: 36px; padding: 4px 2px; }
        .odds-bk-grid-compact .odds-bk-value { font-size: 0.72rem; }
        .odds-btn-static { cursor: default; }
        .odds-market-label {
            font-size: 0.68rem;
            font-weight: 600;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 6px;
        }
        .prediction-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: var(--text-tertiary);
            letter-spacing: 0.01em;
        }
        .confidence-bar-wrap {
            height: 3px;
            background: var(--border);
            border-radius: 10px;
            overflow: hidden;
            margin-top: 2px;
        }
        .confidence-bar-fill {
            height: 100%;
            border-radius: 10px;
            background: var(--green);
            transition: width 0.5s ease;
        }
        .post-actions {
            display: flex;
            gap: 6px;
            align-items: center;
            padding-top: 4px;
        }
        .post-action-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 10px;
            border-radius: var(--radius-full);
            border: none;
            background: transparent;
            cursor: pointer;
            color: var(--text-tertiary);
            font-size: 0.78rem;
            font-weight: 500;
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
            letter-spacing: -0.01em;
        }
        .post-action-btn:hover {
            background: var(--bg-elevated);
            color: var(--text-primary);
        }
        .post-action-btn.liked {
            color: var(--red);
        }
        .post-action-btn svg {
            width: 17px;
            height: 17px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            padding: 0 2px;
        }
        .section-header h3 {
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: var(--text-tertiary);
        }
        .section-header a {
            font-size: 0.7rem;
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
            transition: opacity var(--transition-fast);
        }
        .section-header a:hover {
            opacity: 0.8;
        }

        .sidebar-widget {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 14px;
            margin-bottom: 12px;
        }
        .sidebar-widget h4 {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 10px;
            font-weight: 600;
        }
        .live-match-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-light);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: 0.78rem;
            letter-spacing: -0.01em;
        }
        .live-match-row:last-child {
            border-bottom: none;
        }
        .live-match-row:hover {
            color: var(--accent);
        }
        .live-match-row .live-indicator {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--live-dot);
            flex-shrink: 0;
            animation: pulse-dot 2s infinite;
        }
        .live-match-row .minute {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            color: var(--live-dot);
            font-weight: 600;
            flex-shrink: 0;
            min-width: 22px;
        }
        .live-match-row .teams-sm {
            flex: 1;
            font-weight: 500;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .live-match-row .score-sm {
            font-family: var(--font-mono);
            font-weight: 700;
            font-size: 0.8rem;
            flex-shrink: 0;
        }
        .top-forecaster {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 7px 0;
            font-size: 0.78rem;
            letter-spacing: -0.01em;
        }
        .top-forecaster .rank {
            font-weight: 700;
            font-size: 0.75rem;
            color: var(--text-muted);
            width: 18px;
            text-align: center;
            flex-shrink: 0;
        }
        .top-forecaster .rank.gold {
            color: var(--amber);
        }
        .top-forecaster .rank.silver {
            color: #c0c0c0;
        }
        .top-forecaster .rank.bronze {
            color: #cd7f32;
        }
        .top-forecaster .forecaster-avatar {
            width: 26px;
            height: 26px;
            border-radius: var(--radius-full);
            background: var(--bg-elevated);
            flex-shrink: 0;
            font-size: 0.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--accent);
            border: 1px solid var(--border-active);
        }
        .top-forecaster .forecaster-name {
            flex: 1;
            font-weight: 500;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .top-forecaster .forecaster-stat {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--green);
            font-weight: 600;
        }

        /* Стили страницы прогнозов */
        .prediction-stats {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .stat-card {
            flex: 1 1 120px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px;
            text-align: center;
            min-width: 100px;
        }
        .stat-card .stat-value {
            font-family: var(--font-mono);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent);
            line-height: 1.2;
        }
        .stat-card .stat-label {
            font-size: 0.7rem;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-top: 4px;
        }
        .prediction-filter {
            display: flex;
            gap: 6px;
            margin-bottom: 14px;
            overflow-x: auto;
            padding-bottom: 4px;
        }
        .filter-chip {
            padding: 6px 14px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-secondary);
            font-size: 0.78rem;
            cursor: pointer;
            white-space: nowrap;
            transition: all var(--transition-fast);
        }
        .filter-chip.active,
        .filter-chip:hover {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent);
            font-weight: 600;
        }

        /* Модальное окно */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-smooth);
        }
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 24px;
            width: 90%;
            max-width: 500px;
            box-shadow: var(--shadow-lg);
            transform: scale(0.95);
            transition: transform var(--transition-smooth);
        }
        .modal-overlay.active .modal-content {
            transform: scale(1);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
        .modal-close {
            background: none;
            border: none;
            color: var(--text-tertiary);
            cursor: pointer;
            font-size: 1.2rem;
            padding: 4px;
        }
        .modal-match-select {
            width: 100%;
            padding: 10px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            margin-bottom: 16px;
        }
        .modal-odds-selector {
            display: flex;
            gap: 6px;
            margin-bottom: 16px;
        }
        .modal-odds-btn {
            flex: 1;
            padding: 10px;
            border-radius: var(--radius-xs);
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-fast);
            font-family: var(--font-sans);
        }
        .modal-odds-btn.selected {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
        }
        .modal-confirm {
            width: 100%;
            padding: 12px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            cursor: pointer;
            transition: opacity var(--transition-fast);
        }
        .modal-confirm:hover {
            opacity: 0.9;
        }

        @media (min-width: 768px) {
            .header {
                padding: 0 20px;
                gap: 12px;
            }
            .header-search {
                display: block;
            }
            .header-logo {
                margin-right: 8px;
            }
            .main-content {
                padding-bottom: 24px;
            }
            .bottom-nav {
                display: none;
            }
            .story-card {
                width: 155px;
            }
        }
        @media (min-width: 1100px) {
            .sidebar-left {
                display: flex;
            }
            .sidebar-right {
                display: block;
            }
            .main-content {
                padding: 20px 20px 24px;
                max-width: 740px;
            }
            .header {
                padding: 0 24px;
            }
            .header-search {
                max-width: 340px;
            }
            .bottom-nav {
                display: none;
            }
        }
        @media (min-width: 1400px) {
            .main-content {
                max-width: 820px;
            }
            .sidebar-right {
                width: 300px;
                padding: 20px 16px;
            }
            .sidebar-left {
                width: 250px;
                padding: 20px 12px;
            }
        }

        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 90;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-smooth);
            pointer-events: none;
        }
        .overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
