:root {
  --bg: #0f0f0f;
  --panel: #181818;
  --text: #f1f1f1;
  --subtext: #aaaaaa;
  --accent: #ff3d3d;
}

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

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 220px;
  background: var(--panel);
  padding: 16px;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 24px;
  color: var(--accent);
}

.menu a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}

.menu a:hover {
  background: #2a2a2a;
}

/* ===== Main ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  padding: 12px 20px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
}

header input {
  flex: 1;
  background: #121212;
  border: 1px solid #333;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 20px;
}

/* ===== Video Grid ===== */
.content {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 0.9rem;
}

.info {
  padding: 12px;
}

.title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.meta {
  font-size: 0.8rem;
  color: var(--subtext);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
}
