{% extends "tg_layout.html" %} {% block title %}Лидерборд - reZwift{% endblock %} {% block extra_styles %} /* Top 3 Podium */ .top-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; margin-bottom: 16px; } .podium-card { background: var(--bg-card); border: 2px solid var(--border-primary); border-radius: 14px; padding: 14px 10px; text-align: center; transition: all 0.3s ease; cursor: pointer; } .podium-card:active { transform: scale(0.97); } .podium-card.gold { order: 2; border-color: #FFD700; background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, var(--bg-card) 100%); } .podium-card.silver { order: 1; border-color: #C0C0C0; } .podium-card.bronze { order: 3; border-color: #CD7F32; } .podium-medal { font-size: 2rem; margin-bottom: 6px; } .podium-name { font-weight: 700; color: var(--text-primary); font-size: 0.85rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .podium-value { font-size: 1.1rem; font-weight: 800; color: #FFD700; } .podium-card.silver .podium-value { color: #C0C0C0; } .podium-card.bronze .podium-value { color: #CD7F32; } .podium-secondary { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; } /* Metric Tabs */ .metric-tabs { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; } .metric-tabs::-webkit-scrollbar { display: none; } .metric-tab { padding: 8px 12px; border-radius: 8px; background: rgba(255, 107, 0, 0.1); border: 1px solid var(--border-primary); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; } .metric-tab.active { background: linear-gradient(135deg, var(--orange-secondary), var(--orange-primary)); color: white; border-color: var(--orange-primary); } /* Period Tabs */ .period-tabs { display: flex; gap: 4px; margin-bottom: 14px; } .period-tab { padding: 6px 10px; border-radius: 6px; background: transparent; border: 1px solid rgba(255, 107, 0, 0.15); color: rgba(255, 165, 0, 0.5); font-size: 0.7rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .period-tab.active { background: rgba(255, 107, 0, 0.15); border-color: var(--orange-primary); color: var(--orange-primary); } /* Leaderboard List */ .leaderboard-list { background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border-primary); overflow: hidden; } .rider-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-primary); cursor: pointer; transition: background 0.2s ease; } .rider-row:last-child { border-bottom: none; } .rider-row:active { background: rgba(255, 107, 0, 0.08); } .rank { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); flex-shrink: 0; } .rank.top { background: linear-gradient(135deg, var(--orange-secondary), var(--orange-primary)); color: white; } .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4361ee, #3a0ca3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; } .rider-info { flex: 1; min-width: 0; } .rider-name { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rider-stat { font-size: 0.72rem; color: var(--text-muted); } .rider-value { font-weight: 800; font-size: 0.95rem; color: var(--gold); text-align: right; flex-shrink: 0; } /* Player Modal */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: flex-end; z-index: 1000; } .modal { background: var(--bg-card); border: 2px solid var(--border-accent); border-bottom: none; border-radius: 20px 20px 0 0; padding: 20px; width: 100%; max-height: 80vh; overflow-y: auto; animation: slideUp 0.3s ease; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } } .modal-handle { width: 40px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; margin: 0 auto 16px; } .modal-title { font-size: 1.2rem; font-weight: 800; color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; } .stat-card { background: rgba(255, 107, 0, 0.1); border: 1px solid var(--border-primary); border-radius: 12px; padding: 14px; text-align: center; } .stat-value { font-size: 1.2rem; font-weight: 800; color: var(--gold); } .stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; } .records-section h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } .record-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-primary); } .record-item:last-child { border-bottom: none; } .record-label { color: var(--text-muted); font-size: 0.82rem; } .record-value { color: var(--gold); font-weight: 700; font-size: 0.85rem; } .modal-close-btn { width: 100%; padding: 14px; border-radius: 12px; border: 2px solid var(--border-accent); background: rgba(255, 107, 0, 0.1); color: var(--orange-primary); font-weight: 600; font-size: 0.95rem; margin-top: 16px; cursor: pointer; } {% endblock %} {% block content %}