/* =========================
   Global Styles
========================= */
body {
    background-color: #111;
    color: #fff;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

/* =========================
   Header
========================= */
header {
    background: #1e1e1e;
    padding: 15px 0;
    border-bottom: 2px solid #222;
    transition: background 0.3s, border-color 0.3s;
}

header .search-bar input {
    background: #222;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    width: 100%;
}

header .search-bar input::placeholder {
    color: #aaa;
}

header .search-bar button {
    background-color: #ff3d3d;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

header .search-bar button:hover {
    background-color: #ff1e4d;
}

/* =========================
   Sidebar
========================= */
.sidebar {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    transition: background 0.3s;
}

.sidebar a {
    color: #bbb;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #ff3d3d;
    color: #fff;
}

/* =========================
   Video Cards
========================= */
.video-card {
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.video-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.video-thumb:hover {
    transform: scale(1.05);
}

.title {
    font-size: 15px;
    color: #fff;
    margin: 8px 0 5px;
    font-weight: 500;
    transition: color 0.3s;
}

.meta {
    font-size: 12px;
    color: #bbb;
    transition: color 0.3s;
}

/* =========================
   Footer
========================= */
footer {
    background: #1e1e1e;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    color: #aaa;
    border-top: 2px solid #222;
    transition: background 0.3s, color 0.3s;
}

/* =========================
   Video Player Page
========================= */
.video-container {
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background-color 0.3s, color 0.3s;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    transition: color 0.3s;
}

.video-meta {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.quality-buttons {
    margin-top: 15px;
}

.quality-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    margin: 0 5px 5px 0;
    font-weight: 500;
    transition: all 0.3s;
}

.quality-btn.active,
.quality-btn:hover {
    background: #ff2e63;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,46,99,0.4);
}

/* Related Videos */
.related-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.video-card {
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.video-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumb:hover {
    transform: scale(1.05);
}

/* Light Theme Overrides */
body.light-theme .video-container,
body.light-theme .video-card {
    background-color: #fff;
    color: #111;
}

body.light-theme .video-title,
body.light-theme .video-meta,
body.light-theme .title,
body.light-theme .related-title {
    color: #111;
}

body.light-theme .quality-btn {
    background-color: #ddd;
    color: #111;
}
/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    video {
        height: 280px;
    }
    .video-title {
        font-size: 18px;
    }
    .video-card {
        margin-bottom: 15px;
    }
}
