:root { 
    /* Murky, vintage maritime color system inspired by the 1975 film poster */
    --bg: #0f1b2a;            /* Deep ocean depths - pitch black blue */
    --bg2: #071a30;           /* Upper coastal water layer */
    --card: #0b233f;          /* Worn boat hull blue */
    --card-hover: #123154;    /* Sunlit shallow water */
    --line: #1b3d66;          /* Weathered rust/navy deck lines */
    --text: #f4f7fa;          /* Crisp sea salt white */
    --muted: #7890a8;         /* Overcast sky gray */
    --sand: #e2d1b6;          /* Amity Island beach sand */
    --red: #cf1b1b;           /* Stark, aggressive movie title blood-red */
    --yellow: #f2b705;        /* Quint's barrels / Orca harpoon yellow */ 
}

* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:'Inter',sans-serif; line-height:1.5; }
img { width:100%; display:block; }
a { text-decoration:none; color:inherit; }
.container { width:min(1450px,92%); margin:auto; }

/* ==========================================
    JAWS FONT
   ========================================== */
@font-face {
  font-family: 'Amity Jack';
  src: url('theme-fonts/AmityJack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ==========================================
   STARK RETRO CATEGORY HEADER
   ========================================== */
.category-header { 
    padding: 4rem 0 2rem; 
    background: linear-gradient(180deg, rgba(7,26,48,0.5) 0%, transparent 100%);
    border-bottom: 2px dashed var(--line);
}
.category-header .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cat-text-block { flex: 1; }
.category-header h1 { 
    font-family: 'Amity Jack', sans-serif; 
    font-size: 7rem; 
    text-transform: uppercase; 
    margin: 0; 
    color: var(--red); 
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}
.category-header p { color: var(--sand); max-width: 600px; font-size: 1.15rem; margin-bottom: 1rem; font-weight: 500; }

/* Social Floating Buttons */
.cat-sub-icons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; width: 315px;}
.sub-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; /* Swapped to life-preserver rings */
    background: var(--bg2); 
    border: 2px solid var(--line); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.2rem; 
    color: var(--sand); 
    transition: 0.25s ease-in-out; 
}
.sub-icon:hover { 
    border-color: var(--yellow); 
    color: white; 
    transform: translateY(-3px) rotate(15deg); 
    box-shadow: 0 4px 15px rgba(242,183,5,0.2);
}

/* Common Social Platforms Override */
.sub-icon.spot:hover { background: #1DB954; border-color: #1DB954; color:#000;}
.sub-icon.apple:hover { background: #FC3C44; border-color: #FC3C44; color:#000;}
.sub-icon.amz:hover { background: #00A8E1; border-color: #00A8E1; color:#000; }
.sub-icon.yt:hover { background: #FF0000; border-color: #FF0000; color:#000; }
.sub-icon.rss:hover { background: #FF9900; border-color: #FF9900; color:#000;}
.sub-icon.bluesky:hover { background: #1185fe; border-color: #1185fe; color:#000;}
.sub-icon.tiktok:hover { background: #00f2fe; border-color: #00f2fe; color:#000;}
.sub-icon.instagram:hover { background: #e1306c; border-color: #e1306c; color:#000;}
.sub-icon.facebook:hover { background: #1877f2; border-color: #1877f2; color:#000; }
.sub-icon.letterboxd:hover { background: #ff8000; border-color: #ff8000; color:#000; }

/* ==========================================
   NAVIGATION BLUR BAR
   ========================================== */
header { 
    position:sticky; 
    top:0; 
    z-index:999; 
    backdrop-filter:blur(16px); 
    background:rgba(3,13,26,.8); 
    border-bottom: 3px solid var(--red); 
}
.nav { height:78px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-family:'Oswald',sans-serif; text-transform:uppercase; font-size:2.2rem; letter-spacing:1px; z-index: 10; position: relative; color: #fff;}
.logo span { color:var(--red); }
.nav-links { display:flex; gap:1.5rem; color:var(--sand); font-size:.95rem; margin-left: auto; margin-right: 1rem; font-weight: 600;}
.nav-links a:hover { color:var(--red); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10; position: relative; }
.menu-toggle span { width: 25px; height: 2px; background: var(--sand); }

.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 1rem; z-index: 5; }
.nav-overlay.active { display: flex; }
.nav-overlay a { font-size: 1.2rem; font-weight: 700; color: var(--sand); text-transform: uppercase; }
.nav-overlay a:hover { color: var(--red); }

/* ==========================================
   HERO DISPLAY BLOCK (SHARK ATTACK DEPTH)
   ========================================== */
.hero { padding:2rem 0 0rem; }
.hero-grid { display:grid; grid-template-columns:2fr 1fr; gap:1.5rem; }
.hero-main { 
    aspect-ratio: 1400 / 927; 
    border-radius:16px; 
    overflow:hidden; 
    position:relative; 
    display:flex; 
    align-items:flex-end; 
    padding:3rem; 
    border: 2px solid var(--line);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}
.hero-main-content { max-width:650px; position: relative; z-index: 2; }

/* The Tag Badge - Looks like a vintage nautical warning label */
.tag { 
    display:inline-block; 
    background: var(--yellow); 
    color: #000; 
    padding:.45rem 1rem; 
    border-radius: 4px; 
    font-size:.8rem; 
    text-transform:uppercase; 
    letter-spacing:1px; 
    font-weight:800; 
    margin-bottom:1.2rem; 
    border: 1px solid #000;
}
.hero-content .tag { font-size:.95rem !important; background: var(--red); color: white;}

.hero-main h2 { font-size: clamp(2.2rem, 4vw, 3rem); line-height:1; text-transform:uppercase; font-family:'Amity Jack',sans-serif; margin-bottom:0.8rem; color: #fff; letter-spacing: 0.5px;}
.hero-main p { color:var(--sand); font-size:1.1rem; margin-bottom:1rem; font-weight: 600; }

.hero-side { display:grid; gap:1.5rem; }
.side-post, a.side-post { 
    min-height:290px; 
    border-radius:16px; 
    overflow:hidden; 
    position:relative; 
    display:flex; 
    align-items:flex-end; 
    padding:1.8rem; 
    background-size:cover; 
    background-position:center; 
    transition:.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 2px solid var(--line); 
}
.side-post:hover { transform:scale(1.02); border-color: var(--yellow); }
.side-post::before { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(3,13,26,1) 30%, rgba(0,0,0,0.2)); }
.side-content { position:relative; z-index:2; }
.side-content h3 { font-weight:light;font-size:1.4rem; line-height:1.1; margin-bottom:.5rem; color:#fff; font-family:'Amity Jack', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;}
.side-content p { color:var(--sand); font-size:.9rem; }

/* ==========================================
   ARCHIVE DISPLAY FEED (MINI-POST CONTAINER)
   ========================================== */
.archive-wrapper { padding: 3rem 0 5rem; }
.feature-row { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:1.2rem; }
.mini-post { 
    background:var(--card); 
    border-radius:12px; 
    overflow:hidden; 
    transition:.3s ease; 
    border:2px solid var(--line); 
}
.mini-post:hover { 
    transform:translateY(-8px); 
    background:var(--card-hover); 
    border-color: var(--red); 
}
.mini-image { aspect-ratio:16/10; overflow:hidden; border-bottom: 2px solid var(--line); }
.mini-image img { height:100%; object-fit:cover; }
.mini-content { padding:1.2rem; }
.mini-content h4 { margin:.5rem 0; font-size:1.2rem; font-family: 'Amity Jack', sans-serif; text-transform: uppercase; color: #fff; letter-spacing: 0.5px; }
.mini-content p { color:var(--sand); font-size:.9rem; }
.section-title h2 { font-size:1.8rem; margin-bottom: 0.5rem; font-family: 'Amity Jack', sans-serif; }

.main-content-block a { color:var(--yellow); font-weight: 600; }
.main-content-block a:hover { color: var(--red); border-bottom:1px dashed var(--red); }

/* ==========================================
   SINGLE POST LAYOUTS & TRANSITIONS
   ========================================== */
.hero-bg { position:absolute; inset:0; transform:scale(1.05); }
/* Deep water gradient overlay pulling your eye downwards */
.hero-bg::before { 
    content:""; 
    position:absolute; 
    inset:0; 
    background: linear-gradient(to top, var(--bg) 85%, rgba(3,13,26,0.3)), 
                linear-gradient(to bottom, rgba(3,13,26,0.8), transparent 40%); 
    z-index:1; 
}
.hero-content { position:relative; z-index:2; padding:4rem 0 2rem; max-width:850px; }
.hero h1 { font-size:clamp(2.8rem,5.5vw,4.5rem); line-height:1; text-transform:uppercase; font-family:'Amity Jack',sans-serif; margin-bottom:1rem; color:#fff; letter-spacing: 1px; }
.meta { display:flex; flex-wrap:wrap; gap:1rem; color:var(--sand); font-size:1rem; padding-bottom:10px; font-weight: 500; }
.meta span { opacity:1; }

.main-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:3.5rem; padding:0 0 5rem 0; }
.article-image { border-radius:16px; overflow:hidden; margin-bottom:2rem; border:2px solid var(--line); }
.article-content { font-size:1.1rem; color:var(--text); }
.article-content p { margin-bottom:2rem; }
.article-content h2 { margin:3rem 0 1rem; font-size:2.2rem; line-height:1.1; color:white; font-family:'Amity Jack',sans-serif; text-transform:uppercase; border-bottom: 2px solid var(--line); padding-bottom: 5px;}
.article-content blockquote { 
    margin:2.5rem 0; 
    padding:1.8rem; 
    background:var(--card); 
    border-left:5px solid var(--yellow); 
    border-radius:8px; 
    color:var(--sand); 
    font-size:1.2rem; 
    font-style: italic; 
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ==========================================
   THE CUSTOM MOVIE SCORE CARD (VINTAGE LOG)
   ========================================== */
.custom-movie-card { 
    background: var(--card); 
    border: 2px solid var(--line); 
    border-radius: 16px; 
    overflow: hidden; 
    margin-bottom: 3rem; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
}
.cmc-ratings { display: flex; background: rgba(0,0,0,0.4); border-bottom: 2px solid var(--line); }
.cmc-rating-item { flex: 1; padding: 1.4rem 1rem; text-align: center; border-right: 2px solid var(--line); }
.cmc-rating-item:last-child { border-right: none; }
.cmc-rating-item:hover { background: var(--card-hover); }
.cmc-label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--sand); letter-spacing: 1px; margin-bottom: 0.4rem; font-weight: 700; }
.cmc-value { font-size: 1.5rem; font-weight: 800; color: white; font-family: 'Amity Jack', sans-serif; }
.cmc-value.rt { color: #ff3b30; } 
.cmc-value.mc { color: #4cd964; } 
.cmc-value.imdb { color: var(--yellow); }

.cmc-body { padding: 2rem; background: linear-gradient(180deg, var(--card) 0%, rgba(3,13,26,0.3) 100%); }
.cmc-year { 
    display: inline-block; 
    background: var(--yellow); 
    padding: 0.3rem 0.9rem; 
    border-radius: 4px; 
    font-size: 0.85rem; 
    font-weight: 900; 
    color: #000; 
    margin-bottom: 1.5rem; 
    border: 1px solid #000; 
}
.cmc-info-row { display: flex; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.cmc-info-row:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cmc-info-label { width: 120px; font-size: 0.85rem; color: var(--sand); text-transform: uppercase; font-weight: 800; flex-shrink: 0; letter-spacing: 0.5px; }
.cmc-info-value { flex: 1; color: var(--text); font-size: 1rem; }
.cmc-info-value a { color: var(--yellow); font-weight: 600; }
.cmc-info-value a:hover { color: var(--red); }
.cmc-separator { color: var(--line); margin: 0 4px; }

.cmc-footer { padding: 1rem; background: rgba(0,0,0,0.3); border-top: 2px solid var(--line); display: flex; justify-content: flex-end; }
.cmc-watch-btn { 
    margin-left:15px !important; 
    display: inline-block; 
    background: var(--line); 
    color: var(--sand); 
    padding: 0.4rem 1rem; 
    border-radius: 4px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s;
}
.cmc-watch-btn:hover { background: var(--red); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(207,27,27,0.4); border-color: var(--red); }

/* Streaming Overrides styled to respect custom color theme handles */
.cmc-watch-btn.netflix { background: #E50914 !important; color: white !important; }
.cmc-watch-btn.prime { background: #00a8e1 !important; color: white !important; }
.cmc-watch-btn.hulu { background: #00e969 !important; color: #000 !important; }

/* ==========================================
   SIDEBAR PODCAST MODULES
   ========================================== */
.player { 
    background:var(--card); 
    border:2px solid var(--line); 
    border-radius:16px; 
    padding:1.8rem; 
    margin-bottom:2rem; 
    position:sticky; 
    top:110px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.player h3 { margin-bottom:.4rem; font-size:1.5rem; color:white; font-family:'Amity Jack',sans-serif; text-transform:uppercase; letter-spacing: 0.5px;}
.player p { color:var(--sand); margin-bottom:1.5rem; font-size:.95rem; font-weight: 500; }

/* Custom audio runtime bar restyle */
audio { filter: invert(90%) hue-rotate(180deg); opacity: 0.85; }

/* Trailer Box Trigger */
.trailer-trigger { 
    border-radius:16px; 
    overflow:hidden; 
    margin-bottom:1.5rem; 
    position: relative; 
    cursor: pointer; 
    display: block; 
    aspect-ratio: 16/10; 
    border: 2px solid var(--line); 
}
.trailer-trigger::after { content:''; position: absolute; inset:0; background: rgba(3,13,26,0.6); transition: 0.3s; }
.trailer-trigger:hover::after { background: rgba(3,13,26,0.3); }
.play-overlay i { font-size: 3.5rem; margin-bottom: 0.5rem; transition: 0.2s; color: var(--sand); }
.trailer-trigger:hover .play-overlay i { transform: scale(1.1) rotate(90deg); color: var(--red); }
.play-overlay span { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; }

/* Lightbox Base Container Dimensions */
.lightbox-modal { display: none; position: fixed; z-index: 9999; inset: 0; background-color: rgba(3,13,26,0.98); backdrop-filter: blur(8px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-modal.active { display: flex; opacity: 1; }
.lightbox-content { position: relative; width: 90%; max-width: 1000px; aspect-ratio: 16/9; background: black; border-radius: 8px; border: 2px solid var(--line); }
.lightbox-content iframe { width: 100%; height: 100%; border: none; border-radius: 6px; }
.close-lightbox { position: absolute; top: -45px; right: 0; color: var(--sand); font-size: 2.2rem; cursor: pointer; background: none; border: none; }
.close-lightbox:hover { color: var(--red); }

/* Related Navigation Panels */
.related { margin-top:5rem; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.related-card { background:var(--card); border-radius:12px; overflow:hidden; transition:.3s; border:2px solid var(--line); }
.related-card:hover { transform:translateY(-5px); background:var(--card-hover); border-color:var(--yellow); }
.related-image { aspect-ratio:16/10; border-bottom: 2px solid var(--line); }
.related-image img { height:100%; object-fit:cover; }
.related-content { padding:1.2rem; }
.related-content h4 { margin:.5rem 0; line-height:1.3; color:white; font-size:1.2rem; font-family:'Amity Jack',sans-serif; text-transform:uppercase; letter-spacing: 0.5px; }
.related-content p { color:var(--sand); font-size:.9rem; }

.movie-post-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 20px; border-top: 2px dashed var(--line); }
.movie-post-navigation .nav-link { color: var(--sand); text-decoration: none; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.movie-post-navigation .nav-link:hover { color: var(--yellow); }
.movie-post-navigation .disabled-link { color: rgba(27,61,102,0.4); cursor: not-allowed; }

/* ==========================================
   PAGINATION NAVIGATION ARCHIVE BUTTONS
   ========================================== */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 4rem 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; background: var(--bg2); border: 2px solid var(--line); font-weight: 700; color: var(--sand); transition: 0.2s; }
.pagination a:hover { background: var(--card-hover); color: white; border-color: var(--yellow); transform: translateY(-2px); }
.pagination .current { background: var(--red); color: white; border-color: var(--red); }

/* ==========================================
   AMITY EXPANSION MOVIEMONTH SEARCHBAR STYLE
   ========================================== */
.moviemonth-search-wrapper { margin-top: 20px; width: 100%; }
.mm-search-form { display: flex; position: relative; align-items: center; background-color: rgba(0,0,0,0.3); border: 2px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.mm-search-form:focus-within { border-color: var(--yellow); }
.mm-search-input { background: transparent !important; border: none !important; color: #f8fafc !important; font-size: 1rem; padding: 10px 40px 10px 10px; width: 100%; outline: none !important; }
.mm-search-input::placeholder { color: var(--muted); }
.mm-search-submit { position: absolute; right: 14px; background: none !important; border: none !important; color: var(--sand); font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mm-search-submit:hover { color: var(--red); }

/* ==========================================
   CLEAN FOOTER SETTINGS
   ========================================== */
.clean-footer { background-color: #020810; color: var(--sand); padding: 60px 24px 40px 24px; border-top: 3px solid var(--red); }
.footer-wrap { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.footer-row { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 450px; border-bottom: 2px dashed var(--line); padding-bottom: 16px; }
.row-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); font-weight: 700; }
.icon-links { display: flex; gap: 20px; align-items: center; }
.icon-links a { color: var(--sand); font-size: 1.4rem; display: inline-flex; align-items: center; }
.icon-links a:hover { transform: translateY(-3px) scale(1.1); color: var(--yellow); }
.custom-svg { width: 1.5rem; height: 1.5rem; }
.footer-credit { margin-top: 10px; font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* WP Dashboard Sticky Action Nodes */
.edit-wp-button { position:fixed; bottom:40px; right:40px; display: flex; gap: 15px; align-items: center; z-index: 9999; }
.edit-wp-button a { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 800; text-transform: uppercase; font-size: 13px; background-color: var(--red); border: 2px solid #000; color: #ffffff; transition: 0.2s ease; box-shadow: 0 6px 20px rgba(0,0,0,0.5); cursor: pointer; font-family: 'Amity Jack', sans-serif; letter-spacing: 0.5px; }
.edit-wp-button a:hover { background-color: var(--yellow); color: #000; transform: translateY(-3px); }

/* ==========================================
   MEDIA GRID RESPONSIVE OVERRIDES
   ========================================== */
@media(max-width:1100px){ 
    .hero-grid, .footer-grid{ grid-template-columns:1fr; } 
    .hero-side, .feature-row{ grid-template-columns:1fr 1fr; } 
}
@media(max-width:1100px){ 
    .nav-links{ display:none; } 
    .menu-toggle { display: flex; }
    .hero-main{ min-height:400px; aspect-ratio:auto; padding: 2rem; } 
    .hero-side, .feature-row, .footer-grid{ grid-template-columns:1fr; } 
    .category-header .container { flex-direction: column; text-align: center; align-items: center; }
    body.moviemonth-post .cat-sub-icons {margin:20px 0 -25px 0 !important;}
    body.moviemonth-list .cat-sub-icons {margin:-25px 0 20px 0 !important;}
}
@media(max-width:1000px){
    .main-layout{ grid-template-columns:1fr; gap: 2.5rem; }
    .player { position:relative; top:auto; }
    .related-grid{ grid-template-columns:1fr 1fr; } 
    .movie-post-aside { display:none !important; }  
    .movie-post-navigation { display: flex; justify-content: space-between; align-items: center; margin: 0px; padding: 10px 0; border-top: 0 !important; }
}
@media(min-width:1000px){ .mobile-movie-items { display:none !important; } }
@media(max-width:768px){
    .main-layout { padding-top:0 !important; }
    .menu-toggle { display: flex; }
    .hero { min-height:41vh; margin:-40px 0 10px 0 !important; }
    .hero h1 { font-size: 3rem; }
    .related-grid, .footer-grid { grid-template-columns:1fr; }
    .cmc-info-row { flex-direction: column; }
    .cmc-info-label { margin-bottom: 0.4rem; }
    .moviemonth-search-wrapper { margin-bottom:15px !important; }
}


/*mike additions  */

.archive-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 40px; /* Ensures it stays away from the footer */
    width: 100%;
}

.pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #fff; /* Adjust based on your theme's colors */
}

.pagination .current {
    background-color: #e50914; /* Example color for the active page */
    border-color: #e50914;
}