body {
    margin: 0;
    padding-top: 150px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #f2f2f2;
    background: #0b0f17;
}

.headbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 22, 35, 0.95);
}

.headbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 14px;
}

.headbar a img {
    height: 90px;
    display: block;
    margin: 0;
    filter: brightness(1.07) saturate(1.2) contrast(1.1);
    transition: transform 220ms ease, filter 220ms ease;
}
.headbar a img:hover {
    transform: scale(1.03);
    filter: brightness(1.12) saturate(1.3) contrast(1.15);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}
.nav a {
    text-decoration: none;
    color: #e6e8ec;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 150ms ease, transform 150ms ease;
    padding: 8px 10px;
    border-radius: 6px;
}

.nav a:hover {
    color: #9ee1ff;
    transform: translateY(-1px);
    background: rgba(79, 151, 244, 0.15);
}

.search-form {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(176, 190, 209, 0.3);
    border-radius: 999px;
    background: rgba(14, 22, 35, 0.9);
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 8px 12px;
    width: 180px;
    outline: none;
    font-size: 0.95rem;
    color: #f1f5f9;
    background: transparent;
}

.search-form input::placeholder {
    color: #8c9bb6;
}

.search-form button {
    border: none;
    background: #0d4cff;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.search-form button:hover {
    background: #085bde;
}

.trending-section {
    padding: 24px;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.trending-section h2 {
    margin-bottom: 14px;
    letter-spacing: 0.03em;
    color: #e9eef7;
}

.trending-slider {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #101827;
}

.trending-slider .slide-track {
    display: flex;
    width: calc(252px * 10);
    animation: slide 20s linear infinite;
}

.trending-slider .slide {
    min-width: 252px;
    padding: 10px;
}

.trending-slider .slide img {
    width: 100%;
    height: 394px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    filter: brightness(0.92) contrast(1.05);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.uploads-section {
    padding: 24px;
    max-width: 1180px;
    margin: 0 auto 40px;
}

.uploads-section h2 {
    margin-bottom: 10px;
    color: #e9eef7;
}

.uploads-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.uploads-controls label {
    color: #cbd6ed;
    font-size: 0.92rem;
}

.upload-day {
    min-width: 210px;
    max-width: 340px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(190, 200, 220, 0.4);
    background: rgba(20, 30, 46, 0.95);
    color: #f4f7ff;
}

.upload-day option {
    background: #111b2f;
    color: #f4f7ff;
}

.uploads-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.upload-card {
    min-width: 185px;
    width: 185px;
    background: rgba(16, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.upload-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35);
}

.upload-card img {
    width: 185px;
    height: 278px;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}

.upload-card h3 {
    margin: 8px 10px 10px;
    font-size: 0.98rem;
    color: #f3f4f8;
}

.upload-card p {
    display: none;
}

/* Discover Something New */
.random-section {
    padding: 50px 0px;
    margin-bottom: 20px;
}

#random-grid {
    display: flex;
    margin-top: 30px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; /* Adjust this to change the gap between random cards */
}

