Spaces:
Build error
Build error
| :root { | |
| --primary-color: #ff0000; | |
| --bg-color: #0f0f0f; | |
| --text-color: #ffffff; | |
| --secondary-bg: #1a1a1a; | |
| --border-color: #333; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background-color: var(--bg-color); | |
| color: var(--text-color); | |
| line-height: 1.6; | |
| } | |
| header { | |
| background-color: var(--secondary-bg); | |
| padding: 1rem; | |
| text-align: center; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| header h1 { | |
| font-size: 1.5rem; | |
| } | |
| header a { | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| font-size: 0.8rem; | |
| margin-left: 0.5rem; | |
| } | |
| .container { | |
| display: flex; | |
| min-height: calc(100vh - 60px); | |
| } | |
| .sidebar { | |
| width: 250px; | |
| background-color: var(--secondary-bg); | |
| border-right: 1px solid var(--border-color); | |
| padding: 1rem; | |
| } | |
| .user-section { | |
| display: flex; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .user-avatar { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| background-color: #555; | |
| margin-right: 0.5rem; | |
| } | |
| .user-info { | |
| flex: 1; | |
| } | |
| #login-btn { | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| padding: 0.3rem 0.6rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 0.8rem; | |
| } | |
| nav ul { | |
| list-style: none; | |
| } | |
| nav li { | |
| padding: 0.8rem; | |
| margin-bottom: 0.5rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| } | |
| nav li.active { | |
| background-color: var(--primary-color); | |
| } | |
| nav li span { | |
| margin-left: 0.5rem; | |
| } | |
| main { | |
| flex: 1; | |
| padding: 1rem; | |
| overflow-y: auto; | |
| } | |
| .content-section { | |
| display: none; | |
| } | |
| .content-section.active { | |
| display: block; | |
| } | |
| .video-feed { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .video-card { | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| overflow: hidden; | |
| cursor: pointer; | |
| transition: transform 0.2s; | |
| } | |
| .video-card:hover { | |
| transform: scale(1.02); | |
| } | |
| .video-thumbnail { | |
| position: relative; | |
| width: 100%; | |
| padding-top: 56.25%; /* 16:9 aspect ratio */ | |
| background-color: #222; | |
| } | |
| .video-thumbnail img { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .video-thumbnail .duration { | |
| position: absolute; | |
| bottom: 0.5rem; | |
| right: 0.5rem; | |
| background-color: rgba(0, 0, 0, 0.7); | |
| padding: 0.2rem 0.4rem; | |
| border-radius: 3px; | |
| font-size: 0.8rem; | |
| } | |
| .video-info { | |
| padding: 0.8rem; | |
| } | |
| .video-info h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .video-stats { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.8rem; | |
| color: #aaa; | |
| } | |
| .loading-indicator { | |
| display: none; | |
| flex-direction: column; | |
| align-items: center; | |
| margin: 2rem 0; | |
| } | |
| .spinner { | |
| width: 40px; | |
| height: 40px; | |
| border: 4px solid rgba(255, 255, 255, 0.3); | |
| border-radius: 50%; | |
| border-top-color: var(--primary-color); | |
| animation: spin 1s ease-in-out infinite; | |
| margin-bottom: 1rem; | |
| } | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .search-container { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .search-header { | |
| display: flex; | |
| gap: 0.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| #search-input { | |
| flex: 1; | |
| padding: 0.8rem; | |
| background-color: var(--secondary-bg); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-color); | |
| border-radius: 4px; | |
| } | |
| #search-platform { | |
| padding: 0 0.8rem; | |
| background-color: var(--secondary-bg); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-color); | |
| border-radius: 4px; | |
| } | |
| #search-btn { | |
| padding: 0 1.5rem; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| .search-results { | |
| margin-top: 1rem; | |
| } | |
| .search-result { | |
| display: flex; | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| overflow: hidden; | |
| margin-bottom: 1rem; | |
| } | |
| .result-thumbnail { | |
| position: relative; | |
| width: 200px; | |
| height: 120px; | |
| background-color: #222; | |
| } | |
| .result-thumbnail img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .result-thumbnail .duration { | |
| position: absolute; | |
| bottom: 0.5rem; | |
| right: 0.5rem; | |
| background-color: rgba(0, 0, 0, 0.7); | |
| padding: 0.2rem 0.4rem; | |
| border-radius: 3px; | |
| font-size: 0.8rem; | |
| } | |
| .result-info { | |
| flex: 1; | |
| padding: 0.8rem; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: space-between; | |
| } | |
| .result-info h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| } | |
| .result-stats { | |
| font-size: 0.8rem; | |
| color: #aaa; | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .play-btn { | |
| align-self: flex-start; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| padding: 0.4rem 1rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 0.8rem; | |
| } | |
| .upload-container { | |
| max-width: 600px; | |
| margin: 0 auto; | |
| } | |
| .upload-area { | |
| border: 2px dashed var(--border-color); | |
| border-radius: 8px; | |
| padding: 2rem; | |
| text-align: center; | |
| cursor: pointer; | |
| margin-bottom: 1rem; | |
| transition: background-color 0.2s; | |
| } | |
| .upload-area.dragover { | |
| background-color: rgba(255, 255, 255, 0.05); | |
| border-color: var(--primary-color); | |
| } | |
| .upload-area video { | |
| width: 100%; | |
| max-height: 300px; | |
| margin-bottom: 1rem; | |
| } | |
| #file-input { | |
| display: none; | |
| } | |
| .upload-details input, | |
| .upload-details textarea { | |
| width: 100%; | |
| padding: 0.8rem; | |
| margin-bottom: 1rem; | |
| background-color: var(--secondary-bg); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-color); | |
| border-radius: 4px; | |
| } | |
| .upload-details textarea { | |
| min-height: 100px; | |
| resize: vertical; | |
| } | |
| #upload-btn { | |
| width: 100%; | |
| padding: 1rem; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 1rem; | |
| transition: opacity 0.2s; | |
| } | |
| #upload-btn:hover { | |
| opacity: 0.9; | |
| } | |
| .upload-progress { | |
| margin-top: 1rem; | |
| display: none; | |
| } | |
| .upload-progress.active { | |
| display: block; | |
| } | |
| .progress-bar { | |
| height: 6px; | |
| background-color: var(--primary-color); | |
| border-radius: 3px; | |
| width: 0%; | |
| transition: width 0.3s; | |
| } | |
| .progress-text { | |
| display: block; | |
| text-align: center; | |
| margin-top: 0.5rem; | |
| font-size: 0.8rem; | |
| } | |
| .playlists-container { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .playlists-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 1rem; | |
| } | |
| #new-playlist-btn { | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| padding: 0.5rem 1rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| .playlists-list { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .playlist-card { | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| cursor: pointer; | |
| } | |
| .playlist-card h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.5rem; | |
| } | |
| .playlist-card .video-count { | |
| font-size: 0.8rem; | |
| color: #aaa; | |
| } | |
| .analytics-container { | |
| max-width: 1000px; | |
| margin: 0 auto; | |
| } | |
| .analytics-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |
| gap: 1rem; | |
| margin: 1rem 0; | |
| } | |
| .analytics-card { | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| text-align: center; | |
| } | |
| .analytics-card h3 { | |
| font-size: 0.9rem; | |
| margin-bottom: 0.5rem; | |
| color: #aaa; | |
| } | |
| .analytics-card p { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| } | |
| .analytics-chart { | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .video-player-modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.8); | |
| display: none; | |
| z-index: 1000; | |
| } | |
| .video-player-modal.active { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .video-player-container { | |
| width: 90%; | |
| max-width: 1000px; | |
| background-color: var(--secondary-bg); | |
| border-radius: 8px; | |
| overflow: hidden; | |
| } | |
| .video-player-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .close-player { | |
| background: none; | |
| border: none; | |
| color: var(--text-color); | |
| font-size: 1.5rem; | |
| cursor: pointer; | |
| } | |
| .video-player { | |
| position: relative; | |
| width: 100%; | |
| padding-top: 56.25%; /* 16:9 aspect ratio */ | |
| } | |
| .video-player iframe, | |
| .video-player video { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| border: none; | |
| } | |
| .video-player-info { | |
| padding: 1rem; | |
| } | |
| .video-stats { | |
| display: flex; | |
| gap: 1rem; | |
| margin-bottom: 1rem; | |
| font-size: 0.9rem; | |
| color: #aaa; | |
| } | |
| .video-actions { | |
| display: flex; | |
| gap: 0.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .video-actions button { | |
| background-color: #333; | |
| color: white; | |
| border: none; | |
| padding: 0.5rem 1rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| font-size: 0.9rem; | |
| } | |
| .video-comments { | |
| margin-top: 1rem; | |
| } | |
| .video-comments h4 { | |
| margin-bottom: 0.5rem; | |
| } | |
| .comments-list { | |
| max-height: 200px; | |
| overflow-y: auto; | |
| margin-bottom: 1rem; | |
| } | |
| .comment { | |
| padding: 0.5rem 0; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .comment:last-child { | |
| border-bottom: none; | |
| } | |
| .comment-author { | |
| font-weight: bold; | |
| font-size: 0.9rem; | |
| } | |
| .comment-text { | |
| font-size: 0.9rem; | |
| margin-top: 0.3rem; | |
| } | |
| .comment-input { | |
| display: flex; | |
| gap: 0.5rem; | |
| } | |
| .comment-input input { | |
| flex: 1; | |
| padding: 0.5rem; | |
| background-color: var(--secondary-bg); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-color); | |
| border-radius: 4px; | |
| } | |
| .comment-input button { | |
| padding: 0 1rem; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| /* Responsive styles */ | |
| @media (max-width: 768px) { | |
| .container { | |
| flex-direction: column; | |
| } | |
| .sidebar { | |
| width: 100%; | |
| padding: 0.5rem; | |
| } | |
| .user-section { | |
| margin-bottom: 1rem; | |
| padding-bottom: 0.5rem; | |
| } | |
| nav ul { | |
| display: flex; | |
| overflow-x: auto; | |
| padding-bottom: 0.5rem; | |
| } | |
| nav li { | |
| margin-bottom: 0; | |
| white-space: nowrap; | |
| } | |
| .video-feed { | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| } | |
| .search-header { | |
| flex-direction: column; | |
| } | |
| .search-result { | |
| flex-direction: column; | |
| } | |
| .result-thumbnail { | |
| width: 100%; | |
| height: auto; | |
| aspect-ratio: 16/9; | |
| } | |
| .video-player-container { | |
| width: 100%; | |
| height: 100%; | |
| border-radius: 0; | |
| } | |
| } |