/* --- ARAYÜZ İYİLEŞTİRMELERİ --- */

/* Metin Seçim Rengi */
::selection {
    background: var(--accent-color);
    color: #000;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* --- GENEL AYARLAR --- */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #cda45e; /* Altın/Bronz tonu */
    --card-bg: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-snap-type: y mandatory;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lora', serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 { font-family: 'Cinzel', serif; letter-spacing: 2px; }

/* Pulse animasyonu - otomatik oynatma hatası için */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- BAŞLANGIÇ EKRANI (AUDIO İZNİ İÇİN) --- */
#start-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(1px);
    display: none;
    /* Hardware acceleration for better performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: opacity;
    /* Prevent layout shifts */
    contain: layout style paint;
}

.background-video.active {
    display: block;
}

/* Video performans optimizasyonları */
@media (prefers-reduced-motion: reduce) {
    .background-video {
        animation: none !important;
        opacity: 0.1; /* Daha da silik yap */
    }
}

/* Düşük güç modu desteği */
@media (prefers-reduced-data: reduce) {
    .background-video {
        opacity: 0.1; /* Çok daha silik */
        filter: blur(2px); /* Daha fazla bulanıklaştırma */
    }
}

/* Yavaş bağlantılar için */
@media (max-width: 768px) {
    .background-video {
        opacity: 0.15; /* Mobil için daha silik */
        filter: blur(1.5px);
    }
}

.start-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

#start-screen h1 {
    font-size: 8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(205, 164, 94, 0.3), 0 0 10px rgba(0,0,0,0.8);
    letter-spacing: 8px;
    font-weight: 700;
    text-align: center;
}

#start-screen h1 span {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: 1px;
    color: #888;
    margin-top: 15px;
    line-height: 1.2;
}

.enter-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.enter-btn:hover { background: var(--accent-color); color: #000; box-shadow: 0 0 20px rgba(205, 164, 94, 0.5); }

/* --- SAYFA YAPISI --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- KAPAK --- */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #333;
    scroll-snap-align: start;
}

header h1 { font-size: 8rem; color: var(--accent-color); margin-bottom: 20px; text-shadow: 0 0 20px rgba(205, 164, 94, 0.3), 0 0 10px rgba(0,0,0,0.8); letter-spacing: 8px; font-weight: 700; }
header h1 span {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: 1px;
    color: #888;
    margin-top: 15px;
    line-height: 1.2;
}
header p { font-size: 1.2rem; opacity: 0.7; max-width: 600px; }
.scroll-hint { margin-top: 50px; animation: bounce 2s infinite; opacity: 0.5; font-size: 0.9rem; }

/* --- BÖLÜMLER (SAYFALAR) --- */
.chapter {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 0;
    border-bottom: 1px solid #1a1a1a;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    scroll-snap-align: start;
}

.chapter.visible { opacity: 1; transform: translateY(0); }

/* Sol/Sağ Düzeni */
.chapter:nth-child(even) { flex-direction: row-reverse; }

.text-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
}

.text-content h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--accent-color); }
.text-content h3 { font-size: 1rem; color: #666; margin-bottom: 30px; text-transform: uppercase; }
.text-content p { font-size: 1.1rem; line-height: 1.8; color: #ccc; margin-bottom: 25px; }

/* Daha Fazla Butonu */
.more-btn {
    padding: 12px 30px;
    font-size: 1rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    font-family: 'Lora', serif;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

.more-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(205, 164, 94, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 50px auto;
    padding: 40px;
    border: 1px solid #333;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.4s ease;
}

.modal-content h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.modal-content h3 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #ddd;
    margin-bottom: 20px;
}

.modal-content .section-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}

.modal-content .sources {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.modal-content .sources h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-content .sources ul {
    list-style: none;
    padding: 0;
}

.modal-content .sources li {
    font-size: 0.8rem;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.modal-content .sources li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.modal-content .sources li em {
    color: #ccc;
    font-style: italic;
}

.modal-content .sources li a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: border-bottom-color 0.3s ease;
}

.modal-content .sources li a:hover {
    border-bottom-color: transparent;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--accent-color);
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- MEDYA ALANI (GÖRSEL VE VİDEO) --- */
.media-wrapper {
    flex: 1.2;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.media-wrapper:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.media-wrapper:focus-visible {
    box-shadow: 0 0 20px rgba(205, 164, 94, 0.6);
}

.media-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(205, 164, 94, 0.2);
    border: 1px solid var(--accent-color);
}

/* Görsel (Varsayılan) */
.media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Video (Gizli) */
.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #000;
}

/* Video Loading State */
.media-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(205, 164, 94, 0.3);
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
    z-index: 5;
    box-shadow: 0 0 20px rgba(205, 164, 94, 0.3);
}

.media-wrapper.loading::before {
    content: 'YÜKLENİYOR';
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    z-index: 5;
    opacity: 0.8;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Video Error State */
.media-wrapper.error::after {
    content: 'Video yüklenemedi';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 0.9rem;
    text-align: center;
    z-index: 5;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

/* Hover Durumu */
.media-wrapper:hover img { opacity: 0; }
.media-wrapper:hover video { opacity: 1; z-index: 3; }

/* Yükleme İkonu (Opsiyonel) */
.hover-hint {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    z-index: 4;
    pointer-events: none;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.hover-hint:hover {
    opacity: 0.7;
}

/* --- FİNAL --- */
footer {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    scroll-snap-align: start;
    gap: 20px;
}
.end-text { font-size: 2rem; color: #555; font-family: 'Cinzel', serif; }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }


/* --- TIMELINE SYSTEM (GELİŞMİŞ) --- */

.timeline-system {
    position: fixed;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Metinlerin okunması için üstten aşağıya daha yumuşak bir gölge */
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden; /* Tıklamayı engelle */
}

.timeline-system.visible {
    opacity: 1;
    visibility: visible;
}

/* --- MASAÜSTÜ (YATAY) --- */
.timeline-system {
    top: 0;
    left: 0;
    width: 100%;
    height: 140px; /* Yüksekliği artırdık ki metinler kesilmesin */
    pointer-events: none; /* Tıklamalar arkaya geçsin */
}

/* Çizgi */
.timeline-line {
    position: absolute;
    top: 0; /* Çizgiyi biraz aşağı aldık */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* İlerleme Dolgusu */
.timeline-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transition: width 0.1s linear;
}

/* Markerlar Konteyneri */
.timeline-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all; /* Markerlara tıklanabilir */
}

/* Tekil Marker (Tıklama Alanı) */
.timeline-marker {
    position: absolute;
    top: 30px; /* Çizgi ile aynı hizada */
    transform: translate(-50%, -50%); /* Tam ortala */
    width: 50px; /* Tıklama alanını genişlettik */
    height: 50px; /* Tıklama alanını yükselttik */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Diğer elementlerin üstünde */
}

/* Görünür Nokta (DOT) - Varsayılan Boyut BÜYÜTÜLDÜ */
.timeline-dot {
    width: 18px; /* Eskisi 14px idi, büyüttük */
    height: 18px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #aaa;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Yumuşak büyüme efekti */
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    position: relative;
}

/* --- HOVER VE AKTİF DURUMU (BÜYÜME EFEKTİ) --- */
.timeline-marker:hover .timeline-dot,
.timeline-marker.active .timeline-dot {
    width: 28px; /* Hoverda çok daha büyük */
    height: 28px;
    background: var(--accent-color); /* Altın rengi */
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(205, 164, 94, 0.3), 0 0 25px var(--accent-color);
    transform: scale(1.1);
}

/* Etiket (Bilgi Kutusu) - KONUM DÜZELTİLDİ */
.timeline-info {
    position: absolute;
    top: 45px; /* Noktanın yeterince altına ittik */
    left: 50%;
    transform: translateX(-50%); /* Sadece yatayda ortala */
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, transform 0.3s ease;
    pointer-events: auto; /* Hover için tıklanabilir yap */
    white-space: nowrap;
    background: rgba(10, 10, 10, 0.9);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 101;
}

/* Hover veya Aktif olunca göster */
.timeline-marker:hover .timeline-info,
.timeline-marker.active .timeline-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px); /* Hafif aşağı kayma efekti */
}

/* Timeline-info üzerine gelince büyüme efekti */
.timeline-info:hover {
    transform: translateX(-50%) translateY(5px) scale(1.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.95);
    border-color: #fff;
}

/* Section değişiminde büyüme-küçülme animasyonu */
@keyframes timelinePulse {
    0% {
        transform: translateX(-50%) translateY(5px) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(5px) scale(1.3);
    }
    100% {
        transform: translateX(-50%) translateY(5px) scale(1);
    }
}

.timeline-info.section-change {
    animation: timelinePulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-date {
    display: block;
    font-size: 0.85rem; /* Tarih büyütüldü */
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'Cinzel', serif;
    margin-bottom: 2px;
}

.timeline-label {
    display: block;
    font-size: 0.75rem; /* Etiket büyütüldü */
    color: #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MOBİL / DİKEY EKRANLAR (ÜST PROGRES ÇUBUĞU) --- */
@media (max-width: 768px) {
    .timeline-system {
        top: 0;
        left: 0;
        width: 100%; /* Tam genişlik */
        height: 4px; /* Sadece ince bir çizgi */
        background: rgba(0,0,0,0.8);
        z-index: 10000; /* En üstte */
    }

    /* Çizgi */
    .timeline-line {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: rgba(255, 255, 255, 0.1);
    }

    /* İlerleme */
    .timeline-progress {
        width: 0%; /* JS ile güncellenecek */
        height: 100%;
        background: var(--accent-color);
        box-shadow: 0 0 10px var(--accent-color);
    }

    /* Marker (Noktalar) - Mobilde Gizle */
    /* Mobilde noktalara tıklamak zordur ve ekranı kapatır, sadece bar kalsın */
    .timeline-markers {
        display: none; 
    }
}


/* Müzik Kontrol Butonu */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(17, 17, 17, 0.4);
    border: 2px solid rgba(205, 164, 94, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0.5;
}

.music-control:hover {
    background: rgba(205, 164, 94, 0.3);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(205, 164, 94, 0.5);
    transform: scale(1.1);
    opacity: 1;
}

.music-control svg {
    width: 24px;
    height: 24px;
    fill: rgba(205, 164, 94, 0.7);
    transition: fill 0.3s ease;
}

.music-control:hover svg {
    fill: var(--accent-color);
}

.music-control.muted svg {
    fill: rgba(102, 102, 102, 0.7);
}

.music-control[aria-pressed="false"] {
    opacity: 0.3;
}

/* Erişilebilirlik */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: #000;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: bold;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .chapter { flex-direction: column !important; text-align: center; padding: 50px 0; }
    .text-content { padding: 20px; }
    header h1 { font-size: 3.2rem; letter-spacing: 2px; padding: 0 10px; }
    .hover-hint { display: none; } /* Mobilde hover-hint gizle */
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px auto;
    }
    .modal-content h2 { font-size: 2rem; }
    .modal-content h3 { font-size: 1rem; }
    .modal-content p { font-size: 1rem; }
    .more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .music-control {
        top: 10px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    .music-control svg {
        width: 20px;
        height: 20px;
    }
}

/* 9:16 Dikey Cihaz Desteği (Portrait Mode) */
@media (orientation: portrait) and (max-width: 500px),
       (max-width: 500px) and (min-aspect-ratio: 9/16) {
    /* Header Optimizasyonu */
    header {
        height: 100vh;
        padding: 20px;
    }

    header h1 {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    header p {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .scroll-hint {
        font-size: 0.75rem;
        margin-top: 30px;
    }

    /* Chapter Düzeni */
    .chapter {
        flex-direction: column !important;
        min-height: auto;
        padding: 40px 15px;
        gap: 25px;
    }

    /* Media Wrapper - 9:16 Aspect Ratio */
    .media-wrapper {
        flex: none;
        width: 100%;
        aspect-ratio: 4/5;
        max-height: 60vh;
        margin-bottom: 20px;
    }

    /* Text Content */
    .text-content {
        flex: none;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .text-content h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .text-content h3 {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Butonlar */
    .more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Modal Optimizasyonu */
    .modal-content {
        width: 98%;
        padding: 25px 15px;
        margin: 10px auto;
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.6rem;
    }

    .modal-content h3 {
        font-size: 0.9rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal-content .section-title {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .modal-content .sources h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .modal-content .sources li {
        font-size: 0.75rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    /* Müzik Kontrol */
    .music-control {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }


    .music-control svg {
        width: 18px;
        height: 18px;
    }

    /* Footer */
    footer {
        height: 40vh;
        padding: 20px;
    }

    .end-text {
        font-size: 1.3rem;
    }

    /* Start Screen */
    #start-screen h1 {
        font-size: 4rem;
    }

    #start-screen h1 span {
        font-size: 0.4em;
    }

/* Alıntı Overlay */
.quote-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(5px);
    z-index: 2;
}


    #start-screen p {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .enter-btn {
        padding: 12px 30px;
        font-size: 1.2rem;
    }
}

/* Çok Küçük Dikey Cihazlar (iPhone SE gibi) */
@media (orientation: portrait) and (max-width: 375px) {
    header h1 {
        font-size: 2.5rem;
    }

    .text-content h2 {
        font-size: 1.5rem;
    }

    .media-wrapper {
        max-height: 55vh;
    }
}

/* Footer küçük yazı */
.epilogue-text {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text-color);
    font-style: italic;
    text-align: center;
    max-width: 500px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 70%;
    max-width: 800px;
    background: #000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.4s ease;
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

.close-video-modal:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--accent-color);
}

.video-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.video-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
}

#video-progress {
    width: 100%;
    height: 5px;
    background: rgba(205, 164, 94, 0.2);
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: height 0.2s ease;
    position: relative;
}

#video-progress:hover {
    height: 7px;
}

/* WebKit - Track (boş kısım) */
#video-progress::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: rgba(205, 164, 94, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

#video-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(205, 164, 94, 0.5);
    margin-top: -5.5px;
    border: 2px solid #000;
}

#video-progress::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(205, 164, 94, 0.8);
    background: #daa520;
}

/* Firefox - Track (boş kısım) */
#video-progress::-moz-range-track {
    width: 100%;
    height: 5px;
    background: rgba(205, 164, 94, 0.2);
    border-radius: 3px;
    cursor: pointer;
    border: none;
}

/* Firefox - Progress (dolu kısım) */
#video-progress::-moz-range-progress {
    height: 5px;
    background: #cda45e; /* var(--accent-color) değeri */
    border-radius: 3px 0 0 3px;
    border: none;
}

#video-progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #cda45e; /* var(--accent-color) değeri */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(205, 164, 94, 0.5);
}

#video-progress::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(205, 164, 94, 0.8);
    background: #daa520;
}

.video-control-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.video-control-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}

.video-control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    padding: 15px 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.volume-slider-container.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

#volume-slider {
    width: 4px;
    height: 120px;
    background: rgba(205, 164, 94, 0.2);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr; /* Modern standart - dikey slider için */
    direction: rtl; /* Dikey slider için gerekli */
    padding: 0 6px; /* Thumb'ı ortalamak için: (thumb width 16px - track width 4px) / 2 = 6px */
    box-sizing: content-box; /* Padding'i hesaplamaya dahil et */
    position: relative;
}

/* WebKit - Dikey Track (boş kısım) */
#volume-slider::-webkit-slider-runnable-track {
    width: 4px;
    height: 120px;
    background: rgba(205, 164, 94, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #cda45e !important; /* var(--accent-color) değeri */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: -6px; /* Thumb'ı track'e ortalamak için: (track width 4px - thumb width 16px) / 2 = -6px */
    margin-right: 0;
    border: 2px solid #000 !important;
    box-shadow: 0 0 10px rgba(205, 164, 94, 0.5);
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(205, 164, 94, 0.8);
    background: #daa520;
}

/* Firefox - Dikey Track (boş kısım) */
#volume-slider::-moz-range-track {
    width: 4px;
    height: 120px;
    background: rgba(205, 164, 94, 0.2);
    border-radius: 2px;
    cursor: pointer;
    border: none;
}

/* Firefox - Dikey Progress (dolu kısım) - Not: Firefox'ta dikey slider için progress çalışmayabilir, JavaScript ile background gradient kullanılıyor */
#volume-slider::-moz-range-progress {
    width: 4px;
    background: #cda45e !important; /* var(--accent-color) değeri */
    border-radius: 2px 2px 0 0;
    border: none;
}

#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #cda45e !important; /* var(--accent-color) değeri */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(205, 164, 94, 0.5);
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(205, 164, 94, 0.8);
    background: #daa520;
}

/* Firefox için dikey slider düzeltmesi */
@-moz-document url-prefix() {
    #volume-slider {
        width: 120px;
        height: 4px;
        transform: rotate(-90deg);
        transform-origin: center;
        margin: 58px 0;
    }
}

/* Mobil için video modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .close-video-modal {
        top: -35px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .video-controls {
        padding: 12px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .video-progress-wrapper {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .video-time-display {
        font-size: 0.75rem;
    }
    
    #video-progress {
        height: 4px;
    }
    
    #video-progress:hover {
        height: 5px;
    }
    
    .video-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-control-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .volume-slider-container {
        margin-bottom: 8px;
    }
    
    #volume-slider {
        height: 100px;
    }
}
