*{
    margin: 0;
    padding: 0;
}
html {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* Safari */
}
body {
    background-color: #0f0f0f;
    font-family: Arial, sans-serif;
    color: #ffffff;
}
.line-1 {
    display: flex;
    justify-content: space-between;
}
.line-2 {
    display: flex;
    overflow-y: auto;
}
header {
    top: 0;
    width: 100%;
    margin-right: 12px;
    position: fixed;
    background-color: transparent;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.5) 50%, rgba(15, 15, 15, 0.9));
    backdrop-filter: rgba(42, 30, 30, 0.5);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);

}

.hamburger{
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 12px;
}
#menu-btn1 {
    height: 40px;
    width: 40px;
    padding-left: 30px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 16px;
}

.sidebar{
    position: fixed;
    font-size: 15px;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    padding: 10px;
    overflow-y: auto;
    background-color: #0f0f0f;
    color: #fff;
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
.align {
    display: flex;
}
.sidebar::-webkit-scrollbar {
    width: 8px;
}
.sidebar::-webkit-scrollbar-track {
    background-color: #0f0f0f;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: #606060;
    border-radius: 4px;
}
.exlore {
    margin-left: 5px;
}
i {
    margin: 0px 20px 0px 0px;
}
.sidebar ul {
    list-style: none;
    padding: 0px 0px 10px 0px;
}
.sidebar.home {
    background-color: #383838;
}
.sidebar ul li {
    margin: 10px 0px;
    padding: 10px 10px 5% 10px;
    border-radius: 8px;
    cursor: pointer;
}
.profile {
    padding: 10px 10px 10px 10px;
}
.sidebar ul li:hover, .profile:hover,
.mini-sidebar ul li:hover {
    background-color: #383838;
}

.sidebar.show {
    transform: translateX(0);
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.show {
    opacity: 1;
    pointer-events: all;
}

hr {
    margin: 0px 0px 10px 0px;
}

.part_1 {
    display: flex;
    font-size: 17px;
}
.youtube_icon {
    margin-top: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.youtube_icon img {
    height: 40px;
    width: 40px;
}


.part_2 {
    display: flex;
    background-color: transparent;
    border-radius: 7px;
    padding: 10px;
    gap: 10px;
    font-size: large;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.part_2 input {
    height: 40px;
    width: 320px;
    color: white;
    border: 1px solid #303030;
    background-color: #232222;
    font-size: medium;
    padding: 0px 10px;
    border-radius: 15px 0px 0px 15px;
}
.part_2 input:focus {
    border: 1px solid #4738f0;
    outline: none;
}
.part_2 button {
    height: 40px;
    width: 50px;
    background-color: transparent;
    color: white;
    background-color: #383838;
    border: 1px solid #303030;
    border-left: none;
    font-size: 18px;
    border-radius: 0px 15px 15px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.part_2 button i {
    padding: 0px;
    margin: 0;
    font-size: 18px;
}

.mic {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
    background-color: #383838;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.mic:hover {
    background-color: #4a4a4a;
}
.mic i {
    font-size: 18px;
    margin: 0;
    padding: 0;
    color: white;
}
.mic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.tooltip {
    position: absolute;
    top: 113%;
    height: 25px;
    width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    white-space: nowrap;
    background-color: #383838;
    opacity: 0;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}
.tooltip.show {
    opacity: 1;
}


.part_3 i {
    margin: 0;
    padding: 0;
}
.part_3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 0px 0px;
    margin-left: 15px;
}
.create {
    height: 15px;
    width: 70px;
    font-size: 16px;
    background-color: #303030;
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.create:hover {
    background-color: #383838;
}
.create i {
    padding-right: 5px;
}

.notification {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: large;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 5px;
}
.notification:hover {
    background-color: #383838;
}

.user {
    cursor: pointer;
}


.mini-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    padding-top: 10px;
    background-color: transparent;
}
.mini-sidebar ul li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    height: 40px;
    width: 50px;
    border-radius: 8px;
    margin-top: 5px;
    margin-left: 8px;
    padding: 15px 5px 15px 5px;
    cursor: pointer;
}
.mini-sidebar ul li i {
    margin: 0;
    padding: 0;
    padding-bottom: 8px;
    font-size: 20px;
}

.recommendation-bar {
    display: flex;
    overflow-x: auto;
    padding: 10px 20px;
    gap: 10px;
    margin-left: 66px;
    scrollbar-width: none;
}
.recommendation-bar::-webkit-scrollbar {
    display: none;
}
.pill {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 18px;
    background-color: #272727;
    color: #ffffff;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.pill:hover {
    background-color: #3c3c3c;
}
.pill.active {
    background-color: #ffffff;
    color: #000000;
}

* Works on Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background-color: #606060;
  border-radius: 10px;
  border: 3px solid #0f0f0f;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #909090;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 120px;
    margin-left: 80px;
}
.video-card {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background-color: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    cursor: pointer;
}


.thumbnail {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
}

.video-details {
    display: flex;
    padding-top: 10px;
}

.profile-pic {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title {
    font-size: 16px;
    font-weight: bold;
}

.channel, .info {
    font-size: 13px;
    color: #aaa;
}
