* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f0f;
  color: #fff;
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}

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

.nav {
  margin-left: 20px;
}

.nav a {
  color: #aaa;
  text-decoration: none;
  margin-right: 16px;
}

.search-wrap {
  flex: 1;
  text-align: center;
}

.search-wrap input {
  width: 50%;
  max-width: 420px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
}

.admin-link a {
  color: #aaa;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  background: #000;
  background-size: cover;
  background-position: center;
  margin-top: 64px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f0f0f 10%, rgba(0,0,0,0.3));
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  max-width: 40%;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 10px;
}

/* Rows */
.content {
  padding: 40px;
  margin-top: 64px;
}

.row {
  margin-bottom: 40px;
}

.row h2 {
  margin: 0 0 12px;
}

.slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.slider::-webkit-scrollbar {
  display: none;
}

.poster {
  min-width: 160px;
  height: 240px;
  background: #222;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.poster:hover {
  transform: scale(1.08);
}

/* Browse */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.filters select {
  padding: 8px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #aaa;
}
