* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #f9f9f9;
}

.video-card {
  margin-bottom: 0.75rem;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.video-card:hover {
  background-color: #f2f2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.video-card:hover .card-footer-container {
  background-color: #f0f0f0;
}

.card-footer-container {
  padding: 0.75rem 0.5rem;
  display: flex;
  gap: 0.75rem;
  transition: background-color 200ms ease-in-out;
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-author-img-container {
  margin: 0;
  flex-shrink: 0;
}

.video-author-img-container img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.video-info-container {
  flex: 1;
  min-width: 0;
}

.video-info-container p:first-child {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #030303;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-metadata-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #606060;
  line-height: 1.4;
}

.video-metadata-container p {
  margin: 0;
  padding: 0;
}

.video-metadata-container p:first-child {
  font-weight: 500;
  color: #030303;
  font-size: 0.85rem;
}

.dot-v1 {
  display: none;
}

aside {
  display: none;
}

header {
  display: none;
}

@media (min-width: 600px) {
  .layout-container {
    display: grid;
    grid-template-columns: 20rem 1fr;
  }

  #root {
    padding: 1.25rem;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  aside {
    display: block;
    background-color: #ffffff;
    grid-row-start: 1;
    grid-row-end: 3;
    border-right: 1px solid #e0e0e0;
  }

  header {
    display: block;
    background-color: #ffffff;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .video-metadata-container {
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
  }

  .dot-v1 {
    display: block;
    height: 0.3rem;
    width: 0.3rem;
    background-color: #606060;
    border-radius: 100%;
    flex-shrink: 0;
  }
}

.search-container {
  display: flex;
  width: 60%;
  position: relative;
  gap: 0.5rem;
}

.search-container input {
  flex-grow: 1;
  padding: 0.65rem 1rem;
  border: 1px solid #d3d3d3;
  border-radius: 24px 0 0 24px;
  background-color: #ffffff;
  font-size: 0.95rem;
}

.search-container input:focus {
  border-color: #1c62d1;
}

.search-container button {
  padding: 0.65rem 1.25rem;
  border-radius: 0 24px 24px 0;
  border: 1px solid #d3d3d3;
  background-color: #f8f8f8;
  cursor: pointer;
}

.search-container button:hover {
  background-color: #f0f0f0;
}

#search-suggestion-container {
  position: absolute;
  top: 2.6rem;
  left: 0.4rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 12px 12px;
  width: 91%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

#search-suggestion-container p {
  border-bottom: 1px solid #e0e0e0;
  color: #030303;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

#search-suggestion-container p:last-child {
  border-bottom: none;
}

#search-suggestion-container p:hover {
  background-color: #f0f0f0;
  color: #030303;
}

@media (max-width: 599px) {
  body {
    background-color: #ffffff;
  }

  #root {
    padding: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .video-card {
    margin-bottom: 1rem;
  }

  .card-footer-container {
    padding: 0.75rem 0;
  }
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.02);
}

.video-info-container p:first-child {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: #0f0f0f;
}
