body {
  background-color: #141414;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: center; /* Space-between yerine center */
  align-items: center;
  padding: 20px 40px;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
  flex-wrap: wrap;
}

/* Logo'yu sola sabitle (Desktop) */
.logo {
  position: absolute;
  left: 40px;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .logo {
    position: static; /* Mobilde akışa geri dönsün */
    margin-bottom: 10px;
  }

  .search-box {
    width: 100%;
    text-align: center; /* Kutuyu ortala */
  }

  .search-box input {
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* Yazıyı da ortala */
  }
}

.logo a {
  color: #e50914; /* Netflix kırmızısı */
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.search-box input {
  background: #333;
  border: 1px solid #444;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  width: 300px;
}

main {
  padding: 40px;
}

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

.video-card {
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s;
  background: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
}

.video-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.thumbnail {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255,255,255,0.8);
  display: none;
}

.video-card:hover .play-icon {
  display: block;
}

.info {
  padding: 15px;
}

.info h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.info p {
  color: #888;
  font-size: 12px;
  margin: 0;
}

/* Post Page */
.video-player-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-details {
  margin-top: 20px;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  color: #e50914;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 40px;
  color: #555;
}
