* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    background: #0f0f0f;
    color: #fff;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #202020;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo-play {
    background: red;
    border-radius: 6px;
    padding: 4px;
    margin-right: 6px;
    display: inline-flex;
}

.logo-you {
    color: #fff;
}

.logo-js {
    color: red;
    font-weight: 900;
}

.search-box {
    display: flex;
    align-items: center;
    width: 45%;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #303030;
    background: #121212;
    color: #fff;
    border-radius: 2px 0 0 2px;
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    border: 1px solid #303030;
    background: #303030;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

.search-box svg {
    fill: #fff;
}

.menu-icon svg {
    fill: #fff;
    cursor: pointer;
}

.main {
    margin-top: 80px;
    padding: 24px;
}

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

.video-card {
    cursor: pointer;
}

.video-card .thumb img {
    width: 100%;
    border-radius: 10px;
}

.video-card h3 {
    margin: 10px 0 4px;
    font-size: 16px;
    color: #fff;
}

.video-card .channel,
.video-card .meta {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
