:root {
    --bg: #050505;
    --surface: #121212;
    --surface-light: #1e1e1e;
    --primary: #e50914;
    --accent: #0071eb;
    --text: #ffffff;
    --text-dim: #b3b3b3;
    --premium: #f5c518;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

body { background-color: var(--bg); color: var(--text); overflow-x: hidden; }

/* Header Güncellemesi */
/* Netflix Tarzı Minimalist Header - Sade ve Şık */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    border-bottom: 1px solid rgba(229, 9, 20, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Scroll'da header küçülür */
.main-header.scrolled {
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(229, 9, 20, 0.25);
}

/* Netflix Tarzı Minimalist Logo */
.logo {
    font-size: 32px;
    font-weight: 900;
    color: #e50914;
    letter-spacing: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    text-transform: uppercase;
}

/* Logo hover efekti - çok sade */
.logo:hover {
    transform: scale(1.03);
    color: #ff0a16; /* Biraz daha açık kırmızı */
}

/* Logo altındaki minimalist çizgi */
.logo::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 1px;
    background: #e50914;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.logo:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Logo ilk harf efekti - Netflix N efekti gibi */
.logo span:first-child {
    display: inline-block;
    transform: scale(1, 1.1); /* Hafif uzun harf */
    color: #e50914;
}

/* Scroll'da header gizlenme efekti */
.main-header.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.main-header.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .main-header {
        height: 60px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .logo {
        font-size: 26px;
    }
    
    .logo::after {
        bottom: -5px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .main-header {
        height: 55px;
    }
}

/* Logo için sade fade-in animasyonu */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    animation: logoFadeIn 0.6s ease-out 0.3s both;
}

/* Header giriş animasyonu */
@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-header {
    animation: headerSlideIn 0.5s ease-out;
}
/* Favori Butonu Stili */
.btn-fav {
    background: #ffffff !important;
    color: #000000 !important;
    margin-top: 10px;
    grid-column: span 2;
}
.btn-fav.active {
    background: var(--premium) !important;
    color: black !important;
}

/* Profil Aktivite Kartı */
.activity-card {
    background: var(--surface-light);
    margin: 10px 20px;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary);
}

.app-container { max-width: 500px; margin: 60px auto 0; min-height: 100vh; padding-bottom: 100px; }

/* Pages */
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Hero */
.hero { height: 400px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background-size: cover; background-position: center; border-radius: 0 0 30px 30px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 70%); border-radius: 0 0 30px 30px; }

/* Rows */
.row { padding: 25px 0 10px 20px; }
.row-title { font-size: 20px; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.5px; }
.movie-list { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 10px; }
.movie-list::-webkit-scrollbar { display: none; }
.movie-card { min-width: 140px; height: 210px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.movie-card:active { transform: scale(0.95); }

/* Search Bar */
.search-container { padding: 20px; }
.search-bar {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #333;
    background: var(--surface);
    color: white;
    font-size: 16px;
    outline: none;
}

/* Filtreleme Paneli İçindeki Giriş Alanları İçin Özel Ayar */
#advanced-filters .search-bar {
    padding: 0 12px !important; /* Üst ve alt padding'i sıfırladık, sadece yanlara boşluk verdik */
    height: 45px !important;    /* Yüksekliği kutu boyutuna göre sabitledik */
    line-height: 45px !important; /* Metni dikeyde ortalamak için yükseklik ile aynı yaptık */
    font-size: 13px !important;
}

/* Select kutularındaki ok simgesinin hizalaması için */
#advanced-filters select.search-bar {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Library Tabs */
/* Library Tabs (Tüm Butonları Sığdırmak İçin Güncellendi) */
.tabs {
    display: flex;
    justify-content: center; /* Butonları ortala */
    gap: 8px; /* Butonlar arası boşluğu biraz azalt */
    padding: 20px 10px; /* Kenar boşluklarını daralt */
    overflow-x: auto; /* Çok gerekirse kaydırmayı yine de aktif tut */
}

.tabs::-webkit-scrollbar {
    display: none; /* Kaydırma çubuğunu gizle */
}

.tab {
    flex-grow: 1; /* Boş alanı eşit olarak doldurmalarını sağla */
    flex-shrink: 1; /* Gerekirse küçülmelerine izin ver */
    text-align: center; /* İçindeki metni ortala */
    padding: 10px 5px; /* İç boşluğu azalt, özellikle yanlardan */
    background: var(--surface);
    border-radius: 50px;
    font-size: 12px; /* Yazı boyutunu biraz küçült */
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap; /* Metnin alt satıra kaymasını engelle */
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    background: var(--primary);
    color: white;
    flex-grow: 1.2; /* Aktif olanı biraz daha geniş yap (isteğe bağlı) */
}


.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px; }
.grid-card { height: 250px; border-radius: 15px; background-size: cover; background-position: center; position: relative; }

/* Profile Dashboard */
.profile-hero { padding: 50px 20px; text-align: center; background: linear-gradient(to bottom, var(--surface), var(--bg)); border-radius: 0 0 40px 40px; }
.avatar-wrap { position: relative; display: inline-block; margin-bottom: 20px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--primary); padding: 5px; background: var(--bg); }
.level-badge { position: absolute; bottom: 5px; right: 5px; background: var(--primary); color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 900; border: 3px solid var(--bg); }

.stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; margin-top: -30px; }
.stat-card { background: var(--surface-light); padding: 25px; border-radius: 24px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.stat-value { font-size: 24px; font-weight: 900; display: block; margin-bottom: 5px; }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(10px); }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--surface); width: 100%; max-width: 450px; border-radius: 30px; overflow: hidden; position: relative; animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { transform: scale(0.9) translateY(30px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* style.css içinde close-btn stilini bununla tamamen değiştir */
.close-btn {
    position: fixed; /* Modal'a değil, ekrana göre sabitliyoruz */
    top: 20px;
    right: 20px;
    width: 44px; /* Mobil uyumlu dokunma alanı (Touch target) */
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 10005; /* Her şeyin ama her şeyin üzerinde */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg); /* Havalı bir dönme efekti */
}

/* Iframe'in butonun arkasında kalması için sarmalayıcıya kural ekle */
.modal-content {
    position: relative; /* Butonun buna göre konumlanması için şart */
    overflow: hidden;
}

/* Nav */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: rgba(10, 10, 10, 0.85); /* Tasarımdaki şeffaflık korunarak biraz koyulaştırıldı */
    backdrop-filter: blur(25px); 
    display: flex; 
    justify-content: space-around; 
    padding: 15px 0 25px 0; /* Alt boşluk mobil cihazlar için optimize edildi */
    border-radius: 25px 25px 0 0; /* Sadece üst köşeler yuvarlatılarak estetik korundu */
    border-top: 1px solid rgba(255,255,255,0.08); 
    z-index: 2000; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6); 
    transform: none; /* Merkeze alma iptal edildi, tam genişlik sağlandı */
}

.nav-item { 
    color: var(--text-dim); 
    font-size: 24px; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-decoration: none; /* Alt çizgileri tamamen kaldırır */
    outline: none; /* Tıklandığındaki mavi çerçeveyi kaldırır */
    -webkit-tap-highlight-color: transparent; /* Mobil tıklama gölgesini kaldırır */
}

.nav-item.active { 
    color: var(--primary); 
    transform: none; /* Yukarı kayma efekti iptal edildi */
    text-decoration: none; 
}

/* Tıklama anındaki (active state) efektleri de temizleyelim */
.nav-item:active, .nav-item:focus {
    transform: none;
    outline: none;
    text-decoration: none;
}
/* Toast */
#toast-container { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 80%; }
.toast { background: white; color: black; padding: 16px 24px; border-radius: 50px; font-weight: 800; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.5); animation: toastIn 0.4s forwards; }
@keyframes toastIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Auth */
.auth-page { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(to bottom, rgba(0,0,0,0.8), var(--bg)), url('https://assets.nflxext.com/ffe/siteui/vlv3/f841d4c7-10e1-40af-bca1-0748f3dc56b9/2c239485-684f-453f-921d-de30bad29139/TR-tr-20220502-popsignuptwoweeks-perspective_alpha_website_small.jpg') center/cover; }
.auth-card { width: 100%; background: rgba(0,0,0,0.9); padding: 40px 30px; border-radius: 20px; border: 1px solid #333; }
.auth-card input { width: 100%; padding: 16px; margin-bottom: 16px; border-radius: 8px; border: 1px solid #444; background: #111; color: white; font-size: 16px; }
.btn-auth {
  width: 100%;
  padding: 1px; /* padding'i 1px yaptık */
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
  
  /* Yüksekliği artırmak için: */
  height: 40px; /* İstediğiniz yüksekliğe göre değiştirin */
  /* Veya line-height kullanarak: */
  line-height: 38px; /* padding + line-height hesabı */
}

.btn-fav.is-favorite {
    background: var(--premium) !important; /* Altın sarısı/Premium rengi */
    color: black !important;
}


/* Modern Slider Tasarımı */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    position: relative;
}

/* Alt Karartma ve Cam Efekti */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 5%, transparent 50%, rgba(0,0,0,0.4));
}

/* style.css içindeki slide-content bölümünü tamamen bununla değiştir */

/* style.css içindeki slide-content bölümünü bu değerlerle güncelle */

.slide-content {
    position: absolute;
    bottom: 65px; /* Alt navigasyona yakın ama ferah */
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 25px;
    z-index: 10;
}

.slide-badge {
    background: rgba(229, 9, 20, 0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(8px);
    display: inline-block;
    margin-bottom: 10px; /* İdeal yakınlık */
}

.hero-slide h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
    max-width: 85%;
}

/* Dots (Noktalar) tam ortada olsun */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 20px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 35px;
}


/* Detay Sayfası Temel Yapısı */
.details-page {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 11000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: pageSlideIn 0.3s ease-out;
}

.details-page.active { display: block; }

@keyframes pageSlideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.details-hero {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.details-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 10%, transparent 90%),
                linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 40%);
}

.back-btn {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 12000;
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

/* Sezon Kartları */
.season-row {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.season-row:hover { background: rgba(255,255,255,0.06); }

/* --- Fragman Oynatma Butonu (Glassmorphism) --- */
.play-trailer-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.85); /* Netflix Kırmızısı */
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-trailer-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #e50914;
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.4);
}

.play-trailer-overlay i {
    font-size: 20px;
}

/* --- Detay Sayfası İyileştirmeleri --- */
.details-body {
    position: relative;
    z-index: 5;
    background: var(--bg);
    margin-top: -20px; /* Hero görseliyle birleşme efekti */
    border-radius: 30px 30px 0 0;
    padding: 30px 25px 120px;
}

/* Sezon Takibi Alanını Özelleştirme */
.seasons-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 oranı */
    min-height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%) scale(1.4); /* Kenar boşluklarını gizlemek için zoom */
    pointer-events: none; /* Yanlışlıkla youtube'a tıklamayı engeller */
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, var(--bg) 15%, transparent 60%);
}

/* Mobilde videonun üzerine tıklandığında sesi açmak istersen (isteğe bağlı) */
.details-hero::before {
    content: '\f6a9'; /* FontAwesome Hoparlör İkonu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 60px;
    right: 20px;
    z-index: 10;
    opacity: 0.5;
    font-size: 14px;
}

.season-row {
    background: var(--surface-light);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.2s ease;
}

.season-row:active {
    transform: scale(0.97);
}

/* Modal (Iframe) Konteyneri */
#modal .modal-content {
    width: 95%;
    max-width: 900px;
    aspect-ratio: 16 / 9; /* Video oranını korur */
    background: #000;
    border-radius: 15px;
    border: 1px solid #333;
}


/* Detay sayfası üst afiş alanı */
.details-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 oranı */
    height: 0;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Fragman başlığını daha belirgin yapalım */
.trailer-section h3 {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.profile-banner {
    height: 280px;
    width: 100%;
    position: relative;
    overflow: hidden; /* Blur'un dışarı taşmasını engeller */
    background: var(--bg);
}

.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6); /* Bulanıklık ve biraz karartma */
    transform: scale(1.1); /* Blur kenarlarındaki beyazlığı gizlemek için hafif zoom */
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 10%, transparent 90%);
    z-index: 2;
}
.xp-progress-container {
    padding: 0 20px;
    margin-top: -20px;
    position: relative;
    z-index: 5;
}
.xp-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.xp-bar-fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 1s ease-out;
}

.library-section-title {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.library-section-title i {
    font-size: 14px;
    opacity: 0.8;
}

.empty-state {
    grid-column: span 2;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 14px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    margin: 10px 20px;
}
/* Filtreleme Chip'lerini ortala */
.filter-chip {
    padding: 8px 18px;
    background: var(--surface);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dim);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}


.filter-chip.active {
    background: var(--primary);
    color: white;
}
/* Puanlama Noktaları */
.rating-dot {
    width: 38px;
    height: 38px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #333;
}
.rating-dot:hover {
    background: var(--primary);
    transform: scale(1.15);
    border-color: #fff;
}

/* Puanlama Kartı Özel Tasarımı */
.rating-card {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 40px 20px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: ratingPop 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

.stars-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.rating-star {
    font-size: 42px; /* Yıldızlar artık daha büyük */
    color: #222;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

@keyframes ratingPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Top 10 Satırı Genel Konteyner */
.top-list-wrapper {
    display: flex;
    gap: 15px;
    padding: 10px 20px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.top-list-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Kart Konteyneri */
.top-item-container {
    position: relative;
    min-width: 130px; /* Mobil için ideal genişlik */
    aspect-ratio: 2/3;
    scroll-snap-align: start;
}

/* Sayı Rozeti (Rank Badge) */
.top-rank-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--primary); /* Temanızdaki ana kırmızı/renk */
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid var(--surface); /* Arka plan rengiyle kontrast için */
}

/* Kartın Kendisi */
.top-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Kart Üzerindeki Hafif Karartma (Görseli daha derin gösterir) */
.top-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
}

/* Tıklama Efekti */
.top-item-container:active .top-card {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.lazy-bg {
    background-color: #1a1a1a;
    transition: opacity 0.4s ease-in;
    opacity: 0;
}
.lazy-bg.loaded {
    opacity: 1;
}

/* Yükleme Ekranı Stili */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    display: none; /* Varsayılan kapalı */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(229, 9, 20, 0.1);
    border-left-color: #e50914; /* Senin ana rengin */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.type-badge-left.tv { background: rgba(0, 210, 255, 0.8) !important; } /* Mavi - Dizi */
.type-badge-left.movie { background: rgba(229, 9, 20, 0.8) !important; } /* Kırmızı - Film */


/* =================================== */
/* MODERN SAYFALAMA TASARIMI (PAGINATION) */
/* =================================== */

/* Sayfalama ana konteyneri */
#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 40px; /* Alt boşluğu artırdık */
    gap: 12px;
    user-select: none; /* Metin seçilmesini engeller */
}

/* "Önceki" ve "Sonraki" butonları */
#pagination-controls button {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Tamamen yuvarlak kenarlar */
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* Mobil tıklama efektini kaldırır */
}

/* Butonların hover (üzerine gelme) durumu */
#pagination-controls button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Butonların disabled (pasif) durumu */
#pagination-controls button:disabled {
    background: var(--surface);
    color: var(--text-dim);
    opacity: 0.5;
    cursor: not-allowed;
    border-color: transparent;
}

/* Sayfa numarası göstergesi (Örn: 2 / 10) */
#pagination-controls .page-info {
    background: var(--surface);
    color: var(--text-dim);
    font-weight: 800;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 12px;
    min-width: 80px; /* Genişliğin sabit kalmasını sağlar */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Koleksiyon İsmi Tam Görünüm Ayarı */
.col-item-name {
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    width: 80px; /* Genişliği artırdık */
    white-space: normal; /* Alt satıra geçebilsin */
    line-height: 1.1;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Başarım Popup ve Hediye Kutusu Stilleri */
@keyframes gift-bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes gift-shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0); }
    25% { transform: translate(-50%, -50%) rotate(-10deg); }
    75% { transform: translate(-50%, -50%) rotate(10deg); }
}

@keyframes badge-reveal {
    0% { transform: scale(0) rotate(-720deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.achievement-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}

.gift-box-container {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 80px; cursor: pointer;
    animation: gift-bounce 1s infinite, gift-shake 0.5s infinite;
}

.badge-reward-card {
    text-align: center; animation: badge-reveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confetti {
    position: absolute; width: 10px; height: 10px; background: var(--primary);
    border-radius: 50%; animation: confetti-fall 2s linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

/* Bölüm Listesi Genel Alanı */
.episodes-load-area {
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bölümlerin Dizildiği Izgara */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
    padding: 15px !important;
    animation: slideInDown 0.4s ease-out;
}

/* Tekil Bölüm Kutusu */
.ep-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* Üzerine Gelince */
.ep-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Basınca Küçülme Efekti */
.ep-item:active {
    transform: scale(0.9);
}

/* İZLEDİM DURUMU (Kırmızı) */
.ep-item.ep-watched {
    background: var(--primary) !important; /* Senin ana kırmızın */
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); /* Kırmızı parlama efekti */
}

/* Açılma Animasyonu */
@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Sezon Oku Animasyonu */
.ep-arrow-transition {
    transition: transform 0.3s ease;
}




/* Meta bilgiler - YAN YANA */
.meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
}

.meta-item i {
    font-size: 12px;
    opacity: 0.8;
}

.meta-value {
    font-weight: 700;
    font-size: 13px;
}

.meta-label {
    font-size: 9px;
    opacity: 0.6;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* TMDB Puanı */
.meta-item:first-child i {
    color: #f5c518;
}

/* HBL Puanı - Netflix N stili */
.hbl-item {
    position: relative;
    padding: 6px 8px 6px 6px;
    min-width: 75px;
}

.hbl-item.hbl-rated {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.25);
    animation: hblGlow 2s infinite;
}

.hbl-item.hbl-unrated {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Netflix N efekti logo */
.hbl-logo {
    display: flex;
    gap: 2px;
    height: 14px;
    align-items: flex-end;
}

.hbl-bar {
    width: 4px;
    background: #e50914;
    border-radius: 1px;
    transform: skewX(-15deg);
}

.hbl-item.hbl-rated .hbl-bar {
    background: linear-gradient(180deg, #e50914 0%, #b20710 100%);
    box-shadow: 0 0 4px rgba(229, 9, 20, 0.5);
}

.hbl-item.hbl-unrated .hbl-bar {
    background: rgba(255, 255, 255, 0.2);
}

.hbl-bar:nth-child(1) {
    height: 100%;
}

.hbl-bar:nth-child(2) {
    height: 10px;
    background: #b20710;
}

.hbl-item.hbl-unrated .hbl-bar:nth-child(2) {
    background: rgba(255, 255, 255, 0.15);
}

.hbl-bar:nth-child(3) {
    height: 100%;
}

/* HBL değerleri */
.hbl-item .meta-value {
    font-weight: 800;
    font-size: 13px;
    margin-left: 4px;
}

.hbl-item.hbl-rated .meta-value {
    color: #fff;
    text-shadow: 0 0 6px rgba(229, 9, 20, 0.4);
}

.hbl-item.hbl-unrated .meta-value {
    color: rgba(255, 255, 255, 0.5);
}

.hbl-item .meta-label {
    color: var(--primary);
    font-weight: 800;
}

.hbl-item.hbl-unrated .meta-label {
    color: rgba(255, 255, 255, 0.4);
}

.hbl-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 8px;
    background: var(--primary);
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.hbl-item.hbl-unrated .hbl-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Diğer ikonlar */
.meta-item:nth-child(3) i { /* Takvim */
    color: #1db954;
}

.meta-item:nth-child(4) i { /* Saat */
    color: #0071ad;
}

.meta-item:nth-child(5) i { /* TV/Film */
    color: #9b59b6;
}

/* Animasyonlar */
@keyframes hblGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.1);
    }
    50% {
        box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    }
}

/* Puan güncellenince animasyon */
@keyframes scorePop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--primary);
    }
    100% {
        transform: scale(1);
        color: #fff;
    }
}

.hbl-updated {
    animation: scorePop 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .meta-info {
        gap: 8px;
    }
    
    .meta-item {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .meta-value {
        font-size: 12px;
    }
    
    .meta-label {
        font-size: 8px;
    }
    
    .hbl-logo {
        height: 12px;
    }
    
    .hbl-bar {
        width: 3px;
    }
}


/* HBL puanı güncelleme animasyonu */
.hbl-updated {
    animation: hblScoreUpdate 0.5s ease;
}

@keyframes hblScoreUpdate {
    0% {
        transform: scale(1);
        color: #fff;
    }
    50% {
        transform: scale(1.3);
        color: var(--primary);
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    }
    100% {
        transform: scale(1);
        color: #fff;
    }
}

/* TMDB ikonu */
.tmdb-icon {
    color: #f5c518;
}

/* Tür ikonları boyutları */
.fa-tv, .fa-film {
    font-size: 14px;
}