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

:root {
  --red: #e50914;
  --red-dark: #b20710;
  --bg: #141414;
  --bg-2: #1f1f1f;
  --surface: rgba(26, 26, 26, 0.9);
  --text: #e5e5e5;
  --muted: #9d9d9d;
  --line: rgba(255, 255, 255, 0.12);
  --nav-h: 68px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 4%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.nav-logo {
  color: var(--red);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-size: 34px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.browse-page {
  width: min(1400px, 92vw);
  margin: 94px auto 46px;
}

.browse-header {
  margin-bottom: 22px;
}

.browse-kicker {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #c8c8c8;
  margin-bottom: 8px;
}

.browse-header h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
  line-height: 0.95;
  margin-bottom: 10px;
}

.browse-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.filters-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field span {
  font-size: 12px;
  color: var(--muted);
}

.filter-field input,
.filter-field select {
  width: 100%;
  background: var(--bg-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  height: 40px;
  padding: 0 11px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
}

.filters-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.btn-primary,
.btn-ghost {
  border-radius: 6px;
  padding: 10px 14px;
  border: 1px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: transparent;
  color: #d4dbe4;
  border-color: rgba(255, 255, 255, 0.2);
}

.results-head {
  margin-bottom: 12px;
}

#results-count {
  color: var(--muted);
  font-size: 14px;
}

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

.title-card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.title-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #2a2a2a, #151515);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-meta {
  padding: 9px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
}

.grid-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.empty-state {
  grid-column: 1 / -1;
  color: #c8c8c8;
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .filter-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .browse-page {
    width: min(1400px, 95vw);
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .titles-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}
