.film-section {
  padding: 24px 24px 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: #e8692a;
  border-radius: 2px;
}

.section-header a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.section-header a:hover {
  color: #e8692a;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.film-card {
  position: relative;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.film-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.film-card:hover .film-poster {
  border-color: rgba(232,105,42,0.5);
}

.film-card:hover .film-title {
  color: #e8692a;
}

.film-poster {
  position: relative;
  padding-top: 150%;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(160deg, #1e2a3a, #0d1520);
  margin-bottom: 6px;
  overflow: hidden;
}

.watchlist-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s, background 0.18s;
  z-index: 5;
  backdrop-filter: blur(4px);
}

body.watchlist-active .film-card:hover .watchlist-btn {
  opacity: 1;
}

body.watchlist-active .watchlist-btn.saved {
  opacity: 1;
  background: #e8692a;
  font-size: 14px;
}

body.watchlist-active .watchlist-btn.saved:hover {
  background: #c9501a;
  font-size: 0;
}

body.watchlist-active .watchlist-btn.saved:hover::after {
  content: '−';
  font-size: 20px;
}

.film-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.badge-novo {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 700;
  background: #e8692a;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-popularno {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 700;
  background: #8b5cf6;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-rating {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: #f5c518;
  font-weight: 600;
}

.film-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  display: block;
  width: 100%;
}

@media (max-width: 1100px) {
  .film-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .film-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .film-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}