/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #1a1a1a;
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Video Grid (3 Columns) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.video-info a {
    text-decoration: none;
}

/* Responsive Embed */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 15px;
    background: #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a.active, .pagination a:hover {
    background: #1a1a1a;
    color: white;
}

/* Forms & Comments */
.form-group {
    margin-bottom: 15px;
}
.form-group label { display: block; margin-bottom: 5px; font-weight: bold;}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.comment {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
}