/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #212121;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #ddd;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-menu {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.logo img {
  height: 24px;
}

.search-form {
  flex: 1;
  max-width: 600px;
  display: flex;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden;
}

.search-form input[type="search"] {
  flex-grow: 1;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
}

.search-form input[type="search"]:focus {
  outline: none;
}

.search-form button {
  background: #f8f8f8;
  border: none;
  padding: 0 12px;
  font-size: 16px;
  cursor: pointer;
}

.header-icons {
  display: flex;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  padding: 6px;
}

.profile-btn img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

/* Layout geral */
.container {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar lateral */
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid #ddd;
  padding-top: 24px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
}

.sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 8px 24px;
  color: #212121;
  border-radius: 24px;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar nav ul li a:hover {
  background-color: #f2f2f2;
  color: #ff0000; /* cor do destaque */
}

.icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* Grid de vídeos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Card de vídeo */
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.video-card:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

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

.video-info {
  display: flex;
  gap: 12px;
  padding: 12px 12px 16px;
  align-items: flex-start;
}

.channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #000;
}

.video-title a {
  text-decoration: none;
  color: inherit;
}

.video-subinfo {
  font-size: 0.85rem;
  color: #606060;
}

/* Responsividade básica */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
  }
  .main-content {
    padding: 16px 12px;
  }
}