:root {
    --primary: #e50914;
    --primary-glow: rgba(229, 9, 20, 0.6);
    --bg-dark: #0f0f0f;
    --bg-panel: rgba(25, 25, 25, 0.6);
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    --border-color: rgba(255, 255, 255, 0.1);
    --netflix: #E50914;
    --disney: #0063e5;
    --prime: #00A8E1;
    --streamz: #ff0055;
    --apple: #ffffff;
}

* { box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    background: radial-gradient(circle at 50% 10%, #252525 0%, #000000 100%);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.bg-glow {
    position: fixed;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}

#hero-section {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-center { min-height: 90vh; padding-top: 0; }
.hero-top { min-height: 15vh; padding-top: 2rem; }

header {
    text-align: center; margin-bottom: 2.5rem;
    cursor: pointer; user-select: none; transition: all 0.5s ease;
}
.hero-top header { margin-bottom: 1rem; transform: scale(0.8); }

h1 {
    font-weight: 800; font-size: 4rem; margin: 0;
    color: var(--primary); text-transform: uppercase; letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.subtitle {
    color: var(--text-muted); font-weight: 400; font-size: 1.2rem;
    margin-top: 5px; letter-spacing: 1px;
}

.search-wrapper {
    width: 95%; max-width: 850px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px; padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 2rem; position: relative; z-index: 10;
}

.section-title {
    font-size: 0.75rem; color: #666; letter-spacing: 2px;
    font-weight: 700; margin-bottom: 15px; text-align: center;
    width: 100%; text-transform: uppercase;
}

.filters-container { width: 100%; margin-bottom: 20px; }
.platform-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.platform-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    color: #bbb; padding: 12px 24px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; letter-spacing: 0.5px; position: relative; overflow: hidden;
}
.platform-btn:hover { background: rgba(255,255,255,0.1); color: white; transform: translateY(-2px); }
.platform-btn.active { color: white; font-weight: 700; border-color: transparent; transform: translateY(-2px); }

.p-netflix.active { background: linear-gradient(135deg, var(--netflix), #b20710); box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4); }
.p-disney.active { background: linear-gradient(135deg, var(--disney), #004099); box-shadow: 0 5px 20px rgba(0, 99, 229, 0.4); }
.p-prime.active { background: linear-gradient(135deg, var(--prime), #007ea8); box-shadow: 0 5px 20px rgba(0, 168, 225, 0.4); }
.p-streamz.active { background: linear-gradient(135deg, var(--streamz), #cc0044); box-shadow: 0 5px 20px rgba(255, 0, 85, 0.4); }
.p-apple.active { background: linear-gradient(135deg, #fff, #bbb); color: black; box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3); }

/* YENİ PUAN FİLTRESİ STİLLERİ */
.score-filter-container {
    width: 100%;
    margin-bottom: 25px;
    padding: 0 10px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    background: rgba(229, 9, 20, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Slider Çubuğu Tasarımı */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Slider Yolu (Track) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #333;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Slider Yuvarlağı (Thumb) */
input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px; /* Ortalamak için */
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    border: 2px solid white;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox için */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #333;
    border-radius: 5px;
}
input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.separator {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 30px 0;
}

.input-container { width: 100%; margin-bottom: 30px; }
.input-group {
    display: flex; width: 100%; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color); border-radius: 16px;
    overflow: hidden; transition: all 0.3s ease;
}
.input-group:focus-within {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15); background: black;
}
input[type="text"] {
    flex: 1; padding: 20px 25px; font-size: 1.1rem; border: none;
    background: transparent; color: white; outline: none;
    font-family: 'Poppins', sans-serif; font-weight: 500;
}
input::placeholder { color: #555; }
#search-btn {
    width: 70px; background: transparent; color: var(--primary);
    border: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.3s;
    border-left: 1px solid transparent;
}
.input-group:focus-within #search-btn { border-left-color: #333; }
#search-btn:hover { color: white; background: var(--primary); }

.moods-container { width: 100%; }
.tags { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tags span {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
    padding: 10px 20px; border-radius: 50px; font-size: 0.9rem;
    cursor: pointer; color: #ccc; transition: all 0.2s;
}
.tags span:hover {
    background: rgba(255,255,255,0.1); color: white;
    border-color: rgba(255,255,255,0.5); transform: translateY(-2px);
}
.tags span.active {
    background: white; color: black; border-color: white;
    font-weight: 600; box-shadow: 0 0 15px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.movie-list {
    width: 95%; max-width: 900px; display: flex; flex-direction: column;
    gap: 30px; padding-bottom: 4rem; animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.movie-item {
    display: flex; background: #1a1a1a; border-radius: 16px;
    overflow: hidden; min-height: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.movie-item:hover {
    transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}

.poster-box {
    width: 170px; flex-shrink: 0; position: relative; background: #000; cursor: pointer;
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.movie-item:hover .poster-box img { opacity: 1; }

.score-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
    color: #f5c518; padding: 4px 8px; border-radius: 6px;
    font-weight: 700; font-size: 0.85rem; border: 1px solid #f5c518;
    display: flex; align-items: center; gap: 5px;
}
.score-badge img { width: 28px; height: auto; display: block; }

.info-box { padding: 30px; flex: 1; display: flex; flex-direction: column; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.movie-title {
    margin: 0; font-size: 1.8rem; font-weight: 700; color: white;
    line-height: 1.2; cursor: pointer; transition: color 0.2s;
}
.movie-title:hover { color: var(--primary); }
.movie-title span { font-size: 0.6em; font-weight: 400; color: #666; margin-left: 10px; }

.trailer-btn {
    background: rgba(255, 255, 255, 0.1); color: white;
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 16px;
    border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.2s; white-space: nowrap;
}
.trailer-btn:hover { background: white; color: black; border-color: white; }
.trailer-btn svg { fill: currentColor; }

.cast-info { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.movie-desc { font-size: 1rem; line-height: 1.7; color: #ccc; margin-bottom: 10px; }
.read-more-btn {
    background: none; border: none; color: var(--primary);
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
    padding: 0; margin-bottom: 15px; display: inline-block; transition: color 0.2s;
}
.read-more-btn:hover { color: #ff4d5a; text-decoration: underline; }

.provider-container {
    display: flex; align-items: center; gap: 15px;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto;
}
.provider-label { font-size: 0.75rem; text-transform: uppercase; color: #666; font-weight: 700; letter-spacing: 1px; }
.provider-logo {
    width: 36px; height: 36px; border-radius: 8px; transition: transform 0.2s; border: 1px solid rgba(255,255,255,0.1);
}
.provider-logo:hover { transform: scale(1.15); border-color: white; }

.refresh-container {
    width: 95%; max-width: 900px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.8s;
}
.refresh-btn {
    background: transparent; color: #ccc; border: 1px solid #555;
    padding: 10px 24px; border-radius: 50px; font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.3s; font-family: 'Poppins', sans-serif; font-weight: 600;
}
.refresh-btn:hover { background: white; color: black; border-color: white; }

.video-overlay, .modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; animation: fadeIn 0.3s;
}
.video-overlay { z-index: 3000; }

.video-content {
    width: 90%; max-width: 900px; background: black;
    border-radius: 16px; overflow: visible;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.2);
    border: 1px solid #333; position: relative;
}
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.modal-close-btn {
    position: absolute; top: -50px; right: -10px;
    background: rgba(255, 255, 255, 0.15); color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 28px; cursor: pointer; z-index: 2005;
    transition: all 0.3s;
}
.close-video-btn {
    position: absolute; top: -50px; right: -10px;
    background: rgba(255, 255, 255, 0.15); color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 28px; cursor: pointer; z-index: 3005;
    transition: all 0.3s;
}
.close-video-btn:hover, .modal-close-btn:hover {
    background: var(--primary); border-color: var(--primary);
    transform: rotate(90deg) scale(1.1); box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.modal-content {
    width: 95%; max-width: 1000px; background: #141414;
    border-radius: 20px; overflow: visible;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative; max-height: 90vh; display: flex;
}
.modal-body { display: flex; width: 100%; overflow-y: auto; max-height: 90vh; }
.modal-poster { width: 40%; flex-shrink: 0; position: relative; background: #000; }
.modal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; border-right: 1px solid rgba(255,255,255,0.1); }
.modal-info { padding: 40px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.modal-title { font-size: 2.5rem; margin: 0; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.modal-meta { display: flex; align-items: center; gap: 20px; color: var(--text-muted); font-size: 1.1rem; }
.imdb-badge { display: flex; align-items: center; gap: 8px; color: #f5c518; font-weight: 700; }
.modal-overview { font-size: 1.05rem; line-height: 1.8; color: #ddd; }

.tech-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; background: rgba(255,255,255,0.05); padding: 20px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.tech-item { display: flex; flex-direction: column; gap: 5px; }
.tech-label { font-size: 0.75rem; text-transform: uppercase; color: #888; font-weight: 600; letter-spacing: 0.5px; }
.tech-value { font-size: 0.95rem; color: white; font-weight: 500; }

.modal-cast-section h3, .modal-provider-section h3 {
    font-size: 1rem; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; letter-spacing: 1px;
}
.cast-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.cast-list li { font-size: 0.95rem; color: #ccc; }
.cast-list li strong { color: white; }
.modal-providers { padding-top: 0; border-top: none; margin-top: 0; }

.warning-box {
    max-width: 400px; flex-direction: column; align-items: center; text-align: center;
    padding: 30px; background: #1a1a1a; border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
}
.warning-icon { font-size: 3rem; margin-bottom: 15px; }
.warning-title { color: var(--primary); margin: 0 0 10px 0; font-size: 1.5rem; }
.warning-message { color: #ccc; font-size: 1rem; margin-bottom: 25px; line-height: 1.5; }
.warning-btn {
    background: var(--primary); color: white; border: none; padding: 10px 30px;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: background 0.3s;
}
.warning-btn:hover { background: #b20710; }

.seo-content {
    width: 100%; background: #0a0a0a; padding: 60px 20px;
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; text-align: center;
}
.seo-text-wrapper { max-width: 800px; margin: 0 auto; color: #555; }
.seo-text-wrapper h2, .seo-text-wrapper h3 { color: #888; font-size: 1.2rem; margin-bottom: 15px; }
.seo-text-wrapper p, .seo-text-wrapper li { font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; }
.seo-text-wrapper strong { color: #777; }
.seo-text-wrapper ul { list-style: none; padding: 0; }

.spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s infinite; display: inline-block; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.loading, .status-message { text-align: center; color: var(--text-muted); margin: 30px 0; }
.hidden { display: none !important; }

@media (max-width: 800px) {
    .modal-body { flex-direction: column; }
    .modal-poster { width: 100%; height: 400px; }
    .modal-poster img { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .modal-info { padding: 25px; }
    .modal-title { font-size: 2rem; }
    .cast-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .search-wrapper { padding: 25px 15px; }
    .movie-item { flex-direction: column; }
    .poster-box { width: 100%; height: 350px; }
    .info-box { padding: 20px; }
    .card-header { flex-direction: column; gap: 10px; }
    .trailer-btn { width: 100%; justify-content: center; }
    .close-video-btn, .modal-close-btn { right: 0; }
    .modal-content { margin-top: 60px; max-height: 80vh; }
}