/* =====================
   Root Variables
   ===================== */
:root {
  /* Colors */
  --primary-color: #ff0000;
  --background-color: #f0f0f0;
  --text-color: #111111;
  --accent-color: #979797;
  --border-color: #dbdbdb;

  /* Layout Sizes */
  --navbar-height: 60px;
  --sidebar-width: 250px;
  --filter-height: 70px;

  /* Fonts */
  --font-family: "Roboto", sans-serif;

  /* Other */
  --radius-round: 50%;
  --radius-pill: 50px;
}
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

html,
body {
  position: relative;
  background: var(--background-color);
  font-family: var(--font-family);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 2.5vw;
}

.toggle-btn {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  display: block;
  z-index: 1001;
}

.toggle-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
}

.toggle-btn span:nth-child(1) {
  top: 0;
}

.toggle-btn span:nth-child(3) {
  top: 100%;
}

.logo {
  height: 30px;
  margin: -10px 30px 0;
}

.search-box {
  position: relative;
  max-width: 500px;
  width: 50%;
  height: 35px;
  display: flex;
  margin-left: 20%;
}

.search-bar {
  width: 85%;
  height: 100%;
  border: 2px solid var(--border-color);
  padding: 0 5px;
  font-size: 16px;
  text-transform: capitalize;
}

.search-btn {
  width: 15%;
  height: 100%;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  padding: 5px 0;
  border-left: none;
}

.search-btn img {
  height: 100%;
  padding: 2px;
}

.user-options {
  height: 35px;
  display: flex;
  margin-left: auto;
  align-items: center;
}

.user-options .icon {
  height: 80%;
  margin-right: 20px;
  cursor: pointer;
}

.user-dp {
  cursor: pointer;
  height: 30px;
  width: 30px;
  border-radius: var(--radius-round);
  overflow: hidden;
}

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

.side-bar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: #fff;
  padding-right: 10px;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  z-index: 1000;
  overflow-y: auto;
}

.side-bar.active {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  height: calc(100% - var(--navbar-height));
}

.overlay.active {
  display: block;
}

.links {
  display: block;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  text-transform: capitalize;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.links img {
  height: 25px;
  margin-right: 20px;
}

.links:hover,
.links.active {
  background: rgba(0, 0, 0, 0.1);
}

.seperator {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.filters {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  position: fixed;
  left: var(--sidebar-width);
  top: var(--navbar-height);
  width: calc(100% - var(--sidebar-width));
  height: var(--filter-height);
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  z-index: 998;
}

.filters::-webkit-scrollbar {
  display: inline;
}

.filter-options {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--background-color);
  border: 1px solid var(--border-color);
  text-transform: capitalize;
  margin-right: 10px;
  color: var(--text-color);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filter-options.active {
  color: #fff;
  background: var(--text-color);
}

.video-container {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  grid-gap: 20px 5px;
  margin-top: 120px;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 20px;
  overflow-x: hidden;
}

.video {
  min-height: 250px;
  height: auto;
}

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

.content {
  width: 100%;
  height: 100px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  object-fit: cover;
  margin-right: 10px;
}

.title {
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.channel-name {
  font-size: 14px;
  margin: 2px 0;
  color: var(--accent-color);
}
