:root { --primary-blue: #2563eb; --bg-light: #ffffff; --card-bg: #f8f9fb; --text-dark: #1a202c; --text-grey: #718096; --status-green: #00b85c; --status-red: #e53e3e; --status-orange: #dd6b20; --nav-bg: #1e1e1e; --lvl-d: #48bb78; --lvl-d-c: #38b2ac; --lvl-c: #3182ce;
    --lvl-c2: #0ea5e9; --lvl-b: #805ad5; --lvl-a: #e53e3e; --admin-bg: #f4f7f6; --admin-sidebar: #1e1e1e; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body, html { background-color: var(--bg-light); margin: 0; padding: 0; overflow-x: hidden; }

#appMode { background-color: var(--bg-light); color: var(--text-dark); padding-bottom: 70px; min-height: 100vh; position: relative;}

.app-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #edf2f7; background: #fff;}
.logo { font-size: 22px; font-weight: 900; color: #1a202c; letter-spacing: -1px; display: flex; align-items: center; cursor: pointer; transition: 0.2s; }
.logo:active { transform: scale(0.95); }
.logo span { background-color: #1a202c; color: white; padding: 2px 6px; margin-right: 2px; border-radius: 4px; }
.logo .domain { font-size: 16px; color: var(--text-grey); font-weight: 700; margin-left: 2px;}

.header-actions { display: flex; align-items: center; gap: 15px; font-size: 18px; color: var(--text-dark); }
#authBtn { font-size: 13px; font-weight: 800; color: var(--primary-blue); background: #ebf8ff; padding: 8px 14px; border-radius: 20px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
#authBtn:active { transform: scale(0.95); }
.bell-icon { position: relative; cursor: pointer; transition: 0.2s;}
.bell-icon:active { transform: scale(0.9); }
.notification-badge { position: absolute; top: -4px; right: -4px; background: var(--status-red); color: white; font-size: 10px; font-weight: bold; width: 14px; height: 14px; border-radius: 50%; display: none; justify-content: center; align-items: center; }
.admin-lock-btn { background: none; border: none; color: var(--text-grey); font-size: 18px; cursor: pointer; padding: 0; min-width: 44px; min-height: 44px; margin: -5px -8px -5px 0; transition: background 0.15s, transform 0.15s; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; position: relative; z-index: 2; }
.admin-lock-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.08); }
.bell-btn { position: relative; background: none; border: none; color: var(--text-grey); font-size: 18px; cursor: pointer; padding: 0; min-width: 44px; min-height: 44px; margin: -5px 0; transition: background 0.15s, transform 0.15s; display: flex; align-items: center; justify-content: center; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; z-index: 2; }
.bell-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.08); }
.notif-badge { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--status-red); color: #fff; font-size: 10px; font-weight: bold; border-radius: 8px; display: none; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; pointer-events: none; }
.notif-badge.show { display: flex; }

.page-view { display: none; animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); width: 100%; }
.page-view.active { display: block; }
.page-view.empty-page.active { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; color: var(--text-grey); text-align: center; padding: 20px; }
.page-view.empty-page i { font-size: 48px; margin-bottom: 15px; color: #cbd5e0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.filters { padding: 15px 20px 5px 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 45%; }
.filter-group.full-width { flex: 0 0 100%; margin-top: 5px; }
.filter-group select, .filter-group input { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text-dark); background-color: #fff; appearance: none; outline: none; transition: 0.2s;}

.search-wrapper { position: relative; width: 100%; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-grey); font-size: 14px;}
.search-wrapper input { padding-left: 40px; }

.date-carousel { display: flex; overflow-x: auto; padding: 10px 20px 15px 20px; gap: 10px; scrollbar-width: none; scroll-behavior: smooth; }
.date-carousel::-webkit-scrollbar { display: none; }
.date-box { min-width: 65px; height: 70px; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; background: #fff; flex-shrink: 0;}
.date-box .day-num { font-size: 22px; font-weight: 800; }
.date-box .day-name { font-size: 13px; color: var(--text-grey); font-weight: 600; margin-top: 2px;}
.date-box.active { background-color: var(--primary-blue); border-color: var(--primary-blue); color: white; transform: scale(1.05); box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);}
.date-box.active .day-name { color: rgba(255,255,255,0.9); }

.schedule-list { padding: 0 20px; }
.schedule-card { background-color: var(--card-bg); border-left: 5px solid #ccc; margin-bottom: 15px; display: flex; padding: 15px; border-radius: 12px; flex-wrap: wrap; box-shadow: 0 2px 4px rgba(0,0,0,0.02); cursor: pointer; transition: transform 0.1s ease, background-color 0.1s ease; -webkit-tap-highlight-color: transparent; }
.schedule-card:active { transform: scale(0.98); background-color: #edf2f7; }
.card-past { opacity: 0.55; filter: grayscale(80%); }
.card-past:active { transform: none; background-color: var(--card-bg); cursor: default;}

.schedule-card.level-d { border-left-color: var(--lvl-d); }
.schedule-card.level-d-c { border-left-color: var(--lvl-d-c); }
.schedule-card.level-c2 { border-left-color: var(--lvl-c2); }
.schedule-card.level-c { border-left-color: var(--lvl-c); }
.schedule-card.level-b { border-left-color: var(--lvl-b); }
.schedule-card.level-a { border-left-color: var(--lvl-a); }
.schedule-card.level-atviras { border-left-color: #94a3b8; }
.schedule-card.level-privatus { border-left-color: #cbd5e1; }

.card-date-square { width: 65px; height: 80px; background: white; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-right: 15px; flex-shrink: 0; border-radius: 10px; }
.card-date-square .num { font-size: 24px; font-weight: 800; color: var(--text-dark);}
.card-date-square .name { font-size: 14px; color: var(--text-grey); }
.card-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; width: calc(100% - 80px);}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.card-title-group { display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 16px; font-weight: 800; text-transform: uppercase; }

.level-badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; color: white; font-weight: bold; width: max-content; }
.level-d .level-badge { background-color: var(--lvl-d); }
.level-d-c .level-badge { background-color: var(--lvl-d-c); }
.level-c2 .level-badge { background-color: var(--lvl-c2); }
.level-c .level-badge { background-color: var(--lvl-c); }
.level-b .level-badge { background-color: var(--lvl-b); }
.level-a .level-badge { background-color: var(--lvl-a); }
.level-atviras .level-badge { background-color: #94a3b8; }
.level-privatus .level-badge { background-color: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1; }

.status-badge-time { font-size: 10px; font-weight: 900; padding: 3px 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; width: max-content;}
.badge-past { background: #e2e8f0; color: #718096; }
.badge-live { background: #fed7d7; color: #e53e3e; animation: pulseLive 2s infinite; }
@keyframes pulseLive { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.share-btn, .h2h-btn, .test-trigger { position: relative; z-index: 2; }
.share-btn { background: none; border: none; color: var(--text-grey); font-size: 18px; cursor: pointer; padding: 8px; margin: -3px -3px -3px 0; transition: 0.2s;}
.card-time { font-size: 15px; color: var(--text-grey); font-weight: 600; margin: 6px 0; }
.avatars-row { display: flex; align-items: center; margin-bottom: 10px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card-bg); margin-left: -8px; background: #e2e8f0; display: flex; justify-content: center; align-items: center; font-size: 10px; font-weight: bold; color: #4a5568; text-transform: uppercase;}
.avatar:first-child { margin-left: 0; background: var(--primary-blue); color: white;} 
.avatar-more { background: #1a202c; color: white; }
.registration-count { font-size: 12px; color: var(--text-grey); margin-left: 8px; font-weight: 600;}
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; width: 100%;}
.status-indicator { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.status-open { color: var(--status-green); }
.status-wait { color: var(--status-orange); }
.status-in { color: var(--status-green); }
.status-full { color: var(--status-red); }
.h2h-btn { background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--text-grey); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: 0.2s;}
.edit-badge { background: white; border: 1px solid #cbd5e0; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 5px;}
.watch-badge { background: white; border: 2px solid var(--status-red); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 800; color: var(--status-red); display: flex; align-items: center; gap: 5px; transition: 0.2s; cursor: pointer;}
.watch-badge:active { background: var(--status-red); color: white; }
.test-trigger { width: 100%; margin-top: 15px; padding: 10px; background: #edf2f7; border: 1px dashed #cbd5e0; color: var(--text-grey); font-size: 12px; cursor: pointer; border-radius: 6px; transition: 0.2s;}

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--nav-bg); display: flex; justify-content: space-around; padding: 8px 0; z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);}
.nav-item { color: #718096; font-size: 24px; cursor: pointer; position: relative; transition: 0.2s; padding: 10px 15px; background: none; border: none; outline: none;}
.nav-item:active { transform: scale(0.8); }
.nav-item.active { color: var(--primary-blue); }
.nav-cam { color: var(--primary-blue); font-size: 28px; transform: translateY(-5px); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: 0.3s; backdrop-filter: blur(3px); }
.modal-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box { background: white; width: 90%; max-width: 400px; border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: translateY(20px); transition: 0.3s; }
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); display: flex; align-items: center; gap: 8px;}
.modal-body { font-size: 14px; color: var(--text-grey); margin-bottom: 20px; line-height: 1.5;}
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-btn { padding: 14px; border-radius: 8px; font-weight: bold; font-size: 15px; cursor: pointer; border: none; transition: 0.2s; text-align: center; }
.modal-btn.primary { background: var(--primary-blue); color: white; }
.modal-btn.secondary { background: #edf2f7; color: var(--text-dark); }
.modal-btn.danger { background: #fff; border: 1px solid var(--status-red); color: var(--status-red); }

.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: #1a202c; color: white; padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 3000;}
.toast.show { opacity: 1; bottom: 120px; }

.live-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-light); z-index: 3000; transform: translateY(100%); transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; visibility: hidden; pointer-events: none;}
.live-modal.show { transform: translateY(0); visibility: visible; pointer-events: auto;}
.live-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #1a202c; color: white;}
.live-close { font-size: 26px; cursor: pointer; padding: 15px; margin: -15px; background: transparent; border: none; color: white; display: flex; align-items: center; justify-content: center;}
.live-close:active { opacity: 0.6; }
.yt-container { width: 100%; background: #000; position: relative; padding-top: 56.25%; }
.yt-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.firebase-connector { background: #2d3748; padding: 15px; display: flex; gap: 10px; align-items: center;}
.firebase-connector input { flex: 1; padding: 8px 12px; border-radius: 6px; border: none; font-size: 13px; font-weight: bold; outline: none; }
.firebase-connector button { background: var(--status-green); color: white; border: none; padding: 8px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 13px;}
.live-filters { display: flex; padding: 10px 20px; background: #edf2f7; gap: 10px; overflow-x: auto; scrollbar-width: none;}
.live-filter-btn { padding: 8px 16px; border-radius: 20px; background: white; border: 1px solid #cbd5e0; font-size: 13px; font-weight: bold; color: var(--text-grey); white-space: nowrap; cursor: pointer; transition: 0.2s; border-color: transparent;}
.live-filter-btn.active { background: var(--primary-blue); color: white; border-color: var(--primary-blue);}
.live-score-area { padding: 20px; flex-grow: 1; background: var(--bg-light); display: flex; flex-direction: column; align-items: center; overflow-y: auto;}
.live-score-title { font-size: 12px; color: var(--text-grey); text-transform: uppercase; letter-spacing: 1px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; gap: 5px;}
.score-box { background: white; width: 100%; max-width: 400px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #edf2f7; overflow: hidden; transition: 0.2s;}
.team-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #edf2f7;}
.team-names { font-weight: 800; font-size: 15px; color: var(--text-dark); display: flex; flex-direction: column; gap: 4px;}
.team-score { font-size: 28px; font-weight: 900; color: var(--primary-blue); font-variant-numeric: tabular-nums; transition: color 0.3s;}

#page-cam { background-color: #000; min-height: calc(100vh - 70px); color: white; position: relative;}
.cam-header { position: absolute; top: 0; width: 100%; padding: 20px; display: flex; justify-content: space-between; z-index: 10; background: linear-gradient(rgba(0,0,0,0.8), transparent);}
.cam-viewfinder { height: 60vh; background: #1a202c; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; border-bottom: 2px solid #333;}
#cameraFeed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cam-viewfinder::before { content: ''; position: absolute; width: 60%; height: 60%; border: 2px dashed rgba(255,255,255,0.3); pointer-events: none; z-index: 2;}
.court-hint { color: rgba(255,255,255,0.9); font-size: 14px; text-align: center; position: absolute; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-weight: bold;}
.cam-controls { padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 20px; background: #000;}
.record-btn { width: 80px; height: 80px; border-radius: 50%; background: transparent; border: 4px solid white; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; z-index: 10;}
.record-btn-inner { width: 60px; height: 60px; border-radius: 50%; background: #e53e3e; transition: 0.3s; }
.record-btn.recording .record-btn-inner { width: 40px; height: 40px; border-radius: 8px; }
.recording-indicator { display: none; align-items: center; gap: 8px; color: #e53e3e; font-weight: bold; font-size: 18px; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20; text-shadow: 0 2px 4px rgba(0,0,0,0.8);}
.dot { width: 12px; height: 12px; background: #e53e3e; border-radius: 50%; animation: blink 1s infinite; box-shadow: 0 0 8px #e53e3e;}
@keyframes blink { 0% {opacity: 1;} 50% {opacity: 0;} 100% {opacity: 1;} }
.ai-result-panel { display: none; padding: 20px; width: 100%; text-align: center; background: #111; border-radius: 16px; margin-top: 10px; border: 1px solid #333;}
.ai-btn { background: linear-gradient(135deg, #805ad5, #009fe3); border: none; padding: 15px 20px; color: white; font-weight: bold; border-radius: 12px; width: 100%; font-size: 16px; cursor: pointer; transition: 0.2s;}
.ai-progress-bar { width: 100%; height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin: 15px 0; display: none; }
.ai-progress-fill { height: 100%; background: var(--primary-blue); width: 0%; transition: width 0.1s linear;}
.video-card { background: #1a202c; border-radius: 12px; overflow: hidden; margin-top: 20px; border: 1px solid #2d3748; display: none; text-align: left;}
.video-thumb { height: 150px; background: #2d3748; position: relative; display: flex; justify-content: center; align-items: center;}

.ratings-wrapper { padding: 0 15px 20px 15px; }
.trophy-header { background: white; padding: 15px 20px 10px 20px; border-bottom: 1px solid #edf2f7; position: sticky; top: 0; z-index: 10;}
.trophy-header h2 { font-size: 24px; font-weight: 900; color: var(--text-dark); margin-bottom: 15px; letter-spacing: -0.5px;}
.league-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 5px;}
.league-tab { padding: 8px 14px; border-radius: 20px; background: #edf2f7; color: var(--text-grey); font-size: 12px; font-weight: bold; white-space: nowrap; cursor: pointer; transition: 0.2s; border: 1px solid transparent; outline: none;}
.league-tab.active[data-league="all"] { background: var(--primary-blue); color: white; }
.league-tab.active[data-league="D"] { background: var(--lvl-d); color: white; }
.league-tab.active[data-league="D-C"] { background: var(--lvl-d-c); color: white; }
.league-tab.active[data-league="C"] { background: var(--lvl-c); color: white; }
.league-tab.active[data-league="B"] { background: var(--lvl-b); color: white; }
.league-tab.active[data-league="A"] { background: var(--lvl-a); color: white; }
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 25px 0; padding: 0 10px;}
.podium-place { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 100px; text-align: center;}
.podium-avatar { width: 50px; height: 50px; border-radius: 50%; background: white; display: flex; justify-content: center; align-items: center; font-weight: 900; color: #1a202c; font-size: 16px; margin-bottom: -15px; z-index: 2; border: 3px solid white; box-shadow: 0 4px 6px rgba(0,0,0,0.1);}
.podium-block { width: 100%; border-radius: 8px 8px 4px 4px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 20px; color: white; font-weight: 900; font-size: 20px;}
.podium-name { font-size: 11px; font-weight: bold; color: var(--text-dark); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}
.podium-pts { font-size: 10px; font-weight: 900; color: var(--primary-blue);} 
.place-1 .podium-avatar { width: 65px; height: 65px; font-size: 20px; border-color: #d69e2e; }
.place-1 .podium-block { height: 90px; background: linear-gradient(to bottom, #d69e2e, #b7791f); }
.place-2 .podium-block { height: 70px; background: linear-gradient(to bottom, #a0aec0, #718096); }
.place-3 .podium-block { height: 50px; background: linear-gradient(to bottom, #ed8936, #c05621); }
.leaderboard-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); border: 1px solid #edf2f7;}
.leaderboard-table th { background: #f8f9fb; padding: 12px 15px; text-align: left; font-size: 10px; color: var(--text-grey); border-bottom: 1px solid #edf2f7; text-transform: uppercase; letter-spacing: 1px;}
.leaderboard-table td { padding: 12px 15px; border-bottom: 1px solid #edf2f7; font-size: 14px; font-weight: 700; color: var(--text-dark);}

/* ADMIN ZONOS DIZAINAS */
#adminMode { display: none; height: 100vh; background-color: var(--admin-bg); color: var(--text-dark); }
.admin-layout { display: flex; height: 100%; }
.admin-sidebar { width: 250px; background-color: var(--admin-sidebar); color: white; display: flex; flex-direction: column; flex-shrink: 0;}
.admin-sidebar .nav-menu { list-style: none; padding: 20px 0; flex-grow: 1; margin: 0; }
.admin-sidebar .nav-menu li { padding: 15px 20px; cursor: pointer; color: #a0aec0; transition: 0.2s; display: flex; align-items: center; gap: 15px;}
.admin-sidebar .nav-menu li.active { background-color: var(--primary-blue); color: white; }
.admin-main { flex-grow: 1; padding: 30px; overflow-y: auto; }

/* MOBILUS ADMIN ZONOS PRISITAIKYMAS */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; flex-shrink: 0; border-bottom: 2px solid #2d3748; padding-bottom: 10px; }
    .admin-sidebar .logo { padding: 15px !important; font-size: 18px !important; display: flex; align-items: center; gap: 10px; }
    .admin-sidebar .logo br { display: none; }
    .admin-sidebar .nav-menu { display: flex !important; flex-wrap: wrap; padding: 0 10px !important; gap: 5px; }
    .admin-sidebar .nav-menu li, .admin-sidebar .nav-menu a { flex: 1 1 45% !important; padding: 10px !important; margin: 0 !important; font-size: 12px !important; justify-content: center !important; border: none !important; border-radius: 6px; background-color: #2d3748; }
    .admin-sidebar .nav-menu li.active { background-color: var(--primary-blue) !important; }
    .admin-main { padding: 15px !important; }
}

/* === SuperPadel Cam — ginčų peržiūra ir kokybė === */
.cam-viewfinder { position: relative; }
#delayedFeed { display: none; width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
#delayedFeed.visible-feed { display: block; }
#cameraFeed.hidden-feed { visibility: hidden; }
.cam-q-btn { background: #1a202c; color: #718096; border: 1px solid #2d3748; padding: 5px 10px; border-radius: 8px; font-size: 10px; font-weight: 900; cursor: pointer; }
.cam-q-btn.active { background: #2563eb; color: white; border-color: #2563eb; }
#replayToggleBtn { display: none; }
#replayToggleBtn.ready { display: flex !important; }

/* Praėjusios kalendoriaus dienos — papilkintos */
.date-box.date-past { opacity: 0.4; }
.date-box.date-past.active { opacity: 1; }

/* === Viršutinės juostos responsyvumas (mobile) === */
.app-header { gap: 8px; flex-wrap: nowrap; }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo { flex-shrink: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
#authBtn { white-space: nowrap; }

@media (max-width: 480px) {
    .app-header { padding: 10px 12px; }
    .logo { font-size: 17px; letter-spacing: -0.5px; }
    .header-actions { gap: 6px; }
    .header-actions > span { margin-left: 4px !important; }
}
@media (max-width: 360px) {
    .logo { font-size: 15px; }
}
@media (max-width: 480px) { .version-label { display: none; } }
