/* General page styling */
body {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: white;
    background-color: black;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Video gallery container */
.video-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

/* Video thumbnail container */
.video {
    position: relative;
    width: 100%; /* Flexible width */
    max-width: 200px; /* Ensures thumbnails are not too large */
    border: 2px solid white;
    padding: 5px;
    box-sizing: border-box;
}

/* Video thumbnail image */
.video img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video title */
.video h3 {
    font-size: 10px;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Video categories */
.video .categories {
    font-size: 9px;
    color: #ccc;
    margin-bottom: 5px;
}

/* Video length in the top-right corner */
.video .duration {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Links styling */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Category links under videos */
.video .categories a {
    color: #ff6600;
    font-weight: bold;
}

.video .categories a:hover {
    color: #ff4500;
    text-decoration: underline;
}

/* Pagination styling */
.pagination {
    margin-top: 20px;
    text-align: center;
}

/* Pagination buttons */
.page-button, .current-page {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    border: 1px solid white;
    text-decoration: none;
    color: white;
    font-size: 12px;
    background-color: black;
    border-radius: 5px; /* Rounded corners */
    transition: background 0.3s;
}

/* Current page (highlighted in red) */
.current-page {
    background-color: red;
    font-weight: bold;
    border-color: red;
}

/* Hover effect for page buttons */
.page-button:hover {
    background-color: gray;
}

/* First and Last page navigation */
.page-button:first-child, .page-button:last-child {
    font-weight: bold;
}

/* Sticky Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header Content Container */
.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    height: 40px;
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 3px;
    background: #222;
    color: white;
}

.search-form button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.search-form button:hover {
    background-color: darkred;
}

/* Navigation Links */
.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.nav-links a:hover {
    color: red;
}

/* Body Padding to Prevent Content Overlap */
body {
    padding-top: 60px; /* Space for fixed header */
}

