*{box-sizing:border-box;margin:0;padding:0;}
body {
  font-family:'Inter',system-ui,sans-serif;
  background: linear-gradient(135deg,#1b0000,#330033);
  color:#fff;
  padding:36px;
  min-height:100vh;
}

header {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  margin-bottom:32px;
}

.logo h1 {
  font-size:28px;
  font-weight:700;
  background: linear-gradient(90deg,#ff66aa,#ff1493);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255,102,170,0.6);
}

.top-nav a, #logoutBtn {
  color:#fff;
  text-decoration:none;
  font-weight:600;
  margin-left:16px;
  padding:8px 14px;
  border-radius:8px;
  transition:0.3s;
}

#logoutBtn {
  background: linear-gradient(90deg,#ff1493,#ff66aa);
  border:none;
  cursor:pointer;
  box-shadow:0 4px 15px rgba(255,20,147,0.4);
}

#logoutBtn:hover {
  background: linear-gradient(90deg,#ff66aa,#ff1493);
  box-shadow:0 6px 20px rgba(255,20,147,0.6);
}

.controls { margin-top:16px; }

.search {
  display:flex;
  align-items:center;
  background: rgba(255,255,255,0.05);
  border-radius:12px;
  padding:8px 12px;
  min-width:300px;
}

.search input {
  flex:1;
  border:none;
  background:transparent;
  color:#fff;
  margin-left:8px;
  outline:none;
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.card {
  background: rgba(139,0,0,0.3);
  border-radius:16px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(255,20,147,0.5);
}

.poster-wrap {
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:16px;
}

.poster-wrap img {
  width:100%;
  display:block;
  border-radius:16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .poster-wrap img {
  transform: scale(1.05);
  filter: brightness(1.1) blur(2px); /* Hover sırasında hafif blur */
}
.meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  color: #fff;
  padding: 12px 16px;
  max-height: 100%;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0 0 16px 16px;
}

.card:hover .meta {
  opacity: 1;
}

.meta h3 {
  margin-bottom:4px;
  font-size:16px;
  color:#ffc0e0;
}

.meta p {
  font-size:13px;
  line-height:1.4;
  color:#f0c0d0;
}

.favBtn {
  position:absolute;
  top:12px;
  right:12px;
  background: linear-gradient(90deg,#ff1493,#ff66aa);
  border:none;
  padding:6px 12px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  color:#fff;
  transition:0.3s;
  box-shadow:0 0 8px rgba(255,20,147,0.7);
}

.favBtn:hover {
  transform: scale(1.1);
  box-shadow:0 0 20px rgba(255,20,147,1);
}

.rating {
  margin-top:8px;
  font-weight:700;
  color: gold;
  text-align:center;
}

.empty {
  text-align:center;
  padding:40px;
  color: rgba(255,102,170,0.5);
}

@media(max-width:900px){ 
  .grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));} 
}
@media(max-width:600px){
  header{flex-direction:column;align-items:flex-start;gap:16px;}
  .controls{width:100%;}
}
