/*
Theme Name: Fragman
Description: Profesyonel Film ve Dizi Fragman Teması - Responsive tasarım, SEO optimizasyonu, film kartları ve taxonomy desteği ile.
Author: Film Tema Geliştiricisi
Version: 2.3
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fragman
Tags: blog, entertainment, movies, responsive, custom-colors, featured-images, theme-options
*/

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    background-attachment: fixed;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === GENEL HİZALAMA MERKEZİ === */
/* Header, Slider ve İçerik bu sınıfa göre hizalanır */
.container-fixed,
.header-inner,
.fragman-slider,
.content-area,
.footer-content {
    max-width: 1200px; /* Toplam genişlik */
    margin: 0 auto !important;
    padding: 0 15px !important; /* Her yerde eşit kenar payı */
    width: 100%;
    overflow-x: hidden; /* Horizontal scroll'u önle */
}

/* Global horizontal scroll önleme */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* === HEADER === */
.site-header {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0; /* İçerik dikey boşluğu */
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
}

.site-title-text {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
}

.site-title-text:hover {
    color: #f59e0b;
}

/* Custom Logo Stilleri */
.custom-logo-link {
    display: inline-block;
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Logo varken site başlığını gizle */
.custom-logo-link + .site-title-text {
    display: none;
}

/* === MOBİL HAMBURGER MENÜ === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animasyonları */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Ana navigasyon */
.main-nav {
    position: relative;
}

.main-nav ul,
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.main-nav a:hover {
    color: #fbbf24;
}

/* Mobil navigasyon - başlangıçta gizli */
.mobile-nav {
    display: none;
}

.mobile-nav .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 70px 20px 20px 20px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Mobil menü açık durumu */
.mobile-nav .mobile-menu.mobile-menu-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Mobil menü linklerini küçült */
.mobile-nav .mobile-menu.mobile-menu-open a {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 40px;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    margin: 2px 0;
}

.mobile-nav .mobile-menu.mobile-menu-open a:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    transform: scale(1.02);
}

.search-form {
    display: flex;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.search-field {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: #e2e8f0;
    width: 200px;
    outline: none;
}

.search-submit {
    background: #fbbf24;
    border: none;
    padding: 8px 15px;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px; /* Touch-friendly minimum */
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* === SLIDER (Genişlik Sorunu Çözüldü) === */
.fragman-slider-wrapper {
    background: rgba(15, 20, 25, 0.4);
    padding: 40px 0;
    margin-bottom: 30px;
}

.fragman-slider {
    position: relative;
    padding: 0 15px !important; /* Header ile aynı hiza */
}

.fragman-container {
    overflow: hidden;
    position: relative;
}

.fragman-track {
    display: flex;
    transition: transform 0.5s ease;
}

.fragman-slide {
    flex: 0 0 16.666%; /* 6 kart için kesin eşit boyut */
    padding: 0 5px; /* Kartlar arası boşluk */
    box-sizing: border-box;
    min-width: 0; /* Flexbox sorunu çözümü */
}

.fragman-poster {
    position: relative;
    width: 100%; /* Tam genişlik */
    height: 250px; /* Boy büyültüldü */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: #000;
}

.fragman-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Kesin genişlik */
    height: 100% !important; /* Kesin yükseklik */
    object-fit: cover !important; /* Görseli kartın içine sığdır */
    object-position: center center !important; /* Ortala */
    display: block !important;
}

/* Slider Butonları - Kartların İçinde Konumlandırma */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 44px; /* Touch-friendly minimum */
    min-height: 44px; /* Touch-friendly minimum */
}

.slider-btn:hover {
    background: rgba(251, 191, 36, 0.9);
    border-color: rgba(251, 191, 36, 1);
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}

/* Sol ok - İlk görünen kartın içinde sol tarafta */
.slider-prev {
    left: 30px;
}

/* Sağ ok - Son görünen kartın içinde sağ tarafta */
.slider-next {
    right: 30px;
}

/* === ANA İÇERİK VE SİDEBAR (Eşitlendi) === */
.content-area {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.main-content {
    flex: 1; /* Kalan tüm alanı kapla */
    min-width: 0;
}

.content-wrapper {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.sidebar {
    width: 220px; /* Sidebar genişliği daraltıldı */
    flex-shrink: 0;
}

/* === FİLM IZGARASI (GRID) === */
.film-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 sütuna çıkarıldı */
    gap: 18px; /* Boşluk biraz azaltıldı */
}

.film-card {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Film posteri ana içerik için */
.film-card .film-poster {
    position: relative;
    width: 100%;
    height: 220px; /* Boyut küçültüldü */
    overflow: hidden;
    background: #000;
}

.film-card .film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Görseli tam ortala */
    display: block;
}

/* Film bilgileri düzenlemesi */
.film-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.film-year {
    display: none; /* Tarihleri gizle */
}

.film-title {
    font-size: 14px; /* Yazı boyutu küçültüldü */
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap; /* Tek satır */
    overflow: hidden; /* Taşan kısmı gizle */
    text-overflow: ellipsis; /* Kesilen yerden ... göster */
    order: 1;
}

.film-genre {
    font-size: 11px;
    color: #94a3b8;
    order: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === WIDGETLAR === */
.widget {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    padding-bottom: 8px;
}

.widget ul { list-style: none; }
.widget li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.widget a { color: #cbd5e1; font-size: 14px; }

/* === SAYFA BAŞLIĞI VE İÇERİK === */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.page-title span {
    color: #e2e8f0;
}

.no-content {
    text-align: center;
    padding: 50px 20px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.no-content p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

/* === SAYFALAMA (PAGINATION) === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: rgba(251, 191, 36, 0.9);
    color: #0f172a;
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.pagination .current {
    background: #fbbf24;
    color: #0f172a;
    border-color: #fbbf24;
}

.pagination .prev,
.pagination .next {
    padding: 8px 16px;
    font-weight: 600;
}

/* === SINGLE POST (FILM DETAY) === */
.single-film {
    margin-bottom: 40px;
}

/* Film Header Card */
.film-header-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 25px;
    overflow: hidden;
}

.film-poster-single {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

.film-poster-single img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Film Badges - Single Page */
.film-poster-single .film-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.film-poster-single .badge {
    background: rgba(0, 0, 0, 0.8);
    color: #fbbf24;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.film-info-card {
    flex: 1;
    min-width: 0;
}

.film-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
    line-height: 1.2;
}

.film-meta-grid {
    display: grid;
    gap: 12px;
}

.meta-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
}

.meta-value {
    color: #e2e8f0;
    font-size: 14px;
    word-wrap: break-word;
}

/* Section Titles */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

/* Film Description */
.film-description-section {
    margin-bottom: 30px;
}

.film-description-content {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.film-description-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Video Section */
.fragman-video-section {
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Related Films */
.related-films {
    margin-bottom: 30px;
}

.related-films .film-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Comments Section */
.comments-section {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    background: rgba(15, 20, 25, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #fbbf24;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.comment-actions a {
    color: #94a3b8;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-actions a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.comment-text {
    color: #cbd5e1;
    line-height: 1.6;
}

.comment-reply {
    margin-left: 40px;
    border-left: 2px solid rgba(251, 191, 36, 0.3);
    padding-left: 20px;
}

/* Comment Form */
.comment-form-wrapper {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
}

.comment-reply-title {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.comment-form-field label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
}

.comment-form-field input,
.comment-form-field textarea {
    padding: 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.comment-submit-btn {
    background: #fbbf24;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    min-height: 44px; /* Touch-friendly minimum */
    min-width: 120px;
}

.comment-submit-btn:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

.no-comments {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 20px;
}

.logged-in-user {
    background: rgba(251, 191, 36, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.logged-in-user strong {
    color: #fbbf24;
}

/* Responsive Single Page */
@media (max-width: 900px) {
    .film-header-card {
        flex-direction: column;
        gap: 20px;
        padding: 15px; /* Mobil için padding azalt */
        overflow: hidden; /* Taşmayı önle */
    }
    
    .film-poster-single {
        width: 100%;
        max-width: 250px; /* Mobil için daha küçük */
        margin: 0 auto;
        overflow: hidden; /* Taşmayı önle */
    }
    
    .film-poster-single img {
        width: 100%;
        height: auto;
        max-width: 100%; /* Kesinlikle taşmasın */
        object-fit: contain; /* Cover yerine contain */
    }
    
    .meta-row {
        grid-template-columns: 120px 1fr;
        gap: 10px;
    }
    
    .related-films .film-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comment-form-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .film-main-title {
        font-size: 20px; /* Daha küçük mobil için */
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .meta-row {
        grid-template-columns: 100px 1fr; /* Daha dar label */
        gap: 8px;
    }
    
    .meta-label {
        font-weight: 700;
        font-size: 12px; /* Küçük label */
    }
    
    .meta-value {
        font-size: 13px; /* Küçük değer */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .related-films .film-grid {
        grid-template-columns: 1fr;
    }
    
    .film-header-card {
        padding: 10px; /* Daha küçük padding */
        margin: 10px; /* Kenar boşluğu */
    }
    
    .film-poster-single {
        max-width: 200px; /* Çok küçük mobiller için */
    }
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    background: #0f1419;
}

/* Footer Navigasyon */
.footer-nav {
    margin-bottom: 20px;
}

.footer-nav .footer-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .footer-menu li {
    margin: 0;
    padding: 0;
    border: none;
}

.footer-nav .footer-menu a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.footer-nav .footer-menu a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}

/* Footer içerik düzenlemesi */
.footer-content {
    margin-top: 20px;
}

.footer-content p {
    margin: 8px 0;
    color: #94a3b8;
    font-size: 14px;
}

.footer-extra-text {
    font-style: italic;
    color: #cbd5e1;
}

/* === RESPONSIVE DÜZENLEMELER === */
@media (max-width: 1100px) {
    .film-grid { grid-template-columns: repeat(4, 1fr); } /* 5'ten 4'e düşür */
    .fragman-slide { flex: 0 0 20%; } /* 5 kart göster */
    
    /* Tablet için film kartları - slider */
    .fragman-poster {
        height: 220px;
    }
    
    /* Tablet için film kartları - ana içerik */
    .film-card .film-poster {
        height: 200px;
    }
    
    /* Tablet için slider butonları */
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .slider-prev { left: 25px; }
    .slider-next { right: 25px; }
}

@media (max-width: 900px) {
    .home .content-area { flex-direction: column; }
    .home .sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .fragman-slide { flex: 0 0 25%; } /* 4 kart göster */
    .film-grid { grid-template-columns: repeat(3, 1fr); } /* 4'ten 3'e düşür */
    
    /* Küçük tablet için film kartları - slider */
    .fragman-poster {
        height: 200px;
    }
    
    /* Küçük tablet için film kartları - ana içerik */
    .film-card .film-poster {
        height: 180px;
    }
    
    /* Küçük tablet için slider butonları */
    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .slider-prev { left: 20px; }
    .slider-next { right: 20px; }
}

@media (max-width: 600px) {
    .film-grid { grid-template-columns: repeat(2, 1fr); }
    .home .sidebar { grid-template-columns: 1fr; }
    .fragman-slide { flex: 0 0 33.33%; } /* 3 kart göster */
    
    /* Mobil hamburger menüyü göster */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Desktop menüyü gizle */
    .main-nav .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 4px;
        padding: 70px 20px 20px 20px;
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    /* Mobil menü açık durumu */
    .main-nav .nav-menu.mobile-menu-open {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobil menü linklerini küçült */
    .main-nav .nav-menu.mobile-menu-open a {
        font-size: 16px;
        font-weight: 600;
        color: #e2e8f0;
        padding: 8px 20px;
        border-radius: 6px;
        transition: all 0.3s ease;
        min-height: 40px;
        min-width: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 2px 0;
    }
    
    .main-nav .nav-menu.mobile-menu-open a:hover {
        background: rgba(251, 191, 36, 0.1);
        color: #fbbf24;
        transform: scale(1.02);
    }
    
    /* Header düzenlemesi */
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .site-title {
        flex: 1;
        font-size: 20px; /* Mobil için küçült */
    }
    
    .site-title-text {
        font-size: 20px; /* Mobil için küçült */
    }
    
    /* Header search'ü mobil için ayarla */
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-field {
        width: calc(100% - 80px);
        padding: 10px 15px;
        font-size: 16px; /* iOS zoom'u önlemek için 16px */
        min-height: 44px; /* Touch-friendly */
    }
    
    .search-submit {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
        min-width: 80px;
    }
    
    /* Mobil için film kartları - slider */
    .fragman-poster {
        height: 180px;
    }
    
    /* Mobil için film kartları - ana içerik */
    .film-card .film-poster {
        height: 160px;
    }
    
    /* Mobil için slider butonları - Touch-friendly */
    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: 6px;
        min-width: 44px;
        min-height: 44px;
    }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    
    /* Font boyutları mobil optimizasyonu */
    body {
        font-size: 16px; /* iOS zoom'u önlemek için 16px */
        line-height: 1.5;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .film-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Touch-friendly pagination */
    .pagination a,
    .pagination span {
        padding: 12px 16px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .fragman-slide { flex: 0 0 50%; } /* 2 kart göster */
    
    /* Çok küçük mobil cihazlar için film kartları - slider */
    .fragman-poster {
        height: 160px;
    }
    
    /* Çok küçük mobil cihazlar için film kartları - ana içerik */
    .film-card .film-poster {
        height: 140px;
    }
    
    /* Çok küçük mobil cihazlar için slider butonları */
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-width: 1px;
    }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
}

body:not(.home) .content-area{
    margin-top: 30px !important;
}

/* SINGLE SAYFALAR İÇİN KESAN SIDEBAR DÜZENLEMESİ */
/* Tüm single post sayfalarında sidebar sağda kalacak */
body.single .site-content .container .content-area,
body.single-post .site-content .container .content-area,
.single .site-content .container .content-area,
.single-post .site-content .container .content-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 25px !important;
}

body.single .site-content .container .content-area .main-content,
body.single-post .site-content .container .content-area .main-content,
.single .site-content .container .content-area .main-content,
.single-post .site-content .container .content-area .main-content {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.single .site-content .container .content-area .sidebar,
body.single-post .site-content .container .content-area .sidebar,
.single .site-content .container .content-area .sidebar,
.single-post .site-content .container .content-area .sidebar {
    width: 220px !important;
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
}

/* Yorum bölümü düzenlemesi */
body.single .comments-section,
body.single-post .comments-section,
.single .comments-section,
.single-post .comments-section {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    float: none !important;
    clear: none !important;
}

/* Content wrapper güçlendirmesi */
body.single .content-wrapper,
body.single-post .content-wrapper,
.single .content-wrapper,
.single-post .content-wrapper {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

/* Responsive override - MÖBİL HARİÇ SIDEBAR SAĞDA KALACAK */
@media (min-width: 769px) {
    body.single .site-content .container .content-area,
    body.single-post .site-content .container .content-area,
    .single .site-content .container .content-area,
    .single-post .site-content .container .content-area {
        display: flex !important;
        flex-direction: row !important;
    }
    
    body.single .site-content .container .content-area .sidebar,
    body.single-post .site-content .container .content-area .sidebar,
    .single .site-content .container .content-area .sidebar,
    .single-post .site-content .container .content-area .sidebar {
        width: 220px !important;
        display: block !important;
    }
}

/* Sadece çok küçük ekranlarda sidebar alta geçsin */
@media (max-width: 768px) {
    body.single .site-content .container .content-area,
    body.single-post .site-content .container .content-area,
    .single .site-content .container .content-area,
    .single-post .site-content .container .content-area {
        flex-direction: column !important;
    }
    
    body.single .site-content .container .content-area .sidebar,
    body.single-post .site-content .container .content-area .sidebar,
    .single .site-content .container .content-area .sidebar,
    .single-post .site-content .container .content-area .sidebar {
        width: 100% !important;
        margin-top: 30px !important;
    }
}

/* === İLETİŞİM SAYFASI STİLLERİ === */

/* İletişim Sayfası Genel */
.contact-page {
    width: 100%;
}

.contact-page .page-header {
    margin-bottom: 30px;
    text-align: center;
}

.contact-page .page-title {
    font-size: 28px;
    color: #fbbf24;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    display: inline-block;
}

.contact-description {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(251, 191, 36, 0.1);
    text-align: center;
}

.contact-description p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* İletişim Form Wrapper */
.contact-form-wrapper {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Mesajları */
.contact-message {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid;
}

.contact-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.contact-success h3 {
    color: #16a34a;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.contact-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.contact-error h3 {
    color: #dc2626;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.contact-message p {
    margin: 0;
    font-size: 14px;
}

/* Form Stilleri */
.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-field label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
}

.form-field .required {
    color: #ef4444;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 15px;
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: rgba(15, 20, 25, 0.9);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-field select {
    cursor: pointer;
}

.form-field select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Checkbox Stilleri */
.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 4px;
    background: rgba(15, 20, 25, 0.8);
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #fbbf24;
    border-color: #fbbf24;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f172a;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: #fbbf24;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #f59e0b;
}

/* Form Gönder Butonu */
.form-submit {
    margin-top: 30px;
    margin-bottom: 0;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 180px;
    min-height: 44px; /* Touch-friendly minimum */
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

/* İletişim Bilgileri Bölümü */
.contact-info-section {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
}

.contact-info-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(15, 20, 25, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
}

.contact-details h4 {
    color: #fbbf24;
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-details p {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.contact-details a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* İletişim Notları */
.contact-notice {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.contact-notice h4 {
    color: #fbbf24;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.contact-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-notice li {
    color: #94a3b8;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.contact-notice li:before {
    content: '•';
    color: #fbbf24;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Düzenlemeler */
@media (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-page .page-title {
        font-size: 24px;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-page .page-title {
        font-size: 22px;
    }
    
    .contact-submit-btn {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 160px;
    }
}

/* İletişim Sayfası Mobil Responsive Düzenlemeleri */
@media (max-width: 768px) {
    /* İletişim sayfası genel layout düzenlemesi - tüm class'ları kapsayalım */
    body.page-template .site-content .container .content-area,
    .contact-page .content-area {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Sidebar'ı tamamen gizle */
    body.page-template .site-content .container .content-area .sidebar,
    .contact-page .sidebar {
        display: none !important;
    }

    /* Main content düzenlemesi - tam genişlik */
    body.page-template .site-content .container .content-area .main-content,
    .contact-page .main-content {
        width: 100% !important;
        margin-right: 0 !important;
        order: 1;
        flex: none !important;
        max-width: 100% !important;
    }

    /* Form wrapper düzenlemesi */
    .contact-form-wrapper {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 25px !important;
        box-sizing: border-box;
    }

    /* Container genişliği */
    .site-content .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    /* Form wrapper mobil optimizasyonu */
    .contact-form-wrapper {
        padding: 20px !important;
        margin: 15px 0 !important;
        border-radius: 8px;
    }
    
    /* Başlık düzenlemesi */
    .contact-page .page-title {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Buton düzenlemesi */
    .contact-submit-btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        min-width: 100% !important;
        min-height: 50px !important;
        margin-top: 20px !important;
        box-sizing: border-box;
    }
    
    /* Form elemanları mobil için optimize et */
    .form-field {
        margin-bottom: 20px;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px !important; /* iOS zoom'u önlemek için */
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 50px !important; /* Touch-friendly */
        border-radius: 8px;
    }
    
    .form-field textarea {
        min-height: 120px !important;
        padding: 15px !important;
        resize: vertical;
    }
    
    /* Form row düzenlemesi */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    /* Container padding */
    .site-content .container {
        padding: 0 10px !important;
    }
}

@media (max-width: 480px) {
    /* Küçük mobil cihazlar */
    .contact-description,
    .contact-form-wrapper {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .form-field {
        margin-bottom: 18px;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 14px 15px !important;
        font-size: 16px !important;
        min-height: 48px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-field textarea {
        min-height: 110px !important;
        padding: 14px 15px !important;
    }
    
    .contact-submit-btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
        min-height: 52px !important;
        margin-top: 20px !important;
        border-radius: 8px;
    }
    
    /* Mobilde form row'ları tek sütuna çevir */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .contact-page .page-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 18px;
    }
    
    .contact-description {
        padding: 15px !important;
        margin-bottom: 18px !important;
        text-align: center;
    }
    
    /* Label düzenlemesi */
    .form-field label {
        margin-bottom: 8px;
        display: block;
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Container minimum padding */
    .site-content .container {
        padding: 0 8px !important;
    }
}

/* Ekstra küçük ekranlar için */
@media (max-width: 375px) {
    .contact-form-wrapper {
        padding: 12px !important;
        margin: 8px 0 !important;
        border-radius: 6px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px !important;
        font-size: 16px !important;
        min-height: 46px !important;
    }

    .contact-page .page-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .site-content .container {
        padding: 0 6px !important;
    }
    
    .contact-description {
        padding: 12px !important;
        font-size: 14px;
    }
}

/* === OYUNCU VE YÖNETMEN ETİKETLERİ === */

/* Meta Tags (Oyuncu/Yönetmen Etiketleri) */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.meta-tag {
    display: inline-block;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(251, 191, 36, 0.5);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.meta-tag:hover {
    color: #f59e0b;
    text-decoration-color: #f59e0b;
}

/* Oyuncu ve yönetmen etiketleri için aynı stil */
.oyuncu-tag,
.yonetmen-tag {
    color: #fbbf24;
    text-decoration: underline;
    text-decoration-color: rgba(251, 191, 36, 0.5);
}

.oyuncu-tag:hover,
.yonetmen-tag:hover {
    color: #f59e0b;
    text-decoration-color: #f59e0b;
}

/* Static meta tags (taxonomy'ye dönüştürülmemiş) */
.meta-tag-static {
    color: #cbd5e1;
    font-style: italic;
}

/* Archive Pages Stilleri */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.archive-header .page-title {
    font-size: 28px;
    color: #fbbf24;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.oyuncu-icon,
.yonetmen-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.archive-description {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.archive-description p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.archive-meta {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 15px;
}

.archive-count {
    background: rgba(15, 20, 25, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

/* Related Terms Bölümü */
.related-terms {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.term-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.term-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.term-tag:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
}

.term-count {
    font-size: 12px;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.btn-home {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-home:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* === SİDEBAR FİLM WİDGET'LARI === */

/* Sidebar Film Listesi */
.sidebar-film-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-film-item {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.sidebar-film-item:hover {
    background: rgba(15, 20, 25, 0.7);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-film-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.sidebar-film-poster {
    flex-shrink: 0;
    width: 50px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.sidebar-film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.sidebar-film-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.sidebar-film-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-film-year {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.sidebar-film-item:hover .sidebar-film-title {
    color: #fbbf24;
}

.sidebar-film-item:hover .sidebar-film-year {
    color: #cbd5e1;
}

/* Son Eklenenler başlık sınırlaması */
.recent-posts li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Responsive Sidebar Film Widget'ları */
@media (max-width: 900px) {
    .home .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .sidebar-film-poster {
        width: 45px;
        height: 65px;
    }
    
    .sidebar-film-title {
        font-size: 12px;
    }
    
    .sidebar-film-year {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .home .sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-film-list {
        gap: 12px;
    }
    
    .sidebar-film-link {
        padding: 10px;
        gap: 10px;
    }
    
    .sidebar-film-poster {
        width: 40px;
        height: 60px;
    }
    
    .sidebar-film-title {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}

/* === SİDEBAR EK STİLLERİ === */

/* Post Date Stili */
.post-date {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Category Count Stili */
.category-count {
    font-size: 11px;
    color: #94a3b8;
    opacity: 0.8;
}

/* Sidebar Film Meta */
.sidebar-film-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.sidebar-film-comments {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Tag Cloud Stili */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateY(-1px);
}

.tag-count {
    font-size: 10px;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 4px;
    border-radius: 6px;
}

/* Widget Başlıkları İyileştirme */
.widget-title {
    position: relative;
    padding-left: 20px;
}

.widget-title:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-size: 12px;
    top: 2px;
}

/* Archives Listesi */
.widget ul li {
    transition: all 0.3s ease;
}

.widget ul li:hover {
    background: rgba(251, 191, 36, 0.05);
    padding-left: 5px;
    border-radius: 4px;
}

/* Content Meta Stili (ana sayfa için) */
.content-meta {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-count {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Admin Actions */
.admin-actions {
    margin: 20px 0;
}

/* Suggestions List */
.suggestions {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.suggestions h3 {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 15px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions li {
    color: #94a3b8;
    font-size: 14px;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.suggestions li:before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* Page Header */
.page-header {
    margin-bottom: 20px;
}

/* Responsive Sidebar Improvements */
@media (max-width: 900px) {
    .sidebar-film-meta {
        gap: 6px;
    }
    
    .tag-cloud {
        gap: 4px;
    }
    
    .tag-link {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 600px) {
    .widget-title:before {
        display: none;
    }
    
    .widget-title {
        padding-left: 0;
        font-size: 15px;
    }
    
    .post-date {
        font-size: 10px;
    }
    
    .sidebar-film-comments {
        font-size: 9px;
    }
    
    .tag-link {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .tag-count {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* Responsive için Oyuncu/Yönetmen Etiketleri */
@media (max-width: 600px) {
    .meta-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archive-header .page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .term-tags {
        gap: 8px;
    }
    
    .term-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .meta-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .oyuncu-icon,
    .yonetmen-icon {
        font-size: 28px;
    }
}

/* === TÜM ARŞİV SAYFALARINDA MOBİL UYUMLULUK === */
@media (max-width: 900px) {
    /* Ana sayfa harici tüm sayfalar için mobil düzen */
    body:not(.home) .content-area {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    body:not(.home) .sidebar {
        width: 100% !important;
        order: 2 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    body:not(.home) .main-content {
        order: 1 !important;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    /* Mobil ana sayfa harici tüm sayfalar */
    body:not(.home) .content-area {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    body:not(.home) .sidebar {
        grid-template-columns: 1fr !important;
        margin-top: 20px !important;
    }
    
    body:not(.home) .page-title {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    body:not(.home) .film-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    body:not(.home) .content-wrapper {
        padding: 15px !important;
    }
    
    /* Archive header düzenlemeleri */
    .archive-header {
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    
    .related-terms {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }
    
    .term-tags {
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .term-tag {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
}

@media (max-width: 480px) {
    /* Çok küçük mobil ana sayfa harici tüm sayfalar */
    body:not(.home) .page-title {
        font-size: 18px !important;
    }
    
    body:not(.home) .film-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    body:not(.home) .content-wrapper {
        padding: 12px !important;
        margin: 0 5px !important;
    }
    
    body:not(.home) .container {
        padding: 0 5px !important;
    }
    
    /* Archive sayfaları küçük mobil */
    .archive-header {
        margin-bottom: 20px !important;
    }
    
    .section-title {
        font-size: 18px !important;
        text-align: center !important;
    }
    
    .term-tag {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
}

/* === MOBİL UYUMLULUK EK STİLLERİ === */

/* Screen Reader Text */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
}

.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000;
}

/* Archive Type Icons */
.archive-type {
font-size: 1.2em;
margin-right: 8px;
display: inline-block;
vertical-align: middle;
}

/* Search Term Highlighting */
.search-term {
color: #fbbf24;
font-weight: 700;
background: rgba(251, 191, 36, 0.1);
padding: 2px 6px;
border-radius: 4px;
}

/* Search Suggestions */
.search-suggestions {
background: rgba(30, 41, 59, 0.3);
border-radius: 8px;
padding: 20px;
margin: 20px 0;
border: 1px solid rgba(251, 191, 36, 0.1);
}

.search-suggestions h3 {
color: #fbbf24;
font-size: 16px;
margin-bottom: 15px;
}

.search-suggestions ul {
list-style: none;
padding: 0;
margin: 0;
}

.search-suggestions li {
color: #94a3b8;
font-size: 14px;
padding: 5px 0;
position: relative;
padding-left: 20px;
}

.search-suggestions li:before {
content: '•';
color: #fbbf24;
font-weight: bold;
position: absolute;
left: 0;
}

/* New Search Form */
.new-search-form {
background: rgba(15, 20, 25, 0.5);
border-radius: 8px;
padding: 20px;
margin: 25px 0;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.new-search-form h3 {
color: #fbbf24;
font-size: 16px;
margin-bottom: 15px;
}

.new-search-form .search-form {
width: 100%;
max-width: 400px;
}

.new-search-form .search-field {
width: calc(100% - 80px);
padding: 12px 15px;
font-size: 16px;
min-height: 44px;
border-radius: 8px 0 0 8px;
}

.new-search-form .search-submit {
padding: 12px 16px;
font-size: 14px;
min-height: 44px;
min-width: 80px;
border-radius: 0 8px 8px 0;
}

/* Enhanced Archive Headers */
.archive-header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.archive-header .page-title {
font-size: 24px;
color: #fbbf24;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
line-height: 1.3;
}

.archive-description {
background: rgba(30, 41, 59, 0.3);
border-radius: 8px;
padding: 15px;
margin: 15px 0;
border: 1px solid rgba(251, 191, 36, 0.1);
}

.archive-description p {
color: #cbd5e1;
margin: 0;
line-height: 1.6;
}

.archive-meta {
color: #94a3b8;
font-size: 14px;
margin-top: 10px;
}

.archive-count {
background: rgba(15, 20, 25, 0.5);
padding: 6px 12px;
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
display: inline-block;
font-size: 13px;
}

/* Enhanced No Content Section */
.no-content {
text-align: center;
padding: 40px 20px;
background: rgba(30, 41, 59, 0.3);
border-radius: 12px;
border: 1px solid rgba(251, 191, 36, 0.1);
}

.no-content h2 {
color: #fbbf24;
font-size: 20px;
margin-bottom: 15px;
}

.no-content p {
font-size: 16px;
color: #94a3b8;
margin-bottom: 15px;
line-height: 1.6;
}

/* Related Terms Styling */
.related-terms {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-terms .section-title {
font-size: 18px;
color: #fbbf24;
margin-bottom: 15px;
text-align: center;
}

.term-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
margin-top: 15px;
}

.term-tag {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(30, 41, 59, 0.5);
color: #cbd5e1;
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
text-decoration: none;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}

.term-tag:hover {
background: rgba(251, 191, 36, 0.2);
color: #fbbf24;
border-color: rgba(251, 191, 36, 0.3);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.term-count {
font-size: 11px;
opacity: 0.7;
background: rgba(0, 0, 0, 0.2);
padding: 1px 5px;
border-radius: 8px;
margin-left: 3px;
}

/* Enhanced Button Styles */
.btn-home {
display: inline-block;
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
color: #0f172a;
padding: 12px 20px;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
margin-top: 20px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.btn-home:hover {
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
color: #0f172a;
}

/* Mobile Specific Improvements */
@media (max-width: 900px) {
.archive-header .page-title {
    font-size: 22px;
    flex-direction: column;
    gap: 5px;
}

.archive-type {
    font-size: 1.5em;
}

.new-search-form .search-form {
    flex-direction: column;
    gap: 10px;
}

.new-search-form .search-field {
    width: 100%;
    border-radius: 8px;
}

.new-search-form .search-submit {
    width: 100%;
    border-radius: 8px;
    min-width: 100%;
}

.term-tags {
    gap: 8px;
}

.term-tag {
    font-size: 12px;
    padding: 5px 10px;
}
}

@media (max-width: 600px) {
.archive-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.archive-header .page-title {
    font-size: 20px;
}

.archive-type {
    font-size: 1.3em;
}

.no-content {
    padding: 30px 15px;
}

.no-content h2 {
    font-size: 18px;
}

.search-suggestions,
.new-search-form {
    padding: 15px;
    margin: 15px 0;
}

.related-terms {
    margin-top: 20px;
    padding-top: 15px;
}

.related-terms .section-title {
    font-size: 16px;
}

.btn-home {
    width: 100%;
    max-width: 280px;
    margin: 20px auto;
    display: flex;
}
}

@media (max-width: 480px) {
.archive-header .page-title {
    font-size: 18px;
}

.archive-type {
    font-size: 1.2em;
}

.archive-count {
    padding: 4px 10px;
    font-size: 12px;
}

.no-content {
    padding: 25px 12px;
}

.no-content h2 {
    font-size: 16px;
}

.no-content p {
    font-size: 14px;
}

.search-suggestions li,
.term-tag {
    font-size: 11px;
}

.new-search-form .search-field,
.new-search-form .search-submit {
    padding: 10px 12px;
    min-height: 42px;
}
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
/* Ensure all interactive elements are at least 44px */
.search-submit,
.btn-home,
.term-tag,
.pagination a,
.pagination span {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Prevent double-tap zoom on buttons */
button,
input[type="submit"],
input[type="button"],
.btn-home,
.search-submit {
    touch-action: manipulation;
}

/* Better spacing for touch */
.term-tags {
    gap: 12px;
}

.pagination {
    gap: 10px;
}

/* Footer menü mobil düzenlemesi */
.footer-nav .footer-menu {
    flex-direction: column;
    gap: 10px;
}

.footer-nav .footer-menu a {
    padding: 10px 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
}

/* === MOBİL MENÜ EK STİLLERİ === */
@media (max-width: 600px) {
    /* Mobil menü JavaScript ile kontrol edilecek */
    .mobile-nav {
        display: block;
    }
    
    /* Footer menü responsive */
    .footer-nav .footer-menu {
        gap: 8px;
    }
    
    .footer-nav .footer-menu a {
        padding: 8px 12px;
        font-size: 14px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    /* Çok küçük mobil cihazlar için footer menü */
    .footer-nav .footer-menu a {
        padding: 6px 10px;
        font-size: 13px;
        min-height: 36px;
    }
}

/* === AVATAR SİSTEMİ STİLLERİ === */

/* Yorum Avatar Stilleri - Geliştirilmiş */
.comment-author img.avatar {
    border-radius: 50% !important;
    border: 2px solid #fbbf24 !important;
    object-fit: cover !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
    display: block !important;
}

.comment-author img.avatar:hover {
    border-color: #f59e0b !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5) !important;
}

/* Avatar boyutları - WordPress standartları */
.avatar-32 {
    width: 32px !important;
    height: 32px !important;
}

.avatar-40 {
    width: 40px !important;
    height: 40px !important;
}

.avatar-48 {
    width: 48px !important;
    height: 48px !important;
}

.avatar-50 {
    width: 50px !important;
    height: 50px !important;
}

.avatar-60 {
    width: 60px !important;
    height: 60px !important;
}

.avatar-64 {
    width: 64px !important;
    height: 64px !important;
}

.avatar-96 {
    width: 96px !important;
    height: 96px !important;
}

/* Default avatar stilleri */
.comment-author img.avatar[src*="default.png"] {
    border-color: #64748b !important;
    opacity: 0.8 !important;
}

.comment-author img.avatar[src*="default.png"]:hover {
    border-color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Yorum meta düzenlemesi avatar ile */
.comment-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

.comment-author {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.author-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.author-name {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
}

.comment-date {
    color: #94a3b8 !important;
    font-size: 12px !important;
    opacity: 0.8 !important;
    margin: 0 !important;
}

/* Yorum item hover efekti */
.comment-item {
    transition: all 0.3s ease !important;
}

.comment-item:hover {
    background: rgba(15, 23, 42, 0.8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Yorum beklemede durumu */
.comment-awaiting {
    color: #fbbf24 !important;
    font-style: italic !important;
    margin-bottom: 10px !important;
    background: rgba(251, 191, 36, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    border-left: 3px solid #fbbf24 !important;
}

/* Yorum text stilleri */
.comment-text {
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* Yorum actions */
.comment-actions a {
    color: #fbbf24 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.comment-actions a:hover {
    color: #f59e0b !important;
    background: rgba(251, 191, 36, 0.1) !important;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.5) !important;
}

/* Mobil Responsive Avatar Stilleri */
@media (max-width: 768px) {
    .comment-reply {
        margin-left: 20px !important;
    }
    
    .comment-author {
        gap: 8px !important;
    }
    
    .comment-author img.avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .author-name {
        font-size: 14px !important;
    }
    
    .comment-date {
        font-size: 11px !important;
    }
    
    .comment-text {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .comment-author img.avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .author-name {
        font-size: 13px !important;
    }
    
    .comment-date {
        font-size: 10px !important;
    }
    
    .comment-text {
        font-size: 13px !important;
    }
    
    .comment-actions a {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }
}

/* Avatar loading placeholder */
.avatar-loading {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 25%, rgba(51, 65, 85, 0.8) 50%, rgba(30, 41, 59, 0.8) 75%) !important;
    background-size: 200% 100% !important;
    animation: avatar-loading 1.5s infinite !important;
}

@keyframes avatar-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Avatar error fallback */
.avatar-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    color: #ef4444 !important;
}

.avatar-error::before {
    content: '👤' !important;
}

/* Yorum form avatar preview */
.comment-form-avatar-preview {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    padding: 10px !important;
    background: rgba(30, 41, 59, 0.3) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(251, 191, 36, 0.1) !important;
}

.comment-form-avatar-preview img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #fbbf24 !important;
    object-fit: cover !important;
}

.comment-form-avatar-preview .preview-text {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

.comment-form-avatar-preview .preview-name {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}
