@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #ff2a4d;
    --card-radius: 12px;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #ff2a4d, #ff7b9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-input {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    background: #252525;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 42, 77, 0.2);
    color: #fff;
}

/* Video Grid */
.video-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.video-item:hover {
    color: #fff; /* Keep title white on hover */
}

.thumb-container {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 16/9;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .thumb-img {
    transform: scale(1.05);
}

/* Overlay gradient on thumbnail bottom */
.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.video-info {
    padding-top: 12px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #f1f1f1;
}

.video-item:hover .video-title {
    color: var(--accent-color);
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pagination */
.pagination .page-link {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-secondary);
    border-radius: 6px;
    margin: 0 4px;
}

.pagination .page-link:hover {
    background: #222;
    color: #fff;
    border-color: #555;
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
}

/* Footer */
footer {
    border-top: 1px solid #222;
    margin-top: 4rem;
    padding: 3rem 0;
    background: #050505;
}
