Spaces:
Running
Running
| /* Base Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Roboto', Arial, sans-serif; | |
| background-color: #f9f9f9; | |
| color: #333; | |
| } | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1rem 2rem; | |
| background-color: white; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: #ff0000; | |
| } | |
| .search { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .search input { | |
| padding: 0.5rem 1rem; | |
| border: 1px solid #ddd; | |
| border-radius: 4px 0 0 4px; | |
| min-width: 300px; | |
| outline: none; | |
| } | |
| .search button { | |
| padding: 0.5rem 1rem; | |
| background-color: #f8f8f8; | |
| border: 1px solid #ddd; | |
| border-left: none; | |
| border-radius: 0 4px 4px 0; | |
| cursor: pointer; | |
| } | |
| .search button:hover { | |
| background-color: #eee; | |
| } | |
| /* Gallery View */ | |
| .video-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 1.5rem; | |
| padding: 2rem; | |
| } | |
| .video-card { | |
| background: white; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.2s; | |
| cursor: pointer; | |
| } | |
| .video-card:hover { | |
| transform: translateY(-5px); | |
| } | |
| .thumbnail { | |
| position: relative; | |
| width: 100%; | |
| padding-bottom: 56.25%; /* 16:9 aspect ratio */ | |
| overflow: hidden; | |
| } | |
| .thumbnail img { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .duration { | |
| position: absolute; | |
| bottom: 5px; | |
| right: 5px; | |
| background: rgba(0, 0, 0, 0.7); | |
| color: white; | |
| padding: 0.2rem 0.5rem; | |
| border-radius: 3px; | |
| font-size: 0.8rem; | |
| } | |
| .video-info { | |
| padding: 1rem; | |
| } | |
| .video-info h3 { | |
| margin-bottom: 0.5rem; | |
| font-size: 1rem; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .video-info p { | |
| font-size: 0.9rem; | |
| color: #666; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| /* Pagination */ | |
| .pagination { | |
| display: flex; | |
| justify-content: center; | |
| padding: 1rem 2rem 2rem; | |
| gap: 0.5rem; | |
| } | |
| .page-btn { | |
| padding: 0.5rem 1rem; | |
| background-color: #f8f8f8; | |
| border: 1px solid #ddd; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| } | |
| .page-btn:hover { | |
| background-color: #eee; | |
| } | |
| .page-btn.active { | |
| background-color: #ff0000; | |
| color: white; | |
| border-color: #ff0000; | |
| } | |
| /* Player View */ | |
| .player-container { | |
| display: flex; | |
| max-width: 1600px; | |
| margin: 0 auto; | |
| padding: 1.5rem; | |
| gap: 1.5rem; | |
| } | |
| .player-main { | |
| flex: 1; | |
| } | |
| .video-container { | |
| position: relative; | |
| width: 100%; | |
| background: black; | |
| margin-bottom: 1rem; | |
| } | |
| .video-js { | |
| width: 100%; | |
| height: auto; | |
| } | |
| .video-info { | |
| background: white; | |
| padding: 1rem; | |
| border-radius: 8px; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| } | |
| .video-info h1 { | |
| font-size: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .video-info p { | |
| line-height: 1.5; | |
| color: #555; | |
| } | |
| /* Suggestions */ | |
| .suggestions { | |
| width: 400px; | |
| } | |
| .suggestions h2 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| } | |
| .suggestion-card { | |
| display: flex; | |
| margin-bottom: 1rem; | |
| cursor: pointer; | |
| } | |
| .suggestion-thumbnail { | |
| width: 160px; | |
| height: 90px; | |
| margin-right: 0.5rem; | |
| position: relative; | |
| } | |
| .suggestion-thumbnail img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .suggestion-info h3 { | |
| font-size: 0.9rem; | |
| margin-bottom: 0.3rem; | |
| } | |
| .suggestion-info p { | |
| font-size: 0.8rem; | |
| color: #666; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 1200px) { | |
| .player-container { | |
| flex-direction: column; | |
| } | |
| .suggestions { | |
| width: 100%; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| header { | |
| flex-direction: column; | |
| gap: 1rem; | |
| padding: 1rem; | |
| } | |
| .search input { | |
| min-width: 200px; | |
| width: 100%; | |
| } | |
| .video-grid { | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| padding: 1rem; | |
| } | |
| .player-container { | |
| padding: 1rem; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .video-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } |