/* İzleme sayfası düzeni */
.watch-main {
    padding-top: 120px;
}

.watch-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.film-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.film-description {
    color: var(--text-light);
    max-width: 560px;
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.film-description::-webkit-scrollbar {
    width: 8px;
}

.film-description::-webkit-scrollbar-track {
    background: transparent;
}

.film-description::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.film-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.film-credits {
    margin-top: 1rem;
    font-weight: 700;
}

.donation-title {
    margin-top: 2rem;
    font-size: 1.75rem;
}

.donation-text {
    color: var(--text-light);
    margin: 0.75rem 0 1.25rem;
}

.amount-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.amount-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--text-white);
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--text-white);
}

.amount-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--text-white);
    padding: 0.85rem 1rem;
    border-radius: 6px;
}

.amount-input::placeholder{ color: rgba(255,255,255,0.7); }

.film-player .player-frame {
    background: #0f0f0f;
    border-radius: 6px;
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.film-player video.player,
.film-player iframe.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.no-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #666;
}

.no-video .poster-image {
    width: 200px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.no-video .poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-video p {
    margin: 0;
    font-size: 1.1rem;
}

/* Bağış Formu Stilleri */
.donation-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.donation-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.donation-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.donation-form {
    width: 100%;
}

.donor-info {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donor-input,
.donor-message {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--text-white);
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-family: inherit;
}

.donor-input::placeholder,
.donor-message::placeholder {
    color: rgba(255,255,255,0.7);
}

.donor-message {
    min-height: 80px;
    resize: vertical;
}

.donate-btn {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.donate-btn:hover {
    background: var(--accent-purple-light);
    transform: translateY(-2px);
}

/* Yorum Bölümü Stilleri */
.comments-section {
    margin-top: 2rem;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 1rem;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.comment-form label {
    color: var(--text-light);
    font-weight: 500;
}

.comment-form select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    padding: 0.5rem;
    border-radius: 6px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-white);
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-rating {
    color: #ffd166;
    font-weight: 500;
    margin: 0.5rem 0;
}

.comment-content {
    color: var(--text-light);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* forms.php uyumlu Yorum Stili (PORT) */
.post-comments {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.post-comments h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* kart görünümü */
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin: 10px 0 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.post-comments .comment-item:first-child {
    margin-top: 0 !important;
}

/* Avatar placeholder’ı daha kaliteli görünsün */
.post-comments .comment-avatar .avatar-placeholder {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Tüm metinleri beyaz yap */
.post-comments .comment-author,
.post-comments .comment-text,
.post-comments .comment-date {
    color: #ffffff !important;
}

/* Yorum yazma alanı: beyaz yazı, beyaz placeholder, koyu arka plan */
.post-comments .comment-input-area textarea {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
}
.post-comments .comment-input-area textarea::placeholder {
    color: rgba(255,255,255,0.72) !important;
}
.post-comments .comment-input-area textarea:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
    border-color: rgba(37,99,235,0.65) !important;
}

/* Reply balonu: hafif vurgu ve beyaz metinlerle modern görünüm */
.post-comments .comment-item.reply {
    margin: 10px 0 0 46px !important;
    padding: 10px 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05)) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-left: 3px solid rgba(220,38,38,0.55) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Reply avatar daha küçük kalsın */
.post-comments .comment-item.reply .comment-avatar {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
}
.post-comments .comment-item.reply .comment-avatar img,
.post-comments .comment-item.reply .comment-avatar .avatar-placeholder {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 12px !important;
}

/* Reply formu kompakt */
.post-comments .comment-form.reply-form { margin: 6px 0 12px 46px !important; }
.post-comments .comment-form.reply-form .comment-input-area textarea {
    min-height: 44px !important;
    font-size: 13px !important;
}
.post-comments .comment-form.reply-form .comment-submit {
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

/* Üst yorum formu butonu da reply ile aynı boyutta olsun */
.post-comments > .comment-form .comment-submit {
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

/* Önceki sticky kuralını etkisizleştir (varsa) */
.comment-form-top {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background: transparent !important;
    padding-top: 0 !important;
}

@media (prefers-color-scheme: dark) {
    .post-comments .comment-item { border-top-color: rgba(255,255,255,0.10) !important; }
}

@media (max-width: 1024px) {
    .watch-layout {
        grid-template-columns: 1fr;
    }
    
    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Tüm yorum butonlarını site geneli birincil buton rengine hizala */
.post-comments .comment-submit,
.comment-submit {
    background: #ef4444 !important;  /* diğer butonlarla aynı kırmızı */
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;              /* site geneli yuvarlama ile uyumlu */
    font-weight: 700;
}

.post-comments .comment-submit:hover,
.comment-submit:hover {
    filter: brightness(1.05);
}

.post-comments .comment-submit:active,
.comment-submit:active {
    transform: translateY(1px);
}

/* Yorum aksiyonları için stil */
.comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.reply-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cancel-reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Yanıt formu animasyonu */
.reply-form {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}
/* Koyu tema için arka plan düzeltmesi */
[data-theme="dark"] .main.watch-main {
    background: #1a1a1a;
}
.main.watch-main {
    background: #ffffff;
    color: #111827;
}
/* Light tema: metinleri görünür yap */
[data-theme="light"] .main.watch-main .film-title,
[data-theme="light"] .main.watch-main .film-description,
[data-theme="light"] .main.watch-main .film-credits,
[data-theme="light"] .main.watch-main .donation-title,
[data-theme="light"] .main.watch-main .donation-text,
[data-theme="light"] .main.watch-main .amount-label {
    color: #000000 !important;
}
.film-title { color: #000000; }
/* Açık tema film açıklaması okunabilirliği */
.film-description { color: #1f2937; }
.film-credits { color: #000000; }

/* Bağış alanı */
.donation-title { color: #000000; }
.donation-text { color: #1f2937; }

/* Tutar seçim butonları ve inputlar */
.amount-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}
.amount-btn:hover,
.amount-btn.active {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}

.amount-input {
    background: #1a1a1a;
    border: 1px solid #d1d5db;
    color: #ffffff;
}
[data-theme="light"] .main.watch-main .amount-input::placeholder { color: #6b7280; }

/* Küçük metin ve label'lar */
[data-theme="light"] .main.watch-main .comment-form label,
[data-theme="light"] .main.watch-main .amount-label {
    color: #111827 !important;
}

/* Bağışçı bilgileri */
[data-theme="light"] .main.watch-main .donor-input,
[data-theme="light"] .main.watch-main .donor-message {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}
[data-theme="light"] .main.watch-main .donor-input::placeholder,
[data-theme="light"] .main.watch-main .donor-message::placeholder {
    color: #9ca3af;
}

/* Bağış butonu kırmızı (görseldeki gibi) */
[data-theme="light"] .main.watch-main .donate-btn {
    background: #ef4444;
    color: #ffffff;
}
[data-theme="light"] .main.watch-main .donate-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Bilgi mesajları (başarılı / hata) açık tema */
[data-theme="light"] .main.watch-main .donation-message.success {
    background: #ecfdf5;
    border: 1px solid #34d399;
    color: #065f46;
}
[data-theme="light"] .main.watch-main .donation-message.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* Yorumlar başlığı */
[data-theme="light"] .main.watch-main .post-comments h4 { color: #000000; }

/* Yorum yazma alanı */
[data-theme="light"] .main.watch-main .post-comments .comment-form,
[data-theme="light"] .main.watch-main .comment-form {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-input-area textarea,
[data-theme="light"] .main.watch-main .comment-form textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-input-area textarea::placeholder,
[data-theme="light"] .main.watch-main .comment-form textarea::placeholder {
    color: #6b7280 !important;
}

/* Yorum kartları */
[data-theme="light"] .main.watch-main .post-comments .comment-item {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-author { color: #000000 !important; }
[data-theme="light"] .main.watch-main .post-comments .comment-text { color: #1f2937 !important; }
[data-theme="light"] .main.watch-main .post-comments .comment-date { color: #374151 !important; }

/* Avatar placeholder açık */
[data-theme="light"] .main.watch-main .post-comments .comment-avatar .avatar-placeholder {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}

/* Yanıtla butonunu açık temada görünür yap */
[data-theme="light"] .main.watch-main .reply-toggle-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #000000;
}
[data-theme="light"] .main.watch-main .reply-toggle-btn:hover {
    background: #f3f4f6;
    color: #000000;
    border-color: #94a3b8;
}

/* Bilgi mesajları (başarılı / hata) açık tema */
[data-theme="light"] .main.watch-main .donation-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
[data-theme="light"] .main.watch-main .donation-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Yorumlar başlığı */
[data-theme="light"] .main.watch-main .post-comments h4 { color: #111827; }

/* Yorum yazma alanı */
[data-theme="light"] .main.watch-main .post-comments .comment-form,
[data-theme="light"] .main.watch-main .comment-form {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-input-area textarea,
[data-theme="light"] .main.watch-main .comment-form textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-input-area textarea::placeholder,
[data-theme="light"] .main.watch-main .comment-form textarea::placeholder {
    color: #9ca3af !important;
}

/* Yorum kartları */
[data-theme="light"] .main.watch-main .post-comments .comment-item {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .main.watch-main .post-comments .comment-author { color: #111827 !important; }
[data-theme="light"] .main.watch-main .post-comments .comment-text { color: #374151 !important; }
[data-theme="light"] .main.watch-main .post-comments .comment-date { color: #6b7280 !important; }

/* Avatar placeholder açık */
[data-theme="light"] .main.watch-main .post-comments .comment-avatar .avatar-placeholder {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}

/* Yanıtla butonunu açık temada görünür yap */
[data-theme="light"] .main.watch-main .reply-toggle-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}
[data-theme="light"] .main.watch-main .reply-toggle-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #cbd5e1;
}

.reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cancel-reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Yanıt formu animasyonu */
.reply-form {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}
/* Koyu tema: yazılar beyaz olsun (doğru scope) */
[data-theme="dark"] .main.watch-main,
[data-theme="dark"] .main.watch-main .film-title,
[data-theme="dark"] .main.watch-main .film-description,
[data-theme="dark"] .main.watch-main .film-credits,
[data-theme="dark"] .main.watch-main .donation-title,
[data-theme="dark"] .main.watch-main .donation-text,
[data-theme="dark"] .main.watch-main .comments-title,
[data-theme="dark"] .main.watch-main .comment-form label,
[data-theme="dark"] .main.watch-main .post-comments h4,
[data-theme="dark"] .main.watch-main .comment-text,
[data-theme="dark"] .main.watch-main .comment-date {
    color: #ffffff !important;
}

.reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cancel-reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Yanıt formu animasyonu */
.reply-form {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}



