*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#1e3a8a,#3b82f6);min-height:100vh;color:#333}.container{max-width:1200px;margin:0 auto;padding:20px}.header{background:#fff;padding:30px;border-radius:15px;box-shadow:0 8px 32px #0000001a;margin-bottom:30px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.header h1{font-size:2.5rem;color:#1e3a8a;font-weight:700}.live-indicator{display:flex;align-items:center;gap:8px;background:#10b981;color:#fff;padding:8px 16px;border-radius:20px;font-weight:600}.dot{width:10px;height:10px;background:#fff;border-radius:50%;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.main-content{display:flex;flex-direction:column;gap:30px}.top-sections{display:grid;grid-template-columns:1fr 1fr;gap:30px}.visual-race-section{background:#fff;padding:30px;border-radius:15px;box-shadow:0 8px 32px #0000001a;margin-bottom:0}.race-direction{font-size:.9rem;color:#6b7280;font-weight:600}.visual-race{margin-top:20px}.race-track{position:relative;background:linear-gradient(90deg,#f3f4f6,#e5e7eb);border-radius:12px;padding:20px;min-height:500px;overflow-x:auto}.finish-line{position:absolute;right:20px;top:50%;transform:translateY(-20%);background:green;color:#fff;padding:8px 12px;border-radius:6px;font-weight:700;font-size:.8rem;writing-mode:vertical-rl;text-orientation:mixed;z-index:10}.race-groups{display:flex;align-items:top;gap:30px;padding-left:0;padding-top:30px;min-height:160px;justify-content:center}.loading-visual{color:#6b7280;font-style:italic;margin:auto}.race-group{display:flex;flex-direction:column;align-items:center;position:relative;min-width:200px;max-width:300px}.group-info{text-align:center;background:#ffffffe6;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #0000001a;min-width:120px;margin-bottom:15px}.group-position{font-weight:700;color:#1e3a8a;font-size:.9rem;margin-bottom:2px}.group-time{font-size:.8rem;color:#6b7280}.group-riders-list{display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto;width:100%}.rider-name-visual{background:#f3f4f6;padding:8px 12px;border-radius:6px;font-size:.85rem;font-weight:500;text-align:center;transition:all .3s ease}.rider-name-visual.owner-rider{background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-weight:700;animation:glow 2s infinite}.rider-owners{font-size:.7rem;color:#059669;margin-top:4px;font-weight:700;line-height:1.2}.rider-name-visual.owner-rider .rider-owners{color:#ffffffe6;font-weight:600}.no-riders{color:#6b7280;font-style:italic;text-align:center;padding:20px}.peloton-group{position:relative}.peloton-group:before{content:"";position:absolute;top:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #1E3A8A}.breakaway-group{position:relative}.breakaway-group:before{content:"🚴‍♂️";transform:translate(-50%) scaleX(-1);position:absolute;top:-25px;left:50%;font-size:16px;animation:bounce 2s 5}@keyframes bounce{0%,20%,50%,80%,to{transform:translate(-50%) scaleX(-1) translateY(0)}40%{transform:translate(-50%) scaleX(-1) translateY(-5px)}60%{transform:translate(-50%) scaleX(-1) translateY(-3px)}}.owner-section,.race-section{background:#fff;padding:30px;border-radius:15px;box-shadow:0 8px 32px #0000001a}.all-teams-section{background:#fff;padding:30px;border-radius:15px;box-shadow:0 8px 32px #0000001a;margin-bottom:30px}.toggle-btn{background:#3b82f6;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.toggle-btn:hover{background:#2563eb;transform:translateY(-2px)}.all-teams-content{margin-top:20px;transition:all .3s ease}.all-teams-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.team-card{background:#f9fafb;border:1px solid #E5E7EB;border-radius:12px;padding:20px;transition:all .3s ease}.team-card:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.team-owner{font-size:1.1rem;font-weight:700;color:#1e3a8a;margin-bottom:12px;text-align:center}.team-riders{display:grid;grid-template-columns:1fr 1fr;gap:6px}.team-rider{background:#e5e7eb;padding:6px 10px;border-radius:6px;font-size:.85rem;font-weight:500;text-align:center;transition:all .3s ease}.team-rider.in-breakaway{background:linear-gradient(135deg,gold,#f59e0b);color:#1e3a8a;font-weight:700;animation:highlight 2s infinite}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;padding-bottom:15px;border-bottom:2px solid #E5E7EB}.section-header h2{color:#1e3a8a;font-size:1.5rem;font-weight:600}.edit-btn{background:gold;color:#1e3a8a;border:none;padding:10px 20px;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.edit-btn:hover{background:#f59e0b;transform:translateY(-2px)}.owner-form{transition:all .3s ease}.hidden{display:none}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:#374151}.form-group input{width:100%;padding:12px;border:2px solid #E5E7EB;border-radius:8px;font-size:1rem;transition:border-color .3s ease}.form-group input:focus{outline:none;border-color:#3b82f6}.riders-grid h3{margin-bottom:15px;color:#374151}.riders-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rider-input{padding:10px;border:2px solid #E5E7EB;border-radius:8px;font-size:.9rem;transition:all .3s ease}.rider-input:focus{outline:none;border-color:#10b981;transform:scale(1.02)}.form-actions{display:flex;gap:12px;margin-top:25px}.save-btn,.cancel-btn{flex:1;padding:12px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.save-btn{background:#10b981;color:#fff}.save-btn:hover{background:#059669;transform:translateY(-2px)}.cancel-btn{background:#6b7280;color:#fff}.cancel-btn:hover{background:#4b5563;transform:translateY(-2px)}.owner-display{text-align:center}.owner-info h3{color:#1e3a8a;margin-bottom:20px;font-size:1.2rem}.riders-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rider-card{background:#f3f4f6;padding:12px;border-radius:8px;font-weight:500;transition:all .3s ease}.rider-card.in-breakaway{background:linear-gradient(135deg,gold,#f59e0b);color:#1e3a8a;font-weight:700;animation:highlight 2s infinite}@keyframes highlight{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.last-update{font-size:.9rem;color:#6b7280}.breakaway-alert{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;padding:20px;border-radius:12px;margin-bottom:25px;text-align:center;animation:slideIn .5s ease}@keyframes slideIn{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}.breakaway-alert h3{margin-bottom:15px;font-size:1.3rem}.breakaway-riders{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.breakaway-rider{background:#fff3;padding:8px 16px;border-radius:20px;font-weight:600}.race-data{min-height:200px}.loading{text-align:center;padding:40px;color:#6b7280;font-size:1.1rem}.position-group{background:#f9fafb;border:1px solid #E5E7EB;border-radius:12px;margin-bottom:15px;overflow:hidden;transition:all .3s ease}.position-group:hover{box-shadow:0 4px 12px #0000001a}.position-header{background:#1e3a8a;color:#fff;padding:15px 20px;display:flex;justify-content:space-between;align-items:center}.position-number{font-size:1.2rem;font-weight:700}.time-gap{font-size:1rem;font-weight:600}.riders-in-position{padding:15px 20px}.rider-name{display:inline-block;background:#e5e7eb;padding:6px 12px;margin:4px 6px 4px 0;border-radius:6px;font-size:.9rem;font-weight:500;transition:all .3s ease}.rider-name.owner-rider{background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-weight:700;animation:glow 2s infinite}.hideme{display:none}@keyframes glow{0%,to{box-shadow:0 0 5px #10b98180}50%{box-shadow:0 0 20px #10b981cc}}@media (max-width: 768px){.top-sections,.all-teams-list,.team-riders{grid-template-columns:1fr}.header{flex-direction:column;gap:15px;text-align:center}.header h1{font-size:2rem}.riders-inputs,.riders-list{grid-template-columns:1fr}.form-actions{flex-direction:column}.container{padding:15px}.owner-section,.race-section,.visual-race-section{padding:20px}.race-groups{flex-direction:column;align-items:center;gap:15px;padding-right:20px;padding-left:0}.finish-line{position:relative;writing-mode:horizontal-tb;text-orientation:mixed;margin-bottom:15px;right:auto}}@media (max-width: 480px){.header h1{font-size:1.5rem}.section-header{flex-direction:column;gap:10px;align-items:flex-start}.breakaway-riders{flex-direction:column;align-items:center}.visual-rider{width:20px;height:20px;font-size:8px}.group-riders{max-width:120px}}
