*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html,body{
    display: flex;
    background-color: #121212;
    width: 98vw;
}
.nav{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #121212;
    width: 14vw;
    height: 100vh;
    color: white;
    position: sticky;
    top: 0;
}

.logos {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.logos img {
    height: 24px;
    cursor: pointer;
}

.nav1 {
    padding: 10px 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.option:hover {
    background-color: #262222;
}

.option img {
    width: 24px;
}

.hr {
    padding: 10px 0;
}

.yt {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0.9;
    justify-content: center;
}

.search-container input {
    width: 500px;
    max-width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    border: 1px solid #303030;
    background-color: #121212;
    color: #fff;
    outline: none;
}

.search-container input::placeholder {
    color: #aaa;
}

.search-btn {
    width: 52px;
    height: 40px;
    border-radius: 0 20px 20px 0;
    border: 1px solid #303030;
    background-color: #222;
    cursor: pointer;
    margin-left: -52px;
}

.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    cursor: pointer;
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.create-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    background-color: #272727;
    color: #fff;
    cursor: pointer;
}

.homevideos {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    width: 100%;
}

.thumbnail {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.channel-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.meta h3 {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
    color: white;
}

.meta p {
    font-size: 12px;
    color: #aaa;
}

.more {
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
}

.autocomplete{
    background-color: #222222;
    color: white;
    width: 452px;
    position: absolute;
    right:618px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    top: 60px;
}

.auto{
    padding: 6px;
    padding-left: 13px;
    cursor: pointer;
}

.auto:hover {
    background-color: #383838;
}

a{
    text-decoration: none;
}

.more{
    color: white;
}

.skeleton-container {
    width: 85vw;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(245px, 1fr));
    gap: 20px;
}

.skeleton-card {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #3a3a3a 37%,
    #2a2a2a 63%
  );
  background-size: 400% 100%;
  animation: load 1.4s infinite;
}

@keyframes load {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


@media (max-width: 1024px) {

    .autocomplete{
        display: none;
    }

    .nav {
        width: 72px;
    }

    .option div:last-child {
        display: none;
    }

    .logos img:last-child {
        display: none;
    }

    .search-container input {
        width: 350px;
    }
}

@media (max-width: 768px) {

    .autocomplete{
        display: block;
        left: 10px;
        width: 220px;
    }

    .nav {
        display: none;
    }

    .search-container {
        justify-content: flex-start;
    }

    .search-container input {
        width: 100%;
        max-width: 260px;
    }

    .mic-btn {
        display: none;
    }

    .create-btn {
        display: none;
    }

    .homevideos {
        padding: 10px;
        gap: 16px;
    }
}