@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

:root {
    --primary: #E50914;
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }


/* Navbar */
.navbar { background: rgba(0,0,0,0.9); padding: 15px 0; position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); border-bottom: 1px solid #222; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; cursor: pointer; }
.logo span { color: var(--primary); }
.nav-btn { background: none; border: none; color: var(--text-dim); margin: 0 10px; cursor: pointer; font-size: 1rem; transition: 0.3s; }
.nav-btn.active, .nav-btn:hover { color: white; border-bottom: 2px solid var(--primary); }
.search-box { background: #222; padding: 8px 15px; border-radius: 20px; display: flex; align-items: center; }
.search-box input { background: none; border: none; color: white; outline: none; margin-left: 10px; width: 150px; }

/* Grid ve Main Cards */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin-top: 20px; }
.card { background: var(--card-bg); border-radius: 10px; overflow: hidden; cursor: pointer; transition: 0.3s; position: relative; border: 1px solid #333; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card-info { padding: 12px; }
.card-info h3 { font-size: 1rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.fav-btn.active { color: var(--primary); }


/* Detay Sayfası */
.back-btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin: 20px 0; font-weight: bold; }
/* Detay Konteynırı Düzenlemesi */
.detail-container { display: flex; gap: 40px; background: #141414; padding: 30px; border-radius: 15px; flex-wrap: wrap; align-items: flex-start; /* Resmin aşağı doğru uzamasını engeller */}
.detail-img { width: 350px; max-width: 100%; height: auto; border-radius: 10px; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,0.8); flex-shrink: 0; /}
.detail-info { flex: 1; min-width: 300px; }
.detail-info h2 { font-size: 2.5rem; margin-bottom: 10px; }
.badge { background: #333; padding: 5px 12px; border-radius: 5px; font-size: 0.8rem; margin-right: 10px; }

/* Yorumlar */
.section-title { margin: 40px 0 20px; border-left: 4px solid var(--primary); padding-left: 15px; font-size: 1.5rem; }
.comment-card { background: #1f1f1f; padding: 15px; border-radius: 8px; margin-bottom: 15px; border-left: 3px solid #444; }
.comment-card strong { color: var(--primary); display: block; margin-bottom: 5px; }
.comment-card span { color: #f1c40f; font-size: 0.9rem; }

/* Benzer içerikler ve Mobil uyum (responsive) ayarları */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.similar-item { cursor: pointer; transition: 0.3s; text-align: center; }
.similar-item:hover { color: var(--primary); }
.similar-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.similar-item h4 { font-size: 0.9rem; }

.modern-select { background: #222; color: white; border: 1px solid #444; padding: 10px; border-radius: 5px; margin-top: 20px; }

@media (max-width: 768px) {
    .detail-container { flex-direction: column; align-items: center; }
    .detail-img { width: 100%; max-width: 300px; }
}