body {
    background: #0f172a;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}


/* MAIN PAGE */

.video-homepage {
    padding: 15px;
    max-width: 1200px;
    margin: auto;
}


/* HEADER */

.video-home-header {
    margin-bottom: 25px;
}

.video-home-header h1 {
    font-size: 28px;
    color: #FBBF24;
    margin-bottom: 15px;
    font-weight: 800;
}


/* SEARCH */

#searchInput {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #1e293b;
    color: white;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

#searchInput::placeholder {
    color: #94a3b8;
}


/* VIDEO GRID */

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}


/* VIDEO CARD */

.video-card {
    position: relative;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.video-card:hover {
    transform: translateY(-3px);
}


/* VIDEO */

.video-card video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: black;
    display: block;
}


/* VIDEO INFO */

.video-info {
    padding: 12px;
}


/* TITLE */

.video-info h3 {
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.4;
    color: white;
}


/* CITY */

.video-info p {
    margin: 0;
    font-size: 13px;
    color: #FBBF24;
    font-weight: 600;
}


/* TABLET */

@media(min-width:768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* LARGE DESKTOP */

@media(min-width:1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* PAGINATION */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 14px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.page-btn:hover {
    background: #FBBF24;
    color: black;
}

.page-btn.active {
    background: #FBBF24;
    color: black;
}


/* TOP BAR */

.top-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}


/* HOME BUTTON */

.home-btn {
    background: #FBBF24;
    color: black;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.home-btn:hover {
    transform: translateY(-2px);
}


/* SUBTITLE */

.video-subtitle {
    color: #94a3b8;
    margin-top: -5px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}


/* SEARCH WRAPPER */

.search-wrapper {
    position: relative;
}


/* =================================
SCROLL FIX
================================= */

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
}


/* Main page containers */

.video-homepage,
.watch-page {
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}


/* Prevent videos from creating horizontal overflow */

video {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Prevent grids from exceeding viewport */

.video-grid,
.related-grid {
    width: 100%;
}


/* Prevent any element from causing side scroll */

* {
    max-width: 100%;
    box-sizing: border-box;
}

.page-btn {
    text-align: center;
    margin: 25px 0;
}

.page-btn a {
    display: inline-block;
    background: #FBBF24;
    /* Gold */
    color: #111827;
    /* Dark text */
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.page-btn a:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}