/* ============================================================
   CINEMAXTR MOBİL OPTİMİZASYON PAKETİ
   Tüm sayfalar için responsive + touch + performans
   ============================================================ */

/* === GENEL MOBİL AYARLAR === */
@media (max-width: 768px) {
    .container { padding: 0 12px; }
    body { font-size: 14px; -webkit-tap-highlight-color: transparent; }
    
    /* Header */
    .header { padding: 10px 0; }
    .header-inner { gap: 10px; }
    .logo-text { font-size: 18px; }
    .logo-icon { width: 34px; height: 34px; font-size: 14px; }
    
    /* Mobil menü */
    .nav { 
        display: none; position: fixed; top: 0; left: 0; 
        width: 100%; height: 100vh; background: rgba(10,10,15,0.98); 
        backdrop-filter: blur(20px); padding: 70px 20px 30px; z-index: 999;
        overflow-y: auto;
    }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 2px; }
    .nav-link { 
        display: block; padding: 14px 16px; font-size: 16px; 
        border-radius: 12px; border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .dropdown-menu { 
        position: static; opacity: 1; visibility: visible; 
        transform: none; box-shadow: none; border: none; 
        padding-left: 16px; background: transparent; min-width: auto;
    }
    .dropdown-menu a { padding: 12px 16px; font-size: 14px; }
    
    .mobile-toggle { display: flex; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 7px 12px; font-size: 12px; }
    
    /* Hero */
    .hero { height: 55vh; min-height: 380px; }
    .hero-content { padding-bottom: 40px; max-width: 100%; }
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 12px; -webkit-line-clamp: 2; }
    .hero-meta { font-size: 12px; gap: 10px; }
    .hero-badge { font-size: 10px; padding: 4px 10px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; font-size: 14px; padding: 12px; }
    
    /* Film Grid */
    .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .movie-poster { border-radius: 10px; margin-bottom: 6px; }
    .movie-title { font-size: 11px; }
    .movie-year { font-size: 10px; }
    .movie-quality { padding: 2px 6px; font-size: 8px; top: 4px; left: 4px; }
    .movie-rating { padding: 2px 6px; font-size: 9px; top: 4px; right: 4px; }
    .movie-play { width: 34px; height: 34px; font-size: 12px; }
    
    /* Section */
    .movie-section { margin-bottom: 32px; }
    .section-header { margin-bottom: 14px; }
    .section-title { font-size: 17px; }
    .section-link { font-size: 12px; }
    
    /* Film Detay */
    .detail-hero { min-height: auto; padding: 90px 0 30px; }
    .detail-content { flex-direction: column; align-items: center; text-align: center; }
    .poster { width: 160px; margin: 0 auto; }
    .info h1 { font-size: 22px; }
    .meta { justify-content: center; font-size: 12px; gap: 10px; }
    .genres { justify-content: center; }
    .overview { font-size: 13px; text-align: center; }
    .watch-btns { justify-content: center; }
    .watch-btn { padding: 7px 14px; font-size: 11px; }
    
    /* Player */
    .player-tabs { gap: 4px; }
    .player-tab { padding: 8px 14px; font-size: 11px; }
    .embed-wrapper { border-radius: 10px; }
    
    /* Cast */
    .cast-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .cast-card img { width: 55px; height: 55px; }
    .cast-name { font-size: 11px; }
    .cast-char { font-size: 9px; }
    
    /* Similar */
    .similar-section .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    
    /* Footer */
    .footer { padding: 20px 0; }
    .footer p { font-size: 11px; }
    
    /* Modal */
    .yt-modal-inner, .modal-inner { width: 95%; }
    
    /* Keşif / Filtre */
    .filter-panel { flex-direction: column; gap: 8px; padding: 16px; }
    .filter-group { width: 100%; }
    .filter-group select, .filter-group input { width: 100%; }
    
    /* Admin */
    .admin-wrap { padding: 70px 0 30px; }
    .admin-wrap table { font-size: 11px; }
    .admin-wrap th, .admin-wrap td { padding: 8px 6px; }
    .form-row { flex-direction: column; }
    .form-group { width: 100%; }
    .form-group input, .form-group select { width: 100%; }
    
    /* Auth */
    .auth-card { padding: 24px; margin: 10px; }
    
    /* Karşılaştırma */
    .compare-grid { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; gap: 10px; }
    .vs-badge { margin: 8px 0; }
    
    /* Sayfalama */
    .pagination a, .pagination span { width: 34px; height: 34px; font-size: 12px; }
}

/* === KÜÇÜK MOBİL (480px altı) === */
@media (max-width: 480px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hero { height: 50vh; min-height: 320px; }
    .hero-title { font-size: 20px; }
    .cast-grid { grid-template-columns: repeat(3, 1fr); }
    .similar-section .movie-grid { grid-template-columns: repeat(2, 1fr); }
    .movie-detail-poster { width: 140px; }
    .info h1 { font-size: 20px; }
}

/* === TOUCH OPTİMİZASYON === */
@media (hover: none) and (pointer: coarse) {
    /* Dokunmatik cihazlar için hover efektlerini iptal et */
    .movie-card:hover { transform: none; }
    .movie-card:hover .movie-poster img { transform: none; }
    .movie-card:active { transform: scale(0.97); }
    
    .movie-play { 
        transform: translate(-50%, -50%) scale(0.7); 
        opacity: 0.5;
    }
    
    /* Butonlar için minimum touch alanı */
    .btn, .nav-link, .player-tab, .watch-btn, .filter-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Scroll smooth */
    .movie-grid, .cast-grid {
        -webkit-overflow-scrolling: touch;
    }
}

/* === PERFORMANS OPTİMİZASYON === */
/* Mobilde daha küçük posterler yükle */
@media (max-width: 768px) {
    .movie-poster img {
        content-visibility: auto;
    }
    .hero-slide {
        background-attachment: scroll !important;
    }
}

/* === YATAY MOD UYARISI === */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { height: 90vh; }
    .hero-content { padding-bottom: 20px; }
}

/* Ripple efekti animasyonu */
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* Mobil menü animasyonu */
.nav {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.active {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
