Files
Sdk_TV_app/static/css/pages/mobile_streams.css
T

146 lines
4.8 KiB
CSS

/* ============================================================
Mobile streams page styles
============================================================ */
html, body {
background: #000;
min-height: 100vh;
min-height: 100dvh;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
.mobile-navbar {
background: white;
color: black;
padding: 15px 20px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2px solid #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.mobile-navbar .navbar-title { font-size: 1.4rem; font-weight: bold; color: #333; display: flex; align-items: center; gap: 8px; }
.nav-btn.active { background: #28a745; border-color: #1e7e34; color: white; }
.nav-btn.active:hover { background: #1e7e34; color: white; }
.nav-btn.disabled { opacity: 0.5; pointer-events: none; background: #f1f3f4; border-color: #dadce0; }
.container {
padding: 20px;
background: #000;
min-height: calc(100vh - 70px);
min-height: calc(100dvh - 70px);
overflow-y: auto;
}
/* Camera Selection Grid */
.camera-selection { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
.camera-option {
background: #1a1a1a;
border: 2px solid #333;
border-radius: 12px;
padding: 0;
text-align: center;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
text-decoration: none;
color: white;
min-height: 140px;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.camera-option::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
z-index: 2;
}
.camera-option:hover::before { left: 100%; }
.camera-option:hover { border-color: #28a745; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
.camera-option:active { transform: translateY(-1px); }
.stream-preview { flex: 1; width: 100%; position: relative; background: #000; overflow: hidden; }
.stream-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s ease; background: #000; }
.stream-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #999; font-size: 0.9rem; z-index: 1; }
.camera-info { background: #000; padding: 12px 15px; border-top: 1px solid #333; position: relative; z-index: 3; }
.camera-title { font-size: 1rem; font-weight: bold; color: white; line-height: 1.2; text-align: center; }
.camera-option .stream-preview.unavailable ~ .camera-info .camera-title { color: #999; }
/* Floating fullscreen button */
.floating-fullscreen-btn {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
background: rgba(0, 123, 255, 0.9);
border: none;
border-radius: 50%;
color: white;
font-size: 1.5rem;
cursor: pointer;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
}
.floating-fullscreen-btn:hover { background: rgba(0, 123, 255, 1); transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
.floating-fullscreen-btn:active { transform: scale(0.95); }
.floating-fullscreen-btn.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.tournament-indicator { display: inline-flex; align-items: center; background: #28a745; color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.7rem; font-weight: bold; margin-left: 5px; }
.results-indicator { display: inline-flex; align-items: center; background: #28a745; color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.7rem; font-weight: bold; margin-left: 5px; }
@media (orientation: portrait) {
.camera-selection { grid-template-columns: 1fr; gap: 12px; }
.camera-option { min-height: 180px; }
.camera-info { padding: 10px 12px; }
.camera-title { font-size: 0.9rem; }
}
@media (orientation: landscape) {
.camera-selection { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.camera-option { min-height: 120px; }
.stream-preview { min-height: 80px; }
.camera-info { padding: 8px 10px; }
.camera-title { font-size: 0.85rem; }
.navbar-controls { gap: 6px; }
.nav-btn { padding: 6px 10px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
.container { padding: 15px; }
.camera-selection { gap: 12px; }
.camera-option { min-height: 130px; }
.camera-info { padding: 12px 15px; }
.camera-title { font-size: 1.1rem; }
.navbar-controls { gap: 6px; }
.nav-btn { padding: 6px 8px; font-size: 0.75rem; }
}
@media (max-width: 320px) {
.camera-selection { grid-template-columns: 1fr; }
.camera-option { min-height: 120px; }
}