/* Detay Sayfası İyileştirmeleri */
.details-container {
    padding: 20px;
    background: var(--surface-light);
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.desc-container {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.desc-container.expanded {
    max-height: 1000px;
}

.desc-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--surface-light));
    pointer-events: none;
    transition: opacity 0.3s;
}

.desc-container.expanded .desc-gradient {
    opacity: 0;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Oyuncu Grid'i */
.cast-section {
    margin-top: 30px;
}

.cast-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.cast-card {
    text-align: center;
}

.cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}

.cast-name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cast-character {
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kategori Badge'leri */
.genre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.genre-badge {
    background: rgba(229, 9, 20, 0.15);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Metadatalar */
.meta-info {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 13px;
    color: var(--text-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Play Button Stili */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Fragman Modal */
.trailer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.trailer-modal-overlay.active {
    display: flex;
}

.trailer-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.trailer-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trailer-close-btn:hover {
    background: var(--primary);
}

.trailer-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.trailer-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* === ÖZEL ANA SAYFA BÖLÜMLERİ === */

/* 1. EDITÖRÜN SEÇİMİ - Şık Kart Tasarımı */
.editors-pick-row {
    margin: 30px 0 40px;
    padding: 0 20px;
}

.editors-pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.editors-pick-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    position: relative;
    display: inline-block;
}

.editors-pick-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e50914, #f5c518);
    border-radius: 3px;
}

.editors-pick-badge {
    background: rgba(229, 9, 20, 0.15);
    color: #e50914;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.editors-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.editors-pick-card {
    background: #0f0f0f;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 280px;
}

.editors-pick-card:hover {
    transform: translateY(-10px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.15);
}

.editors-pick-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: saturate(1.2) contrast(1.1);
}

.editors-pick-content {
    padding: 15px;
    position: relative;
}

.editors-pick-name {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-pick-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #aaa;
    font-weight: 700;
}

.editors-pick-rating {
    color: #f5c518;
    display: flex;
    align-items: center;
    gap: 3px;
}

.editors-pick-editor-note {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* 2. ÖNERİLEN DİZİLER - Yatay Scroll Galeri */
.recommended-shows-row {
    margin: 40px 0 50px;
    padding: 0 20px;
}

.recommended-shows-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-shows-title:before {
    content: '🎬';
    font-size: 24px;
}

.recommended-shows-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 25px;
    scrollbar-width: thin;
    scrollbar-color: #e50914 #222;
}

.recommended-shows-scroll::-webkit-scrollbar {
    height: 6px;
}

.recommended-shows-scroll::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

.recommended-shows-scroll::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 10px;
}

.recommended-show-card {
    flex: 0 0 auto;
    width: 140px;
    background: linear-gradient(145deg, #1a1a1a, #111);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.recommended-show-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(229, 9, 20, 0.2);
}

.recommended-show-bg {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recommended-show-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.recommended-show-info {
    padding: 15px;
    position: relative;
    z-index: 2;
}

.recommended-show-name {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-show-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommended-show-rating {
    color: #f5c518;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 3px;
}

.recommended-show-year {
    font-size: 11px;
    color: #aaa;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 10px;
}

/* 3. ÖNERİLEN FİLMLER - Mosaic Grid Tasarımı */
.recommended-movies-row {
    margin: 40px 0 60px;
    padding: 0 20px;
}

.recommended-movies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.recommended-movies-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    position: relative;
}

.recommended-movies-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e50914, transparent);
}

.recommended-movies-view-all {
    font-size: 12px;
    font-weight: 900;
    color: #e50914;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recommended-movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .recommended-movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recommended-movie-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #151515;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommended-movie-item:hover {
    transform: scale(1.03);
    z-index: 2;
}

.recommended-movie-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recommended-movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.recommended-movie-genre {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommended-movie-name {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
}

.recommended-movie-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
}

.recommended-movie-rating {
    color: #f5c518;
    font-weight: 900;
}

/* Boş Durum Stilleri */
.empty-section {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
    font-weight: 600;
}

/* === POPÜLER BÖLÜM STİLLERİ === */

/* Popüler Scroll Container */
.popular-scroll-container {
    position: relative;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

.popular-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Popüler Kartlar */
.popular-card {
    transition: all 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-5px);
}

.popular-card:hover .popular-card-image {
    border-width: 3px;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.2);
}

.popular-card:hover .popular-card-rank {
    transform: scale(1.1);
}

/* Popüler Filmler için özel hover */
.popular-card:hover .popular-card-image {
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.2);
}

/* Popüler Diziler için özel hover */
.popular-section:nth-of-type(6) .popular-card:hover .popular-card-image {
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
}

/* === YAKINDA BÖLÜMÜ === */
.upcoming-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.15);
}

.upcoming-card:hover .upcoming-date {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

/* === SCROLLBAR DÜZENLEMELERİ === */
.recommended-shows-scroll,
.popular-scroll {
    scroll-behavior: smooth;
}

/* Scrollbar için gradient border */
.popular-scroll-container:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 20px;
    width: 30px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
}

/* === RESPONSIVE AYARLAR === */
@media (max-width: 480px) {
    .popular-card {
        width: 110px !important;
    }
    
    .popular-card-image {
        width: 110px !important;
        height: 165px !important;
    }
    
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .popular-card-rank {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }
}

@media (min-width: 768px) {
    .popular-scroll-container {
        padding-left: 40px !important;
    }
    
    .popular-card {
        width: 140px !important;
    }
    
    .popular-card-image {
        width: 140px !important;
        height: 210px !important;
    }
    
    .upcoming-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* === ANİMASYONLAR === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popular-section,
.upcoming-section {
    animation: slideInUp 0.6s ease-out;
}

/* Gecikmeli animasyonlar */
.popular-section:nth-of-type(5) { animation-delay: 0.1s; }
.popular-section:nth-of-type(6) { animation-delay: 0.2s; }
.upcoming-section { animation-delay: 0.3s; }



/* Akıllı Kart Tasarımı */
.special-card {
    position: relative !important;
    flex: 0 0 auto;
    width: 145px;
    height: 215px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    overflow: hidden !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Sağ Üst Rating Badge */
.special-rating {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
    color: #f5c518 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    z-index: 10 !important;
    border: 1px solid rgba(255,255,255,0.1);
}
/* Sol Üst Uyum Yüzdesi */
.match-badge {
    position: absolute !important;
    top: 12px !important;
    left: 10px !important;
    color: var(--primary) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    z-index: 9 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Alt Karartma ve Yazı Alanı */
.special-card-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 55% !important;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, transparent 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 12px !important;
    z-index: 5 !important;
}

.special-name {
    color: white !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Yatay Kaydırma Listesi */
.movie-list.personalized-list {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 20px 25px;
    scrollbar-width: none;
}

.movie-list.personalized-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Algoritma Badge Animasyonu */
.row-title span {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Sol Üst Tür Rozeti */
.type-badge-left {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
    z-index: 10 !important;
    color: white !important;
    backdrop-filter: blur(4px);
}
.type-badge-left.tv { background: rgba(0, 210, 255, 0.8) !important; }
.type-badge-left.movie { background: rgba(229, 9, 20, 0.8) !important; }

/* İzleme/Favori Durum İşaretçileri */
.user-badge-fav, .user-badge-watched {
    position: absolute !important;
    top: 35px !important; /* Tür rozetinin hemen altına */
    left: 8px !important;
    font-size: 10px !important;
    z-index: 10 !important;
}


.match-text-inner {
    color: var(--primary) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    margin-bottom: 3px !important;
    text-shadow: 0 0 10px rgba(229,9,20,0.3);
}


/* Oyuncu sınırlama stili */
.cast-grid-wrapper {
    position: relative;
    max-height: 180px; /* İlk satırın yüksekliği (kart boyunuza göre ayarlayın) */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.cast-grid-wrapper.expanded {
    max-height: 2000px; /* Açıldığında alacağı max değer */
}

.cast-grid-wrapper:not(.expanded) .cast-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, #0f0f0f, transparent);
    pointer-events: none;
}

.cast-grid-wrapper.expanded .cast-gradient {
    display: none;
}



/* Slider kontrolleri */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(229, 9, 20, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobil için daha küçük kontroller */
@media (max-width: 768px) {
    .slider-prev, .slider-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
}

/* Dokunma dostu slider */
.hero-slider {
    overflow: hidden;
    position: relative;
    user-select: none;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Slider noktaları */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}