/* Reset i osnova */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Poppins', sans-serif;
}
body { background: var(--bg-900); /* very light puder roze */
  color: var(--text-main); /* tamnija puder roze */
  line-height: 1.6;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden; /* da ne pravi horizontalni scroll zbog 100vw */
}
/* MAIN content */
main {
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1; /* Ovo će gurati footer na dno kad sadržaj nije dovoljno visok */
}

.video-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

@media (max-width: 1280px) {
  .video-container {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .video-container {
    padding: 2rem 1rem;
  }
}

main h2 { text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #6a4150;
  text-align: center;
  letter-spacing: 0.02em;
}

h2 { text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-family: 'Playfair Display', serif;
  text-align: center;
  margin-bottom: 2rem;
  color: #6a4150;
}

.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  align-items: stretch;
}

.video-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(144, 89, 103, 0.15);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(144, 89, 103, 0.25);
}

.thumbnail-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.thumbnail-wrapper img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.video-card h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--text-main);
}

.video-card p {
  font-size: 0.95rem;
  color: #7a4355;
  margin: 0.5rem 0 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #7a4355;
}

.btn-link {
  display: inline-block;
  background-color: #f7d5db;
  color: #8e5061;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 10px rgba(142, 80, 97, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn-link:hover {
  background-color: #a75e6b;
  color: white;
  box-shadow: 0 10px 18px rgba(167, 94, 107, 0.5);
  transform: translateY(-2px);
}

/* --- Postojeći CSS koji si dao ostaje isti --- */

/* --- RESPONSIVE za mobilne uređaje --- */
@media (max-width: 768px) {
  main {
    margin: 2rem 1rem 4rem;
    padding: 0 1rem;
  }

  .videos-list {
    grid-template-columns: 1fr; /* jedna kolona za manje ekrane */
    gap: 1.2rem;
  }

  .video-card { border-radius: 24px; border: 1px solid var(--border); background: var(--card);
    padding: 0.8rem;
  }

  .video-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
  }

  .video-card p {
    font-size: 0.9rem;
    margin: 0.4rem 0 0.8rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .price {
    font-size: 1rem;
  }

  .btn-link {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}
