/*
Theme Name: FullMovieFR
Theme URI: https://fullmoviefr.com
Author: FullMovieFR
Description: A cinematic WordPress theme for FullMovieFR with dark editorial layouts, red brand accents, and responsive movie magazine sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: fullmoviefr
Tags: entertainment, blog, news, custom-logo, featured-images, responsive-layout
*/

:root {
    --fm-bg: #08090b;
    --fm-panel: #101217;
    --fm-panel-soft: #171a20;
    --fm-ink: #f4f6f8;
    --fm-muted: #a8adb5;
    --fm-line: rgba(255, 255, 255, 0.11);
    --fm-red: #f20b18;
    --fm-red-dark: #a30610;
    --fm-steel: #5f6266;
    --fm-radius: 8px;
    --fm-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    --fm-wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(circle at 80% 10%, rgba(242, 11, 24, 0.12), transparent 30%), var(--fm-bg);
    color: var(--fm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fm-red); }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text { position: absolute; left: -9999px; }

.fm-wrap { width: min(var(--fm-wrap), calc(100% - 36px)); margin: 0 auto; }
.fm-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 9, 11, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--fm-line);
}
.fm-topbar { height: 3px; background: linear-gradient(90deg, #111318, var(--fm-red), #111318); }
.fm-header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fm-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.fm-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, #ff1825, #9f030b);
    box-shadow: 0 0 26px rgba(242, 11, 24, 0.42);
    color: #fff;
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
}
.fm-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.fm-brand-name { font-weight: 900; font-style: italic; font-size: clamp(24px, 3vw, 36px); letter-spacing: 0; }
.fm-brand-name span { color: var(--fm-red); text-shadow: 0 0 18px rgba(242, 11, 24, 0.5); }
.fm-brand-sub { color: var(--fm-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 7px; }
.fm-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fm-nav ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.fm-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 6px; color: #d9dde3; font-size: 14px; font-weight: 700; }
.fm-nav a:hover, .fm-nav .current-menu-item > a { background: rgba(242, 11, 24, 0.14); color: #fff; }
.fm-search-link { border: 1px solid var(--fm-line); background: #12151b; }

.fm-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--fm-line); }
.fm-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,0.96) 0%, rgba(8,9,11,0.82) 44%, rgba(8,9,11,0.45) 100%); z-index: 1; }
.fm-hero-art { position: absolute; inset: 0; opacity: 0.42; }
.fm-hero-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.fm-hero-inner { position: relative; z-index: 2; min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr); gap: 42px; align-items: end; padding: 76px 0 42px; }
.fm-kicker { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; }
.fm-kicker:before { content: ""; width: 34px; height: 3px; background: var(--fm-red); box-shadow: 0 0 18px rgba(242, 11, 24, 0.8); }
.fm-hero h1 { margin: 14px 0 14px; max-width: 820px; font-size: clamp(42px, 6vw, 74px); line-height: 0.98; letter-spacing: 0; }
.fm-hero p { max-width: 640px; margin: 0 0 28px; color: #c9cdd4; font-size: clamp(16px, 2vw, 19px); }
.fm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border-radius: 6px; background: var(--fm-red); color: #fff; font-weight: 900; box-shadow: 0 0 28px rgba(242, 11, 24, 0.3); }
.fm-btn:hover { color: #fff; background: #ff2630; }
.fm-btn.ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--fm-line); box-shadow: none; }
.fm-feature-card { background: rgba(16, 18, 23, 0.84); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); padding: 18px; box-shadow: var(--fm-shadow); }
.fm-feature-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: #20242b; margin-bottom: 16px; }
.fm-feature-thumb img, .fm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #191d24, #3b1014); color: rgba(255,255,255,0.38); font-size: 64px; font-weight: 900; }
.fm-meta { color: var(--fm-muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fm-meta span:not(:last-child):after { content: "/"; color: rgba(255,255,255,0.25); margin-left: 10px; }
.fm-feature-card h2, .fm-card h2, .fm-card h3 { margin: 8px 0 8px; line-height: 1.18; }
.fm-feature-card h2 { font-size: 25px; }

.fm-main { padding: 44px 0 58px; }
.fm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--fm-line); padding-bottom: 14px; }
.fm-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.fm-section-head p { margin: 0; color: var(--fm-muted); max-width: 540px; }
.fm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.fm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fm-card { background: var(--fm-panel); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); overflow: hidden; min-width: 0; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.fm-card:hover { transform: translateY(-3px); border-color: rgba(242, 11, 24, 0.55); background: #141821; }
.fm-card-thumb { aspect-ratio: 16/10; background: #20242b; overflow: hidden; }
.fm-card-body { padding: 15px; }
.fm-card h2, .fm-card h3 { font-size: 19px; }
.fm-card p { margin: 10px 0 0; color: var(--fm-muted); font-size: 14px; }
.fm-category { display: inline-flex; color: #fff; background: rgba(242, 11, 24, 0.18); border: 1px solid rgba(242, 11, 24, 0.42); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 9px; }
.fm-sidebar { display: flex; flex-direction: column; gap: 18px; }
.fm-side-panel { border: 1px solid var(--fm-line); background: linear-gradient(180deg, #12151a, #0d0f13); border-radius: var(--fm-radius); padding: 18px; }
.fm-side-panel h2 { margin: 0 0 14px; font-size: 18px; }
.fm-trending { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: trend; }
.fm-trending li { counter-increment: trend; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; border-top: 1px solid var(--fm-line); padding-top: 14px; }
.fm-trending li:first-child { border-top: 0; padding-top: 0; }
.fm-trending li:before { content: counter(trend, decimal-leading-zero); color: var(--fm-red); font-size: 18px; font-weight: 900; }
.fm-trending a { font-weight: 800; line-height: 1.25; }
.fm-search-form { display: flex; gap: 8px; }
.fm-search-form input[type="search"] { min-width: 0; flex: 1; height: 42px; border-radius: 6px; border: 1px solid var(--fm-line); background: #090b0f; color: #fff; padding: 0 12px; }
.fm-search-form button { border: 0; border-radius: 6px; background: var(--fm-red); color: #fff; font-weight: 900; padding: 0 14px; }

.fm-page { padding: 44px 0 64px; }
.fm-page-title { margin: 0 0 24px; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.fm-content-wrap { display: grid; grid-template-columns: minmax(0, 780px) 320px; gap: 34px; align-items: start; }
.fm-article { background: var(--fm-panel); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); overflow: hidden; }
.fm-article-cover { aspect-ratio: 16/8; background: #20242b; }
.fm-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.fm-article-body { padding: clamp(20px, 4vw, 34px); }
.fm-article-body h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; }
.fm-article-body p, .fm-article-body li { color: #d8dce2; }
.fm-article-body a { color: #ff4a53; text-decoration: underline; text-underline-offset: 3px; }
.fm-article-body blockquote { margin: 28px 0; padding: 14px 18px; border-left: 4px solid var(--fm-red); background: #0c0e12; color: #fff; }
.fm-pagination, .nav-links { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers, .nav-links a, .nav-links span { border: 1px solid var(--fm-line); background: #11141a; border-radius: 6px; padding: 8px 12px; color: #fff; }
.page-numbers.current { background: var(--fm-red); border-color: var(--fm-red); }
.fm-empty { border: 1px dashed var(--fm-line); border-radius: var(--fm-radius); padding: 28px; color: var(--fm-muted); background: rgba(255,255,255,0.03); }
.fm-site-footer { border-top: 1px solid var(--fm-line); background: #06070a; padding: 28px 0; color: var(--fm-muted); }
.fm-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fm-footer-inner strong { color: #fff; }

@media (max-width: 980px) {
    .fm-header-inner, .fm-section-head, .fm-footer-inner { align-items: flex-start; flex-direction: column; }
    .fm-nav, .fm-nav ul { justify-content: flex-start; }
    .fm-hero-inner, .fm-layout, .fm-content-wrap { grid-template-columns: 1fr; }
    .fm-hero-inner { min-height: auto; padding-top: 56px; }
    .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .fm-wrap { width: min(100% - 24px, var(--fm-wrap)); }
    .fm-header-inner { min-height: 68px; gap: 12px; padding: 12px 0; }
    .fm-brand-mark { width: 40px; height: 40px; font-size: 26px; }
    .fm-brand-sub { display: none; }
    .fm-nav a { min-height: 34px; padding: 7px 9px; font-size: 13px; }
    .fm-hero h1 { font-size: 39px; }
    .fm-grid { grid-template-columns: 1fr; }
    .fm-search-form { flex-direction: column; }
    .fm-search-form button { min-height: 42px; }
}

/* News portal card layout: compact image, readable title, and excerpt. */
.fm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.fm-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 150px;
    background: #111419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--fm-radius);
    overflow: hidden;
    min-width: 0;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.fm-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 11, 24, 0.5);
    background: #151922;
}
.fm-card-thumb {
    aspect-ratio: auto;
    min-height: 150px;
    background: #20242b;
    overflow: hidden;
}
.fm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-card-body {
    padding: 14px 16px 13px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}
.fm-card h2,
.fm-card h3 {
    margin: 5px 0 7px;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.18;
    letter-spacing: 0;
}
.fm-card h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-card .fm-meta {
    margin-bottom: 7px;
}
.fm-card-excerpt p,
.fm-card p {
    margin: 0;
    color: #b8bec7;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 980px) {
    .fm-card { grid-template-columns: 190px minmax(0, 1fr); }
    .fm-card-thumb { min-height: 138px; }
}
@media (max-width: 620px) {
    .fm-card { grid-template-columns: 128px minmax(0, 1fr); min-height: 118px; }
    .fm-card-thumb { min-height: 118px; }
    .fm-card-body { padding: 10px 11px; }
    .fm-card h2,
    .fm-card h3 { font-size: 16px; margin: 4px 0 5px; }
    .fm-card .fm-meta { font-size: 12px; margin-bottom: 0; }
    .fm-card-excerpt p,
    .fm-card p { display: none; }
    .fm-card .fm-category { margin-bottom: 5px; font-size: 10px; padding: 2px 7px; }
}

/* Refine cards: portrait thumbnails and text-width category badges. */
.fm-card {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 205px;
}
.fm-card-thumb {
    aspect-ratio: 3 / 4;
    min-height: 205px;
    height: 100%;
}
.fm-card-body {
    align-items: flex-start;
}
.fm-category {
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .fm-card { grid-template-columns: 138px minmax(0, 1fr); min-height: 184px; }
    .fm-card-thumb { min-height: 184px; }
}
@media (max-width: 620px) {
    .fm-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 142px; }
    .fm-card-thumb { min-height: 142px; }
}

/* Portal-news layout inspired by modern Indonesian news grids. */
.fm-main {
    background: #f2f3f5;
    color: #111318;
    padding: 38px 0 64px;
}
.fm-main .fm-layout {
    grid-template-columns: minmax(0, 1fr);
}
.fm-main .fm-sidebar {
    display: none;
}
.fm-main .fm-section-head {
    border-bottom: 0;
    padding-bottom: 4px;
    margin-bottom: 18px;
    align-items: center;
}
.fm-main .fm-section-head .fm-kicker {
    display: none;
}
.fm-main .fm-section-head h2 {
    position: relative;
    padding-left: 16px;
    color: #050608;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 950;
    text-transform: uppercase;
    line-height: 1;
}
.fm-main .fm-section-head h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 22px;
    border-radius: 5px;
    background: var(--fm-red);
}
.fm-main .fm-section-head p {
    color: #111318;
    max-width: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.fm-main .fm-section-head p:after {
    content: " ->";
}
.fm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.fm-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    background: #fff;
    color: #101217;
    border: 0;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 18, 24, 0.1);
    transition: transform .18s ease, box-shadow .18s ease;
}
.fm-card:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(15, 18, 24, 0.16);
}
.fm-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    background: #d5d8de;
    overflow: hidden;
}
.fm-card-thumb img,
.fm-card-thumb .fm-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-card-thumb .fm-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 7px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--fm-red);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.fm-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 16px 16px;
}
.fm-card h2,
.fm-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.22;
    color: #050608;
}
.fm-card h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-card h2 a:hover {
    color: var(--fm-red);
}
.fm-card-excerpt {
    flex: 1;
}
.fm-card-excerpt p,
.fm-card p {
    display: -webkit-box;
    margin: 0;
    color: #343a44;
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-news-meta {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #7a828d;
    font-size: 13px;
    line-height: 1.2;
}

@media (max-width: 980px) {
    .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .fm-main .fm-section-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .fm-main { padding-top: 28px; }
    .fm-grid { grid-template-columns: 1fr; }
    .fm-card { min-height: 0; }
    .fm-card-thumb { aspect-ratio: 16 / 9; min-height: 0; }
    .fm-card-body { padding: 15px; }
    .fm-card h2,
    .fm-card h3 { font-size: 18px; }
    .fm-card-excerpt p,
    .fm-card p { display: -webkit-box; -webkit-line-clamp: 3; }
}

/* Slider banner plus restored sidebar layout. */
.fm-slider {
    background: #08090b;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding: 30px 0 34px;
}
.fm-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.fm-slider-head h2 {
    position: relative;
    margin: 0;
    padding-left: 16px;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-slider-head h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 22px;
    border-radius: 5px;
    background: var(--fm-red);
}
.fm-slider-controls {
    display: flex;
    gap: 8px;
}
.fm-slider-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: #141820;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.fm-slider-controls button:hover {
    background: var(--fm-red);
}
.fm-slider-stage {
    position: relative;
    min-height: 390px;
    border-radius: 8px;
    overflow: hidden;
    background: #111419;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.fm-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.fm-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.fm-slide-media {
    position: relative;
    min-height: 390px;
    background: #20242b;
    overflow: hidden;
}
.fm-slide-media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(17, 20, 25, 0.72));
}
.fm-slide-media img,
.fm-slide-media .fm-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(135deg, #111419, #171117);
}
.fm-slide-content .fm-category {
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--fm-red);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.fm-slide-content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: 0;
}
.fm-slide-content .fm-card-excerpt p {
    color: #d7dbe2;
    font-size: 17px;
    -webkit-line-clamp: 3;
}
.fm-slide-content .fm-news-meta {
    border-color: rgba(255, 255, 255, 0.13);
    color: #aeb4bd;
    margin-top: 20px;
}
.fm-slider-dots {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: flex;
    gap: 7px;
    z-index: 3;
}
.fm-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}
.fm-slider-dots button.is-active {
    width: 26px;
    border-radius: 999px;
    background: var(--fm-red);
}
.fm-main .fm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
}
.fm-main .fm-sidebar {
    display: flex;
    position: sticky;
    top: 92px;
}
.fm-main .fm-side-panel {
    background: #fff;
    color: #111318;
    border: 0;
    box-shadow: 0 14px 32px rgba(15, 18, 24, 0.08);
}
.fm-main .fm-side-panel h2 {
    position: relative;
    padding-left: 13px;
    color: #050608;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-main .fm-side-panel h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--fm-red);
}
.fm-main .fm-trending li {
    border-color: #e5e7eb;
}
.fm-main .fm-trending a {
    color: #111318;
}
.fm-main .fm-search-form input[type="search"] {
    background: #f6f7f9;
    color: #111318;
    border-color: #e1e4e8;
}
.fm-main .fm-search-form button {
    background: var(--fm-red);
}
.fm-main .fm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .fm-slide { grid-template-columns: 1fr; position: relative; display: none; }
    .fm-slide.is-active { display: grid; }
    .fm-slide-media { min-height: 280px; }
    .fm-slide-media:after { background: linear-gradient(180deg, transparent 45%, rgba(17, 20, 25, 0.78)); }
    .fm-slider-stage { min-height: 0; }
    .fm-main .fm-layout { grid-template-columns: 1fr; }
    .fm-main .fm-sidebar { position: static; }
    .fm-main .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .fm-slider { padding-top: 22px; }
    .fm-slider-head h2 { font-size: 23px; }
    .fm-slide-media { min-height: 220px; }
    .fm-slide-content { padding: 20px; }
    .fm-slide-content h1 { font-size: 28px; }
    .fm-slide-content .fm-card-excerpt p { font-size: 15px; }
    .fm-main .fm-grid { grid-template-columns: 1fr; }
}

/* Text fitting pass: keep slider and cards balanced inside their frames. */
.fm-slide-content h1 {
    max-width: 760px;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.08;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-slide-content .fm-card-excerpt p {
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}
.fm-slide-content .fm-news-meta {
    font-size: 13px;
    margin-top: 14px;
    padding-top: 11px;
}
.fm-card {
    min-height: 392px;
}
.fm-card-thumb {
    aspect-ratio: 16 / 8.8;
}
.fm-card-body {
    min-height: 196px;
    padding: 16px 15px 14px;
}
.fm-card h2,
.fm-card h3 {
    font-size: 17px;
    line-height: 1.24;
    margin-bottom: 9px;
}
.fm-card h2 a {
    -webkit-line-clamp: 3;
}
.fm-card-excerpt p,
.fm-card p {
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}
.fm-news-meta {
    gap: 10px;
    margin-top: 13px;
    padding-top: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}
.fm-card-thumb .fm-category,
.fm-slide-content .fm-category {
    font-size: 10px;
    padding: 6px 9px;
    letter-spacing: 0.06em;
}
.fm-main .fm-side-panel h2 {
    font-size: 16px;
}
.fm-trending a {
    font-size: 14px;
}

@media (max-width: 980px) {
    .fm-slide-content h1 { font-size: clamp(26px, 4.5vw, 38px); }
    .fm-card { min-height: 372px; }
}
@media (max-width: 620px) {
    .fm-slide-content h1 { font-size: 25px; -webkit-line-clamp: 3; }
    .fm-slide-content .fm-card-excerpt p { font-size: 14px; -webkit-line-clamp: 2; }
    .fm-card { min-height: 0; }
    .fm-card-body { min-height: 0; }
    .fm-card h2,
    .fm-card h3 { font-size: 17px; }
}

/* Slider buttons use CSS arrows so they do not render as question marks. */
.fm-slider-controls button {
    display: grid;
    place-items: center;
    font-size: 0;
}
.fm-arrow-left,
.fm-arrow-right {
    width: 10px;
    height: 10px;
    display: block;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
.fm-arrow-left {
    transform: rotate(-135deg);
    margin-left: 4px;
}
.fm-arrow-right {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Latest section pagination. */
.fm-latest-pagination {
    justify-content: center;
    margin-top: 30px;
}
.fm-latest-pagination .page-numbers {
    min-width: 38px;
    text-align: center;
    border: 1px solid #d8dce2;
    background: #fff;
    color: #161a22;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 18, 24, 0.06);
}
.fm-latest-pagination .page-numbers:hover,
.fm-latest-pagination .page-numbers.current {
    border-color: var(--fm-red);
    background: var(--fm-red);
    color: #fff;
}
.fm-latest-pagination .prev,
.fm-latest-pagination .next {
    min-width: 92px;
}

/* Customizer layout states. */
.fm-main .fm-layout.fm-layout-no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}
.fm-main .fm-layout.fm-layout-no-sidebar .fm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
    .fm-main .fm-layout.fm-layout-no-sidebar .fm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .fm-main .fm-layout.fm-layout-no-sidebar .fm-grid {
        grid-template-columns: 1fr;
    }
}

/* Widget areas editable from Appearance > Customize > Widgets. */
.fm-widget-band {
    background: #f2f3f5;
    padding: 26px 0 0;
}
.fm-widget-band-dark {
    background: #08090b;
    color: #fff;
    padding: 24px 0 0;
}
.fm-after-news-widgets {
    margin-top: 28px;
}
.fm-widget,
.fm-sidebar .widget {
    background: #fff;
    color: #111318;
    border-radius: 7px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(15, 18, 24, 0.08);
    margin: 0 0 18px;
    overflow: hidden;
}
.fm-widget-band-dark .fm-widget {
    background: #12151b;
    color: #f4f6f8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.fm-widget-title,
.fm-widget .wp-block-heading,
.fm-sidebar .widgettitle,
.fm-sidebar .wp-block-heading {
    position: relative;
    margin: 0 0 14px;
    padding-left: 13px;
    color: inherit;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-widget-title:before,
.fm-widget .wp-block-heading:before,
.fm-sidebar .widgettitle:before,
.fm-sidebar .wp-block-heading:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--fm-red);
}
.fm-widget ul,
.fm-sidebar .widget ul {
    margin: 0;
    padding-left: 18px;
}
.fm-widget li,
.fm-sidebar .widget li {
    margin-bottom: 9px;
}
.fm-widget a,
.fm-sidebar .widget a {
    color: inherit;
    font-weight: 700;
}
.fm-widget a:hover,
.fm-sidebar .widget a:hover {
    color: var(--fm-red);
}
.fm-widget img,
.fm-sidebar .widget img {
    border-radius: 6px;
}
.fm-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.fm-footer-widgets .fm-widget {
    background: #11141a;
    color: #e6e9ee;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

@media (max-width: 980px) {
    .fm-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .fm-footer-widgets {
        grid-template-columns: 1fr;
    }
    .fm-widget,
    .fm-sidebar .widget {
        padding: 15px;
    }
}

/* Match between-slider widget area to the latest-news content width. */
.fm-widget-band-main {
    padding-top: 28px;
    padding-bottom: 0;
}
.fm-widget-band-main .fm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.fm-widget-sidebar-spacer {
    width: 100%;
    min-height: 1px;
}
.fm-widget-band-main .fm-layout.fm-layout-no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 980px) {
    .fm-widget-band-main .fm-layout {
        grid-template-columns: 1fr;
    }
    .fm-widget-sidebar-spacer {
        display: none;
    }
}

/* Keep between-slider widgets inside the main content column so sidebar stays aligned. */
.fm-before-news-widgets {
    margin-bottom: 24px;
}
.fm-before-news-widgets .fm-widget:last-child {
    margin-bottom: 0;
}

/* Image widgets behave like ad slots: no white panel, no title, image edge-to-edge. */
.fm-widget.widget_media_image,
.fm-widget:has(> .wp-block-image:only-child),
.fm-sidebar .widget_media_image,
.fm-sidebar .widget:has(> .wp-block-image:only-child) {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 7px;
}
.fm-widget.widget_media_image .fm-widget-title,
.fm-widget:has(> .wp-block-image:only-child) .fm-widget-title,
.fm-sidebar .widget_media_image .fm-widget-title,
.fm-sidebar .widget:has(> .wp-block-image:only-child) .fm-widget-title {
    display: none;
}
.fm-widget.widget_media_image img,
.fm-widget .wp-block-image img,
.fm-sidebar .widget_media_image img,
.fm-sidebar .widget .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 7px;
}
.fm-widget .wp-block-image,
.fm-sidebar .widget .wp-block-image {
    margin: 0;
}

/* Ad-style image widgets: remove card wrapper for image-only ads. */
.fm-before-news-widgets .fm-widget:has(img),
.fm-after-news-widgets .fm-widget:has(img),
.fm-widget-band .fm-widget:has(img),
.fm-sidebar .fm-widget.widget_media_image,
.fm-sidebar .fm-widget:has(.wp-block-image img) {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible;
}
.fm-before-news-widgets .fm-widget:has(img) .fm-widget-title,
.fm-before-news-widgets .fm-widget:has(img) h2,
.fm-after-news-widgets .fm-widget:has(img) .fm-widget-title,
.fm-after-news-widgets .fm-widget:has(img) h2,
.fm-widget-band .fm-widget:has(img) .fm-widget-title,
.fm-widget-band .fm-widget:has(img) h2,
.fm-sidebar .fm-widget.widget_media_image .fm-widget-title,
.fm-sidebar .fm-widget:has(.wp-block-image img) .fm-widget-title,
.fm-sidebar .fm-widget:has(.wp-block-image img) h2 {
    display: none !important;
}
.fm-before-news-widgets .fm-widget:has(img) img,
.fm-after-news-widgets .fm-widget:has(img) img,
.fm-widget-band .fm-widget:has(img) img,
.fm-sidebar .fm-widget.widget_media_image img,
.fm-sidebar .fm-widget:has(.wp-block-image img) img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;
}
.fm-before-news-widgets .fm-widget:has(img) figure,
.fm-after-news-widgets .fm-widget:has(img) figure,
.fm-widget-band .fm-widget:has(img) figure,
.fm-sidebar .fm-widget:has(.wp-block-image img) figure {
    margin: 0 !important;
}


/* 2026 redesign: cinematic homepage, cleaner cards, and SEO-friendly content hierarchy. */
:root {
    --fm-bg: #07080b;
    --fm-panel: #10131a;
    --fm-panel-soft: #171b24;
    --fm-ink: #f7f8fb;
    --fm-muted: #b4bac6;
    --fm-line: rgba(255, 255, 255, 0.12);
    --fm-red: #e50914;
    --fm-red-dark: #9d0610;
    --fm-cyan: #3dd6c6;
    --fm-gold: #f5b84b;
    --fm-paper: #f5f6f8;
    --fm-text: #121620;
    --fm-shadow: 0 18px 44px rgba(7, 10, 18, 0.16);
    --fm-wrap: 1200px;
}

html { scroll-padding-top: 96px; }
body,
button,
input,
textarea,
select,
.fm-brand-sub,
.fm-kicker,
.fm-category,
.fm-card-thumb .fm-category,
.fm-slide-content .fm-category {
    letter-spacing: 0 !important;
}
body {
    background: var(--fm-bg);
    color: var(--fm-ink);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(61, 214, 198, 0.85);
    outline-offset: 3px;
}
.fm-skip-link {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 1000;
    transform: translateY(-140%);
    border-radius: 6px;
    background: #fff;
    color: #07080b;
    padding: 10px 14px;
    font-weight: 900;
}
.fm-skip-link:focus { transform: translateY(0); }
.fm-wrap { width: min(var(--fm-wrap), calc(100% - 40px)); }
.fm-site-header {
    background: rgba(7, 8, 11, 0.88);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}
.fm-topbar { display: none; }
.fm-header-inner { min-height: 72px; }
.fm-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    color: var(--fm-red);
    box-shadow: 0 12px 26px rgba(229, 9, 20, 0.28);
}
.fm-brand-name {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 32px);
    font-style: normal;
    text-transform: uppercase;
}
.fm-brand-name span { color: var(--fm-red); }
.fm-brand-sub {
    max-width: 270px;
    color: #c5cad3;
    font-size: 12px;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-nav ul { gap: 6px; }
.fm-nav a {
    min-height: 40px;
    border-radius: 6px;
    color: #eef1f5;
    font-weight: 800;
}
.fm-nav a:hover,
.fm-nav .current-menu-item > a {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.fm-search-link {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--fm-red);
    color: #fff !important;
}

.fm-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 560px;
    background: #07080b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fm-home-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, 0.98) 0%, rgba(7, 8, 11, 0.86) 48%, rgba(7, 8, 11, 0.5) 100%),
        linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(61, 214, 198, 0.12));
}
.fm-home-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.52;
}
.fm-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}
.fm-home-hero-inner {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 42px;
    align-items: end;
    padding: 86px 0 48px;
}
.fm-home-hero-copy { max-width: 760px; }
.fm-kicker {
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-kicker:before { background: var(--fm-cyan); box-shadow: 0 0 18px rgba(61, 214, 198, 0.72); }
.fm-home-hero h1 {
    margin: 14px 0 16px;
    max-width: 840px;
    font-size: clamp(42px, 6.5vw, 82px);
    line-height: 0.95;
    color: #fff;
}
.fm-home-hero h1 span {
    display: block;
    margin-top: 10px;
    color: #e4e8ef;
    font-size: clamp(23px, 3.4vw, 42px);
    line-height: 1.12;
    font-weight: 800;
}
.fm-home-hero p {
    max-width: 650px;
    margin: 0 0 24px;
    color: #d7dce5;
    font-size: 17px;
}
.fm-hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 620px);
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}
.fm-hero-search input[type="search"] {
    min-width: 0;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #10131a;
    padding: 0 14px;
    font-size: 15px;
}
.fm-hero-search button {
    min-width: 92px;
    border: 0;
    border-radius: 6px;
    background: var(--fm-red);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}
.fm-hero-search button:hover { background: #ff1b27; }
.fm-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.fm-hero-tags a {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}
.fm-hero-tags a:hover {
    border-color: rgba(61, 214, 198, 0.74);
    color: #fff;
}
.fm-hero-feature {
    align-self: end;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 16, 23, 0.78);
    padding: 20px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}
.fm-hero-feature span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--fm-cyan);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-hero-feature strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.12;
}
.fm-hero-feature em {
    display: block;
    margin-top: 10px;
    color: #c7ced9;
    font-size: 14px;
    font-style: normal;
}

.fm-slider {
    background: linear-gradient(180deg, #0b0d12, #10131a);
    padding: 34px 0 38px;
}
.fm-slider-head h2,
.fm-main .fm-section-head h2,
.fm-main .fm-side-panel h2,
.fm-widget-title,
.fm-widget .wp-block-heading,
.fm-sidebar .widgettitle,
.fm-sidebar .wp-block-heading {
    letter-spacing: 0 !important;
}
.fm-slider-head h2:before,
.fm-main .fm-section-head h2:before,
.fm-main .fm-side-panel h2:before,
.fm-widget-title:before,
.fm-widget .wp-block-heading:before,
.fm-sidebar .widgettitle:before,
.fm-sidebar .wp-block-heading:before {
    background: var(--fm-cyan);
}
.fm-slider-stage {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}
.fm-slide-content { background: linear-gradient(135deg, #121620, #1a1015); }
.fm-slide-content h3 {
    max-width: 760px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.08;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-slide-content h3 a:hover { color: #fff; }
.fm-slide-content .fm-category,
.fm-card-thumb .fm-category {
    background: var(--fm-red);
    color: #fff;
}
.fm-slider-controls button,
.fm-slider-dots button.is-active { background: var(--fm-red); }

.fm-main {
    background: var(--fm-paper);
    color: var(--fm-text);
    padding: 42px 0 68px;
}
.fm-main .fm-layout { gap: 30px; }
.fm-main .fm-section-head {
    align-items: end;
    margin-bottom: 22px;
}
.fm-main .fm-section-head h2 {
    color: var(--fm-text);
    text-transform: none;
}
.fm-main .fm-section-head p {
    margin-top: 8px;
    color: #5d6572;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}
.fm-main .fm-section-head p:after { content: none; }
.fm-main .fm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.fm-card {
    min-height: 0;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 18, 24, 0.08);
}
.fm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 18, 24, 0.14);
}
.fm-card-thumb { aspect-ratio: 16 / 9; background: #d9dee7; }
.fm-card-body { min-height: 190px; padding: 17px 16px 15px; }
.fm-card h2,
.fm-card h3 {
    color: #10131a;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
}
.fm-card h2 a { -webkit-line-clamp: 3; }
.fm-card-excerpt p,
.fm-card p { color: #4c5564; }
.fm-news-meta {
    border-top-color: #e7e9ee;
    color: #6f7784;
    font-weight: 700;
}
.fm-main .fm-sidebar { top: 92px; gap: 18px; }
.fm-widget,
.fm-sidebar .widget,
.fm-main .fm-side-panel {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 18, 24, 0.08);
}
.fm-search-form input[type="search"] { border-radius: 6px; }
.fm-search-form button { border-radius: 6px; cursor: pointer; }

.fm-site-footer {
    background: #080a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 34px 0;
}
.fm-footer-inner p { margin: 0; }
.fm-footer-inner strong { color: #fff; }

@media (max-width: 980px) {
    .fm-header-inner { gap: 14px; }
    .fm-nav,
    .fm-nav ul {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .fm-nav a { white-space: nowrap; }
    .fm-home-hero,
    .fm-home-hero-inner { min-height: auto; }
    .fm-home-hero-inner {
        grid-template-columns: 1fr;
        padding: 58px 0 36px;
    }
    .fm-hero-feature { max-width: 520px; }
    .fm-slide-content h3 { font-size: clamp(26px, 4.5vw, 38px); }
    .fm-main .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .fm-wrap { width: min(100% - 24px, var(--fm-wrap)); }
    .fm-brand-sub { max-width: 210px; }
    .fm-home-hero h1 { font-size: 40px; }
    .fm-home-hero h1 span { font-size: 23px; }
    .fm-home-hero p { font-size: 15px; }
    .fm-hero-search { grid-template-columns: 1fr; }
    .fm-hero-search button { min-height: 44px; }
    .fm-hero-feature strong { font-size: 20px; }
    .fm-slide-content h3 { font-size: 25px; -webkit-line-clamp: 3; }
    .fm-main .fm-grid { grid-template-columns: 1fr; }
    .fm-main .fm-section-head { align-items: flex-start; }
    .fm-card-body { min-height: 0; }
}


/* Use the WordPress Site Identity logo in the header. */
.fm-brand-has-logo {
    min-height: 52px;
}
.fm-brand-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}
.fm-brand-logo-img {
    display: block;
    width: auto;
    max-width: min(270px, 54vw);
    max-height: 52px;
    object-fit: contain;
}
@media (max-width: 620px) {
    .fm-brand-has-logo { min-height: 46px; }
    .fm-brand-logo-img {
        max-width: min(230px, 68vw);
        max-height: 46px;
    }
    .fm-home-hero h1 {
        font-size: clamp(32px, 13vw, 40px);
        line-height: 1;
        overflow-wrap: anywhere;
    }
    .fm-home-hero h1 span {
        font-size: clamp(19px, 7.2vw, 23px);
    }
}


/* Keep transparent dark-text logos readable on the dark header. */
.fm-brand-has-logo {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.fm-brand-has-logo:hover {
    background: #fff;
}
.fm-brand-logo-img {
    max-width: min(250px, 50vw);
    max-height: 44px;
}
@media (max-width: 620px) {
    .fm-brand-has-logo {
        padding: 5px 8px;
    }
    .fm-brand-logo-img {
        max-width: min(210px, 64vw);
        max-height: 38px;
    }
}


/* Cleaner light header so the uploaded black/red logo reads naturally. */
.fm-site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7e9ee;
    box-shadow: 0 10px 26px rgba(7, 10, 18, 0.08);
}
.fm-brand-has-logo {
    min-height: 58px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.fm-brand-has-logo:hover {
    background: transparent;
}
.fm-brand-logo-img {
    max-width: min(280px, 52vw);
    max-height: 56px;
}
.fm-nav a {
    color: #171b24;
}
.fm-nav a:hover,
.fm-nav .current-menu-item > a {
    background: rgba(229, 9, 20, 0.08);
    color: var(--fm-red);
}
.fm-search-link {
    border-color: transparent;
    background: var(--fm-red);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(229, 9, 20, 0.22);
}
.fm-search-link:hover {
    background: #c90812 !important;
    color: #fff !important;
}
@media (max-width: 620px) {
    .fm-brand-has-logo { min-height: 48px; }
    .fm-brand-logo-img {
        max-width: min(230px, 68vw);
        max-height: 46px;
    }
}


/* FullMovieFR custom magazine system: theme-owned UI, no builder/plugin dependency. */
:root {
    --fm-bg: #f6f7fb;
    --fm-ink: #111318;
    --fm-muted: #646b78;
    --fm-panel: #ffffff;
    --fm-panel-dark: #101115;
    --fm-line: #e3e7ee;
    --fm-red: #e50914;
    --fm-red-dark: #b50710;
    --fm-gold: #f1b84b;
    --fm-green: #1f9d7a;
    --fm-wrap: 1200px;
    --fm-radius: 8px;
    --fm-shadow-soft: 0 16px 38px rgba(19, 25, 38, 0.1);
    --fm-shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.28);
}

body {
    background: var(--fm-bg);
    color: var(--fm-ink);
}
.fm-wrap { width: min(var(--fm-wrap), calc(100% - 40px)); }
.fm-site-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(17, 19, 24, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 18, 26, 0.08) !important;
}
.fm-header-inner { min-height: 76px; }
.fm-brand-logo-img {
    max-width: min(292px, 52vw) !important;
    max-height: 58px !important;
}
.fm-nav a {
    min-height: 38px;
    color: #171b23 !important;
    font-size: 14px;
    font-weight: 850;
}
.fm-nav a:hover,
.fm-nav .current-menu-item > a {
    background: rgba(229, 9, 20, 0.08) !important;
    color: var(--fm-red) !important;
}
.fm-search-link {
    background: var(--fm-red) !important;
    color: #fff !important;
}

.fm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fm-red);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}
.fm-eyebrow:before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
}
.fm-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 612px;
    background: #08090d;
    color: #fff;
}
.fm-showcase:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, 0.98) 0%, rgba(8, 9, 13, 0.88) 44%, rgba(8, 9, 13, 0.5) 100%),
        linear-gradient(180deg, rgba(229, 9, 20, 0.2), rgba(8, 9, 13, 0.92));
}
.fm-showcase-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.58;
}
.fm-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.05);
}
.fm-showcase-inner {
    min-height: 612px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(26px, 5vw, 58px);
    align-items: end;
    padding: 70px 0 46px;
}
.fm-showcase-copy { max-width: 740px; }
.fm-showcase .fm-eyebrow { color: var(--fm-gold); }
.fm-showcase h1 {
    margin: 12px 0 16px;
    max-width: 780px;
    color: #fff;
    font-size: clamp(42px, 6.8vw, 84px);
    line-height: 0.94;
    letter-spacing: 0 !important;
}
.fm-showcase h1 span {
    display: block;
    margin-top: 10px;
    color: #eef1f7;
    font-size: clamp(22px, 3.1vw, 38px);
    line-height: 1.12;
}
.fm-showcase p {
    max-width: 650px;
    margin: 0 0 24px;
    color: #d9dee8;
    font-size: 17px;
}
.fm-showcase-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    width: min(100%, 620px);
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}
.fm-showcase-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111318;
    padding: 0 14px;
    font-size: 15px;
}
.fm-showcase-search button {
    border: 0;
    border-radius: 6px;
    background: var(--fm-red);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}
.fm-showcase-search button:hover { background: #ff1b27; }
.fm-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}
.fm-showcase-tags a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 850;
}
.fm-showcase-tags a:hover {
    border-color: rgba(241, 184, 75, 0.8);
    color: #fff;
}
.fm-hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 15, 21, 0.82);
    box-shadow: var(--fm-shadow-strong);
    backdrop-filter: blur(16px);
}
.fm-hero-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #1f2430;
    overflow: hidden;
}
.fm-hero-card-media img,
.fm-hero-card-media .fm-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-hero-card-body { padding: 20px; }
.fm-hero-card .fm-category,
.fm-editor-card .fm-category,
.fm-grid-modern .fm-category {
    width: fit-content;
    max-width: 100%;
    border: 0;
    border-radius: 4px;
    background: var(--fm-red);
    color: #fff;
    padding: 6px 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0 !important;
}
.fm-hero-card h2 {
    margin: 10px 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}
.fm-hero-card h2 a:hover { color: #fff; }
.fm-hero-card .fm-card-excerpt p {
    color: #d7dce5;
    font-size: 15px;
    -webkit-line-clamp: 3;
}
.fm-hero-card .fm-news-meta {
    border-top-color: rgba(255, 255, 255, 0.13);
    color: #b7becb;
}

.fm-topic-band {
    background: #fff;
    border-bottom: 1px solid var(--fm-line);
    padding: 30px 0;
}
.fm-band-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.fm-band-head h2,
.fm-section-head-modern h2 {
    margin: 0;
    color: #111318;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}
.fm-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.fm-topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    border: 1px solid var(--fm-line);
    border-radius: 8px;
    background: #f8f9fc;
    color: #141821;
    padding: 14px;
    font-weight: 900;
}
.fm-topic-card:hover {
    border-color: rgba(229, 9, 20, 0.32);
    background: #fff;
    color: var(--fm-red);
}
.fm-topic-card strong {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    background: #111318;
    color: #fff;
    font-size: 12px;
}

.fm-home-main {
    background: var(--fm-bg);
    padding: 38px 0 70px;
}
.fm-home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}
.fm-home-primary {
    display: grid;
    gap: 38px;
    min-width: 0;
}
.fm-section-head-modern {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    border: 0;
    padding: 0;
}
.fm-section-head-modern p {
    max-width: 410px;
    margin: 0;
    color: var(--fm-muted);
    font-size: 14px;
    font-weight: 700;
}
.fm-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--fm-line);
    border-radius: 6px;
    background: #fff;
    color: #111318;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
}
.fm-section-link:hover {
    border-color: var(--fm-red);
    color: var(--fm-red);
}
.fm-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.fm-editor-card {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    min-height: 168px;
    border: 1px solid var(--fm-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--fm-shadow-soft);
}
.fm-editor-card-media {
    display: block;
    background: #dce1ea;
    overflow: hidden;
}
.fm-editor-card-media img,
.fm-editor-card-media .fm-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-editor-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
}
.fm-editor-card h3 {
    margin: 9px 0 0;
    color: #10131a;
    font-size: 18px;
    line-height: 1.18;
}
.fm-editor-card h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fm-editor-card .fm-news-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ebedf2;
    color: #707886;
    font-size: 12px;
}
.fm-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
}
.fm-grid-modern .fm-card {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    overflow: hidden;
    border: 1px solid var(--fm-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: var(--fm-shadow-soft) !important;
}
.fm-grid-modern .fm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(19, 25, 38, 0.14) !important;
}
.fm-grid-modern .fm-card-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
    background: #dce1ea;
}
.fm-grid-modern .fm-card-body {
    min-height: 186px !important;
    padding: 17px 16px 15px !important;
}
.fm-grid-modern .fm-card h2,
.fm-grid-modern .fm-card h3 {
    margin: 0 0 10px !important;
    color: #10131a !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    line-height: 1.2 !important;
}
.fm-grid-modern .fm-card h2 a {
    -webkit-line-clamp: 3;
}
.fm-grid-modern .fm-card-excerpt p,
.fm-grid-modern .fm-card p {
    color: #4d5563 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 3;
}
.fm-home-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}
.fm-aside-panel {
    border: 1px solid var(--fm-line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--fm-shadow-soft);
}
.fm-aside-panel h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 13px;
    color: #111318;
    font-size: 17px;
    line-height: 1.2;
    text-transform: uppercase;
}
.fm-aside-panel h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--fm-red);
}
.fm-aside-panel .fm-search-form {
    display: grid;
    gap: 9px;
}
.fm-aside-panel .fm-search-form input[type="search"] {
    width: 100%;
    height: 42px;
    border: 1px solid var(--fm-line);
    background: #f8f9fc;
    color: #111318;
}
.fm-aside-panel .fm-search-form button {
    min-height: 42px;
    border: 0;
    background: var(--fm-red);
    color: #fff;
    font-weight: 950;
}
.fm-aside-panel .fm-trending {
    gap: 12px;
}
.fm-aside-panel .fm-trending li {
    border-color: #ebedf2;
    grid-template-columns: 34px 1fr;
}
.fm-aside-panel .fm-trending a {
    color: #111318;
    font-size: 14px;
}
.fm-aside-cats {
    display: grid;
    gap: 8px;
}
.fm-aside-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    background: #f8f9fc;
    color: #111318;
    padding: 9px 10px;
    font-weight: 850;
}
.fm-aside-cats a:hover { color: var(--fm-red); }
.fm-aside-cats strong {
    color: var(--fm-muted);
    font-size: 12px;
}
.fm-latest-pagination .page-numbers {
    border-radius: 6px;
}
.fm-widget,
.fm-sidebar .widget {
    border-radius: 8px;
}

@media (max-width: 1080px) {
    .fm-showcase-inner,
    .fm-home-columns {
        grid-template-columns: 1fr;
    }
    .fm-hero-card { max-width: 680px; }
    .fm-home-aside {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .fm-header-inner {
        gap: 12px;
        padding: 10px 0;
    }
    .fm-nav,
    .fm-nav ul {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .fm-nav a { white-space: nowrap; }
    .fm-showcase,
    .fm-showcase-inner {
        min-height: auto;
    }
    .fm-showcase-inner {
        padding: 48px 0 34px;
    }
    .fm-topic-grid,
    .fm-editor-grid,
    .fm-grid-modern,
    .fm-home-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 620px) {
    .fm-wrap { width: min(100% - 24px, var(--fm-wrap)); }
    .fm-brand-logo-img {
        max-width: min(226px, 68vw) !important;
        max-height: 46px !important;
    }
    .fm-showcase h1 {
        font-size: clamp(34px, 13vw, 44px);
        line-height: 1;
        overflow-wrap: anywhere;
    }
    .fm-showcase h1 span {
        font-size: clamp(19px, 7vw, 24px);
    }
    .fm-showcase p { font-size: 15px; }
    .fm-showcase-search { grid-template-columns: 1fr; }
    .fm-showcase-search button { min-height: 44px; }
    .fm-topic-grid,
    .fm-editor-grid,
    .fm-grid-modern,
    .fm-home-aside {
        grid-template-columns: 1fr !important;
    }
    .fm-band-head,
    .fm-section-head-modern {
        align-items: flex-start;
        flex-direction: column;
    }
    .fm-topic-card { min-height: 58px; }
    .fm-editor-card {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 142px;
    }
    .fm-editor-card h3 { font-size: 16px; }
    .fm-grid-modern .fm-card-body { min-height: 0 !important; }
    .fm-grid-modern .fm-card-excerpt p,
    .fm-grid-modern .fm-card p { -webkit-line-clamp: 2; }
    .fm-home-main { padding-bottom: 48px; }
}


/* Color refresh: cinematic noir, warmer highlights, and stronger editorial contrast. */
:root {
    --fm-bg: #eef1f6;
    --fm-ink: #111217;
    --fm-muted: #5e6673;
    --fm-panel: #ffffff;
    --fm-panel-dark: #111015;
    --fm-line: #dfe4ed;
    --fm-red: #e50914;
    --fm-red-dark: #a9050e;
    --fm-gold: #f0b84f;
    --fm-emerald: #18a889;
    --fm-violet: #6f5cff;
    --fm-shadow-soft: 0 18px 44px rgba(24, 31, 45, 0.11);
}
body {
    background:
        linear-gradient(180deg, #f8f9fc 0, #eef1f6 420px, #e9edf4 100%);
}
.fm-site-header {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(229, 9, 20, 0.14) !important;
}
.fm-site-header:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--fm-red), var(--fm-gold), var(--fm-emerald), var(--fm-red));
}
.fm-search-link {
    background: linear-gradient(135deg, #f01824, #b90410) !important;
}
.fm-showcase {
    background: #070609;
}
.fm-showcase:before {
    background:
        linear-gradient(90deg, rgba(7, 6, 9, 0.98) 0%, rgba(7, 6, 9, 0.9) 42%, rgba(7, 6, 9, 0.44) 100%),
        linear-gradient(155deg, rgba(229, 9, 20, 0.38) 0%, rgba(240, 184, 79, 0.18) 42%, rgba(24, 168, 137, 0.16) 100%);
}
.fm-showcase:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    z-index: 1;
    background: linear-gradient(90deg, var(--fm-red), var(--fm-gold), var(--fm-emerald));
}
.fm-showcase .fm-eyebrow {
    color: var(--fm-gold);
}
.fm-showcase h1 span {
    color: #f8dfb0;
}
.fm-showcase-search {
    border-color: rgba(240, 184, 79, 0.34);
    background: rgba(255, 255, 255, 0.14);
}
.fm-showcase-search button,
.fm-hero-card .fm-category,
.fm-editor-card .fm-category,
.fm-grid-modern .fm-category,
.fm-latest-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--fm-red), var(--fm-red-dark));
}
.fm-showcase-tags a:nth-child(3n+1) { border-color: rgba(229, 9, 20, 0.46); }
.fm-showcase-tags a:nth-child(3n+2) { border-color: rgba(240, 184, 79, 0.55); }
.fm-showcase-tags a:nth-child(3n) { border-color: rgba(24, 168, 137, 0.5); }
.fm-hero-card {
    border-color: rgba(240, 184, 79, 0.22);
    background: linear-gradient(180deg, rgba(20, 18, 22, 0.88), rgba(9, 9, 12, 0.88));
}
.fm-hero-card-body {
    border-top: 4px solid var(--fm-gold);
}
.fm-topic-band {
    background: #111217;
    color: #fff;
    border-bottom: 0;
}
.fm-topic-band .fm-eyebrow { color: var(--fm-gold); }
.fm-topic-band h2 { color: #fff; }
.fm-topic-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.11);
    background: #191b22;
    color: #fff;
}
.fm-topic-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--fm-red);
}
.fm-topic-card:nth-child(3n+2):before { background: var(--fm-gold); }
.fm-topic-card:nth-child(3n):before { background: var(--fm-emerald); }
.fm-topic-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: #21242d;
    color: #fff;
}
.fm-topic-card strong {
    background: rgba(255, 255, 255, 0.12);
}
.fm-home-main {
    background:
        linear-gradient(180deg, #eef1f6 0, #f8f9fc 50%, #edf1f7 100%);
}
.fm-section-head-modern .fm-eyebrow { color: var(--fm-red); }
.fm-section-head-modern h2 {
    color: #111217;
}
.fm-section-link {
    border-color: rgba(229, 9, 20, 0.18);
    background: #fff;
}
.fm-editor-card,
.fm-grid-modern .fm-card,
.fm-aside-panel {
    border-color: rgba(24, 31, 45, 0.08) !important;
    box-shadow: var(--fm-shadow-soft) !important;
}
.fm-editor-card:nth-child(4n+1) { border-top: 4px solid var(--fm-red); }
.fm-editor-card:nth-child(4n+2) { border-top: 4px solid var(--fm-gold); }
.fm-editor-card:nth-child(4n+3) { border-top: 4px solid var(--fm-emerald); }
.fm-editor-card:nth-child(4n) { border-top: 4px solid var(--fm-violet); }
.fm-grid-modern .fm-card:nth-child(4n+1) .fm-card-body { border-top: 4px solid var(--fm-red); }
.fm-grid-modern .fm-card:nth-child(4n+2) .fm-card-body { border-top: 4px solid var(--fm-gold); }
.fm-grid-modern .fm-card:nth-child(4n+3) .fm-card-body { border-top: 4px solid var(--fm-emerald); }
.fm-grid-modern .fm-card:nth-child(4n) .fm-card-body { border-top: 4px solid var(--fm-violet); }
.fm-news-meta {
    color: #687282;
}
.fm-aside-panel h2:before { background: var(--fm-gold); }
.fm-aside-panel:nth-child(2) h2:before { background: var(--fm-red); }
.fm-aside-panel:nth-child(3) h2:before { background: var(--fm-emerald); }
.fm-aside-cats a {
    background: #f1f4f9;
}
.fm-aside-cats a:nth-child(3n+1) strong { color: var(--fm-red); }
.fm-aside-cats a:nth-child(3n+2) strong { color: #b47a14; }
.fm-aside-cats a:nth-child(3n) strong { color: var(--fm-emerald); }
.fm-site-footer {
    background: #0b0b10;
    border-top: 5px solid var(--fm-red);
}


/* Colored header that still keeps the transparent black/red logo readable. */
.fm-site-header {
    background:
        linear-gradient(115deg, rgba(255, 239, 240, 0.96) 0%, rgba(255, 248, 230, 0.94) 48%, rgba(232, 250, 246, 0.94) 100%) !important;
    border-bottom: 1px solid rgba(229, 9, 20, 0.18) !important;
    box-shadow: 0 10px 30px rgba(80, 35, 42, 0.12) !important;
}
.fm-site-header:after {
    height: 4px;
    background: linear-gradient(90deg, #e50914 0%, #f0b84f 42%, #18a889 72%, #e50914 100%);
}
.fm-brand-has-logo {
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.7));
}
.fm-nav a {
    color: #1a1d25 !important;
}
.fm-nav a:hover,
.fm-nav .current-menu-item > a {
    background: rgba(229, 9, 20, 0.1) !important;
    color: #b90410 !important;
}
.fm-search-link {
    background: linear-gradient(135deg, #e50914, #9f0610) !important;
    color: #fff !important;
}


/* WordPress widget sidebar inside the custom homepage layout. */
.fm-home-aside .widget,
.fm-home-aside .fm-widget {
    border: 1px solid rgba(24, 31, 45, 0.08);
    border-radius: 8px;
    background: #fff;
    color: #111217;
    padding: 18px;
    box-shadow: var(--fm-shadow-soft);
    margin: 0;
    overflow: hidden;
}
.fm-home-aside .widget + .widget,
.fm-home-aside .fm-widget + .fm-widget {
    margin-top: 0;
}
.fm-home-aside .widgettitle,
.fm-home-aside .wp-block-heading,
.fm-home-aside .fm-widget-title {
    position: relative;
    margin: 0 0 14px;
    padding-left: 13px;
    color: #111217;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-home-aside .widgettitle:before,
.fm-home-aside .wp-block-heading:before,
.fm-home-aside .fm-widget-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--fm-red);
}
.fm-home-aside .widget:nth-child(3n+2) .widgettitle:before,
.fm-home-aside .widget:nth-child(3n+2) .wp-block-heading:before,
.fm-home-aside .widget:nth-child(3n+2) .fm-widget-title:before { background: var(--fm-gold); }
.fm-home-aside .widget:nth-child(3n) .widgettitle:before,
.fm-home-aside .widget:nth-child(3n) .wp-block-heading:before,
.fm-home-aside .widget:nth-child(3n) .fm-widget-title:before { background: var(--fm-emerald); }
.fm-home-aside .widget ul,
.fm-home-aside .fm-widget ul {
    margin: 0;
    padding-left: 18px;
}
.fm-home-aside .widget li,
.fm-home-aside .fm-widget li {
    margin-bottom: 9px;
}
.fm-home-aside .widget a,
.fm-home-aside .fm-widget a {
    color: #111217;
    font-weight: 800;
}
.fm-home-aside .widget a:hover,
.fm-home-aside .fm-widget a:hover {
    color: var(--fm-red);
}
.fm-home-aside .widget_search .search-form,
.fm-home-aside .wp-block-search,
.fm-home-aside .fm-search-form {
    display: grid;
    gap: 9px;
}
.fm-home-aside input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid var(--fm-line);
    border-radius: 6px;
    background: #f8f9fc;
    color: #111217;
    padding: 0 12px;
}
.fm-home-aside button,
.fm-home-aside input[type="submit"],
.fm-home-aside .wp-block-search__button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--fm-red), var(--fm-red-dark));
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}
.fm-home-aside img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}


/* Single post cleanup: readable content, real widget sidebar, no dark-on-dark panels. */
.fm-single-page {
    background: linear-gradient(180deg, #f7f8fb 0%, #edf1f7 100%);
    color: #111217;
    padding: 34px 0 70px;
}
.fm-single-wrap {
    grid-template-columns: minmax(0, 820px) 320px;
    gap: 34px;
    align-items: start;
}
.fm-single-article {
    border: 1px solid rgba(24, 31, 45, 0.08);
    border-radius: 8px;
    background: #fff;
    color: #111217;
    box-shadow: 0 18px 46px rgba(24, 31, 45, 0.1);
}
.fm-single-article .fm-article-cover {
    aspect-ratio: 16 / 8;
    background: #dce1ea;
}
.fm-single-article .fm-article-cover img,
.fm-single-article .fm-article-cover .fm-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-single-article .fm-article-body {
    padding: clamp(24px, 4vw, 42px);
}
.fm-single-article .fm-category {
    border: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--fm-red), var(--fm-red-dark));
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0 !important;
}
.fm-single-article .fm-article-body > h1 {
    max-width: 760px;
    margin: 18px 0 12px;
    color: #101219;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: 0 !important;
}
.fm-single-article .fm-meta {
    margin-bottom: 24px;
    color: #667085;
    font-size: 14px;
}
.fm-single-article .fm-article-body p,
.fm-single-article .fm-article-body li {
    color: #2e3542;
    font-size: 17px;
    line-height: 1.78;
}
.fm-single-article .fm-article-body h2,
.fm-single-article .fm-article-body h3,
.fm-single-article .fm-article-body h4 {
    margin: 34px 0 14px;
    color: #111217;
    line-height: 1.18;
}
.fm-single-article .fm-article-body h2 {
    font-size: clamp(26px, 3vw, 36px);
}
.fm-single-article .fm-article-body h3 {
    font-size: clamp(22px, 2.4vw, 28px);
}
.fm-single-article .fm-article-body a {
    color: var(--fm-red);
    text-decoration-thickness: 1px;
}
.fm-single-article .fm-article-body blockquote {
    border-left: 4px solid var(--fm-red);
    background: #f7f8fb;
    color: #111217;
}
.fm-single-article .fm-article-body figure {
    margin: 28px 0;
}
.fm-single-article .fm-article-body figure img {
    border-radius: 8px;
}
.fm-single-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}
.fm-single-sidebar .fm-widget,
.fm-single-sidebar .widget,
.fm-single-sidebar .fm-side-panel {
    display: block;
    border: 1px solid rgba(24, 31, 45, 0.08) !important;
    border-radius: 8px;
    background: #fff !important;
    color: #111217 !important;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(24, 31, 45, 0.1);
    margin: 0;
    overflow: hidden;
}
.fm-single-sidebar .fm-widget-title,
.fm-single-sidebar .widgettitle,
.fm-single-sidebar .wp-block-heading,
.fm-single-sidebar .fm-side-panel h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 13px;
    color: #111217 !important;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 950;
    text-transform: uppercase;
}
.fm-single-sidebar .fm-widget-title:before,
.fm-single-sidebar .widgettitle:before,
.fm-single-sidebar .wp-block-heading:before,
.fm-single-sidebar .fm-side-panel h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--fm-red);
}
.fm-single-sidebar .widget:nth-child(3n+2) .fm-widget-title:before,
.fm-single-sidebar .widget:nth-child(3n+2) .widgettitle:before,
.fm-single-sidebar .widget:nth-child(3n+2) .wp-block-heading:before { background: var(--fm-gold); }
.fm-single-sidebar .widget:nth-child(3n) .fm-widget-title:before,
.fm-single-sidebar .widget:nth-child(3n) .widgettitle:before,
.fm-single-sidebar .widget:nth-child(3n) .wp-block-heading:before { background: var(--fm-emerald); }
.fm-single-sidebar a {
    color: #111217 !important;
    font-weight: 850;
}
.fm-single-sidebar a:hover {
    color: var(--fm-red) !important;
}
.fm-single-sidebar ul,
.fm-single-sidebar ol {
    margin: 0;
    padding-left: 18px;
}
.fm-single-sidebar li {
    margin-bottom: 9px;
    color: #2e3542;
}
.fm-single-sidebar .fm-trending li {
    border-color: #e8ebf1;
}
.fm-single-sidebar input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid #d9dee8;
    border-radius: 6px;
    background: #f8f9fc;
    color: #111217;
    padding: 0 12px;
}
.fm-single-sidebar button,
.fm-single-sidebar input[type="submit"] {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--fm-red), var(--fm-red-dark));
    color: #fff;
    font-weight: 950;
}
.fm-single-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
@media (max-width: 980px) {
    .fm-single-wrap {
        grid-template-columns: 1fr;
    }
    .fm-single-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .fm-single-page {
        padding-top: 22px;
    }
    .fm-single-article .fm-article-body > h1 {
        font-size: clamp(30px, 10vw, 40px);
    }
    .fm-single-article .fm-article-body p,
    .fm-single-article .fm-article-body li {
        font-size: 16px;
    }
    .fm-single-sidebar {
        grid-template-columns: 1fr;
    }
}


/* Related articles and full featured banner on single posts. */
.fm-single-main {
    display: grid;
    gap: 28px;
    min-width: 0;
}
.fm-single-article .fm-article-cover {
    aspect-ratio: auto !important;
    background: #101217;
}
.fm-single-article .fm-article-cover img,
.fm-single-article .fm-article-cover .fm-placeholder {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}
.fm-related-section {
    border: 1px solid rgba(24, 31, 45, 0.08);
    border-radius: 8px;
    background: #fff;
    padding: clamp(18px, 3vw, 24px);
    box-shadow: 0 18px 46px rgba(24, 31, 45, 0.1);
}
.fm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.fm-related-grid .fm-card {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    border: 1px solid #e4e8f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}
.fm-related-grid .fm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(24, 31, 45, 0.12) !important;
}
.fm-related-grid .fm-card-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
}
.fm-related-grid .fm-card-body {
    min-height: 0 !important;
    padding: 14px !important;
}
.fm-related-grid .fm-card h2,
.fm-related-grid .fm-card h3 {
    margin: 0 0 8px !important;
    color: #111217 !important;
    font-size: 16px !important;
    line-height: 1.22 !important;
}
.fm-related-grid .fm-card h2 a {
    -webkit-line-clamp: 3;
}
.fm-related-grid .fm-card-excerpt {
    display: none;
}
.fm-related-grid .fm-news-meta {
    margin-top: 10px;
    padding-top: 9px;
    font-size: 12px;
}
.fm-related-empty {
    background: #f8f9fc;
    color: #4f5968;
}
@media (max-width: 860px) {
    .fm-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .fm-related-grid {
        grid-template-columns: 1fr;
    }
}


/* Search buttons: keep text readable on red backgrounds everywhere. */
.fm-search-link,
.fm-search-form button,
.fm-showcase-search button,
.fm-aside-panel .fm-search-form button,
.fm-home-aside button,
.fm-home-aside input[type="submit"],
.fm-home-aside .wp-block-search__button,
.fm-single-sidebar button,
.fm-single-sidebar input[type="submit"],
.wp-block-search__button,
.search-submit {
    color: #fff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}
.fm-search-link:hover,
.fm-search-form button:hover,
.fm-showcase-search button:hover,
.wp-block-search__button:hover,
.search-submit:hover {
    color: #fff !important;
}


/* Header search link needs higher specificity than the generic nav-link color. */
.fm-site-header .fm-nav a.fm-search-link,
.fm-site-header .fm-nav a.fm-search-link:link,
.fm-site-header .fm-nav a.fm-search-link:visited,
.fm-site-header .fm-nav a.fm-search-link:hover,
.fm-site-header .fm-nav a.fm-search-link:focus,
.fm-site-header .fm-nav a.fm-search-link:active {
    color: #fff !important;
    background: linear-gradient(135deg, #e50914, #9f0610) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}
