/* Film Theme CSS for Het Meisje en de Dood */
:root {
    --film-bg: #080608;
    --film-text: #F5EDE0;
    --film-text-secondary: #CBBBA4;
    --film-accent-red: #B43A3A;
    --film-accent-gold: #D3A35B;
    --film-accent-blue: #6A8085;
    --film-card-bg: #151013;
    --film-border: #3E3236;
    --film-footer: #050304;
    --film-gradient: linear-gradient(135deg, var(--film-accent-red) 0%, var(--film-accent-gold) 100%);
}

/* Base Styles */
.film-body {
    background-color: var(--film-bg);
    color: var(--film-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.film-scroll {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 1.6em 20px;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    color: var(--film-text);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--film-accent-gold);
    margin: 1rem auto;
}

/* Navigation */
.film-navbar {
    background-color: rgba(8, 6, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--film-border);
    transition: all 0.3s ease;
}

.film-navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(8, 6, 8, 0.98);
}

.navbar-brand .film-logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--film-text);
    letter-spacing: 0.5px;
}

.nav-link {
    color: rgb(157 173 189 / 75%) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--film-accent-gold) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--film-accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.navbar-toggler {
    border-color: var(--film-border);
    color: var(--film-text);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 237, 224, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.film-hero {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, rgba(8, 6, 8, 0.9) 0%, rgba(21, 16, 19, 0.8) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.film-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1489599809516-9827b6d1cf13?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--film-text) 0%, var(--film-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--film-accent-gold);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--film-text-secondary);
    max-width: 600px;
}

/* Buttons */
.btn-film-primary {
    background: var(--film-accent-red);
    color: var(--film-text);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-film-primary:hover {
    background: var(--film-accent-gold);
    color: var(--film-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 163, 91, 0.3);
}

.btn-film-secondary {
    background: transparent;
    color: var(--film-accent-gold);
    border: 2px solid var(--film-accent-gold);
    padding: 0.75rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-film-secondary:hover {
    background: var(--film-accent-gold);
    color: var(--film-bg);
    transform: translateY(-2px);
}

/* Poster Frame */
.poster-frame {
    position: relative;
    border: 5px solid var(--film-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.poster-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.poster-image {
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
}

.release-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--film-accent-red);
    color: var(--film-text);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Sections */
.film-section {
    padding: 5rem 0;
}

.plot-card {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    padding: 3rem;
    position: relative;
}

.plot-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--film-gradient);
    z-index: -1;
    opacity: 0.3;
}

.plot-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--film-text-secondary);
}

.plot-quote {
    border-left: 3px solid var(--film-accent-gold);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.plot-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--film-text);
}

.plot-quote cite {
    color: var(--film-text-secondary);
    font-style: normal;
}

/* Trailer Section */
.trailer-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.trailer-placeholder {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.trailer-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--film-accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.trailer-placeholder:hover .play-button {
    background: var(--film-accent-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.trailer-thumbnail {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Cast & Crew */
.cast-tabs .nav-tabs {
    border-bottom: 1px solid var(--film-border);
}

.cast-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--film-text-secondary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.cast-tabs .nav-link.active {
    color: var(--film-accent-gold);
    background: transparent;
    border: none;
}

.cast-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--film-accent-gold);
}

.cast-card {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-5px);
}

.cast-image {
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
}

.cast-info {
    padding: 1.5rem;
}

.cast-name {
    color: var(--film-text);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.cast-role {
    color: var(--film-accent-gold);
    font-size: 0.875rem;
}

.crew-card {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    padding: 1.5rem;
    height: 100%;
}

.crew-name {
    color: var(--film-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.crew-role {
    color: var(--film-text-secondary);
    font-size: 0.875rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--film-border);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 6, 8, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Footer */
.film-footer {
    background: var(--film-footer);
    border-top: 1px solid var(--film-border);
}

.footer-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--film-text);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--film-text-secondary);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--film-text-secondary);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--film-accent-gold);
}

.footer-subtitle {
    color: var(--film-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--film-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--film-accent-gold);
}

.footer-copyright {
    color: var(--film-text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-link {
    color: var(--film-accent-blue);
    text-decoration: none;
    font-size: 0.75rem;
    margin: 0 0.5rem;
}

/* Film Cards */
.film-card {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    transition: transform 0.3s ease;
}

.film-card:hover {
    transform: translateY(-5px);
    border-color: var(--film-accent-gold);
}

.film-card-image {
    height: 200px;
    object-fit: cover;
}

.film-card-link {
    color: var(--film-text);
    transition: color 0.3s ease;
}

.film-card-link:hover {
    color: var(--film-accent-gold);
}

.film-card-excerpt {
    font-size: 0.875rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    background: rgba(211, 163, 91, 0.1);
    color: var(--film-accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.75rem;
}

/* Pagination */
.film-pagination .pagination {
    justify-content: center;
}

.film-pagination .page-link {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    color: var(--film-text-secondary);
    margin: 0 0.25rem;
}

.film-pagination .page-link:hover {
    background: var(--film-accent-gold);
    color: var(--film-bg);
    border-color: var(--film-accent-gold);
}

.film-pagination .page-item.active .page-link {
    background: var(--film-accent-red);
    border-color: var(--film-accent-red);
    color: var(--film-text);
}

/* Single Article */
.single-hero {
    position: relative;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--film-bg), transparent);
}

.single-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.single-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--film-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.single-title {
    margin: 1.6em 20px;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.single-subtitle {
    font-size: 1.25rem;
    color: var(--film-text-secondary);
    font-style: italic;
}

.single-tags {
    border-top: 1px solid var(--film-border);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.single-tag {
    background: rgba(106, 128, 133, 0.1);
    color: var(--film-accent-blue);
    padding: 0.25rem 1rem;
    border-radius: 2px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-tag:hover {
    background: var(--film-accent-blue);
    color: var(--film-text);
}

/* Markdown Body */
.markdown-body {
    color: var(--film-text-secondary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--film-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.markdown-body a {
    color: var(--film-accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.markdown-body a:hover {
    border-bottom: 1px solid var(--film-accent-gold);
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body blockquote {
    border-left: 3px solid var(--film-accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--film-text);
}

.markdown-body code {
    background: var(--film-card-bg);
    color: var(--film-accent-gold);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    font-size: 0.875em;
}

.markdown-body pre {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--film-border);
    padding: 0.75rem;
    text-align: left;
}

.markdown-body th {
    background: var(--film-card-bg);
    color: var(--film-text);
    font-weight: 600;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Related Articles */
.related-articles {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    padding: 3rem;
    margin-top: 5rem;
}

.related-title {
    font-size: 1.5rem;
    color: var(--film-text);
}

.related-subtitle {
    font-size: 0.875rem;
}

.related-card,
.blog-card {
    background: var(--film-bg);
    border: 1px solid var(--film-border);
    transition: transform 0.3s ease;
}


.related-card:hover,
.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--film-accent-gold);
}


.related-image {
    height: 150px;
    object-fit: cover;
}

.related-link,
.blog-card-link {
    color: var(--film-text);
    transition: color 0.3s ease;
}


.related-link:hover,
.blog-card-link:hover {
    color: var(--film-accent-gold);
}


.related-card-excerpt,
.blog-card-excerpt {
    font-size: 0.75rem;
}


/* Modal */
.film-modal .modal-content {
    background: var(--film-card-bg);
    border: 1px solid var(--film-border);
    color: var(--film-text);
}

.film-modal .modal-header {
    border-bottom: 1px solid var(--film-border);
}

.film-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .film-section {
        padding: 3rem 0;
    }

    .plot-card {
        padding: 2rem;
    }

    .single-title {
        font-size: 2rem;
    }

    .trailer-thumbnail {
        height: 300px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override bootstrap .text-muted только внутри related cards */
.related-card-excerpt.text-muted,
.blog-card-excerpt.text-muted {
    color: var(--film-text-secondary) !important; /* или var(--film-text) если нужно ещё светлее */
    opacity: 0.9; /* можно 1, если нужно совсем без приглушения */
    font-size: 0.75rem; /* чтобы не потерять размер из .related-card-excerpt */
    line-height: 1.6;
}



