ytlite / static /styles.css
zmzzmahiru
change color
82317fa
k/* ===============================
General Dark Theme
=============================== */
body {
margin: 0;
background: #0f0f0f;
color: #f1f1f1;
font-family: Arial, sans-serif;
}
a {
text-decoration: none;
color: inherit;
}
h2, h3 {
margin: 10px 0;
}
/* ===============================
Top Navigation Bar
=============================== */
.topbar {
display: flex;
align-items: center;
background: #202020;
padding: 10px 20px;
position: sticky;
top: 0;
z-index: 10;
}
.logo {
font-size: 24px;
font-weight: bold;
margin-right: 30px;
color: #ff0000;
}
.search-bar {
display: flex;
flex-grow: 1;
}
.search-bar input {
flex: 1;
padding: 8px;
background: #181818;
border: 1px solid #333;
color: white;
}
.search-bar button {
padding: 8px 12px;
background: #333;
border: none;
color: white;
cursor: pointer;
}
.topbar-right {
margin-left: 20px;
}
.user-tag {
margin-right: 10px;
opacity: 0.8;
}
/* ===============================
Layout
=============================== */
.layout {
display: flex;
}
/* ===============================
Sidebar
=============================== */
.sidebar {
width: 220px;
background: #181818;
height: calc(100vh - 50px);
overflow-y: auto;
padding-top: 10px;
position: sticky;
top: 50px;
}
.sidebar-item {
display: block;
padding: 12px 20px;
color: #ddd;
}
.sidebar-item:hover {
background: #333;
}
/* ===============================
Main Content
=============================== */
.main {
padding: 20px;
flex-grow: 1;
}
/* ===============================
Video Grid (Home / Search)
=============================== */
.video-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 20px;
}
.video-card {
background: #181818;
border-radius: 6px;
overflow: hidden;
display: block;
}
.thumb {
width: 100%;
height: 140px;
object-fit: cover;
}
.video-info {
padding: 10px;
}
.video-title {
font-size: 15px;
font-weight: bold;
margin-bottom: 5px;
color: #f5f5f5;
}
.video-meta {
font-size: 12px;
color: #cfcfcf;
}
/* ===============================
Watch Page Layout
=============================== */
.watch-container {
display: flex;
gap: 24px;
align-items: flex-start;
}
.player-box {
flex: 1;
min-width: 0;
}
.side-column {
width: 360px;
flex-shrink: 0;
}
.meta {
color: #cfcfcf;
}
/* ===============================
Up Next
=============================== */
.upnext-card {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.thumb-sm {
width: 120px;
height: 70px;
margin-right: 10px;
object-fit: cover;
}
/* ===============================
Buttons
=============================== */
.btn,
.btn-small {
display: inline-block;
background: #333;
color: white;
padding: 8px 12px;
margin-top: 8px;
cursor: pointer;
border-radius: 4px;
border: none;
}
.btn-small {
padding: 5px 10px;
}
.btn:hover {
background: #555;
}
/* ===============================
Forms (General)
=============================== */
.form-box {
display: flex;
flex-direction: column;
width: 400px;
}
.form-box input,
.form-box textarea,
.form-box select {
margin-bottom: 10px;
padding: 8px;
background: #181818;
border: 1px solid #333;
color: white;
}
/* ===============================
Comments Section
=============================== */
.comments-section {
margin-top: 30px;
}
.comment-form {
display: flex;
gap: 12px;
align-items: flex-start;
margin: 12px 0 20px;
}
.comment-form textarea {
flex: 1;
min-height: 90px;
background: #181818;
border: 1px solid #333;
color: #f5f5f5;
padding: 8px;
resize: vertical;
}
.comment-form textarea::placeholder {
color: #b8b8b8;
}
.comment-form button {
height: 36px;
margin-top: 0;
}
.comment-box {
margin: 10px 0;
padding: 10px;
background: #181818;
border-left: 3px solid #333;
color: #f1f1f1;
}
/* ===============================
Search Filter Modal
=============================== */
.filter-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
justify-content: center;
align-items: center;
}
.filter-panel {
background: #111;
padding: 20px;
border-radius: 8px;
width: 320px;
}
.hidden {
display: none;
}
.search-header {
display: flex;
justify-content: space-between;
align-items: center;
}
/* ===============================
Responsive (Optional but Safe)
=============================== */
@media (max-width: 900px) {
.watch-container {
flex-direction: column;
}
.side-column {
width: 100%;
}
}
/* Filter Button */
.filter-btn {
background: #272727;
border: 1px solid #333;
color: white;
padding: 6px 14px;
border-radius: 18px;
cursor: pointer;
}
/* Modal overlay */
.filter-modal {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
}
.hidden {
display: none;
}
/* Modal box */
.filter-box {
background: #fff;
color: #000;
width: 900px;
max-width: 95%;
padding: 20px 24px;
border-radius: 8px;
}
/* Header */
.filter-header {
display: flex;
justify-content: space-between;
font-size: 18px;
margin-bottom: 16px;
}
/* Grid layout */
.filter-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 20px;
}
.filter-col h4 {
font-size: 14px;
margin-bottom: 8px;
}
.filter-col label {
display: block;
font-size: 13px;
margin-bottom: 6px;
cursor: pointer;
}
/* Footer actions */
.filter-actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 12px;
}
.flash.error {
color: #ff6b6b;
margin-bottom: 10px;
}