* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    background: #1a1a1a;
    color: #fff;
}

::-webkit-scrollbar {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 24px;
    background: #000;
    border-bottom: 5px solid #000;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 8px 8px 0 #333;
}

header h1 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#search {
    padding: 12px 16px 12px 44px;
    background: #fff;
    border: 4px solid #000;
    border-radius: 0;
    color: #000;
    width: 100%;
    outline: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 4px 4px 0 #555;
}

#search:focus {
    box-shadow: 6px 6px 0 #555;
    transform: translate(-2px, -2px);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    fill: #000;
}

main {
    padding: 32px;
}

.loader {
    border: 6px solid #000;
    border-top: 6px solid #ff6b9d;
    border-radius: 0;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
    box-shadow: 6px 6px 0 #555;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        box-shadow: 4px 4px 0 #333;
    }

    header h1 {
        font-size: 18px;
    }

    .header-right {
        width: 100%;
    }

    #search {
        max-width: 100%;
        padding: 10px 12px 10px 36px;
        font-size: 14px;
        border-width: 3px;
        box-shadow: 3px 3px 0 #555;
    }

    #search:focus {
        box-shadow: 4px 4px 0 #555;
    }

    .search-icon {
        width: 20px;
        height: 20px;
        left: 10px;
    }

    main {
        padding: 16px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-card {
        border-width: 3px;
        box-shadow: 4px 4px 0 #333;
    }

    .video-card:hover {
        box-shadow: 6px 6px 0 #333;
    }

    .thumbnail-container {
        border-bottom-width: 3px;
    }

    .video-info {
        padding: 12px;
    }

    .video-title {
        font-size: 12px;
    }
}

.video-card {
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    background: #fff;
    border: 5px solid #000;
}

.video-card:hover {
    transform: none;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #333;
    border-bottom: 5px solid #000;
    overflow: hidden;
}

.thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 16px;
    background: #000;
}

.video-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
