@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Bebas+Neue&display=swap');

        :root {
            --primary: #ff3e3e;
            --accent: #6366f1;
            --bg: #050505;
            --surface: #121212;
            --border: rgba(255, 255, 255, 0.08);
            --glass: rgba(20, 20, 20, 0.85);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
        body { background-color: var(--bg); color: white; overflow-x: hidden; scroll-behavior: smooth; }

        /* SCROLLBAR */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

        /* HEADER */
        header {
            position: fixed; top: 0; width: 100%; padding: 1.2rem 5%;
            display: flex; justify-content: space-between; align-items: center;
            z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
        }
        header.scrolled { 
            padding: 0.7rem 5%; 
            background: rgba(10, 10, 10, 0.8); 
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border); 
        }

        .logo { 
            font-size: 1.8rem; font-weight: 800; letter-spacing: -1.5px; 
            background: linear-gradient(135deg, #fff 30%, #6366f1 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
            cursor: pointer; z-index: 1100; transition: 0.3s;
        }
        .logo:hover { transform: scale(1.02); filter: brightness(1.2); }

        nav.desktop-nav { display: flex; gap: 35px; }
        nav.desktop-nav a { 
            position: relative; color: rgba(255,255,255,0.7); 
            text-decoration: none; font-weight: 500; transition: 0.3s; 
        }
        nav.desktop-nav a::after {
            content: ''; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px;
            background: var(--accent); transition: 0.3s; transform: translateX(-50%);
        }
        nav.desktop-nav a:hover { color: #fff; }
        nav.desktop-nav a:hover::after, nav.desktop-nav a.active::after { width: 100%; color: #fff; }
        nav.desktop-nav a.active { color: #fff; }

        .user-actions { display: flex; align-items: center; gap: 20px; }

        /* SEARCH BOX */
        .search-box {
            position: relative; display: flex; align-items: center;
            background: rgba(255,255,255,0.03); border: 1px solid var(--border);
            border-radius: 50px; padding: 8px 15px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
        }
        .search-box input {
            background: transparent; border: none; color: white; outline: none; width: 0; 
            transition: 0.4s; font-size: 0.9rem; opacity: 0; cursor: text;
        }
        .search-box.active { 
            width: 250px; background: rgba(255,255,255,0.08); 
            border-color: var(--accent);
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
        }
        .search-box.active input { width: 180px; opacity: 1; margin-left: 10px; }
        .search-box svg { width: 20px; height: 20px; fill: #bbb; flex-shrink: 0; pointer-events: none; }

        .btn-account {
            position: relative; overflow: hidden;
            background: linear-gradient(45deg, var(--accent), #8b5cf6);
            color: white; border: none; padding: 10px 22px; border-radius: 50px;
            font-weight: 600; cursor: pointer; transition: 0.3s;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        }
        .btn-account::before {
            content: ''; position: absolute; top: -50%; left: -100%; width: 50%; height: 200%;
            background: rgba(255,255,255,0.2); transform: rotate(30deg); transition: 0.5s;
        }
        .btn-account:hover::before { left: 150%; }

        /* MOBILE MENU & OVERLAY */
        .menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1100; padding: 10px; }
        .menu-toggle span { width: 25px; height: 3px; background: white; border-radius: 10px; transition: 0.3s; }
        
        .menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
        .menu-toggle.open span:nth-child(2) { opacity: 0; }
        .menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

        .menu-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
            z-index: 1040; opacity: 0; pointer-events: none; transition: 0.3s;
        }
        .menu-overlay.show { opacity: 1; pointer-events: auto; }

        .side-menu {
            position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
            background: #0a0a0a; z-index: 1050; padding: 100px 30px;
            display: flex; flex-direction: column; gap: 20px; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-left: 1px solid var(--border);
        }
        .side-menu.open { right: 0; }
        .side-menu a { font-size: 1.3rem; color: #888; text-decoration: none; font-weight: 600; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

        /* HERO IMPROVED */
        .hero {
            height: 100vh; position: relative; display: flex; align-items: center; padding: 0 8%;
            background: 
                linear-gradient(90deg, var(--bg) 15%, transparent 60%),
                linear-gradient(0deg, var(--bg) 5%, transparent 40%),
                url('/cover_1.jpeg');
            background-size: cover; background-position: center;
            overflow: hidden;
        }

        .hero::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 40%);
            pointer-events: none;
        }

        .hero-content { max-width: 650px; position: relative; z-index: 2; animation: fadeIn 1s ease-out; }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .hero-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
        .hero-meta .rating { 
            background: rgba(255, 193, 7, 0.2); color: #ffc107; 
            padding: 4px 12px; border-radius: 4px; font-weight: 800; border: 1px solid rgba(255, 193, 7, 0.3);
        }
        .hero-meta span:not(.rating) { color: rgba(255,255,255,0.6); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

        .hero h1 { 
            font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 10vw, 6rem); 
            line-height: 0.9; margin-bottom: 20px; letter-spacing: 2px;
            text-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        
        .hero p { 
            font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.8); 
            margin-bottom: 35px; border-left: 3px solid var(--accent); padding-left: 20px;
        }

        /* --- YENİ EKLENEN: AÇIKLAMA GÖSTER/GİZLE KONTROLLERİ --- */
        .desc-container {
            position: relative;
            z-index: 10;
            margin-bottom: 25px;
            max-width: 650px; /* Player'ın üzerine taşmaması için genişliği sabitledik */
        }
        .detail_description {
            font-size: 1.05rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.85);
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Varsayılan 3 satır (istediğin gibi değiştirebilirsin) */
            -webkit-box-orient: vertical;
            transition: all 0.3s ease-in-out;
            margin-bottom: 10px;
        }
        .detail_description.expanded {
            -webkit-line-clamp: unset;
        }
        .read-more-btn {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
            cursor: pointer;
            font-weight: 600;
            padding: 6px 16px;
            border-radius: 6px;
            transition: 0.3s;
            font-size: 0.9rem;
        }
        .read-more-btn:hover {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 0 12px rgba(255, 62, 62, 0.4);
        }
        /* ---------------------------------------------------- */

        .btn-group { display: flex; gap: 15px; margin-top: 20px; }

        .btn-play { 
            background: white; color: black; padding: 14px 35px; border-radius: 8px; 
            font-weight: 800; border: none; cursor: pointer; 
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
            display: flex; align-items: center; gap: 10px; font-size: 1rem;
            backface-visibility: hidden;
            -webkit-font-smoothing: antialiased;
            transform: translateZ(0); 
            will-change: transform;
        }
        .btn-play:hover { 
            box-shadow: 0 0 40px rgba(255,255,255,0.4); 
            background-color: #f0f0f0; 
        }

        .btn-list { 
            background: rgba(255,255,255,0.1); color: white; padding: 14px 25px; border-radius: 8px; 
            border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s;
            backdrop-filter: blur(10px); font-weight: 600;
            backface-visibility: hidden; transform: translateZ(0);
        }
        .btn-list:hover { background: rgba(255,255,255,0.2); border-color: white; transform: scale(1.02) translateZ(0); }

        /* FOOTER */
        .ultra-footer { background: #000; border-top: 1px solid #222; padding: 60px 5% 40px; color: #b3b3b3; font-size: 0.9rem; }
        .footer-container { max-width: 1000px; margin: 0 auto; }
        .footer-cta { text-align: center; margin-bottom: 50px; }
        .footer-cta h3 { color: white; font-size: 1.2rem; font-weight: 400; margin-bottom: 20px; line-height: 1.4; }
        .cta-form { display: flex; justify-content: center; max-width: 650px; margin: 0 auto; gap: 10px; }
        .cta-form input { flex: 1; padding: 18px 20px; background: rgba(255,255,255,0.05); border: 1px solid #444; color: white; border-radius: 4px; outline: none; font-size: 1rem; }
        .cta-form input:focus { border-color: var(--accent); }
        .cta-form button { background: #ff3e3e; color: white; border: none; padding: 0 30px; font-size: 1.2rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
        .footer-contact { margin-bottom: 30px; color: #757575; }
        .footer-contact a { color: #757575; text-decoration: underline; }
        .footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px; margin-bottom: 40px; }
        .footer-links-grid a { color: #757575; text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
        .footer-links-grid a:hover { text-decoration: underline; color: #fff; }
        .footer-lang { margin-bottom: 25px; }
        .footer-lang select { background: #000; color: #b3b3b3; border: 1px solid #333; padding: 10px 25px; border-radius: 4px; cursor: pointer; }
        .footer-brand { font-size: 0.8rem; color: #757575; }

        /* SADECE MOBİLE DOCK İÇİN EKLAMALAR */
        .mobile-dock {
            display: none; 
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(20px) saturate(180%);
            border-top: 1px solid var(--border);
            justify-content: space-around;
            align-items: center;
            z-index: 2000;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .dock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: #888;
            text-decoration: none;
            flex: 1;
            transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }

        .dock-item svg { width: 24px; height: 24px; stroke: currentColor; transition: 0.3s; }
        .dock-item span { font-size: 0.7rem; font-weight: 500; }
        .dock-item.active { color: var(--accent); }
        .dock-item.active svg { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)); }
        .dock-item:hover { color: #fff; }

        /* CONTENT GRID */
        .main-container {
            display: grid; grid-template-columns: 1fr 320px; gap: 40px;
            padding: 40px 5% 100px; margin-top: -80px; position: relative;
        }

        .section-title { margin-bottom: 25px; font-size: 1.5rem; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 15px; }
        
        /* MOVIE CARDS */
        .movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
        .movie-card {
            background: var(--surface); border-radius: 16px; overflow: hidden;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid var(--border); position: relative;
        }
        .movie-card:hover { transform: translateY(-12px); border-color: var(--accent); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
        .movie-card img { width: 100%; height: 280px; object-fit: cover; }
        .movie-info { padding: 15px; background: linear-gradient(to top, var(--surface), transparent); }
        .movie-info h4 { font-size: 1rem; margin-bottom: 5px; }
        .movie-info p { font-size: 0.8rem; color: #888; }
        
        /* SIDEBAR */
        .sidebar-box { background: var(--surface); border-radius: 24px; padding: 25px; border: 1px solid var(--border); margin-bottom: 25px; backdrop-filter: blur(10px); }
        .category-list { display: flex; flex-wrap: wrap; gap: 10px; }
        .cat-tag { padding: 8px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; font-size: 0.8rem; cursor: pointer; transition: 0.3s; }
        .cat-tag:hover { background: var(--accent); border-color: transparent; transform: scale(1.05); }

        /* TOP 10 LIST */
        .top-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; transition: 0.3s; cursor: pointer; }
        .top-item:hover { transform: translateX(10px); }
        .top-num { font-size: 2.2rem; font-weight: 800; color: rgba(255,255,255,0.05); min-width: 40px; }
        .top-item img { width: 60px; height: 80px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .main-container { grid-template-columns: 1fr; }
            .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
            .search-box { width: 40px; padding: 5px; }
            .search-box input { display: none; }
        }

        @media (max-width: 768px) {
			nav.desktop-nav { display: none; }
            header nav { display: none; }
            .mobile-dock { display: flex; }
            .menu-toggle { display: flex; }
            .search-box.active { position: absolute; left: 0; top: 100%; width: 100%; border-radius: 0; background: #111; border-width: 1px 0; padding: 15px 5%; }
            .hero { padding: 0 5%; text-align: center; justify-content: center; height: 60vh; }
            .hero p { border: none; padding: 0; }
            .hero h1 { font-size: 2.8rem; }
            .btn-group { justify-content: center; }
            .sidebar { grid-template-columns: 1fr; }
            .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
            .main-container { margin-top: 0; padding-bottom: 80px; }
            .btn-account { padding: 8px 15px; font-size: 0.8rem; }
            .ultra-footer { padding: 40px 5% 100px; }
            .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
            .cta-form { flex-direction: column; }
            .cta-form input, .cta-form button { border-radius: 4px; width: 100%; height: 55px; }
        }
        
        
        
/* ==========================================
   LIVE AJAX SEARCH STYLES (PREMIUM DESIGN)
   ========================================== */
.search-results {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 350px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.05);
    transition: all 0.3s ease;
}

.search-results.show {
    display: block;
    animation: searchFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Her Bir Film Satırı */
.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

/* Film Kapak Resmi */
.search-item img {
    width: 45px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Film Bilgileri */
.search-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Text taşmalarını önlemek için */
}

.search-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.search-item:hover .search-item-title {
    color: var(--accent);
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #888;
}

.search-item-imdb {
    color: #ffc107;
    font-weight: 600;
}

/* Sonuç Bulunamadı ve Yükleniyor Durumu */
.search-no-result {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Smart Scrollbar Arama İçi */
.search-results::-webkit-scrollbar { width: 5px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
.search-results::-webkit-scrollbar-thumb:hover { background: #444; }

/* MOBİL RESPONSIVE ENTEGRASYONU */
@media (max-width: 768px) {
    .search-box.active .search-results {
        position: fixed;
        top: 130px; /* Mobilde açılan tam genişlikteki inputun hemen altına hizalar */
        left: 0;
        width: 100vw;
        height: calc(100vh - 130px);
        max-height: none;
        border-radius: 0;
        border-width: 1px 0 0 0;
        background: #0a0a0a;
    }
}        