:root {
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --accent: #ff4d2d;
    --text-light: #f5f5f5;
    --muted: #999;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset default anchor styles */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
    text-decoration: none;
}


body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;
}

/* Header */
header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #222;
}

header img {
    height: 45px;
    cursor: pointer;
}

/* Search */
.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 6px;
    border: none;
    background: #222;
    color: #fff;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

/* Categories */
.categories {
    display: flex;
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #222;
}



.category-pill {
    background: linear-gradient(
        135deg,
        rgba(233, 44, 10, 0.65),
        rgba(255, 193, 7, 0.65)
    );
    color: #fff;
    border: none;
}


.category-pill:hover {
    filter: brightness(1.1);
}

.category-pill {
    transition: all 0.2s ease;
}

.category-pill {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.category-pill:hover {
    background: var(--accent);
}

/* Grid */
#video-grid {
    padding: 15px;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1400px) { #video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { #video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { #video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { #video-grid { grid-template-columns: repeat(1, 1fr); } }

/* Card */
.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    display: block;
}

.video-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: rgba(255,255,255,0.8);
}

.video-info {
    padding: 10px;
}

.video-info h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.video-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 10px;
}

/* Loader */
#loader, #end-message {
    text-align: center;
    padding: 20px;
    color: var(--muted);
}
