/* ============================================
   CHAI DOCS - ORGANIZED STYLE STRUCTURE
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Global Colors */
    --bg-body: rgb(230, 230, 230);
    --bg-card: #f0f0f0;
    --text-primary: rgb(37, 37, 37);
    --text-secondary: #252525;
    --text-header-primary: #ffffff;
    --text-header-secondary: rgba(255, 255, 255, 0.7);
    --accent: #FFB347;
    --overlay: rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-padding: 4%;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* ==========================================
       MAIN POST (FILM OF THE DAY) VARIABLES
       ========================================== */
    --main-post-label-color: var(--accent);
    --main-post-title-color: #ffffff;
    --main-post-meta-color: rgba(255, 255, 255, 0.8);
    --main-post-synopsis-color: #e5e5e5;
    --main-post-btn-play-bg: #1A2A3A;
    --main-post-btn-play-text: var(--accent);
    /* Ensure white text for contrast */
    --main-post-btn-trailer-bg: #1A2A3A;
    --main-post-btn-trailer-text: var(--accent);
    --main-post-overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);

    /* ==========================================
       FEATURED POSTS VARIABLES
       ========================================== */
    --featured-post-header-color: var(--text-primary);
    --featured-post-card-bg: rgb(21, 21, 21);
    --featured-post-card-title-color: #d96715;
    --featured-post-card-meta-color: #ffffff;
    --featured-post-card-desc-color: #888;
    --featured-post-card-width: 372px;
    --featured-post-card-height: 418px;
    --featured-post-card-gap: 0.5rem;
    --featured-post-overlay-bg: rgba(0, 0, 0, 0.3);
    --featured-post-border-color: rgba(255, 255, 255, 0.1);

    /* ==========================================
       REGULAR POSTS VARIABLES
       ========================================== */
    --regular-post-header-color: var(--text-primary);
    --regular-post-card-bg: rgb(10, 10, 10);
    --regular-post-card-title-color: #d96715;
    --regular-post-card-meta-color: #ffffff;
    --regular-post-card-desc-color: #888;
    --regular-post-card-width: 372px;
    --regular-post-card-height: 209px;
    --regular-post-card-gap: 0.5rem;
    --regular-post-overlay-bg: rgba(0, 0, 0, 0.3);
    --regular-post-border-color: rgba(255, 255, 255, 0.1);

    /* ==========================================
       FOOTER VARIABLES
       ========================================== */
    --footer-bg: transparent;
    --footer-text-color: var(--text-secondary);
    --footer-border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   NOTE: These are inherited by ALL blocks below
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 0px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    /* Inherited by all text unless overridden in blocks */
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    /* Inherited by all blocks */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    /* Inherits from parent - overridden in specific blocks */
    transition: var(--transition-smooth);
    /* Applied to all links globally */
}

/* Director Link Style */
.director-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    position: relative;
    z-index: 20;
    /* Ensure it sits on top */
    cursor: pointer;
    pointer-events: auto;
}

.director-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Ensure info containers are clickable */
.featured-post__info,
.regular-post__info,
.main-post__content {
    z-index: 5;
    position: absolute;
    /* Already absolute for cards, but main-post is relative */
}

.main-post__content {
    position: relative;
    /* Reset for main post */
}

ul {
    list-style: none;
    /* Inherited by .main-nav ul */
}

/* ============================================
   SHARED UTILITIES
   NOTE: Used across multiple blocks
   ============================================ */

/* Container - Used in: Header, Main Post, Featured Posts, Regular Posts, Footer */
.container-fluid {
    padding: 0 var(--container-padding);
    max-width: 2500px;
    margin: 0 auto;
}

/* Play Button - Shared across: Featured Posts (.featured-post__overlay) and Regular Posts (.regular-post__overlay) */
.play-btn {
    font-size: 2rem;
    color: white;
    /* Overrides body color */
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* ============================================
   SITE HEADER
   NOTE: Fixed positioning - overlays Main Post block
   ============================================ */

.site-header {
    position: fixed;
    /* Overlays all content below */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* Sits above Main Post (z-index: 1) */
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.3s ease;
    /* Overrides global 'a' transition timing */
    color: var(--text-header-primary);
    /* Overrides body text color */
}

/* Header when scrolled - Modified by JavaScript */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    /* Overrides gradient background */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    /* Overrides default padding */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container-fluid {
    display: flex;
    /* Overrides block display from .container-fluid */
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    /* Overrides block display */
    gap: 2rem;
    /* Inherits list-style: none from global ul */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-header-secondary);
    /* Overrides 'color: inherit' from global a */
    /* Inherits transition from global a */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-header-primary);
    /* Overrides default link color */
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Layout - Standard Vertical Flow */
main {
    display: block;
    height: auto;
    padding-top: 0;
    /* No top padding because header is fixed and Main Post is full height */
    overflow: visible;
}

/* ============================================
   BLOCK 1: MAIN POST (FILM OF THE DAY)
   ============================================
   NOTE: Uses .container-fluid from shared utilities
   NOTE: Overridden by responsive styles @media (max-width: 768px)
   ============================================ */

/* Main Post Container */
.main-post {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-lg);
    overflow: hidden;
    margin-top: 0;
}

/* Main Post Background Image */
.main-post__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Pictures/vlcsnap-2020-10-24-10h30m55s184.png') no-repeat center center/cover;
    z-index: -1;
}

/* Main Post Background Overlay */
.main-post__backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-post-overlay-gradient);
}

/* Main Post Content Container */
.main-post__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin-left: 0;
}

/* Main Post Label (e.g., "Film of the Week") */
.main-post__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--main-post-label-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

/* Main Post Title */
.main-post__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    color: var(--main-post-title-color);
}

/* Main Post Metadata (director, year, country, duration) */
.main-post__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: var(--main-post-meta-color);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Main Post Synopsis/Description */
.main-post__synopsis {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: var(--spacing-md);
    color: var(--main-post-synopsis-color);
}

.main-post__synopsis,
.main-post__synopsis * {
    color: var(--main-post-synopsis-color) !important;
}

.main-post__synopsis p {
    margin-bottom: 0.8rem;
}

.main-post__synopsis p:last-child {
    margin-bottom: 0;
}

/* Main Post Action Buttons Container */
.main-post__actions {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

/* Main Post Button Base Styles */
.main-post__btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Main Post Play Button */
.main-post__btn--play {
    background-color: var(--main-post-btn-play-bg);
    color: var(--main-post-btn-play-text);
}

.main-post__btn--play:hover {
    background-color: #e5e5e5;
    transform: scale(1.02);
}

/* Main Post Play Icon */
.main-post__play-icon {
    margin-right: 0.5rem;
    font-size: 0.8em;
}

/* Main Post Trailer Button */
.main-post__btn--trailer {
    background-color: var(--main-post-btn-trailer-bg);
    color: var(--main-post-btn-trailer-text);
    backdrop-filter: blur(10px);
}

.main-post__btn--trailer:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   BLOCK 2: FEATURED POSTS
   ============================================
   NOTE: Uses .container-fluid from shared utilities
   NOTE: Uses .play-btn from shared utilities in .featured-post__overlay
   ============================================ */

/* All Posts Container */
.posts-container {
    height: auto;
    overflow-y: visible;
    padding-top: var(--spacing-lg);
    padding-bottom: 0;
    /* Remove generic bottom padding */
    padding-left: 0;
    padding-right: 0;
}

/* Regular Posts Container */
/* Regular Posts Container */
.regular-posts {
    padding-bottom: 10px;
    /* Minimal gap to footer (10px). Hovered cards will overlap footer z-index. */
}

/* Section Header (shared by featured and regular) */
.posts-section__header {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Minimize visual jump */
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subtitle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    opacity: 0.8;
}

.see-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.see-all-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.posts-section__header h2 {
    background-color: #2C3E50;
    /* Solid Slate Blue */
    color: var(--accent);
    /* Warm Gold */
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 1.5rem;
    display: inline-block;
    margin: 0;
}

/* Featured Posts Specific Header */
/* .featured-posts__header h2 was here, now redundant or needs override removal if specific color was set */
.featured-posts__header h2 {
    color: var(--accent);
    /* Ensure it stays gold */
}

/* Featured Posts Row Container (Single Row - No Wrap - Hidden Overflow) */
.featured-posts {
    display: flex;
    gap: var(--featured-post-card-gap);
    margin-bottom: 0;
    flex-wrap: wrap;
    height: 430px;
    /* Fixed height to show only one row. 418px card + buffer < 426px (start of next row) */
    overflow: hidden;
    justify-content: flex-start;
    padding-top: 5px;
    /* Slight buffer for top shadow/scale */
    margin-top: -5px;
    /* Compensate for padding */
}

/* Hide scrollbar for featured posts (legacy) */
.featured-posts::-webkit-scrollbar {
    display: none;
}

/* Featured Post Card Container */
.featured-post {
    width: var(--featured-post-card-width);
    min-width: var(--featured-post-card-width);
    flex-shrink: 0;
    height: var(--featured-post-card-height);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.featured-post:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Featured Post Thumbnail/Image */
.featured-post__thumbnail {
    width: 100%;
    height: 100%;
    background-color: #222;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #2c3e50, #4ca1af);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;

    transition: height var(--transition-fast), box-shadow var(--transition-fast);
}

/* Featured Post Overlay (Play Button) */
/* NOTE: Uses .play-btn shared utility inside this overlay */
.featured-post__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--featured-post-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.featured-post__thumbnail:hover .featured-post__overlay {
    opacity: 1;
}

/* Featured Post Info Container */
.featured-post__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    min-height: 60%;
    background-color: var(--featured-post-card-bg);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Featured Post Hover Effects */
.featured-post:hover .featured-post__thumbnail {
    height: 35%;
}

.featured-post:hover .featured-post__info {
    transform: translateY(0);
    height: 65%;
    background-color: #ffffff;
}

.featured-post:hover .featured-post__title {
    color: #000000;
    margin-bottom: 8px;
    display: block;
    overflow: visible;
}

.featured-post:hover .featured-post__meta {
    color: #333333;
    margin-bottom: 10px;
}

.featured-post:hover .featured-post__description {
    color: #444444;
}

/* Featured Post Title */
.featured-post__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: var(--featured-post-card-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Post Metadata */
.featured-post__meta {
    font-size: 0.9rem;
    color: var(--featured-post-card-meta-color);
    margin-bottom: 0.5rem;
}

.featured-post__meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    color: var(--accent);
    opacity: 1;
}

/* Featured Post Description */
.featured-post__description {
    font-size: 0.9rem;
    color: var(--featured-post-card-desc-color);
    line-height: 1.5;
    overflow: visible;
}

/* Featured Post Preview Info (Visible before hover) */
.featured-post__preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.featured-post:hover .featured-post__preview-info {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-out, visibility 0.1s;
}

.featured-post__preview-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post__preview-meta {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

.regular-post__preview-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    color: var(--accent);
    opacity: 1;
}

.featured-post__preview-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    color: var(--accent);
    opacity: 1;
}

/* ============================================
   BLOCK 3: REGULAR POSTS
   ============================================
   NOTE: Uses .container-fluid from shared utilities
   NOTE: Uses .play-btn from shared utilities in .regular-post__overlay
   NOTE: Overridden by responsive styles @media (max-width: 768px)
   ============================================ */

/* Regular Posts Specific Header */
.regular-posts__header h2 {
    color: var(--accent);
}

/* Regular Posts Grid Container (Multi-row) */
/* Regular Posts Grid Container (Multi-row) - consolidated above */
.regular-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, var(--regular-post-card-width));
    justify-content: start;
    gap: var(--regular-post-card-gap);
    overflow: visible;
}

/* Regular Post Card Container */
.regular-post {
    cursor: pointer;
    width: var(--regular-post-card-width);
    min-width: var(--regular-post-card-width);
    flex-shrink: 0;
    height: var(--regular-post-card-height);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all var(--transition-fast);
}

.regular-post:hover {
    overflow: visible;
    z-index: 10;
}

/* Regular Post Thumbnail/Image */
.regular-post__thumbnail {
    width: 100%;
    height: var(--regular-post-card-height);
    background-color: #222;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #1a1a1a, #333);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Regular Post Overlay (Play Button) */
/* NOTE: Uses .play-btn shared utility inside this overlay */
.regular-post__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--regular-post-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.regular-post__thumbnail:hover .regular-post__overlay {
    opacity: 1;
}

/* Regular Post Info Container */
.regular-post__info {
    position: absolute;
    top: var(--regular-post-card-height);
    left: 0;
    width: 100%;
    height: calc(var(--regular-post-card-height) + var(--regular-post-card-gap));
    background-color: var(--regular-post-card-bg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--regular-post-border-color);
    transition: opacity var(--transition-fast);
    opacity: 1;
}

.regular-post:hover .regular-post__info {
    opacity: 1;
    background-color: #ffffff;
}

.regular-post:hover .regular-post__title {
    color: #000000;
    display: block;
    overflow: visible;
}

/* Enhanced Hover Shadow */
.regular-post:hover .regular-post__thumbnail,
.featured-post:hover .featured-post__thumbnail {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.regular-post:hover .regular-post__meta {
    color: #333333;
}

.regular-post:hover .regular-post__description {
    color: #444444;
}

/* Regular Post Title */
.regular-post__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: var(--regular-post-card-title-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Regular Post Metadata */
.regular-post__meta {
    font-size: 0.9rem;
    color: var(--regular-post-card-meta-color);
    margin-bottom: 0.5rem;
}

.regular-post__meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    color: var(--accent);
    opacity: 1;
}

/* Regular Post Description */
.regular-post__description {
    font-size: 0.9rem;
    color: var(--regular-post-card-desc-color);
    line-height: 1.5;
    overflow: visible;
}

/* Regular Post Preview Info (Visible before hover) */
.regular-post__preview-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.2s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align Bottom */
    align-items: flex-start;
    /* Align Left */
    text-align: left;
}

.regular-post:hover .regular-post__preview-info {
    opacity: 0;
}

.regular-post__preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.regular-post__preview-meta {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

/* ============================================
   BLOCK 4: FOOTER
   ============================================
   NOTE: Uses .container-fluid from shared utilities
   NOTE: Overridden by responsive styles @media (max-width: 768px)
   ============================================ */

.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--footer-border-color);
    margin-top: var(--spacing-lg);
    color: var(--footer-text-color);
    font-size: 0.9rem;
    background-color: var(--footer-bg);
}

.site-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.site-footer__links {
    display: flex;
    gap: 2rem;
}

.site-footer__links a:hover {
    color: var(--text-primary);
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #888;
}

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

.social-icon {
    font-size: 1.25rem;
    color: var(--footer-text-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.youtube:hover {
    color: #FF0000;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

.site-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    color: #999;
}

@media (max-width: 768px) {
    .site-footer {
        color: rgba(255, 255, 255, 0.8);
    }

    .site-footer__links a {
        color: rgba(255, 255, 255, 0.9);
    }

    .site-footer__links a:hover {
        color: #ffffff;
    }

    .site-footer__social .social-label {
        color: rgba(255, 255, 255, 0.6);
    }

    .site-footer__social .social-icon {
        color: rgba(255, 255, 255, 0.9);
    }

    .site-footer__bottom {
        color: rgba(255, 255, 255, 0.5);
    }

    .site-footer__content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .site-footer__social {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================
   NOTE: These rules OVERRIDE the blocks above on mobile devices
   OVERRIDES: Main Post, Footer, Regular Posts layout
   ============================================ */

@media (max-width: 768px) {

    /* OVERRIDES: .main-post flex-direction & stacking */
    .main-post {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Stack from top */
        padding-top: 70px;
        /* Clear fixed header */
        height: auto;
        min-height: auto;
        background-color: #0b0b0b;
        /* Dark background for seamless content flow */
    }

    /* OVERRIDES: .main-post__backdrop - 16:9 Container */
    .main-post__backdrop {
        position: relative;
        /* In document flow */
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16/9;
        /* Force 16:9 ratio to show full image */
        flex: none;
        background-position: center;
        background-size: cover;
        order: -1;
        /* Ensure it stays at top */
        z-index: 0;
        /* Fixes "disappearing" issue (was -1) */
        margin-bottom: -1px;
        /* Prevent sub-pixel gap */
    }

    /* Netflix-style gradient fade to seamlessly blend image into black content */
    .main-post__backdrop::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 40%, #0b0b0b 100%);
    }

    .main-post__content {
        width: 100%;
        padding: 1.5rem;
        /* Reduced bottom padding */
        margin-top: 0;
        background: transparent;
        position: relative;
        z-index: 2;
    }

    /* OVERRIDES: .main-post__title font-size */
    .main-post__title {
        font-size: 2.5rem;
        margin-top: 0.5rem;
    }

    /* OVERRIDES: .main-nav display - hides navigation on mobile */
    /* Mobile Header Adjustments */
    .site-header {
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.9);
        /* Solid dark background on mobile */
        backdrop-filter: blur(10px);
    }

    .logo img {
        width: 100px;
        /* Smaller logo on mobile */
    }

    /* Show Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide Desktop Nav */
    .main-nav {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000000;
        z-index: 100;
        padding-top: 5rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .main-nav.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .header-actions {
        display: none;
        /* Hide default actions in header, maybe move to menu? */
    }

    /* Or keep actions and just hide nav links */
    /* Let's keep actions visible but smaller if needed, or hide if cluttering */


    /* Fix header overlap by adding padding to top of main content */
    /* Refactored above in .main-post rule */

    /* OVERRIDES: .site-footer .container-fluid flex-direction */
    .site-footer .container-fluid {
        flex-direction: column;
        /* Overrides 'justify-content: space-between' */
        gap: 1rem;
    }

    /* OVERRIDES: .regular-posts justify-content */
    .regular-posts {
        justify-content: center;
    }

    /* OVERRIDES: Clean Headers for Mobile (Transparent bg, Gold text) */
    /* OVERRIDES: Clean Headers for Mobile (Transparent bg, Gold text) */
    .posts-section__header h2,
    .featured-posts__header h2,
    .regular-posts__header h2 {
        background-color: transparent !important;
        /* Force remove slate box */
        background: transparent !important;
        /* Double force */
        color: var(--accent) !important;
        /* Ensure gold */
        padding-left: 0 !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Seamless Dark Theme connection */
    .posts-container {
        padding-top: var(--spacing-md);
        /* Slightly compressed for mobile but consistent */
        background-color: #0b0b0b;
    }
}

/* ============================================
   MOBILE PHONE OPTIMIZATIONS (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

    /* Enforce Dark Background Globally on Phone */
    body {
        background-color: #0b0b0b;
        color: #e0e0e0;
    }

    .posts-section__header h2 {
        background-color: transparent !important;
        /* Remove slate box, keep gold text */
        text-align: left;
        padding-left: 0;
    }


    /* Layout */
    .container-fluid {
        padding: 0 var(--spacing-sm);
    }

    /* Hero Typography */
    /* Hero Typography */
    .main-post__title {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .main-post {
        padding-top: 80px;
        /* Adjusted for new stacked layout */
    }

    .main-post__meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .main-post__meta span {
        display: inline-block;
        white-space: nowrap;
        /* Forces "Directed by Name" to stay together */
    }

    .main-post__meta a {
        display: inline;
        /* Keep link inline with text */
        white-space: nowrap;
    }

    .main-post__meta span:not(:last-child)::after {
        content: '•';
        margin-left: 0.8rem;
        opacity: 0.7;
    }

    /* Section Headers */
    /* Section Headers - Removed legacy conflict */

    /* Featured Posts: Stack Vertical */
    .featured-posts {
        height: auto;
        overflow: visible;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .featured-post {
        width: 100%;
        max-width: 372px;
        /* Prevent being huge on slightly larger phones */
    }

    /* Regular Posts: Single Column */
    .regular-posts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .regular-post {
        width: 100%;
        max-width: 372px;
    }

    /* Ensure hover effects work nicely (tap) */
    .regular-post:hover {
        transform: none;
        /* Disable shift on mobile to avoid jumpiness */
        z-index: 1;
    }
}

/* ============================================
   LAZY LOADING & PERFORMANCE OPTIMIZATIONS
   ============================================ */
.lazy-bg {
    background-color: #1a1a1a;
    /* Dark placeholder color */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.lazy-bg.loaded {
    opacity: 1;
}

/* Base style for backdrops to avoid layout shift */
.main-post__backdrop {
    min-height: 100vh;
}

.featured-post__thumbnail,
.regular-post__thumbnail {
    background-color: #1a1a1a;
}