/*
Theme Name: FilmPlus Pro
Theme URI: http://doldur.org
Author: Manus
Description: Ekran görüntüsündeki profesyonel tasarıma sahip, SEO uyumlu ve hızlı film teması.
Version: 2.0
Text Domain: filmplus-pro
*/
/* Global Styles */
body { 
    background: #0f0f0f; 
    color: #eee; 
    font-family: 'Noto Sans', arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    font-size: 14px; 
}
a { color: #fff; text-decoration: none; transition: 0.3s; }
a:hover { color: #e50914; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
header { 
    background: #000; 
    border-bottom: 1px solid #222; 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 999; 
}
.header-flex { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: 800; color: #e50914; text-transform: uppercase; letter-spacing: -1px; }
.search-form { position: relative; width: 300px; }
.search-form input { 
    width: 100%; 
    background: #1a1a1a; 
    border: 1px solid #333; 
    padding: 8px 15px; 
    color: #fff; 
    border-radius: 20px; 
    outline: none;
}
.search-form button { 
    position: absolute; 
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: #888; 
    cursor: pointer; 
}

/* Sub-nav */
.sub-nav { background: #141414; padding: 10px 0; font-size: 13px; color: #aaa; border-bottom: 1px solid #222; }
.sub-nav a { color: #aaa; margin-right: 15px; }
.sub-nav a:hover { color: #fff; }

/* Main Content */
.main-wrapper { display: flex; margin-top: 20px; gap: 20px; }
.content-area { flex: 1; }
.sidebar { width: 300px; }

.section-title { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 1px solid #222; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}
.section-title h2 { font-size: 18px; margin: 0; color: #fff; font-weight: 600; }
.section-title h2 i { color: #e50914; margin-right: 8px; }
.section-title a { font-size: 12px; color: #888; }

/* Movie Grid */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.movie-item { position: relative; background: #1a1a1a; border-radius: 5px; overflow: hidden; transition: 0.3s; }
.movie-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.movie-poster { position: relative; padding-bottom: 145%; }
.movie-poster img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.movie-tag-year { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: rgba(46, 204, 113, 0.9); 
    color: #fff; 
    font-size: 11px; 
    padding: 2px 6px; 
    border-radius: 3px; 
    font-weight: bold; 
}
.movie-tag-lang { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
    color: #ffd700; 
    font-size: 11px; 
    padding: 10px 8px 5px; 
    text-align: center;
}

.movie-info { padding: 10px; }
.movie-title { 
    font-size: 14px; 
    font-weight: 600; 
    color: #fff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: block; 
}

/* Sidebar Widgets */
.widget { background: #141414; border-radius: 5px; padding: 20px; margin-bottom: 20px; border: 1px solid #222; }
.widget-title { font-size: 16px; margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid #333; color: #fff; }
.widget-title i { color: #e50914; margin-right: 8px; }

.genre-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.genre-list a { background: #1f1f1f; padding: 8px 12px; border-radius: 3px; font-size: 13px; color: #ccc; }
.genre-list a:hover { background: #e50914; color: #fff; }

.year-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.year-list a { text-align: center; padding: 5px; background: #1f1f1f; font-size: 12px; color: #aaa; border-radius: 2px; }
.year-list a:hover { color: #fff; background: #333; }

/* Footer */
footer { background: #000; padding: 40px 0; border-top: 1px solid #222; margin-top: 40px; color: #888; }
.footer-text { max-width: 800px; margin: 0 auto 30px; text-align: center; font-size: 13px; line-height: 1.6; }

/* Single Page */
.video-player { background: #000; aspect-ratio: 16/9; width: 100%; margin-bottom: 20px; border-radius: 5px; overflow: hidden; }
.movie-details { display: flex; gap: 30px; background: #141414; padding: 25px; border-radius: 5px; border: 1px solid #222; }
.detail-poster { width: 220px; flex-shrink: 0; }
.detail-poster img { width: 100%; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.detail-info { flex: 1; }
.detail-info h1 { margin: 0 0 15px 0; font-size: 28px; color: #fff; }
.info-row { margin-bottom: 10px; display: flex; }
.info-label { width: 120px; color: #888; font-weight: 600; }
.info-value { color: #eee; }
.movie-plot { margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; line-height: 1.8; color: #ccc; }

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
}
@media (max-width: 600px) {
    .movie-grid { grid-template-columns: 1fr 1fr; }
    .movie-details { flex-direction: column; }
    .detail-poster { width: 100%; max-width: 250px; margin: 0 auto; }
}

/* Pro Single Page Enhancements */
/* Video Alanı Düzeltme - Taşmayı Önler */


/* Video ve Reklam Kapsayıcısı */
.video-player { 
    position: relative;
    width: 100%; 
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
    /* ÖNEMLİ: Video yokken bile kutunun 16:9 oranında kalmasını sağlar */
    aspect-ratio: 16 / 9; 
}

/* Reklam Katmanı Düzeltme */
.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
}

/* Video İçeriği */
.video-inner {
    width: 100%;
    height: 100%;
}

.video-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.video-inner iframe, 
.video-inner object, 
.video-inner embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Işıklar Kapalıyken Sadece Video Alanını Öne Çıkar */
body.lights-off .video-player { 
    z-index: 10001 !important; 
    position: relative; 
}



/* Lights Off Overlay */
#lights-off-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 90;
    pointer-events: none;
}
body.lights-off #lights-off-overlay { display: block; }
body.lights-off .video-player { z-index: 101; position: relative; }

/* Ad Overlay */
.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 105;
    color: #fff;
}
.ad-content { text-align: center; }
.ad-timer { 
    font-size: 14px; 
    background: rgba(229, 9, 20, 0.8); 
    padding: 5px 15px; 
    border-radius: 20px; 
    margin-top: 15px;
}

/* Action Buttons */
.player-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.btn-action {
    background: #222;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-action:hover { background: #e50914; border-color: #e50914; }
.btn-action i { margin-right: 8px; }

/* Random Movies Section */
.random-movies { margin-top: 40px; padding-top: 30px; border-top: 1px solid #222; }
