.fm-shorts[hidden], .fm-shorts-controls[hidden] { display: none !important; }
.fm-shorts { margin: 32px 0; min-width: 0; }
.fm-shorts-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.fm-shorts-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0; }
.fm-shorts-track::-webkit-scrollbar { display: none; }
.fm-short-card { position: relative; flex: 0 0 calc((100% - 64px) / 5); aspect-ratio: 9 / 16; border-radius: 10px; border-left: 4px solid #ed111b; overflow: hidden; background: linear-gradient(145deg, #45454b, #121216 65%); scroll-snap-align: start; text-decoration: none; color: white; isolation: isolate; box-sizing: border-box; }
.fm-short-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
.fm-short-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.7) 70%, #000); z-index: -1; }
.fm-short-title { position: absolute; left: 12px; right: 12px; bottom: 52px; color: white; font-weight: 850; font-size: calc(clamp(15px, 1.6vw, 24px) - 3pt); line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-short-play { position: absolute; top: 16px; left: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8101a; color: white; font-size: 15px; }
.fm-short-card:hover { transform: translateY(-4px); }
.fm-short-card:focus-visible { outline: 3px solid #dd1724; outline-offset: 3px; }
.fm-shorts-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.fm-shorts-controls > button { border: 0; background: transparent; font-size: 32px; cursor: pointer; color: #101517; }
.fm-shorts-controls > button:disabled { opacity: .3; cursor: default; }
.fm-shorts-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fm-shorts-dots button { padding: 0; border: 0; width: 12px; height: 12px; border-radius: 50%; background: #bcbcbc; cursor: pointer; }
.fm-shorts-dots button[aria-current="true"] { background: #101517; }
.fm-shorts-editor { display: grid; gap: 10px; max-width: 760px; padding: 24px; background: #fff; border: 1px solid #e0e3e9; border-radius: 12px; margin: 20px 0; }
#shortsEditor .fm-shorts-field > input { width: 100%; min-height: 42px; padding: 10px; box-sizing: border-box; border: 1px solid #cbd0d9; border-radius: 6px; }
.fm-shorts-editor p { margin: 0; color: #515866; }
.fm-shorts-editor #shortsStatus { color: #a51c24; }
#shortsList { max-width: 100%; overflow-x: auto; }
#shortsList .fm-shorts-admin-row { display: grid; grid-template-columns: minmax(180px, 1fr) 44px 90px 54px; align-items: center; gap: 10px; min-width: 600px; padding: 12px 16px; border-bottom: 1px solid #e0e3e9; }
#shortsList .fm-shorts-admin-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#shortsList .fm-shorts-admin-row > span { white-space: nowrap; }
#shortsList .fm-shorts-admin-row button { width: auto; min-width: 0; margin: 0; padding: 8px; white-space: nowrap; cursor: pointer; }
#shortsList .fm-shorts-admin-row button:disabled { cursor: default; }
@media (max-width: 1000px) { .fm-short-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 600px) { .fm-short-card { flex-basis: 100%; scroll-snap-stop: always; } .fm-short-title { font-size: calc(22px - 3pt); } .fm-shorts-heading { gap: 16px; margin-bottom: 12px; } .fm-shorts-editor { padding: 16px; } }
.fm-short-main-link { position: absolute; inset: 0; z-index: 1; }
.fm-short-main-link:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.fm-short-platforms { position: absolute; bottom: 12px; left: 12px; right: 8px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; }
.fm-short-platforms a { font-size: 10px; font-weight: 700; color: white; background: #35353b; padding: 4px 6px; border-radius: 4px; text-decoration: none; }
.fm-shorts-cover-preview { width: 160px; max-height: 285px; object-fit: cover; border-radius: 8px; }
.fm-shorts-cover-preview[hidden] { display: none !important; }
.fm-shorts-editor > label:has(#shortsActive) { display: flex; align-items: center; gap: 8px; }
.fm-shorts-editor #shortsActive { width: 18px; min-height: 18px; margin: 0; }
.fm-shorts-preview-shell { position: relative; width: 160px; height: 285px; border-radius: 8px; background: #f0f1f4; display: grid; place-items: center; color: #626875; font-size: 13px; }
.fm-shorts-preview-shell img { position: absolute; inset: 0; height: 100%; }
#shortsCoverStatus { min-height: 4.5em; }

#shortsEditor .fm-shorts-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 12px; }
#shortsEditor .fm-shorts-field > label { display: block; margin: 0 !important; padding: 0; line-height: 1.35; }
#shortsEditor .fm-shorts-field > input { margin: 0; }

.fm-shorts-preview-shell.has-cover > span { visibility: hidden; }

.fm-shorts-cover-size { position: absolute; bottom: 8px; left: 8px; right: 8px; z-index: 1; padding: 8px 4px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #515866; font-size: 11px; line-height: 1.5; text-align: center; }

.fm-shorts-page-actions { display: flex; gap: 12px; margin: 16px 0; }
.fm-shorts-page-actions > button { width: auto; }

/* Shared publication controls in Shorts and advertisement lists. */
html body #panelView .video-publish-state { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
html body #panelView .video-publish-active { color: #16843b !important; font-weight: 700 !important; }
html body #panelView .video-publish-inactive { color: #737b86 !important; }
html body #panelView button.video-publish-toggle { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 28px !important; line-height: 1; color: #818995 !important; cursor: pointer; }
html body #panelView button.video-publish-toggle[aria-pressed="true"] { color: #25ad50 !important; }
html body #panelView button.video-publish-toggle:focus-visible { outline: 2px solid #16843b !important; outline-offset: 2px; }

#homeShortsTitle { display: flex; align-items: center; gap: 9px; }
#homeShortsTitle .fm-shorts-heading-icon { display: block; width: 28px; height: 28px; flex: 0 0 28px; color: #686b6e; }
