:root {
    --lb-bg: #14181c;
    --lb-card: #1b2228;
    --lb-green: #00e054;
    --lb-orange: #ff8000;
    --lb-blue: #40bcf4;
    --lb-text: #99aabb;
}
body { background-color: var(--lb-bg); color: white; font-family: 'Inter', -apple-system, system-ui, sans-serif; }

.stat-card { 
    background-color: var(--lb-card); 
    border: 1px solid #2c3440; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-card:hover { 
    transform: translateY(-4px); 
    border-color: #445566;
    box-shadow: 0 10px 30px -10px rgba(0, 224, 84, 0.15);
}
.stat-card:nth-child(3n+1):hover { box-shadow: 0 10px 30px -10px rgba(64, 188, 244, 0.2); }
.stat-card:nth-child(3n+2):hover { box-shadow: 0 10px 30px -10px rgba(255, 128, 0, 0.2); }

.year-scroll::-webkit-scrollbar, .film-list-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.year-scroll::-webkit-scrollbar-track, .film-list-scroll::-webkit-scrollbar-track { background: #14181c; }
.year-scroll::-webkit-scrollbar-thumb, .film-list-scroll::-webkit-scrollbar-thumb { background: #2c3440; border-radius: 3px; }
.year-scroll::-webkit-scrollbar-thumb:hover, .film-list-scroll::-webkit-scrollbar-thumb:hover { background: #445566; }

.tag-badge {
    background-color: #2c3440; color: #99aabb;
    padding: 4px 12px; border-radius: 999px; font-size: 0.85rem;
    transition: all 0.2s; border: 1px solid transparent;
}
.tag-badge:hover { background-color: #445566; color: white; border-color: #99aabb; }

select { 
    background-color: #2c3440; color: white; border: 1px solid #445566; border-radius: 0.5rem;
    padding: 0.5rem 2rem 0.5rem 1rem; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2399aabb' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em;
    transition: border-color 0.2s;
}
select:focus { outline: none; border-color: #00e054; }

.fact-value { color: #fff; font-weight: 800; font-size: 1.25rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: help; }
.fact-sub { color: #99aabb; font-size: 0.85rem; margin-top: 6px; font-weight: 500; }
.instruction-link { color: var(--lb-green); text-decoration: none; border-bottom: 1px dotted var(--lb-green); transition: all 0.2s;}
.instruction-link:hover { color: white; border-bottom-style: solid; }
.star-rating { color: #00e054; font-size: 0.85rem; letter-spacing: 1px; }

/* --- LETTERBOXD STYLE STAR RATING (Geliştirilmiş) --- */
.lb-rate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lb-rate {
    display: inline-flex;
    flex-direction: row-reverse; /* Sağdan sola sıralama mantığı */
    justify-content: center;
    align-items: center;
    border: 0;
    position: relative;
}

/* Radio Buttonları Gizle */
.lb-rate > input { display: none; }

/* Label (Yıldız Parçası) Ayarları */
.lb-rate > label {
    width: 24px; /* Yarım yıldız genişliği */
    height: 50px; /* Yıldız yüksekliği */
    font-size: 50px; /* Yıldız boyutu */
    color: #445566; /* Pasif renk */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    line-height: 50px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Zıplama efekti */
}

/* Yıldız İkonu */
.lb-rate > label:before {
    content: "\2605"; /* ★ */
    position: absolute;
    top: 0;
    width: 48px; /* Tam yıldız genişliği (label'ın 2 katı) */
    height: 50px;
    transition: color 0.15s ease;
}

/* YARIM (LEFT HALF) */
.lb-rate > label.half:before {
    left: 0; 
}

/* TAM (RIGHT HALF) */
.lb-rate > label:not(.half):before {
    left: -24px; /* Sağa yaslamak için sola kaydır */
}

/* --- ETKİLEŞİM RENKLERİ --- */

/* Seçili Durum (Yeşil) */
.lb-rate > input:checked ~ label:before {
    color: #00e054; 
    text-shadow: 0 0 10px rgba(0, 224, 84, 0.4); /* Glow efekti */
}

/* Hover Durumu (Mavi) */
.lb-rate > label:hover:before,
.lb-rate > label:hover ~ label:before,
.lb-rate > input:checked + label:hover:before,
.lb-rate > input:checked ~ label:hover:before,
.lb-rate > label:hover ~ input:checked ~ label:before {
    color: #40bcf4 !important; /* Hover her zaman mavidir */
    text-shadow: 0 0 15px rgba(64, 188, 244, 0.6);
}

/* Hover Animasyonu (Hafif Büyüme) */
.lb-rate > label:hover,
.lb-rate > label:hover ~ label {
    transform: scale(1.1);
    z-index: 10;
}

/* Seçilen Puanın Metni */
#rating-display {
    font-family: 'Courier New', monospace; /* Letterboxd tarzı font */
    font-weight: bold;
    font-size: 1.5rem;
    color: #00e054;
    height: 2rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}
/* --- QUIZ STYLES --- */
.quiz-overlay { background-color: rgba(20, 24, 28, 0.95); backdrop-filter: blur(5px); }
.quiz-btn { background: #2c3440; border: 1px solid #445566; color: #fff; transition: all 0.1s; }
.quiz-btn:hover { background: #445566; transform: scale(1.05); border-color: #fff; }
.quiz-btn.correct { background: #00e054; border-color: #00e054; color: #14181c; }
.quiz-btn.wrong { background: #ff4040; border-color: #ff4040; opacity: 0.5; }

.gamemode-card { cursor: pointer; border: 2px solid #2c3440; transition: all 0.2s; }
.gamemode-card:hover { border-color: #00e054; background: #2c3440; }

.decade-btn { background: #2c3440; border: 2px solid #445566; color: #fff; padding: 1rem; border-radius: 0.5rem; font-weight: bold; font-size: 1.1rem; transition: all 0.1s; }
.decade-btn:hover { background: #445566; border-color: #fff; }
.decade-btn.correct { background: #00e054; border-color: #00e054; color: #14181c; }
.decade-btn.wrong { background: #ff4040; border-color: #ff4040; opacity: 0.5; }

#quizPoster {
    transition: opacity 0.3s ease-in;
}