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

body {
  font-family: 'Inter', sans-serif;
  background: #0b0b0b;
  color: #fff;
}

.top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
}

.top h1 {
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.tab:hover {
  background: #1a1a1a;
  color: #fff;
}

.tab.active {
  background: #fff;
  color: #000;
  font-weight: 600;
}

#search {
  flex: 1;
  max-width: 420px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: #1a1a1a;
  color: #fff;
  font-size: .85rem;
}

#search::placeholder {
  color: #888;
}

.hero {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0b0b0b 20%,
    rgba(0,0,0,.55),
    transparent
  );
}

.hero-content {
  position: absolute;
  bottom: 36px;
  left: 32px;
  z-index: 2;
}

.hero h2 {
  font-size: 2.1rem;
  font-weight: 700;
  max-width: 520px;
}

.hero button {
  margin-top: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.hero button:hover {
  transform: scale(1.05);
  opacity: .9;
}

section.category {
  padding: 26px 32px;
}

.category h3 {
  margin-bottom: 14px;
  font-size: .9rem;
  font-weight: 600;
  color: #ddd;
}

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

.card {
  background: #151515;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.card .info {
  padding: 8px 10px;
}

.card h4 {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  color: #eee;
}

.card .fav {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .95rem;
  opacity: .85;
  cursor: pointer;
}

@media (max-width: 768px) {
  .top {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 12px;
  }

  .tabs {
    order: 3;
    width: 100%;
  }

  #search {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .hero {
    height: 300px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  section.category {
    padding: 20px;
  }

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

.card .fav {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card .fav.anim {
  transform: scale(1.4);
  opacity: 1;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 64px;
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;

  display: flex;
  justify-content: space-around;
  align-items: center;

  z-index: 1000;
}

.bottom-nav .tab {
  background: none;
  border: none;
  color: #888;
  font-size: .75rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  cursor: pointer;
}

.bottom-nav .tab.active {
  color: #fff;
}

.bottom-nav .tab span {
  font-size: .7rem;
}

/* espaço para não esconder conteúdo */
main {
  padding-bottom: 90px;
}