* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #0f0f0f;
  color: #fff;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #181818;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  img {
    height: 2em;
  }
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  color: #ccc;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
  background: #272727;
  color: #fff;
}

/* Main */
.main {
  flex: 1;
  padding: 20px 30px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.search-bar {
  display: flex;
  gap: 8px;
  width: 50%;
}

.input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 20px;
  border: 1px solid #333;
  background: #121212;
  color: #fff;
}

.button {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: #ff0000;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.search-bar button:hover {
  background: #e00000;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.video-card {
  background: #181818;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 355px;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.thumbnail {
  position: relative;
  background: #333;
  height: 200px;

  img {
    height: 200px;
  }
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.video-info {
  padding: 10px 12px 12px;
}

.video-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.video-meta {
  font-size: 0.8rem;
  color: #aaa;
}
