/**
 * Tekil sinema — /sinema/{slug}/
 */

body.esmer-sinema-single {
    background: var(--esmer-paper, #f7f6f3);
    color: var(--esmer-content-text, #222);
}

.esmer-sinema {
    padding-bottom: 64px;
}

/* —— Hero —— */
.esmer-sinema-hero {
    position: relative;
    width: 100%;
    padding: 80px 0 60px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    overflow: hidden;
    border-bottom: 3px solid #b84500;
}

.esmer-sinema-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 20%, rgba(10, 10, 10, 0.72) 100%);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.esmer-sinema-hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.esmer-sinema-hero-left {
    flex: 1;
    min-width: 300px;
}

.esmer-sinema-breadcrumb {
    font-size: 11px;
    font-weight: 800;
    color: var(--esmer-gold, #ffba00);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
}

.esmer-sinema-breadcrumb a {
    color: var(--esmer-gold, #ffba00);
    text-decoration: none;
}

.esmer-sinema-breadcrumb a:hover {
    color: #fff;
}

.esmer-sinema-breadcrumb .is-current {
    color: #fff;
}

.esmer-sinema-title {
    font-family: var(--esmer-font-display, 'Cinzel', Georgia, serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.esmer-sinema-subtitle {
    font-family: var(--esmer-font-read, 'Lora', Georgia, serif);
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 10px;
    line-height: 1.5;
}

.esmer-sinema-credits {
    font-family: var(--esmer-font-display, 'Cinzel', Georgia, serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--esmer-gold, #ffba00);
    margin-top: 25px;
    letter-spacing: 1px;
    line-height: 1.8;
}

.esmer-sinema-credits a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted var(--esmer-gold, #ffba00);
    font-family: var(--esmer-font-read, 'Lora', serif);
    font-style: italic;
    font-weight: 400;
    transition: color 0.3s;
}

.esmer-sinema-credits a:hover {
    color: var(--esmer-gold, #ffba00);
}

.esmer-sinema-credits .sep {
    color: #666;
    margin: 0 5px;
}

.esmer-sinema-credits .role-gap {
    margin-right: 25px;
}

/* Uyarlanan kitap kutusu */
.esmer-sinema-book-meta {
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}

.esmer-sinema-book-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 186, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.esmer-sinema-book-kicker {
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    font-size: 11px;
    font-weight: 800;
    color: var(--esmer-gold, #ffba00);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.esmer-sinema-book-title {
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.esmer-sinema-book-cta {
    font-family: var(--esmer-font-body, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    background: var(--esmer-gold, #ffba00);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(255, 186, 0, 0.3);
}

.esmer-sinema-book-cta:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    color: #111;
}

.esmer-sinema-book-cover {
    width: 90px;
    height: 135px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--esmer-gold, #ffba00);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.esmer-sinema-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esmer-sinema-book-cover-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* —— İçerik düzeni —— */
.esmer-sinema-layout {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.esmer-sinema-main {
    flex: 1;
    min-width: 0;
}

.esmer-sinema-aside {
    flex: 0 0 380px;
}

.esmer-sinema-aside-card {
    background: #fff;
    border: 1px solid var(--esmer-border, #e8e4dc);
    padding: 35px;
    border-radius: 12px;
    position: sticky;
    top: 50px;
    box-shadow: var(--esmer-shadow-sm);
}

.esmer-sinema-poster-float {
    border-radius: 8px;
    overflow: hidden;
    margin-top: -70px;
    margin-bottom: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #fff;
}

.esmer-sinema-poster-float img {
    width: 100%;
    height: auto;
    display: block;
}

/* —— Uzun metin / inceleme (prose) —— */
.esmer-sinema-prose {
    font-family: var(--esmer-font-read, 'Lora', Georgia, serif);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.9;
    color: #2a2a32;
    max-width: 72ch;
}

.esmer-sinema-prose p {
    margin: 0 0 1.15em;
}

.esmer-sinema-prose p:last-child {
    margin-bottom: 0;
}

.esmer-sinema-prose h2,
.esmer-sinema-prose h3,
.esmer-sinema-prose h4 {
    font-family: var(--esmer-font-display, 'Cinzel', Georgia, serif);
    color: var(--esmer-ink, #1a1a22);
    font-weight: 900;
    line-height: 1.25;
    margin: 1.75em 0 0.65em;
    letter-spacing: 0.02em;
}

.esmer-sinema-prose h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    padding-bottom: 0.35em;
    border-bottom: 2px solid #b84500;
}

.esmer-sinema-prose h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: #8b3a0f;
}

.esmer-sinema-prose h4 {
    font-size: 1.05rem;
}

.esmer-sinema-prose ul,
.esmer-sinema-prose ol {
    margin: 0 0 1.25em;
    padding-left: 1.35em;
}

.esmer-sinema-prose li {
    margin-bottom: 0.45em;
}

.esmer-sinema-prose blockquote {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    border-left: 4px solid var(--esmer-gold, #ffba00);
    background: rgba(255, 186, 0, 0.06);
    font-style: italic;
    color: #444;
}

.esmer-sinema-prose a {
    color: #b84500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.esmer-sinema-prose a:hover {
    color: var(--esmer-gold-dark, #c99200);
}

.esmer-sinema-prose strong {
    font-weight: 700;
    color: var(--esmer-ink, #1a1a22);
}

.esmer-sinema-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.25em 0;
}

/* —— Bölüm başlıkları —— */
.esmer-sinema-section {
    margin-top: 60px;
}

.esmer-sinema-section-title {
    font-family: var(--esmer-font-display, 'Cinzel', Georgia, serif);
    border-bottom: 2px solid #b84500;
    padding-bottom: 10px;
    font-weight: 900;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin: 0 0 24px;
    color: var(--esmer-ink, #1a1a22);
    letter-spacing: 0.04em;
}

.esmer-sinema-trailer {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
}

.esmer-sinema-trailer iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Oyuncular */
.esmer-sinema-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 30px;
    margin-top: 8px;
}

.esmer-sinema-cast-link {
    text-align: center;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.esmer-sinema-cast-link img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--esmer-border, #eee);
    object-fit: cover;
    margin-bottom: 10px;
    transition: 0.3s;
}

.esmer-sinema-cast-link:hover img {
    border-color: #b84500;
    transform: scale(1.05);
}

.esmer-sinema-cast-name {
    font-weight: 800;
    font-size: 13px;
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    color: var(--esmer-ink, #111);
}

.esmer-sinema-cast-role {
    font-size: 11px;
    color: #888;
    font-style: italic;
    font-family: var(--esmer-font-read, 'Lora', serif);
}

/* Şahsiyetler */
.esmer-sinema-sahsiyet-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--esmer-border, #eee);
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--esmer-ink, #111);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--esmer-font-body, 'Manrope', sans-serif);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-right: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.esmer-sinema-sahsiyet-link:hover {
    border-color: #b84500;
    transform: translateY(-3px);
}

.esmer-sinema-sahsiyet-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Skor & matris */
.esmer-sinema-score-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #aaa;
    margin-bottom: 20px;
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    text-align: center;
}

.esmer-sinema-score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid #b84500;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(184, 69, 0, 0.15);
    background: #fff;
    position: relative;
}

.esmer-sinema-score-ring::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px dashed #e0e0e0;
}

.esmer-sinema-score-value {
    font-size: 54px;
    font-weight: 900;
    color: var(--esmer-ink, #111);
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.esmer-sinema-score-block {
    text-align: center;
    border-bottom: 1px solid var(--esmer-border, #eee);
    padding-bottom: 35px;
    margin-bottom: 30px;
}

.esmer-sinema-matrix-title {
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: var(--esmer-ink, #111);
}

.esmer-sinema-matrix-row {
    margin-bottom: 20px;
}

.esmer-sinema-matrix-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    color: #333;
    font-family: var(--esmer-font-body, 'Manrope', sans-serif);
}

.esmer-sinema-matrix-head .score {
    color: #b84500;
}

.esmer-sinema-matris-bar {
    height: 4px;
    background: #eee;
    border-radius: 10px;
    margin: 6px 0 8px;
    overflow: hidden;
}

.esmer-sinema-matris-bar-fill {
    height: 100%;
    background: #b84500;
}

.esmer-sinema-matrix-note {
    font-size: 11px;
    color: #777;
    font-style: italic;
    line-height: 1.5;
    font-family: var(--esmer-font-read, 'Lora', serif);
}

@media (max-width: 900px) {
    .esmer-sinema-aside {
        flex: 1 1 100%;
    }

    .esmer-sinema-aside-card {
        position: static;
    }

    .esmer-sinema-poster-float {
        margin-top: 0;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .esmer-sinema-hero {
        padding: 56px 0 40px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .esmer-sinema-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .esmer-sinema-hero-left {
        min-width: 0;
        width: 100%;
    }

    .esmer-sinema-book-box {
        width: 100%;
        max-width: 100%;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .esmer-sinema-book-meta {
        text-align: left;
        flex: 1 1 auto;
        min-width: 0;
    }

    .esmer-sinema-book-kicker {
        letter-spacing: 0.08em;
        font-size: 10px;
    }

    .esmer-sinema-book-title {
        font-size: clamp(1rem, 4.8vw, 1.2rem);
    }

    .esmer-sinema-book-cover {
        width: 72px;
        height: 108px;
    }

    .esmer-sinema-layout {
        gap: 36px;
    }
}
