* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f0f0f;
    color: #e5e5e5;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #151515;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #222;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #ff9a3c;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
}

.nav a:hover {
    color: #fff;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter {
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    color: #ccc;
    margin: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.filter.active,
.filter:hover {
    background: #ff9a3c;
    color: #fff;
    border-color: #ff943c;
}

/* Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Card */
.card {
    background: #141414;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Fake thumbnail */
.thumbnail {
    height: 130px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

/* Info */
.card-info {
    padding: 10px;
}

.title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #f1f1f1;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}
/* Header structure */
.left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    width: 220px;
    height: calc(100vh - 56px);
    background: #121212;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px;

    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 9;
}

.mobile-menu a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.mobile-menu a:hover {
    color: #ff3c3c;
}

/* Active state */
.mobile-menu.active {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}
.centrar{
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5px;
}
.search-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.search-wrapper input {
    width: 360px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    background: #1f1f1f;
    color: #eee;
    font-size: 14px;
}

.search-wrapper button {
    background: #ff9a3c;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}
.search-mobile {
    display: none;
    padding: 10px 16px;
    background: #121212;
    border-bottom: 1px solid #222;
    gap: 6px;
}

.search-mobile input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    background: #1f1f1f;
    color: #eee;
}

.search-mobile button {
    background: #ff9a3c;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}
@media (max-width: 768px) {
    .search-wrapper {
        display: none;
    }

    .search-mobile {
        display: flex;
    }
}
