@import url('reset.css');

/* Global */
body {
  background-color: #f9f9f9;
}

h1,
.video-section .comments h2 {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 100%;
  padding: 16px 0;
}

.global {
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0;
  color: #000;
  margin-left: 8px;
}

/* Seção Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  height: 56px;
  background-color: #ffffff;
  flex-direction: row;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-logo img {
  width: 90px;
  height: 20px;
  cursor: pointer;
}

.header-logo .icon-menu {
  color: black;
  cursor: pointer;
  font-size: 28px;
}

.search {
  border: 1px;
  justify-content: center;
  display: flex;
  align-items: center;
}

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

.search button {
  width: 57px;
  height: 40px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #f8f8f8;
  cursor: pointer;
}

.search input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  font-size: 18px;
  outline: none;
  width: 500px;
}

.search .icon-search {
  font-size: 24px;
  color: #000000;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-direction: row;
}

.header-icons ion-icon {
  font-size: 24px;
  color: inherit;
  cursor: pointer;
}

/* Main */

main {
  background: #f9f9f9;
  max-width: 1840px;
  min-width: 360px;
  padding-top: 28px;
  margin-left: 75px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Seção Video*/

.video-section {
  width: 952px;
  height: 764px;
}

.video-section .video-div iframe {
  height: 537px;
  width: 952px;
}

.video-section .channel-infos {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 42px;
}

.channel-infos .channel {
  display: flex;
  flex-direction: row;
}

.video-section .channel-infos .channel .channel-avatar {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.video-section .channel-infos .channel .channel-avatar img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.video-section .channel-infos .channel .channel-details {
  margin-left: 12px;
  padding: 8px;
}

.video-section .channel-infos .channel .channel-details h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  margin-left: 12px;
}

.video-section .channel-infos .channel .channel-details p span,
.details p {
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0%;
}

.channel-infos .subscribe-button button {
  width: 159px;
  height: 40px;
  margin-top: 1px;
  border-radius: 2px;
  background: #cc0000;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.channel-infos .like,
.dislike,
.share,
.download {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.video-section .views p {
  color: #000000;
  line-height: 100%;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  padding: 20px 0;
  padding-bottom: 6px;
}

.video-section .details p {
  white-space: pre-line;
  color: #515151;
}

.video-section .comments {
  display: flex;
  flex-direction: row;
  justify-content: start;
  margin-bottom: 14px;
  margin-top: 24px;
}

/* Seção Comment */

.comment-section {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  padding: 0 10px 0 0;
}
.avatar ion-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.comment-input {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.textarea-container {
  position: relative;
  flex-grow: 1;
}
.comment-textarea {
  width: 100%;
  height: 36px;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 14px;
  box-sizing: border-box;
  outline: none; /* Remove a borda de foco padrão */
  resize: none;
}

.buttons {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 50px;
}
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}
.btn-cancel {
  background-color: transparent;
  color: #606060;
}

.btn-cancel:hover {
  background-color: #e0e0e0;
}

.btn-comment {
  background-color: #f1f1f1;
  color: #606060;
}
.btn-comment:hover {
  background-color: #e0e0e0;
}

/* Seção Playlist */

.playlist-video {
  flex-direction: column;
  gap: 16px;
  margin-left: 25px;
  cursor: pointer;
}

.thumbnail {
  display: flex;
  margin-bottom: 16px;
}

.thumbnail-video img {
  width: 160px;
  height: 90px;
}

.thumbnail-info {
  padding-left: 16px;
}

.thumbnail .thumbnail-info h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  color: #000000;
}

.thumbnail .thumbnail-info p {
  font-size: 12px;
  color: #515151;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0%;
  padding-top: 7px;
}
