@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");
* {
  font-family: "Roboto", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #181818;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 32px;
  background: #212121;
}
header .sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
}
header .sidebar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 97px;
  height: 100%;
  position: relative;
}
header .sidebar .logo::after {
  content: "EN";
  position: absolute;
  top: -6px;
  right: -15px;
  font-size: 10px;
  font-weight: 400;
  color: #aaa;
}
header .sidebar .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  margin-left: -8px;
  cursor: pointer;
}
header .sidebar .hamburger svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
header .search {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 478px;
  padding: 8px 0;
  position: relative;
}
header .search .search-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 478px;
  height: calc(56px - 16px);
  background: #121212;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  border: 1px solid #323232;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
header .search .search-field input {
  padding: 10px 6px;
  font-size: 16px;
  font-weight: 400;
  background: #121212;
  color: #aaa;
  width: 100%;
  height: 70%;
}
header .search .search-field .icon {
  display: none;
  position: absolute;
  padding: 0 5px 0 10px;
  background: #121212;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  border-left: 1px solid #1c62b9;
  border-top: 1px solid #1c62b9;
  border-bottom: 1px solid #1c62b9;
  height: calc(100% + 2px);
  left: -31px;
}
header .search .search-field .icon svg {
  width: 18px;
  height: 18px;
}
header .search .search-field:focus-within {
  border: 1px solid #1c62b9;
}
header .search .search-field:focus-within .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
header .search .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: calc(56px - 16px);
  right: -118px;
}
header .search .actions button {
  border: 1px solid #323232;
  background: #323232;
  width: 65px;
  height: 100%;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  cursor: pointer;
  margin-right: 13px;
}
header .search .actions .voice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  background: #181818;
  cursor: pointer;
}
header .right-side ul {
  display: flex;
  align-items: center;
}
header .right-side ul li {
  margin-right: 10px;
}
header .right-side ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
header .right-side ul li a img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
header .right-side ul li a:active {
  background: #373737;
  animation-name: outline;
  animation-delay: 150ms;
  animation-duration: 500ms;
  transition: 50ms ease-out;
}

@keyframes outline {
  from {
    border: 1px solid #444444;
  }
  to {
    border: 1px solid #444444;
  }
}
header .right-side ul li:nth-child(3) {
  margin: 0;
}
header .right-side ul li:last-child {
  margin-left: 24px;
  margin-right: 0;
}
header .right-side ul li:last-child a:active {
  animation: none;
  outline: 1px solid #1c62b9;
}

.content {
  flex: 1;
  display: flex;
}
.content aside {
  display: flex;
  flex-direction: column;
  background: #212121;
  width: 220px;
  height: 100%;
}
.content aside ul {
  width: 100%;
  margin-top: 15px;
}
.content aside ul li a {
  display: flex;
  align-items: center;
  padding: 7px 20px;
}
.content aside ul li a.active {
  background: #383838;
}
.content aside ul li a:hover {
  background: rgba(56, 56, 56, 0.3);
}
.content aside ul li a.active:hover {
  background: #383838;
}
.content aside ul li a .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 20px;
}
.content aside ul li a span {
  color: #fff;
  font-weight: 400;
  font-size: 14px;
}
.content aside ul li:last-child a {
  position: relative;
}
.content aside ul li:last-child a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  top: 47px;
  left: 0;
  background: #383838;
}
.content aside .subs {
  width: 100%;
}
.content aside .subs h2 {
  font-size: 14px;
  font-weight: 600;
  color: #aaa;
  margin: 16px 0 8px 21px;
}
.content aside .subs li a {
  display: flex;
  align-items: center;
  padding: 7px 20px;
}
.content aside .subs li a span {
  color: #fff;
  position: relative;
}
.content aside .subs li a span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3da6ff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 120px;
}
.content aside .subs li a img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
}
.content aside .subs li a.ejx2 span::after {
  content: none;
}
.content .content-container {
  flex: 1;
  padding: 22px;
}
.content .content-container .tags {
  padding: 22px 0;
  width: 100%;
  margin-top: -27px;
  position: relative;
}
.content .content-container .tags ul {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}
.content .content-container .tags ul::-webkit-scrollbar {
  display: none;
}
.content .content-container .tags ul li {
  margin: 0 6px;
  flex-shrink: 0;
}
.content .content-container .tags ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #474747;
  color: #fff;
  background: #383838;
}
.content .content-container .tags ul li a.active {
  background: #fff;
  color: #181818;
  border: 0;
}
.content .content-container .tags::before,
.content .content-container .tags::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #383838;
}
.content .content-container .tags::before {
  top: 15px;
  left: 0;
}
.content .content-container .tags::after {
  bottom: 15px;
  left: 0;
}
.content .content-container .videos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: -15px 0 -15px 75px;
}
.content .content-container .videos li {
  width: calc(100% / 4 - 50px);
  margin: 15px 7px;
}
.content .content-container .videos li .video {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.content .content-container .videos li .video .preview {
  width: 100%;
  position: relative;
}
.content .content-container .videos li .video .preview span {
  position: absolute;
  bottom: 10px;
  right: 6px;
  background: rgba(0, 0, 0, 0.9);
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
}
.content .content-container .videos li .video .preview img {
  width: 100%;
  object-fit: cover;
}
.content .content-container .videos li .video .bottom {
  display: flex;
  min-height: 100px;
  margin-top: 10px;
}
.content .content-container .videos li .video .bottom .avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
}
.content .content-container .videos li .video .bottom .avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.content .content-container .videos li .video .bottom .details h2 {
  font-size: 16px;
  font-weight: 500;
}
.content .content-container .videos li .video .bottom .details p {
  margin-top: 5px;
  display: flex;
  align-items: center;
  color: #aaa;
  font-size: 13px;
}
.content .content-container .videos li .video .bottom .details p svg {
  margin-left: 2px;
  width: 14px;
  height: 14px;
  fill: #aaa;
}
.content .content-container .videos li .video .bottom .details span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #aaa;
}
@media (max-width: 1400px) {
  .content .content-container .videos {
    margin: -15px 0 -15px 0px;
  }
  .content .content-container .videos li {
    width: calc(100% / 3 - 15px);
  }
}
