:root {
    --primary-red: #e50914;
    --dark-bg: #0a0a0a;
    --text-white: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.95);
    --card-bg: #1a1a1a;
    --border-color: #333;
}


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

body {
    background-color: var(--dark-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; /* Improves mobile tap feel */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- CANVAS EFFECT --- */
#sporeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Let clicks pass through */
    z-index: 900; /* Behind header/modals, above background */
    display: none; /* Hidden by default */
    mix-blend-mode: overlay; /* Helps it blend like floating dust */
}

/* --- NAVIGATION --- */
header {
    width: 100%;
    padding: 25px 5%;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 15px 5%;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 1001;
    position: relative;
}

.logo span {
    color: white;
    font-size: 0.8rem;
    letter-spacing: 5px;
    display: block;
    margin-top: -10px;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

/* --- MOBILE HAMBURGER --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
    
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
    background: var(--primary-red);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
    background: var(--primary-red);
}

/* --- VIEWS/SECTIONS --- */
main {
    position: relative;
    min-height: 100vh;
    flex: 1;
}

.view-section {
    display: none; /* Hidden by default */
    min-height: 100vh;
    width: 100%;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.view-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.8s forwards;
}

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

/* --- HERO HOME SECTION --- */
#home {
    display: none; 
}

#home.active {
    display: block !important;
    height: auto;
    min-height: 100vh;
    padding-top: 0;
    
    background-image: 
        linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 40%),
        linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 25%),
        url('https://pub-f3566281ca0e445593403c74b23475a5.r2.dev/stranger-things-season-5-official-poster.webp');
    
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.bottom-ui {
    padding: 60vh 5% 60px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    z-index: 2;
}

.info-group { max-width: 550px; }

.season-tag {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.subtext {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 90%;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.cta-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 35px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.btn-primary:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* Timer */
.timer-container { text-align: right; min-width: 350px; }
.timer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-red); margin-bottom: 15px; font-weight: 700; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
.timer-grid { display: flex; gap: 20px; justify-content: flex-end; }
.timer-block { display: flex; flex-direction: column; align-items: center; }
.timer-number { font-family: 'Bebas Neue', cursive; font-size: 3.5rem; line-height: 1; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.timer-unit { font-size: 0.7rem; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 5px; }

/* --- HOME THEORIES SECTION --- */
.home-theories-section {
    padding: 40px 0 0px 0; /* Reduced bottom padding */
    background: var(--dark-bg);
    width: 100%;
    z-index: 3;
    position: relative;
    box-shadow: 0 -50px 100px rgba(10,10,10,1); /* Smooth blend into hero */
}

/* --- TRAILER SECTION --- */
.trailer-section {
    padding: 50px 0;
    background: var(--dark-bg);
    width: 100%;
    position: relative;
    z-index: 3;
}

.video-container-home {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.25); /* Subtle red glow */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #333;
}

.video-container-home iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.special-feature-section {
        padding: 0px 0 80px 0;
        background: var(--dark-bg);
        width: 100%;
        z-index: 3;
        position: relative;
}

.home-theories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5%;
}

.home-theories-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: white;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-text:hover {
    letter-spacing: 2px;
    color: white;
}

/* --- CONTENT PAGES --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 50px 5%;
}

/* Updated Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-red);
    margin-bottom: 40px;
    padding-bottom: 10px;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    margin: 0;
    padding: 0;
    border: none;
}

/* Filter Styles */
.filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.filter-toggle-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.filter-toggle-btn:hover, .filter-toggle-btn.active {
    border-color: var(--primary-red);
    color: white;
    background: rgba(255,255,255,0.05);
}

.filter-toggle-btn svg { width: 16px; height: 16px; }

.filter-options {
    display: none;
    gap: 15px;
    margin-top: 20px;
    animation: slideDown 0.3s ease forwards;
}

.filter-options.show { display: flex; justify-content: center; flex-wrap: wrap; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary-red);
    color: white;
    background: rgba(229, 9, 20, 0.15);
}

/* Combined Grid for News & Theories */
.combined-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px; 
}

/* Unified Card Style */
.content-card {
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-card:hover { transform: translateY(-5px); border-color: var(--primary-red); }

.card-img {
    height: 200px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: 'Bebas Neue';
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.type-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-content { 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date { color: var(--primary-red); font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; display: block; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; cursor: pointer; color: white;}
.card-excerpt { font-size: 0.9rem; color: #aaa; line-height: 1.5; cursor: pointer; flex-grow: 1; }

/* ==========================================================================
   COMMUNITY SOCIAL FEED STYLES (REDESIGNED)
   ========================================================================== */

.community-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* --- POST COMPOSER (CREATE POST) --- */
#create-post-wrapper {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    margin-bottom: 0;
}

#create-post-wrapper.open {
    max-height: 1000px; /* Allow expansion */
    opacity: 1;
    margin-bottom: 30px;
}

/* The card style for the Composer & Feed Posts */
.social-card { 
    background: #181818; /* Standard social media dark mode card bg */
    width: 100%; 
    max-width: 600px; 
    border-radius: 12px; 
    border: 1px solid #2a2a2a; 
    margin-bottom: 30px; 
    box-sizing: border-box; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); 
    position: relative;
    overflow: hidden; /* Ensures images respect border radius */
}

/* Inputs styling for Composer */
.st-input-field, .st-textarea { 
    width: 100%; 
    padding: 14px; 
    margin-top: 10px; 
    background: #0a0a0a; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

/* Create Post Form Specific Padding */
#create-post-wrapper .social-card {
    padding: 24px;
}

.st-input-field:focus, .st-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: #050505;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.st-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom File Upload Styling */
.file-upload-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    color: #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px dashed #444;
    transition: 0.3s;
    width: 100%;
    font-weight: 500;
}

.custom-file-upload:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: #666;
}

input[type="file"] {
    display: none;
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: none;
    border: 1px solid #333;
    margin-top: 10px;
    object-fit: cover;
}

/* --- FEED POSTS STYLING --- */

/* Header: Avatar and Name */
.post-author-name {
    padding: 16px;
    margin: 0;
    font-weight: 700;
    color: var(--text-white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #181818;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Post Content Text */
.post-content-text {
    padding: 16px 16px 8px 16px; /* Padding for text inside the card */
    white-space: pre-wrap;
    color: #e0e0e0; 
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.see-more-btn {
    color: var(--primary-red);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 5px;
    text-decoration: none;
}
.see-more-btn:hover { text-decoration: underline; }

/* Post Image Styling - FULL WIDTH */
.social-post-img { 
    width: 100%; 
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    margin: 10px 0 0 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

/* Actions Bar (Like / Comment) */
.post-actions { 
    padding: 12px 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #181818;
}

.likes-count {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

/* Action Buttons Container (Right Side) */
.post-actions > div {
    display: flex;
    gap: 15px;
}

/* Action Buttons */
.btn-action { 
    background: transparent; 
    color: #b0b0b0; 
    padding: 6px 0; 
    border: none; 
    font-size: 0.9rem; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover {
    color: white;
}

/* Liked State */
.btn-action.liked {
    color: var(--primary-red);
}

/* --- COMMENTS SECTION --- */
.comment-section { 
    background: #121212; /* Slightly darker than card */
    padding: 16px; 
    margin: 0; 
    display: none; 
    border-top: 1px solid #2a2a2a;
}

.comment-item { 
    font-size: 0.9rem; 
    padding: 8px 0; 
    color: #ccc;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
}

.comment-item b { 
    color: white; 
    font-weight: 700;
    margin-right: 6px;
}

.comment-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* Inputs inside comments */
.comment-inputs .st-input-field {
    margin-top: 0;
    padding: 10px;
    background: #222;
    border-color: #333;
    font-size: 0.85rem;
}

.comment-inputs .st-input-field:focus {
    background: #2a2a2a;
    border-color: var(--primary-red);
}

/* Send Comment Button */
.st-btn-small {
    background: transparent;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 5px;
    transition: 0.3s;
    align-self: flex-end; 
}

.st-btn-small:hover { 
    background: var(--primary-red);
    color: white;
}

.end-message {
    color: #666;
    margin: 30px 0;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

/* Coming Soon Styles */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    flex-direction: column;
    text-align: center;
    border: 1px solid #222;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.coming-soon-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.coming-soon-sub {
    color: #888;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- FOOTER STYLES --- */
.site-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
    background: #050505;
    color: #666;
    margin-top: auto;
    font-size: 0.9rem;
    width: 100%;
    z-index: 10;
}

.site-footer a {
    color: var(--primary-red);
    text-decoration: none;
    margin-left: 5px;
    font-weight: bold;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* --- ABOUT MODAL STYLES --- */
.about-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.about-content {
    background: #111;
    border: 1px solid #333;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.15);
    position: relative;
    border-top: 2px solid var(--primary-red);
}

.about-content h2 {
    font-family: 'Bebas Neue';
    color: var(--primary-red);
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.about-lead {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1rem;
}

.disclaimer-divider {
    height: 1px;
    background: #333;
    width: 100px;
    margin: 20px auto;
}

.disclaimer-small {
    font-size: 0.85rem !important;
    color: #777 !important;
    font-style: italic;
}

.close-about {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}
.close-about:hover { color: var(--primary-red); }
/* ... MOBILE RESPONSIVENESS ... */
@media (max-width: 900px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }

    .nav-links.nav-active { right: 0; }
    .nav-link { font-size: 1.5rem; margin: 15px 0; }

    #home.active {
        background-image: 
            linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0) 40%),
            linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 25%),
            url('https://pub-f3566281ca0e445593403c74b23475a5.r2.dev/stranger-things-season-5-official-poster%20(4).jpeg');
    
        /* FIXED: Allow content to push footer down */
        height: auto;
        min-height: 100vh;
        display: block !important;

        background-position: top center; 
        
        /* CRITICAL FIX: Force image to be viewport size (screen size), NOT content size */
        background-size: 100% 100vh; 
        background-repeat: no-repeat;
    }
    
    .bottom-ui { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding-bottom: 60px;
        background: transparent;
    }

    /* --- UPDATED: CENTER BUTTONS VERTICALLY ON MOBILE --- */
    .cta-wrap {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .cta-wrap .btn-primary, 
    .cta-wrap .btn-secondary {
        width: 100%;
        max-width: 300px; /* Nice uniform width for buttons */
        text-align: center;
    }

    .timer-container { text-align: center; margin-top: 25px; }
    .timer-grid { justify-content: center; }
    h1 { font-size: 3rem; margin-bottom: 10px; }
    .info-group { margin-bottom: 15px; }
    .subtext { font-size: 1rem; margin-bottom: 20px; text-align: center; }
    .coming-soon-text { font-size: 3rem; }
    
    .home-theories-section { padding: 20px 0 0px 0; }
    .special-feature-section { padding: 0px 0 60px 0; }
    .home-theories-header { flex-direction: column; gap: 10px; text-align: center; }
    
    .modal-grid { grid-template-columns: 1fr; gap: 30px; }
    .modal-header-hero { height: 30vh; margin-bottom: -30px; }
    .modal-header-text-container { padding: 0 5%; }
    .modal-sidebar-col { position: static; display: grid; grid-template-columns: 1fr; gap: 20px; }
    .sidebar-gallery-img { height: auto; max-height: 500px; object-fit: cover; width: 100%; }
    .modal-title { font-size: 2.8rem; }
    .video-container { width: 100%; margin: 20px 0; border-radius: 4px; }
    .article-content { font-size: 1.1rem; padding-bottom: 20px; }
    .media-caption { font-size: 1rem; line-height: 1.6; padding: 0 10px; }
}
/* --- NEW FULL SCREEN MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Solid black for full immersion */
    z-index: 2000;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #0a0a0a;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Header fixed, body scrolls */
}

/* Sticky Action Bar at Top */
.modal-actions-bar {
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    backdrop-filter: blur(10px);
    z-index: 2010;
}

.close-modal-btn {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    border-color: var(--primary-red);
    color: white;
    background: rgba(229, 9, 20, 0.1);
}

/* Scrollable Container */
.modal-body-container {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 0 0 50px 0;
}

/* --- DESKTOP 2-COLUMN LAYOUT --- */
.modal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% content, 33% sidebar */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 5%;
    align-items: start;
}

/* Main Content Column */
.modal-main-col {
    padding-right: 20px;
}

/* Right Sidebar (Gallery) */
.modal-sidebar-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header-hero {
    width: 100%;
    height: 50vh; /* Large hero image desktop */
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    margin-bottom: -50px; /* Pull text up */
    display: block;
}

.modal-header-text-container {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.modal-tag {
    color: var(--primary-red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.modal-title {
    font-family: 'Bebas Neue';
    font-size: 4rem;
    color: white;
    line-height: 0.95;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9);
    margin-bottom: 15px;
}

.modal-meta {
    color: #bbb;
    font-size: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.article-content {
    font-size: 1.2rem; /* Larger for readability */
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 40px;
}

/* Video Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-caption {
    color: #888;
    font-size: 1rem; /* Larger font */
    font-style: italic;
    margin-top: 12px;
    text-align: center;
    line-height: 1.6; /* Increased leading */
}

/* Sidebar Gallery Images */
.sidebar-gallery-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    cursor: zoom-in; /* Indicates click behavior */
}

.sidebar-gallery-img:hover {
    transform: scale(1.03);
    border-color: var(--primary-red);
}

.sidebar-title {
    font-family: 'Bebas Neue';
    font-size: 1.8rem;
    color: #ddd;
    border-left: 3px solid var(--primary-red);
    padding-left: 10px;
    margin-bottom: 10px;
}

/* Like Button in Modal (Updated Placement) */
.like-container-header {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start; /* Left aligned for header */
}

.like-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 8px 18px; /* Slightly larger touch target */
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.heart-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s;
}

.like-btn.liked {
    color: var(--primary-red);
    border-color: var(--primary-red);
    background: rgba(229, 9, 20, 0.15);
}

.like-btn.liked .heart-icon {
    animation: heartBeat 0.4s forwards;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: zoom-out;
    animation: fadeIn 0.2s;
}

.lightbox-overlay img {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.2);
    border: 1px solid #333;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
}
.lightbox-close:hover { color: var(--primary-red); }

#lightboxCaption {
    color: #aaa;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

/* --- MOBILE MODAL ADJUSTMENTS --- */
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr; /* Stack into 1 column */
        gap: 30px;
    }

    /* Reduced Hero Height for Mobile */
    .modal-header-hero {
        height: 30vh; /* Smaller height so it fits screen */
        margin-bottom: -30px;
    }

    .modal-header-text-container {
        padding: 0 5%;
    }

    .modal-sidebar-col {
        position: static; /* No sticky on mobile */
        display: grid;
        grid-template-columns: 1fr; /* Large images */
        gap: 20px;
    }

    .sidebar-gallery-img {
        height: auto;
        max-height: 500px;
        object-fit: cover;
        width: 100%;
    }

    .modal-title { font-size: 2.8rem; }
    
    /* Large Video on Mobile - Fixed Scrolling */
    .video-container {
        width: 100%; /* Fit within container, no overflow */
        margin: 20px 0;
        border-radius: 4px;
    }
    
    .article-content {
        font-size: 1.1rem;
        padding-bottom: 20px;
    }

    .media-caption {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
}

/* --- SOCIAL ICONS IN ABOUT MODAL --- */
.about-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 25px 0; /* Spacing around icons */
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.discord {
    background-color: #5865F2; /* Discord Blue */
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.4);
}

/* --- DISCORD POPUP CARD --- */
.discord-card {
    background-color: #36393f; /* Discord Dark Grey */
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid #2f3136;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease-out;
}

.discord-logo-large {
    font-size: 3rem;
    color: #5865F2;
    margin-bottom: 15px;
}

.discord-card h3 {
    font-family: 'Inter', sans-serif;
    color: white;
    margin-bottom: 10px;
}

.discord-card p {
    color: #dcddde;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.discord-link-box {
    background: #202225;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    word-break: break-all;
    user-select: text; /* Allows easy copying */
}

.discord-link-box a {
    color: #00b0f4;
    text-decoration: none;
    font-weight: bold;
}

.discord-link-box a:hover {
    text-decoration: underline;
}

.close-discord {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #b9bbbe;
    font-size: 1.5rem;
    cursor: pointer;
}
.close-discord:hover { color: white; }

/* --- MODAL OVERLAY (Dim & Center) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark dimmed background */
    backdrop-filter: blur(5px);      /* Optional: Blurs the content behind */
    z-index: 2000;
    display: none;                   /* Hidden by default */
    justify-content: center;         /* Horizontally center */
    align-items: center;             /* Vertically center */
    animation: fadeIn 0.3s ease-out;
}

/* Ensure the card looks good */
.discord-card {
    background-color: #36393f;
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid #2f3136;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-discord {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #bbb;
    transition: 0.2s;
}

.close-discord:hover { color: white; }

/* --- FOOTER SOCIAL BUTTONS --- */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px; /* Space above the about text */
}

.social-btn-footer {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn-footer:hover {
    transform: translateY(-5px);
    color: white;
}

/* Brand Colors on Hover */
.social-btn-footer.discord:hover {
    background-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    border-color: #5865F2;
}

.social-btn-footer.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
    border-color: transparent;
}