/*----- GENERAL -----*/
:root {
  --font: 'Quicksand', sans-serif;
  --large-size: 18px;
  --normal-size: 16px;
  --medium-size: 14px;
  --small-size: 12px;
  --white-color: #fff;
  --black-color: #000;
  --green-color: #6aa71f;
  --light-green-color: #95ca3e;
  --blue-color: #151b31;
  --blue-hover-color: #2c3661;
  --red-color: #d8353a;
  --grey-color: #4f4f4f;
  --purple-color: #9b58f9;
  --light-blue-color: #17e9c4;
  --pink-color: #ea3183;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrapper {
  max-width: 1440px;
  margin: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 300px 1fr;
}

/*----- SIDEBAR -----*/
.main_sidebar {
  background: var(--blue-color);
  display: grid;
  grid-template-rows: repeat(2, auto) 1fr;
  row-gap: 30px;
  padding: 30px 0;
  color: var(--white-color);
}

.logo { /*----- LOGO -----*/
  font-size: 2em;
  letter-spacing: .02em;
  padding: 0 30px;
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--white-color);
  transition: text-shadow .1s;
}

.logo-link:hover {
  text-shadow: 0px 0px 5px var(--green-color);
}

.logo-img {
  width: 35px;
  height: 35px;
  margin-right: 2px;
}

.logo span {
  color: var(--light-green-color);
}

.playlist, .friends-container { /*----- MY PLAYLIST - FRIENDS PLAYLIST -----*/
  display: grid;
  grid-template-rows: repeat(2, auto);
  row-gap: 10px;
}

.playlist-title {
  padding: 0 30px;
}

.list, .friends_list {
  display: grid;
  row-gap: 5px;
}

.list {
  list-style-position: inside;
}

.friend {
  list-style-type: none;
}

.video-link {
  color: var(--white-color);
  padding: 10px 30px;
  transition: background .1s;
}

.video-link:hover {
  background: var(--blue-hover-color);
}

.friend_link {
  color: var(--white-color);
}

.friend {
  display: grid;
  grid-template: 1fr / auto 1fr;
  align-items: center;
  column-gap: 15px;
  padding: 7px 30px;
  transition: background .1s;
}

.friend:hover {
  background: var(--blue-hover-color);
}

.user {
  width: 40px;
  height: 40px;
}

.user-img {
  border-radius: 50%;
}

/*----- MAIN SECTION -----*/
.main_section {
  display: grid;
  grid-template-rows: auto 1fr;
}

.youtube { /*----- PLAYER -----*/
  width: 100%;
  height: 400px;
}

.info {
  padding: 15px 20px;
  box-shadow: 0px 3px 5px rgba(100, 100, 100, .2);
}

.info-video {
  margin-bottom: 15px;
}

.info-video-views {
  color: var(--grey-color);
  font-weight: bold;
}

.info-manage {
  display: grid;
  grid-template: 1fr / 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.manage {
  display: flex;
}

.add {
  width: 150px;
  cursor: pointer;
  font-size: var(--normal-size);
  background: linear-gradient(to right, var(--green-color), var(--light-green-color));
  color: var(--white-color);
  border: 0;
  border-radius: 10px;
  outline: 0;
  transition: box-shadow .1s;
}

.add:hover {
  box-shadow: 0px 0px 5px var(--green-color);
}

.manage-link {
  margin-left: 30px;
  display: grid;
  justify-items: center;
  align-items: center;
  font-weight: bold;
  color: var(--grey-color);
  transition: color .1s;
}

.manage-link:hover {
  color: var(--blue-hover-color);
}

.category {
  justify-self: end;
}

.category_list {
  list-style-type: none;
  display: grid;
  grid-template: 1fr / repeat(4, 90px);
  column-gap: 20px;
}

.category_link {
  text-align: center;
  padding: 5px 0;
  border-radius: 10px;
  color: var(--white-color);
  transition: box-shadow .1s;
}

.category_link:nth-child(1) {
  background: var(--purple-color);
}

.category_link:nth-child(1):hover {
  box-shadow: 0px 0px 5px var(--purple-color);
}

.category_link:nth-child(2) {
  background: var(--light-blue-color);
}

.category_link:nth-child(2):hover {
  box-shadow: 0px 0px 5px var(--light-blue-color);
}

.category_link:nth-child(3) {
  background: var(--red-color);
}

.category_link:nth-child(3):hover {
  box-shadow: 0px 0px 5px var(--red-color);
}

.category_link:nth-child(4) {
  background: var(--pink-color);
}

.category_link:nth-child(4):hover {
  box-shadow: 0px 0px 5px var(--pink-color);
}

.community { /*----- COMMUNITY -----*/
  padding: 30px 20px;
  display: grid;
  grid-template: 1fr / 2fr 1fr;
  column-gap: 80px;
}

.comments {
  display: grid;
  grid-template: repeat(2, auto) 1fr / 1fr;
  row-gap: 20px;
}

.add_comment {
  display: flex;
  position: relative;
  height: 45px;
}

.add_comment .user {
  position: absolute;
  left: 5px;
  top: 7.5px;
  width: 30px;
  height: 30px;
}

.add_comment input {
  width: 100%;
  padding-left: 40px;
  background: rgba(100, 100, 100, .1);
  border: 1px solid rgba(100, 100, 100, .1);
  border-radius: 10px;
  outline: 0;
  font-size: var(--normal-size);
  box-shadow: 0px 2px 3px rgba(100, 100, 100, .4);
}

.add_comment input:focus {
  border: 1px solid var(--green-color);
}

.comments .playlist-title, .suggestions .playlist-title {
  padding: 0;
}

.comment {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  margin-bottom: 20px;
  width: 80%;
}

.suggestions {
  display: grid;
  grid-template: auto 1fr / 1fr;
  row-gap: 20px;
  font-weight: bold;
}

.suggestion {
  margin-bottom: 20px;
}

.suggestion:last-child {
  margin-bottom: 0;
}

.suggestion-link {
  display: block;
  color: var(--black-color);
  transition: color .1s;
}

.suggestion-link:hover {
  color: var(--blue-hover-color);
}

.suggestion-link iframe {
  height: 150px;
  box-shadow: 0px 0px 5px var(--grey-color);
  transition: transform .2s;
}

.suggestion-link iframe:hover {
  transform: scale(.99);
}

.suggestion-title {
  margin-top: 5px;
}