/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #141414;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 4%;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: #141414;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}
/* ==================== YENİ FELSEFILM LOGO =ASTİLLERİ ==================== */
.logo { 
    font-family: "Bebas Neue", sans-serif; 
    text-decoration: none; 
    display: flex;
    align-items: center; /* İkon ve metni dikeyde ortalar */
    gap: 10px; /* İkon ve metin arası boşluk */
}

.logo-icon {
    color: #e50914; /* İmza kırmızımız */
    font-size: 40px;
    line-height: 1; /* Dikey hizalamayı tam yapmak için */
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.5); /* Hafif bir parlama efekti */

    /* İkonun Animasyonu */
    opacity: 0;
    transform: scale(0.8);
    animation: icon-appear 0.7s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.logo-text { 
    color: #f5f5f5; /* Tam beyaz yerine hafif kırık beyaz daha şık durur */
    font-size: 32px;
    letter-spacing: 1px; /* Harf arasını hafif açmak premium hissi verir */
    
    /* Metnin Animasyonu */
    opacity: 0;
    transform: translateY(10px);
    animation: text-appear 0.6s 0.5s ease-out forwards;
}

/* --- LOGO ANİMASYONLARI --- */

/* İkonun belirme animasyonu (Hafifçe esneyerek belirir) */
@keyframes icon-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Metnin aşağıdan yukarı gelerek belirme animasyonu */
@keyframes text-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover {
    color: #fff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.user-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    padding: 12px 20px;
    color: #e5e5e5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.user-menu-item.logout {
    color: #e50914;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    margin-top: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #141414 0%, transparent 60%);
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 25%;
    left: 4%;
    max-width: 500px;
    z-index: 2;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.8);
}

.btn-secondary {
    background: rgba(109,109,110,0.7);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(109,109,110,0.9);
}

/* Content Section */
.content-section {
    padding: 40px 4%;
    margin-top: -150px;
    position: relative;
    z-index: 3;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 14px;
    color: #e5e5e5;
    cursor: pointer;
    transition: color 0.3s;
}

.view-all:hover {
    color: #fff;
}

/* BUNUNLA DEĞİŞTİR */
.movie-grid,
.full-list-grid {
    display: grid;
    /* Ekrana sığdığı kadar kart koy, her kart en az 180px olsun, en fazla 1fr (eşit paylaş) yer kaplasın */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 1.5rem;
    margin-bottom: 50px;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 2/3;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-detail-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.movie-card:hover .movie-detail-card {
    opacity: 1;
    pointer-events: auto;
}

.detail-card-poster {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.detail-card-content {
    padding: 15px;
}

.detail-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-ratings {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.rating-badge.imdb {
    background: rgba(245,197,24,0.15);
    color: #f5c518;
}

.rating-badge.tmdb {
    background: rgba(1,180,228,0.15);
    color: #01b4e4;
}

.detail-info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #b3b3b3;
}

.detail-info-label {
    font-weight: 600;
    color: #fff;
    min-width: 60px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Container */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

.page-header {
    padding: 100px 4% 40px;
    background: linear-gradient(to bottom, #1a1a1a 0%, #141414 100%);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-description {
    font-size: 16px;
    color: #b3b3b3;
}

.genre-section {
    padding: 0 4% 30px;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.genre-title {
    font-size: 22px;
    font-weight: 600;
}

/* Detail Page */
.detail-page {
    padding-top: 70px;
    min-height: 100vh;
}

.video-player-section {
    width: 100%;
    background: #000;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #666;
}

.video-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
}

.detail-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 4%;
}

.detail-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.detail-poster {
    flex-shrink: 0;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.detail-poster img {
    width: 100%;
    display: block;
}

.detail-info {
    flex: 1;
}

.detail-title-main {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-meta-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.detail-rating-large {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
}

.rating-label {
    font-size: 11px;
    color: #b3b3b3;
    text-transform: uppercase;
}

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px;
}

.detail-overview {
    font-size: 16px;
    line-height: 1.8;
    color: #e5e5e5;
    margin-bottom: 30px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #b3b3b3;
    min-width: 100px;
}

.info-value {
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-action {
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-like {
    background: rgba(229,9,20,0.15);
    color: #e50914;
    border: 2px solid #e50914;
}

.btn-like:hover {
    background: #e50914;
    color: #fff;
}

.btn-like.active {
    background: #e50914;
    color: #fff;
}

.btn-watchlater {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-watchlater:hover {
    background: rgba(255,255,255,0.2);
}

.btn-watchlater.active {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.back-button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.back-button:hover {
    background: rgba(255,255,255,0.2);
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: #1a1a1a;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.form-input:focus {
    border-color: #e50914;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #f40612;
}

.error-message {
    background: rgba(229,9,20,0.1);
    border: 1px solid #e50914;
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #b3b3b3;
}

.auth-switch a {
    color: #e50914;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-page {
    padding: 100px 4% 40px;
    min-height: 100vh;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-email {
    color: #b3b3b3;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #e50914;
}

.stat-label {
    font-size: 13px;
    color: #b3b3b3;
    text-transform: uppercase;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.profile-section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 50px 4%;
    margin-top: 80px;
    border-top: 1px solid #222;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e5e5e5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #808080;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #808080;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 32px;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-header {
        flex-direction: column;
    }
    .detail-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* Cast Section */
.cast-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.cast-card {
    text-align: center;
}

.cast-photo {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    margin-bottom: 10px;
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cast-character {
    font-size: 12px;
    color: #b3b3b3;
}

/* Public Like Button */
.btn-public-like {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-public-like:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.btn-public-like.active {
    background: rgba(255,107,107,0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-public-like.active:hover {
    background: rgba(255,107,107,0.3);
}

.like-count {
    font-size: 14px;
    font-weight: 700;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-count {
    font-size: 16px;
    color: #b3b3b3;
}

.comment-form {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border 0.3s;
}

.comment-textarea:focus {
    border-color: #e50914;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn-comment {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-comment-cancel {
    background: transparent;
    color: #b3b3b3;
}

.btn-comment-cancel:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-comment-submit {
    background: #e50914;
    color: #fff;
}

.btn-comment-submit:hover {
    background: #f40612;
}

.btn-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s;
}

.comment-item:hover {
    border-left-color: #e50914;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #666;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #e5e5e5;
}

.comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.comments-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.login-prompt {
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.3);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt p {
    margin-bottom: 15px;
    color: #e5e5e5;
}

.btn-login-prompt {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login-prompt:hover {
    background: #f40612;
}

@media (max-width: 768px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}
/* ===================================
   PAGINATION (SAYFALAMA) STYLES
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Butonlar arası boşluk */
    margin-top: 40px;
    padding-bottom: 40px;
}

.pagination-btn,
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
    cursor: pointer;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn.active {
    background: #e50914; /* Senin ana kırmızı rengin */
    border-color: #e50914;
    color: #fff;
    cursor: default; /* Zaten o sayfada olduğu için tıklanmasın */
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.pagination-ellipsis {
    color: #666;
    background: none;
    border: none;
}
/* ===================================
   YENİ PROFİL SAYFASI STYLES
   =================================== */

.profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #2a2a2a;
    margin-top: 50px;
    margin-bottom: 30px;
}

.profile-tab {
    background: none;
    border: none;
    color: #888;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.profile-tab:hover {
    color: #fff;
}

.profile-tab.active {
    color: #fff;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e50914;
}

.profile-tab-content {
    min-height: 300px;
}

.profile-movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.profile-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-comment-item {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.profile-comment-content {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
}

.profile-comment-content img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.profile-comment-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.profile-comment-text {
    font-size: 14px;
    color: #b3b3b3;
    font-style: italic;
}

.profile-comment-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
/* =============================================================
   MOBİL VE RESPONSIVE AYARLARI (HEPSİ BİR ARADA - DOĞRU SIRA)
   ============================================================= */

/* --- ÖNCE TÜM NORMAL (MASAÜSTÜ) STİLLERİ --- */

/* Hamburger ikonunun kendisi (Normalde her zaman gizli) */
.hamburger-menu {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Mobil menünün açılacak olan paneli (Normalde her zaman gizli ve ekranın dışında) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #181818;
    z-index: 10001;
    padding: 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* JS ile .open class'ı eklendiğinde menüyü göster */
.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10002; /* 👈 Close butonu en üstte */
    position: relative;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links li {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    width: 100%;
}

/* --- ŞİMDİ EN SONA, YUKARIDAKİ KURALLARI EZECEK OLAN MOBİL KURALLARI --- */

/* MOBİL AYARLARI */
@media (max-width: 768px) {
    /* Search box'ı mobilde gizle */
    .search-box {
        display: none;
    }
    
    /* Navbar-right flex olarak kalacak, user icon ve hamburger yan yana */
    .navbar-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* User icon mobilde görünsün */
    .user-dropdown {
        display: flex;
    }
    
    /* Hamburger ikonunu GÖSTER */
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Nav linklerini gizle */
    .nav-links {
        display: none !important;
    }
    
    /* Diğer mobil ayarların... */
}
    
    /* Mobilde logoyu küçült */
    .logo-icon {
        font-size: 28px;
    }
    .logo-text {
        font-size: 22px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .detail-poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
