/* ==========================================================================
   film-detail.css — Film detay sayfası
   Önceden bu dosya Detail.cshtml içinde ~800 satırlık inline <style> bloğuydu;
   her detay sayfası isteğinde yeniden indiriliyordu.
   ========================================================================== */

/* ── HERO ─────────────────────────────────────────────────────────────── */
.fx-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(440px, 60vh, 620px);
    padding-block: var(--sp-8) var(--sp-7);
    overflow: hidden;
    isolation: isolate;
}

/* Arka plan afişi bulanık + koyu — poster ve metin öne çıksın */
.fx-hero::before {
    content: '';
    position: absolute;
    inset: -30px;
    background-image: var(--bg);
    background-size: cover;
    background-position: center 18%;
    filter: blur(18px) saturate(1.25);
    transform: scale(1.08);
    z-index: -2;
}

.fx-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11,11,13,.94) 0%, rgba(11,11,13,.72) 45%, rgba(11,11,13,.6) 100%), linear-gradient(0deg, var(--bg-base) 2%, rgba(11,11,13,.35) 45%, rgba(11,11,13,.55) 100%);
}

.fx-hero__body {
    position: relative;
    width: 100%;
}

/* Poster */
.fx-poster {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: var(--r-xl);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(0,0,0,.75), 0 0 44px -14px var(--brand-glow);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.fx-poster:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 40px 90px rgba(0,0,0,.85), 0 0 60px -12px var(--brand-glow);
}

.fx-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.fx-title {
    font-size: clamp(1.9rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: var(--sp-3);
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.9);
}

.fx-teaser {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 62ch;
    margin-bottom: var(--sp-5);
}

/* ── İNDİRME BUTONLARI ────────────────────────────────────────────────── */
.fx-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.fx-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 0.7rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.fx-dl-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.fx-dl-btn__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.75rem;
}

.fx-dl-btn__arrow {
    font-size: 0.72rem;
    opacity: 0.65;
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.fx-dl-btn:hover .fx-dl-btn__arrow {
    transform: translateY(2px);
    opacity: 1;
}

/* ── DOĞRULAMA MODALI ─────────────────────────────────────────────────── */
.fx-dl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.fx-dl-modal-overlay.is-open {
    display: flex;
}

.fx-dl-modal {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: var(--sp-6) var(--sp-5);
    text-align: center;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
}

.fx-dl-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.fx-dl-modal__close:hover {
    color: #fff;
}

.fx-dl-modal__icon {
    font-size: 34px;
    color: #f59e0b;
    margin-bottom: var(--sp-3);
}

.fx-dl-modal h2 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: 0 0 var(--sp-2);
}

.fx-dl-modal p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 var(--sp-5);
}

.fx-dl-modal__turnstile {
    display: flex;
    justify-content: center;
    margin-bottom: var(--sp-3);
    min-height: 65px;
}

.fx-dl-modal__status {
    font-size: var(--fs-sm);
    min-height: 20px;
}

.fx-dl-modal__status.is-loading {
    color: #60a5fa;
}

.fx-dl-modal__status.is-error {
    color: #f87171;
}

.fx-dl-modal__status.is-success {
    color: #34d399;
}

/* ── İÇERİK BÖLÜMLERİ ─────────────────────────────────────────────────── */
.fx-page {
    padding-block: var(--sp-6) var(--sp-7);
}

.fx-section {
    margin-bottom: var(--sp-7);
}

.fx-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
}

.fx-body-text {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 78ch;
}

/* ── FRAGMAN ──────────────────────────────────────────────────────────── */
.fx-trailer__frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.fx-trailer__note {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin: var(--sp-3) 0 0;
}

/* ── TEKNİK BİLGİ TABLOSU ─────────────────────────────────────────────── */
.fx-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-4);
}

.fx-fact__label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fx-fact__value {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary);
}

/* ── YORUM FORMU ──────────────────────────────────────────────────────── */
.fx-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--fs-sm);
    line-height: 1.6;
    padding: var(--sp-3);
    resize: vertical;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.fx-textarea::placeholder {
    color: var(--text-muted);
}

.fx-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.fx-hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.fx-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.fx-submit-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.fx-login-prompt {
    text-align: center;
    padding: var(--sp-5) var(--sp-4);
}

.fx-login-prompt__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto var(--sp-3);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid rgba(229, 9, 20, 0.25);
}

.fx-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.fx-outline-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ── YORUM LİSTESİ ────────────────────────────────────────────────────── */
.fx-comment-count {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    margin-left: var(--sp-2);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--brand);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.fx-comments {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.fx-comment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-4);
}

.fx-comment__head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
}

.fx-comment__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
}

.fx-comment__author {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}

.fx-comment__date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.fx-comment__body {
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.fx-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-5);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.fx-loader__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: fx-spin 0.7s linear infinite;
}

@keyframes fx-spin {
    to {
        transform: rotate(360deg);
    }
}

.fx-load-more {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: var(--sp-4) auto 0;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.fx-load-more:hover {
    background: var(--bg-elevated);
    border-color: var(--brand);
    color: #fff;
}

.fx-empty-comments {
    text-align: center;
    padding: var(--sp-6) var(--sp-4);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ── DUYARLI ──────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .fx-hero {
        min-height: auto;
        padding-block: var(--sp-6) var(--sp-6);
        text-align: center;
    }

    .fx-hero__scrim {
        background: linear-gradient(0deg, var(--bg-base) 4%, rgba(11,11,13,.86) 45%, rgba(11,11,13,.7) 100%);
    }

    .fx-poster {
        max-width: 160px;
        margin: 0 auto var(--sp-4);
    }

    .fx-meta,
    .fx-download-row {
        justify-content: center;
    }

    .fx-teaser {
        margin-inline: auto;
    }
}
