/* css/style.css */
body {
    background-color: #0f0f0f;
    color: white;
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #0f0f0f;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span { color: #ff0000; margin-right: 2px; }

.container {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Grid for the Home Page */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.video-card:hover { transform: scale(1.02); }

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info { padding-top: 10px; }
.video-title { font-weight: bold; font-size: 16px; margin-bottom: 5px; }
.video-meta { color: #aaa; font-size: 14px; }

/* Watch Page Layout */
.watch-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-player { flex: 3; min-width: 600px; }
.sidebar { flex: 1; min-width: 300px; }

video.player {
    width: 100%;
    border-radius: 0;
    aspect-ratio: 16/9;
    background: black;
}

.main-title { font-size: 20px; margin-top: 10px; font-weight: bold; }

/* Mobile adjustments */
@media (max-width: 800px) {
    .watch-layout { flex-direction: column; }
    .main-player, .sidebar { width: 100%; min-width: 0; }
}