/*
Theme Name: Formula Motori Magazine
Theme URI: https://www.formulamotori.it/
Author: Formula Motori
Description: Tema magazine indipendente per auto, moto, nautica e motorsport.
Version: 0.4.14
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: formula-motori-magazine
License: GPL-2.0-or-later
*/

:root{--fm-accent:#c71928;--fm-ink:#172234;--fm-muted:#607083;--fm-paper:#f5f7f9;--fm-surface:#fff;--fm-border:#e3e8ed;--fm-width:1260px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--fm-paper);color:var(--fm-ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--fm-accent)}img{max-width:100%;height:auto}button,input{font:inherit}button{cursor:pointer}.screen-reader-text{position:absolute;left:-10000px}.screen-reader-text:focus{left:8px;top:8px;z-index:99;background:#fff;padding:12px}.fm-wrap{width:min(calc(100% - 40px),var(--fm-width));margin-inline:auto}.fm-topline{background:#101a2a;color:#cad4e0;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.fm-topline .fm-wrap{display:flex;justify-content:space-between;padding:7px 0}.fm-masthead{background:#fff;border-bottom:1px solid var(--fm-border)}.fm-masthead-inner{min-height:118px;display:flex;align-items:center;justify-content:space-between;gap:22px}.fm-brand{font-size:clamp(27px,4vw,42px);font-weight:900;line-height:1;letter-spacing:-.065em;display:inline-flex;align-items:center;gap:10px}.fm-brand-mark{background:var(--fm-accent);color:white;border-radius:5px;padding:6px 9px;letter-spacing:-.05em}.fm-tagline{margin:10px 0 0;color:var(--fm-muted);font-size:13px}.fm-masthead-ad{max-width:728px;min-height:72px;display:flex;align-items:center;justify-content:flex-end}.fm-masthead-ad:empty{display:none}.fm-nav{background:var(--fm-ink);color:#fff}.fm-nav-inner{display:flex;align-items:center;gap:25px;overflow:auto}.fm-nav ul{display:flex;gap:3px;margin:0;padding:0;list-style:none}.fm-nav li{position:relative}.fm-nav li a{display:block;padding:15px 18px;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.fm-nav a:hover,.fm-nav .current-menu-item>a{background:var(--fm-accent);color:#fff}.fm-nav .sub-menu{display:none;position:absolute;z-index:20;background:var(--fm-ink);min-width:210px;box-shadow:0 12px 25px #0002}.fm-nav li:hover>.sub-menu,.fm-nav li:focus-within>.sub-menu{display:block}.fm-nav .sub-menu li a{padding:10px 14px}.fm-search{margin-left:auto}.fm-search form{display:flex;border:1px solid #ffffff40;border-radius:5px;overflow:hidden}.fm-search input{min-width:150px;width:170px;border:0;padding:8px 10px;background:#fff;color:var(--fm-ink)}.fm-search button{border:0;background:var(--fm-accent);color:#fff;padding:7px 12px}.fm-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;padding-block:36px 70px}.fm-main{min-width:0}.fm-section{margin-bottom:42px}.fm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px;padding-bottom:13px;border-bottom:2px solid var(--fm-border)}.fm-heading h1,.fm-heading h2{font-size:clamp(23px,3vw,30px);line-height:1.16;margin:0;font-weight:850;letter-spacing:-.045em}.fm-heading h1:before,.fm-heading h2:before{content:'';display:inline-block;width:5px;height:24px;background:var(--fm-accent);vertical-align:-3px;margin-right:12px;border-radius:3px}.fm-heading a{font-size:13px;color:var(--fm-accent);font-weight:800;white-space:nowrap}.fm-lead{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;background:var(--fm-surface);border:1px solid var(--fm-border);border-radius:10px;overflow:hidden;margin-bottom:22px}.fm-lead-image img{display:block;width:100%;height:100%;max-height:350px;object-fit:cover}.fm-lead-copy{padding:25px 25px 25px 0;align-self:center}.fm-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:850;color:var(--fm-accent)}.fm-lead h2{font-size:clamp(24px,3vw,36px);line-height:1.13;letter-spacing:-.05em;margin:12px 0}.fm-meta{font-size:12px;color:var(--fm-muted);font-weight:600}.fm-lead p,.fm-row p,.fm-card p{color:#455468;margin:10px 0 0}.fm-rows{display:grid;gap:14px}.fm-row{display:grid;grid-template-columns:minmax(180px,32%) minmax(0,1fr);gap:22px;padding:12px;background:#fff;border:1px solid var(--fm-border);border-radius:9px}.fm-row-media{display:block;aspect-ratio:16/10;overflow:hidden;background:#e7edf1;border-radius:5px}.fm-row-media img,.fm-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.fm-row:hover img,.fm-card:hover img{transform:scale(1.04)}.fm-fallback{display:grid;place-items:center;width:100%;height:100%;color:var(--fm-muted);font-weight:800;letter-spacing:.1em;font-size:12px}.fm-row-body{padding:8px 8px 8px 0}.fm-row h2,.fm-row h3{font-size:clamp(18px,2vw,23px);line-height:1.27;letter-spacing:-.025em;margin:6px 0 8px}.fm-row p{font-size:14px;line-height:1.6}.fm-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.fm-card{background:#fff;border:1px solid var(--fm-border);border-radius:9px;overflow:hidden}.fm-card-media{display:block;aspect-ratio:16/9;overflow:hidden;background:#e7edf1}.fm-card-body{padding:17px}.fm-card h3{font-size:20px;line-height:1.3;letter-spacing:-.025em;margin:8px 0}.fm-card p{font-size:13px}.fm-sidebar .widget{margin-bottom:20px;background:#fff;border:1px solid var(--fm-border);border-radius:8px;padding:18px;overflow:hidden}.fm-sidebar .widget-title{font-size:16px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--fm-accent)}.fm-sidebar .widget ul{padding-left:17px}.fm-sidebar .widget li{margin-bottom:9px}.fm-ad-break{margin:24px 0 32px;min-height:20px}.fm-ad-break:empty{display:none}.fm-page-title{font-size:clamp(32px,4vw,48px);letter-spacing:-.055em;line-height:1.1;margin:5px 0 12px}.fm-deck{color:var(--fm-muted);margin-bottom:25px}.fm-article{background:#fff;border:1px solid var(--fm-border);border-radius:10px;padding:clamp(20px,4vw,42px)}.fm-article .fm-entry-image{width:100%;max-height:550px;object-fit:cover;border-radius:6px;margin:22px 0 26px}.fm-article .entry-content{font-size:18px;line-height:1.85;overflow-wrap:anywhere}.fm-article .entry-content img{height:auto}.fm-article .entry-content a{color:var(--fm-accent);text-decoration:underline}.fm-article .entry-content h2,.fm-article .entry-content h3{line-height:1.3;margin-top:1.7em}.fm-article .entry-content blockquote{border-left:4px solid var(--fm-accent);margin:1.5em 0;padding:5px 22px;color:var(--fm-muted)}.fm-article .entry-content figure{max-width:100%}.fm-article .entry-content iframe{max-width:100%}.fm-post-footer{margin-top:30px;padding-top:18px;border-top:1px solid var(--fm-border)}.fm-pagination{margin:30px 0}.fm-pagination .page-numbers{display:inline-block;padding:6px 12px;margin:2px;background:#fff;border:1px solid var(--fm-border);border-radius:4px}.fm-pagination .current{background:var(--fm-accent);color:#fff}.fm-empty{background:#fff;border:1px solid var(--fm-border);padding:30px;border-radius:8px}.fm-footer{background:#101a2a;color:#e7edf4;padding:45px 0 20px}.fm-footer a:hover{color:#fff}.fm-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.fm-footer .widget-title{margin-top:0}.fm-footer ul{list-style:none;padding:0}.fm-footer li{margin-bottom:8px}.fm-footer-bottom{border-top:1px solid #ffffff27;margin-top:28px;padding-top:16px;font-size:12px;color:#b7c4d3}.alignwide{max-width:100%}.alignfull{margin-left:calc((min(100vw - 40px,var(--fm-width)) - 100vw)/2);width:100vw}.wp-block-image img{height:auto}
@media(max-width:1020px){.fm-layout{grid-template-columns:minmax(0,1fr) 250px;gap:22px}.fm-nav-inner{gap:5px}.fm-masthead-ad{max-width:50%}}@media(max-width:760px){.fm-wrap{width:min(calc(100% - 26px),var(--fm-width))}.fm-masthead-inner{min-height:82px}.fm-tagline,.fm-masthead-ad{display:none}.fm-nav-inner{display:block}.fm-nav ul{overflow:auto}.fm-nav li a{padding:12px}.fm-search{display:none}.fm-layout{display:block;padding-top:24px}.fm-sidebar{margin-top:35px}.fm-lead{grid-template-columns:1fr}.fm-lead-image{aspect-ratio:16/9}.fm-lead-copy{padding:0 18px 20px}.fm-card-grid{gap:12px}.fm-card-body{padding:12px}.fm-card h3{font-size:17px}.fm-footer-grid{grid-template-columns:1fr 1fr}.fm-footer-grid>:first-child{grid-column:1/-1}}@media(max-width:520px){.fm-row{grid-template-columns:37% minmax(0,1fr);gap:12px;padding:8px}.fm-row-media{aspect-ratio:1/1}.fm-row-body{padding:1px 2px 1px 0}.fm-row h2,.fm-row h3{font-size:16px;margin:3px 0}.fm-row p{display:none}.fm-row .fm-meta{font-size:11px}.fm-card-grid{grid-template-columns:1fr}.fm-footer-grid{grid-template-columns:1fr}.fm-footer-grid>:first-child{grid-column:auto}.fm-page-title{font-size:32px}}
.custom-logo{max-height:90px;width:auto}.fm-home-special .widget{list-style:none}.fm-article .wp-block-gallery{display:flex;gap:10px;flex-wrap:wrap}.fm-article .wp-block-gallery figure{margin:0}.fm-article .entry-content .fm-tech-sheet,.fm-article .entry-content [class*="scheda-tecnica"]{max-width:100%}
.fm-footer-note{white-space:normal;color:#c8d4e1;font-size:13px}.fm-footer .widget-title{font-size:16px;border-bottom:1px solid #ffffff40;padding-bottom:10px}.fm-footer .menu{list-style:none;padding-left:0}
/* Masthead alignment: the original custom logo is preserved. */
.fm-masthead--center .fm-masthead-inner{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0;padding-block:28px}
.fm-masthead--center .fm-masthead-brand{min-width:0;width:100%}
.fm-masthead--center .custom-logo-link{display:inline-block;max-width:100%;line-height:0}
.fm-masthead--center .custom-logo{max-width:min(100%,560px);max-height:105px;height:auto;width:auto;object-fit:contain}
.fm-masthead--center .fm-brand{justify-content:center}
.fm-masthead--center .fm-tagline{margin:11px auto 0;max-width:90%;letter-spacing:.11em;text-transform:uppercase;font-size:12px;font-weight:650}
.fm-masthead--center .fm-masthead-ad{width:100%;max-width:100%;min-height:0;margin-top:24px;display:flex;justify-content:center}
.fm-masthead--center .fm-masthead-ad .widget{max-width:100%;margin:0 auto;overflow:hidden}
@media(max-width:760px){.fm-masthead--center .fm-masthead-inner{padding-block:17px;min-height:0}.fm-masthead--center .custom-logo{max-height:72px}.fm-masthead--center .fm-tagline{display:block;max-width:100%;font-size:10px;line-height:1.4;letter-spacing:.065em}.fm-masthead--center .fm-masthead-ad{display:flex;margin-top:15px}}
/* Automotive editorial treatment. All photos displayed on the site come from the posts. */
body{background:#edf0f2}.fm-topline{background:#080d14;border-bottom:1px solid #ffffff1e}.fm-topline .fm-wrap{padding:9px 0}.fm-masthead{background:#111923;border-color:#263443}.fm-masthead-inner{min-height:128px}.fm-brand{font-size:clamp(28px,3.9vw,44px);font-style:italic;font-weight:950;text-transform:uppercase;letter-spacing:-.08em;color:#fff}.fm-brand:hover{color:#fff}.fm-brand:before{content:'';width:6px;height:42px;background:var(--fm-accent);display:inline-block;transform:skew(-14deg);margin-right:4px}.fm-tagline{color:#9cabbc;text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700}.fm-masthead .custom-logo-link{display:inline-block;background:#fff;border-radius:4px;padding:8px 12px}.fm-masthead .custom-logo{max-height:82px}.fm-masthead-ad{color:#acb9c7}.fm-nav{background:#0b111a;border-bottom:3px solid var(--fm-accent)}.fm-nav li a{font-size:12px;letter-spacing:.09em;padding:16px 15px}.fm-nav a:hover,.fm-nav .current-menu-item>a{background:var(--fm-accent)}.fm-layout{padding-top:26px}.fm-heading{border-bottom:1px solid #cbd2da;padding-bottom:14px}.fm-heading h1,.fm-heading h2{font-size:clamp(23px,2.7vw,32px);font-weight:950;font-style:italic;text-transform:uppercase;letter-spacing:-.065em}.fm-heading h1:before,.fm-heading h2:before{height:27px;transform:skew(-13deg)}.fm-heading a{text-transform:uppercase;letter-spacing:.07em;font-size:11px}.fm-lead{display:block;position:relative;min-height:430px;border:0;border-radius:3px;background:#0d1724;color:#fff;overflow:hidden}.fm-lead-image{position:absolute;inset:0;display:block}.fm-lead-image img,.fm-lead-image .fm-fallback{width:100%;height:100%;max-height:none;object-fit:cover}.fm-lead:after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,10,20,.91) 0%,rgba(4,10,20,.65) 45%,rgba(4,10,20,.10) 90%)}.fm-lead-copy{position:absolute;z-index:1;left:clamp(22px,5%,52px);right:30%;bottom:clamp(26px,8%,68px);padding:0}.fm-lead h2{font-size:clamp(29px,3.6vw,49px);line-height:1.06;text-transform:uppercase;font-style:italic;font-weight:950;margin:13px 0 18px}.fm-lead h2 a:hover{color:#fff;text-decoration:underline;text-decoration-color:var(--fm-accent)}.fm-lead .fm-meta,.fm-lead p{color:#dce4eb}.fm-lead p{line-height:1.55;font-size:15px}.fm-lead .fm-eyebrow{color:#fff;background:var(--fm-accent);padding:7px 10px;display:inline-block;transform:skew(-10deg)}.fm-rows{counter-reset:fm-story}.fm-row{counter-increment:fm-story;position:relative;grid-template-columns:minmax(170px,32%) minmax(0,1fr);border-radius:4px;padding:10px;box-shadow:0 5px 16px #0d172405;transition:border-color .2s,transform .2s}.fm-row:hover{border-color:#b5bdc7;transform:translateY(-2px)}.fm-row:before{content:counter(fm-story,decimal-leading-zero);position:absolute;right:15px;top:11px;color:#d5dbe2;font-size:32px;font-style:italic;font-weight:950;line-height:1}.fm-row-body{position:relative;z-index:1;padding:13px 38px 10px 0}.fm-row h3{font-size:clamp(18px,2vw,25px);font-weight:850;line-height:1.18;max-width:90%}.fm-row-media{aspect-ratio:16/9;border-radius:2px}.fm-row .fm-meta{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--fm-accent)}.fm-card{border-radius:4px;box-shadow:0 5px 16px #0d172405}.fm-card h3{font-weight:850;line-height:1.2}.fm-card-body{border-top:3px solid var(--fm-accent)}.fm-sidebar .widget{border-radius:4px;box-shadow:0 5px 16px #0d172405}.fm-sidebar .widget-title{font-size:15px;font-weight:900;font-style:italic;text-transform:uppercase}.fm-article{border-top:5px solid var(--fm-accent);border-radius:3px}.fm-page-title{font-weight:950;font-style:italic;text-transform:uppercase;line-height:1.06}.fm-footer{background:#0c131e;border-top:4px solid var(--fm-accent)}.fm-footer .fm-brand{font-size:25px}.fm-footer .fm-brand:before{height:26px}.fm-footer .fm-footer-bottom{color:#8c9cab}
@media(max-width:760px){.fm-masthead-inner{min-height:87px}.fm-lead{min-height:410px}.fm-lead-copy{right:30px;bottom:30px}.fm-lead:after{background:linear-gradient(0deg,rgba(4,10,20,.95) 0%,rgba(4,10,20,.35) 82%)}.fm-lead h2{font-size:32px}.fm-lead p{display:none}.fm-row:before{font-size:24px;right:10px}.fm-row-body{padding:4px 25px 4px 0}.fm-row h3{max-width:100%}}@media(max-width:520px){.fm-brand{font-size:27px}.fm-brand:before{height:28px}.fm-lead{min-height:340px}.fm-lead h2{font-size:27px}.fm-row{gap:11px}.fm-row:before{display:none}.fm-row-body{padding:3px 0}.fm-row h3{font-size:16px}.fm-row-media{aspect-ratio:1/1}}
/* The original Formula Motori PNG has light lettering. Keep its transparency visible. */
.fm-masthead .custom-logo-link{background:transparent;padding:0;border-radius:0}
/* White masthead option; the dark navigation still anchors the page. */
.fm-masthead--light{background:#fff;border-bottom-color:#dce1e7}
.fm-masthead--light .fm-tagline{color:#425267}
.fm-masthead--light .fm-brand,.fm-masthead--light .fm-brand:hover{color:#142132}
.fm-masthead--light .fm-masthead-ad{color:#425267}
.fm-masthead--light .custom-logo{filter:drop-shadow(0 1px 1px rgba(20,33,50,.65))}

/* One configurable palette for every homepage section, including future categories. */
.fm-main .fm-section--tinted{padding:clamp(18px,2.1vw,26px);border-radius:7px;background:var(--fm-section-bg)}
.fm-section--tinted .fm-heading{border-color:var(--fm-section-border)}
.fm-section--tinted .fm-heading h2,.fm-section--tinted .fm-heading a{color:var(--fm-section-ink)}
.fm-section--tinted .fm-heading h2:before{background:var(--fm-section-accent)}
.fm-section--tinted .fm-card-body{border-top-color:var(--fm-section-accent)}
.fm-section--tinted .fm-row{border-top:3px solid var(--fm-section-accent)}
@media(max-width:520px){.fm-main .fm-section--tinted{padding:15px}.fm-section--tinted .fm-heading a{white-space:normal;text-align:right}}

/* Editorial ranking treatment for the existing recent-posts widget only. */
.fm-sidebar .widget_recent_entries,.fm-sidebar .widget:has(> .wp-block-latest-posts){border-top:3px solid var(--fm-accent)}
.fm-sidebar .widget_recent_entries .widget-title,.fm-sidebar .widget:has(> .wp-block-latest-posts) .widget-title{color:var(--fm-accent);font-size:18px;line-height:1.2;border-bottom:1px solid #d8dde3;padding:0 0 14px;margin:0 0 4px}
.fm-sidebar .widget_recent_entries ul,.fm-sidebar .widget .wp-block-latest-posts{list-style:none;counter-reset:fm-recent;padding:0;margin:0}
.fm-sidebar .widget_recent_entries li,.fm-sidebar .widget .wp-block-latest-posts>li{counter-increment:fm-recent;display:grid;grid-template-columns:45px minmax(0,1fr);column-gap:9px;align-items:start;border-bottom:1px dashed #d6dbe1;padding:15px 0;margin:0}
.fm-sidebar .widget_recent_entries li:last-child,.fm-sidebar .widget .wp-block-latest-posts>li:last-child{border-bottom:0;padding-bottom:2px}
.fm-sidebar .widget_recent_entries li:before,.fm-sidebar .widget .wp-block-latest-posts>li:before{content:counter(fm-recent,decimal-leading-zero);color:var(--fm-accent);font-weight:950;font-style:italic;font-size:30px;letter-spacing:-.08em;line-height:1}
.fm-sidebar .widget_recent_entries li>a,.fm-sidebar .widget .wp-block-latest-posts>li>a{color:#9c1424;font-size:15px;font-weight:720;line-height:1.4;text-decoration:none}
.fm-sidebar .widget_recent_entries li>a:hover,.fm-sidebar .widget .wp-block-latest-posts>li>a:hover{color:var(--fm-ink);text-decoration:underline;text-decoration-color:var(--fm-accent)}
.fm-sidebar .widget_recent_entries li .post-date,.fm-sidebar .widget .wp-block-latest-posts__post-date{grid-column:2;color:#66778a;font-size:11px;margin-top:3px}

/* Give the existing YouTube gallery more room without changing its feed. */
@media(min-width:1021px){.fm-layout{grid-template-columns:minmax(0,1fr) 380px;gap:30px}}
.fm-sidebar .widget:has(.sb_youtube){padding:0;background:#152c48;border:1px solid #263e59;border-top:4px solid var(--fm-accent);color:#fff}
.fm-sidebar .widget:has(.sb_youtube) .widget-title{color:#fff;font-size:18px;line-height:1.25;padding:18px 20px 14px;margin:0;border:0;text-transform:uppercase}
.fm-sidebar .widget:has(.sb_youtube) .widget-title:before{content:'';display:inline-block;width:4px;height:18px;background:var(--fm-accent);margin-right:10px;transform:skew(-13deg);vertical-align:-3px}
.fm-sidebar .widget:has(.sb_youtube) .textwidget{padding:0 12px 15px}
.fm-sidebar .widget .sb_youtube{background:transparent!important}
.fm-sidebar .widget .sb_youtube .sby_player_outer_wrap{padding:0!important;margin:0 0 12px}
.fm-sidebar .widget .sb_youtube .sby_player_video_thumbnail{aspect-ratio:16/9;height:auto!important;border-radius:5px}
.fm-sidebar .widget .sb_youtube .sby_player_wrap{inset:0;width:100%!important;height:100%!important}
.fm-sidebar .widget .sb_youtube .sby_items_wrap{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0!important}
.fm-sidebar .widget .sb_youtube .sby_items_wrap .sby_item{display:block!important;width:100%!important;margin:0!important;min-width:0}
.fm-sidebar .widget .sb_youtube .sby_items_wrap .sby_item_video_thumbnail{aspect-ratio:16/9;height:auto!important;border-radius:4px}
.fm-sidebar .widget .sb_youtube .sby_footer{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding-top:15px}
.fm-sidebar .widget .sb_youtube .sby_footer .sby_load_btn,.fm-sidebar .widget .sb_youtube .sby_footer .sby_follow_btn{margin:0}
@media(max-width:760px){.fm-sidebar .widget:has(.sb_youtube){max-width:480px;margin-inline:auto}}

/* Homepage summaries remain readable alongside titles on mobile. */
.home .fm-row-body > p,.home .fm-card-body > p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;color:#455468;font-size:14px;line-height:1.45;max-height:4.35em;margin:8px 0 0;overflow-wrap:anywhere}
@media(max-width:520px){.home .fm-row-body > p,.home .fm-card-body > p{font-size:12px;margin-top:7px}}

/* Portrait video cards; only configured Shorts are shown. */
.fm-shorts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.fm-short-card{min-width:0}.fm-short-link{display:block;position:relative;aspect-ratio:9/16;overflow:hidden;border-radius:9px;background:#152c48;color:#fff}
.fm-short-link img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.fm-short-link:hover img{transform:scale(1.04)}
.fm-short-link:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#0a152460);pointer-events:none}
.fm-short-play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#c71928e8;color:white;font-size:21px;line-height:1;padding-left:3px}
.fm-short-card h3{font-size:16px;line-height:1.3;margin:10px 0 0;font-weight:800}
.fm-short-dialog{border:0;padding:38px 10px 10px;background:#101a2a;color:#fff;border-radius:9px;width:min(430px,calc(100vw - 24px));max-height:96vh;overflow:visible}
.fm-short-dialog::backdrop{background:#07101be8}.fm-short-player{aspect-ratio:9/16;width:100%;max-height:calc(96vh - 48px)}.fm-short-player iframe{width:100%;height:100%;border:0}
.fm-short-close{position:absolute;right:4px;top:0;border:0;background:transparent;color:#fff;font-size:34px;line-height:1;padding:0 9px}
.fm-discover{margin-bottom:28px;padding:20px;background:#eef3f8;border-radius:10px}.fm-discover h2{font-size:23px;margin:0 0 8px}.fm-discover>p{font-size:14px;line-height:1.5;margin:0 0 16px}.fm-discover a{display:block;padding:14px;margin-top:10px;border-radius:7px;text-decoration:none;line-height:1.4}.fm-discover strong,.fm-discover span{display:block}.fm-discover span{font-size:13px;margin-top:4px}.fm-discover-world{background:#dceefb;color:#172234}.fm-discover-game{background:#d4f1e9;color:#172234}.fm-discover-robot{background:#172c49;color:#fff}.fm-discover a:hover strong{text-decoration:underline}.fm-discover a:focus-visible{outline:3px solid #dc2441;outline-offset:3px}#fm-section-autoworld,#fm-section-gaming,#fm-section-robotai{scroll-margin-top:30px}
@media(max-width:760px){.fm-shorts-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.fm-short-card{flex:0 0 min(55vw,210px);scroll-snap-align:start}.fm-short-play{width:46px;height:46px}}
