#live-search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #1a1a1a; border: 1px solid #2a2a2a; border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); z-index: 1000; max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffc107 #1a1a1a; }
#live-search-results::-webkit-scrollbar { width: 8px; }
#live-search-results::-webkit-scrollbar-track { background: #1a1a1a; }
#live-search-results::-webkit-scrollbar-thumb { background-color: #ffc107; border-radius: 10px; border: 2px solid #1a1a1a; }
.search-result-item { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #2a2a2a; text-decoration: none; transition: background-color 0.2s ease; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: #252525; }
.search-result-img { width: 45px; height: 65px; object-fit: cover; border-radius: 4px; margin-right: 10px; flex-shrink: 0; }
.search-result-info { min-width: 0; }
.search-result-title { color: #e0e0e0; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-year { color: #a9a9a9; font-size: 0.8rem; }
.search-result-none { padding: 15px; text-align: center; color: #a9a9a9; font-size: 0.9rem; }

.movie-card-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    border: 1px solid #333;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.movie-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
}
.poster-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
}
.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.movie-card-wrapper:hover .poster-image {
    transform: scale(1.05);
}
.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.badge-item {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}
.badge-item.tr-dublaj { color: #ffc107; border-color: #ffc107; }
.badge-item.tr-altyazi { color: #fff; }

.imdb-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5c518;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2;
}
.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.movie-card-wrapper:hover .play-overlay { opacity: 1; }
.play-icon {
    font-size: 3rem;
    color: #ffc107;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.card-info {
    padding: 12px;
    text-align: center;
    background-color: #1a1a1a;
    flex-grow: 1;
}
.card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-decoration: none;
    line-height: 1.3;
    min-height: 2.6em;
}
.movie-card-wrapper:hover .card-title { color: #ffc107; }
.card-meta {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.card-meta .meta-year {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.2);
    color: #ffc107;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.card-meta .meta-year:hover {
    background: rgba(255,193,7,0.25);
    border-color: rgba(255,193,7,0.5);
    color: #fff;
}
.card-meta .meta-genre {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.2);
    color: #ffc107;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.card-meta .meta-genre:hover {
    background: rgba(255,193,7,0.25);
    border-color: rgba(255,193,7,0.5);
    color: #fff;
}
.card-meta .meta-sep { color: #555; }

.custom-slider-container { position: relative; padding: 0 20px; }
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.slider-wrapper::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 auto; width: 220px; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffc107;
    border: 1px solid #ffc107;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.slider-btn:hover { background: #ffc107; color: #000; }
.prev-btn { left: -15px; }
.next-btn { right: -15px; }

@media (max-width: 768px) {
    .slider-item { width: 160px; }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
}

#anasayfa-loadmore-wrap { position: relative; z-index: 50; }
#anasayfa-loadmore-btn { min-width: 220px; position: relative; z-index: 60; pointer-events: auto; cursor: pointer; }
#anasayfa-skeleton { display:none; }
.skeleton-card { pointer-events: none; }
.skeleton-poster {
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}
.skeleton-line {
    height: 12px;
    background: #2f333b;
    border-radius: 999px;
    margin-bottom: 10px;
}
.skeleton-line.short { width: 55%; margin-inline: auto; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.episode-banner-card { border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid #333; transition: all 0.3s ease; display: block; position: relative; }
.episode-banner-card:hover { transform: scale(1.03); border-color: #ffc107; box-shadow: 0 5px 20px rgba(255, 193, 7, 0.1); }
.episode-banner-card img { width: 100%; height: auto; display: block; aspect-ratio: 6 / 1; object-fit: cover; background-color: #2a2a2a; }
.episode-banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 10px 10px 10px; background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0) 100%); }
.episode-banner-title { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-banner-info { color: #ccc; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-banner-card:hover .episode-banner-title { color: #ffc107; }
#episode-loader { height: 50px; }
#episode-loader.loading { background: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg" width="24" height="24" viewBox="0 0 24 24"%3E%3Cpath fill="%23ffc107" d="M12 2A10 10 0 1 0 22 12A10 10 0 0 0 12 2Zm0 18a8 8 0 1 1 8-8A8 8 0 0 1 12 20Z" opacity=".5"/%3E%3Cpath fill="%23ffc107" d="M12 4a8 8 0 0 1 8 8h-2a6 6 0 0 0-6-6V4Z"%3E%3CanimateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/%3E%3C/path%3E%3C/svg%3E') center center no-repeat; background-size: 30px 30px; }

.movies-section > h2 {
    font-size: 1.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2a2a; border-left: 5px solid #ffc107;
    padding-left: 15px; padding-bottom: 10px;
    margin-bottom: 1.5rem;
}
