/* ==========================================================================
   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,14,20,.94) 0%, rgba(11,14,20,.72) 45%, rgba(11,14,20,.6) 100%), linear-gradient(0deg, var(--bg-base) 2%, rgba(11,14,20,.35) 45%, rgba(11,14,20,.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);
}

/* İkincil kaliteler: siyan çerçeve + siyan metin. */
.fx-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.7rem 1.35rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.fx-dl-btn strong {
    font-weight: 800;
}

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

/* En yüksek kalite: dolu marka rengi — sayfanın birincil eylemi */
.fx-dl-btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 6px 22px -6px var(--brand-glow);
}

.fx-dl-btn--primary:hover,
.fx-dl-btn--primary:focus-visible {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.fx-dl-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

/* Sonradan eklenen kalite (merkezi YTS aktarımı) — iki hafta görünür. */
.fx-dl-btn__new {
    padding: 0.1rem 0.45rem;
    border-radius: var(--r-pill);
    background: #22c55e;
    color: #04210f;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── 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: var(--brand);
    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: var(--brand);
}

.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: var(--on-brand);
    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 var(--border-strong);
}

.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: var(--on-brand);
}

/* ── 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 var(--border-strong);
    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,14,20,.86) 45%, rgba(11,14,20,.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;
    }
}

/* ── SPONSOR PENCERESİ (Direct-link adımı) ─────────────────────────────────
   Sponsor, film sayfasının içinde tam ekran bir çerçevede gösterilir (neden:
   Detail.cshtml'deki not). Üstte kısa bir şerit, altında sponsor sayfası. */
.fx-sponsor {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
}

.fx-sponsor[hidden] {
    display: none;
}

.fx-sponsor__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-5);
    padding: var(--sp-3) var(--sp-5);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 8px 28px -12px rgba(0, 0, 0, .8);
}

.fx-sponsor__text {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
}

.fx-sponsor__tag {
    flex-shrink: 0;
    padding: .25rem .6rem;
    border-radius: var(--r-sm);
    background: var(--gold-soft);
    border: 1px solid rgba(255, 197, 49, .4);
    color: var(--gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fx-sponsor__title {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 700;
}

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

.fx-sponsor__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-left: auto;
}

.fx-sponsor__status {
    margin: 0;
    max-width: 34ch;
    font-size: var(--fs-xs);
    line-height: 1.4;
    text-align: right;
    color: var(--text-secondary);
}

.fx-sponsor__status:empty {
    display: none;
}

.fx-sponsor__status.is-error   { color: #ff7aa2; }
.fx-sponsor__status.is-success { color: var(--success); }

.fx-sponsor .fx-dl-btn:disabled {
    cursor: progress;
}

.fx-sponsor__close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.fx-sponsor__close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

/* Sponsor sayfaları açık zeminli tasarlanır — yüklenirken beyaz zemin */
.fx-sponsor__frame-host {
    position: relative;
    flex: 1 1 auto;
    background: #fff;
}

.fx-sponsor__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 575.98px) {
    .fx-sponsor__bar {
        padding: var(--sp-2) var(--sp-3);
    }

    .fx-sponsor__lead {
        display: none;
    }

    .fx-sponsor__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .fx-sponsor__actions .fx-dl-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .fx-sponsor__status {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        text-align: left;
    }
}

.fx-dl-modal__status.is-info {
    color: var(--text-secondary);
}

/* ── Künye ayırıcı ve boş yorum ikonu (eskiden satır içi stil) ─────────── */
.fx-divider {
    border-color: var(--border);
    opacity: 1;
    margin: var(--sp-5) 0;
}

.fx-empty-comments__icon {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: 1.5rem;
    color: var(--brand);
}
