/* Spotlight Section Styles */ .spotlight-section { position: relative; width: calc(100% - (2 * max(env(safe-area-inset-left), 3.3%))); margin: 2em 0; } .spotlight-banner-container { position: relative; width: 100%; height: 450px; overflow: hidden; border-radius: 8px; } .spotlight-items-container { position: relative; width: 100%; height: 100%; } .spotlight-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: opacity 0.8s ease-in-out; } /* Dual-backdrop background with masked crossfade */ .spotlight-background-dual { position: absolute; inset: 0; z-index: 1; overflow: hidden; } .spotlight-background-layer { position: absolute; top: 0; bottom: 0; overflow: hidden; } .spotlight-background-layer img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } .spotlight-background-layer img.animate { filter: blur(0); transform: scale(1); transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out; } .spotlight-background-layer-left img.animate { animation: kenBurnsZoomOut 20s ease-out forwards; } .spotlight-background-layer-right img.animate { animation: kenBurnsZoomIn 20s ease-out forwards; } /* Single backdrop (when dual backdrops disabled or only one image) - same pan animation */ .spotlight-background-single { position: absolute; inset: 0; z-index: 1; overflow: hidden; } .spotlight-background-single img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } .spotlight-background-single img.animate { animation: kenBurnsZoomIn 20s ease-out forwards; } @keyframes kenBurnsZoomIn { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } } @keyframes kenBurnsZoomOut { from { transform: scale(1.15) translate3d(-1%, -1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } } /* Full-screen: start images pre-scaled so they extend past edges from the start (no hard edge before zoom) */ @keyframes kenBurnsZoomInFullscreen { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } } @keyframes kenBurnsZoomOutFullscreen { from { transform: scale(1.15) translate3d(-1%, -1%, 0); } to { transform: scale(1.08) translate3d(0, 0, 0); } } @keyframes slowPanRight { from { transform: scale(1.1) translate3d(-3%, 0, 0); } to { transform: scale(1.1) translate3d(3%, 0, 0); } } @keyframes slowPanLeft { from { transform: scale(1.1) translate3d(3%, 0, 0); } to { transform: scale(1.1) translate3d(-3%, 0, 0); } } /* Layer masks for elegant crossfade - overlap in center (45-55%) */ .spotlight-background-layer-left { left: 0; width: 55%; -webkit-mask-image: linear-gradient( to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 0) 100% ); mask-image: linear-gradient( to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0.5) 90%, rgba(0, 0, 0, 0) 100% ); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } .spotlight-background-layer-right { right: 0; width: 55%; -webkit-mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 100% ); mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 100% ); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } .spotlight-item[data-index="0"] { opacity: 1; } .spotlight-item:not([data-index="0"]) { opacity: 0; } .spotlight-overlay { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 70%, transparent 100%); padding: 40px; color: white; display: flex; flex-direction: column; z-index: 2; } .spotlight-overlay.has-title { padding: 70px 40px 20px 40px; } .spotlight-section-title { position: absolute; top: 20px; left: 20px; color: white; font-size: 18px; font-weight: 600; z-index: 10; background: rgba(0,0,0,0.4); padding: 8px 16px; border-radius: 4px; backdrop-filter: blur(4px); letter-spacing: 2px; word-spacing: 2px; } .spotlight-item-title { margin: 0 0 16px 0; font-size: 1.6em; font-weight: bold; height: 80px; align-content: end; } .spotlight-item-logo { max-width: 206.8px; height: 80px; object-fit: contain; margin-bottom: 16px; margin-top: 10px; background-size: contain; background-repeat: no-repeat; background-position: left; } .spotlight-clearart { position: absolute; bottom: 0px; right: 0px; max-height: 70%; object-fit: contain; z-index: 5; opacity: 0.9; pointer-events: none; } .spotlight-rating-container { display: flex; align-items: center; gap: 8px; } .spotlight-rating-star { color: #4A9EFF; font-size: 24px; } .spotlight-rating-value { font-size: 20px; font-weight: 500; } .spotlight-rating-value.na { opacity: 0.7; } .spotlight-metadata-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; opacity: 0.9; } .spotlight-metadata-row .spotlight-end-time { opacity: 0.8; } .metadata-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2em; } .spotlight-truncated-list { font-size: 14px; opacity: 0.9; position: relative; } .spotlight-truncated-list .spotlight-ellipsis { cursor: pointer; } .spotlight-tagline { margin: 0 0 24px 0; font-size: 18px; font-style: italic; opacity: 0.9; line-height: 1.4; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 75px; max-height: 75px; } .spotlight-buttons-container { display: flex; gap: 12px; align-items: center; margin-top: auto; } .spotlight-play-button { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9); color: #000; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s; } .spotlight-play-button:hover { background: rgba(255,255,255,1); } .spotlight-play-button .material-icons { font-size: 28px; } .spotlight-watchlist-button { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; border: 2px solid rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.2s; } .spotlight-watchlist-button:hover { background: rgba(255,255,255,0.3); } .spotlight-watchlist-button.watchlisted { border-color: #4CAF50; } .spotlight-watchlist-button.watchlisted .material-icons { color: #4CAF50; } .spotlight-watchlist-button:not(.watchlisted):hover { border-color: rgba(255,255,255,0.7); } .spotlight-watchlist-button .material-icons { font-size: 28px; color: white; } .spotlight-info-button { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; border: 2px solid rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: all 0.2s; position: relative; } .spotlight-info-button:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.7); } .spotlight-info-button .material-icons { font-size: 28px; } .spotlight-overview-tooltip { position: absolute; text-align: left; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 12px; padding: 16px; background: rgba(0,0,0,0.95); color: white; border-radius: 8px; font-size: 14px; line-height: 1.6; max-width: 400px; min-width: 300px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.5); word-wrap: break-word; } .spotlight-info-button:hover .spotlight-overview-tooltip { opacity: 1; } .spotlight-nav-container { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; z-index: 10; background: rgba(0,0,0,0.4); border-radius: 4px; padding: 4px; } .spotlight-nav-button { width: 36px; height: 36px; background: transparent; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.2s; } .spotlight-nav-button:hover { background: rgba(255,255,255,0.2); } .spotlight-nav-button .material-icons { font-size: 24px; } .spotlight-pause-button { width: 36px; height: 36px; background: transparent; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; padding: 0; transition: background 0.2s; } .spotlight-pause-button .material-icons { font-size: 24px; } .spotlight-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; } .spotlight-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: background 0.2s; } .spotlight-dot.active { background: white; } /* Numeric slide state: "N / X" via data attributes */ .spotlight-dots.spotlight-dots-numeric { background: rgb(0 0 0 / 40%); border-radius: 5px; padding: 0.25em 0.5em; gap: 0; } .spotlight-dots.spotlight-dots-numeric .spotlight-dot { display: none; } .spotlight-dots.spotlight-dots-numeric::after { content: attr(data-index) " / " attr(data-total-items); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.5px; } .spotlight-genre-link, .spotlight-person-link { color: inherit; text-decoration: underline; cursor: pointer; } .spotlight-empty-writer-container { font-size: 14px; opacity: 0.9; height: 1em; } /* Mobile Styles */ @media (max-width: 768px) { .metadata-container { display: none !important; } .spotlight-nav-container { display: none !important; } .spotlight-pause-button { display: none !important; } .spotlight-clearart { display: none !important; } .spotlight-overlay { width: calc(100% - 2rem); padding: 5rem 1rem 3rem !important; align-items: center; background: rgba(0, 0, 0, 0.7); } .spotlight-tagline { max-height: 175px !important; -webkit-line-clamp: 4; } .spotlight-item-logo { max-width: 100%; height: 125px; } } .skeleton-card { margin-bottom: 45px !important; } [data-item-type="Movie"] .spotlight-item-logo { height: 120px; max-width: 310.2px; } [data-item-type="Movie"] .spotlight-tagline { -webkit-line-clamp: 1; min-height: 30px; max-height: 30px; } // Remove this if we switch back to Jellyfin's default scroll buttons .emby-scrollbuttons.padded-right { -webkit-align-items: center; align-items: center; color: #fff; display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; min-height: 24px; min-width: 104px; padding-top: .85em; position: absolute; top: 0; z-index: 1; } /* Progressive Section Reveal Animation */ .cardbuilder-section-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); } /* When section enters viewport, trigger animation */ .cardbuilder-section-reveal.in-viewport { opacity: 1; transform: translateY(0); } .show-all-button { margin-left: 10px; font-size: 12px; padding: 4px 8px; min-width: auto; background: transparent; border-radius: 4px; cursor: pointer; align-self: center; border: 1px solid rgba(255, 255, 255, 0.3) !important; color: var(--main-text, #fff) !important; position: relative; display: none; /* Hidden by default */ } [data-section-id] .sectionTitleContainer { display: flex; align-items: center; } /* Show button when section is expandable */ .emby-scroller-container[data-expandable="true"] .show-all-button { display: initial !important; } /* Expanded grid view styles */ .itemsContainer[data-expanded="true"] { display: flex !important; flex-wrap: wrap !important; white-space: normal !important; transform: none !important; transition: none !important; } /* Hide scroll buttons when expanded */ .emby-scroller-container:has(.itemsContainer[data-expanded="true"]) .emby-scrollbuttons { display: none !important; } /* Refresh Button Styles */ .section-refresh-button { margin-left: 8px; padding: 4px; min-width: auto; width: 32px; height: 32px; background: transparent; border: none; cursor: pointer; display: inline-block; align-items: center; justify-content: center; color: var(--main-text, rgba(255, 255, 255, 0.87)); border-radius: 50%; font-size: 18px; transition: transform 0.3s ease, color 0.3s ease, background 0.2s ease; opacity: 0.65; } .section-refresh-button:hover { background: rgba(255, 255, 255, 0.1); } /* Spinning animation when refreshing */ [data-refreshing="true"] .section-refresh-button { animation: spin 1s linear infinite; } /* Checkmark state - green color to indicate success */ .section-refresh-button.check_circle { animation: none; } /* Smooth transition when changing icons */ .section-refresh-button.refresh, .section-refresh-button.check_circle { transition: transform 0.3s ease, color 0.3s ease, background 0.2s ease; } /* Fade in/out transitions for icon changes */ .section-refresh-button::after { transition: opacity 0.2s ease; } .section-refresh-button.icon-fade-out::after { opacity: 0; } .section-refresh-button.icon-fade-in::after { opacity: 1; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Ensure button remains visible when expanded (data-expandable takes precedence, but this ensures it) */ .emby-scroller-container:has(.itemsContainer[data-expanded="true"]) .show-all-button { display: initial !important; } /* Full-screen spotlight: negative margins for overlap, content inset, top/bottom fade. Banner has NO padding so the background image overflows edge-to-edge; only content is inset. */ .spotlight-section[data-full-screen="true"] { --spotlight-fullscreen-vertical: 4%; --spotlight-fullscreen-horizontal: max(env(safe-area-inset-left), env(safe-area-inset-right), 4%); padding: 0; width: 100%; margin-top: calc(-1 * calc(var(--spotlight-fullscreen-vertical) / 2)); margin-bottom: calc(-1 * calc(var(--spotlight-fullscreen-vertical) / 2)); } .spotlight-section[data-full-screen="true"] .spotlight-banner-container { border-radius: 0; height: 90vh !important; /* No padding: background fills full size so image extends edge-to-edge and into overlap zone */ position: relative; /* Wider mask so backdrop fades gradually at top/bottom (no visible solid edge during animation) */ -webkit-mask-image: linear-gradient( to bottom, transparent 0%, black calc(var(--spotlight-fullscreen-vertical) * 2), black calc(100% - calc(var(--spotlight-fullscreen-vertical) * 2)), transparent 100% ); mask-image: linear-gradient( to bottom, transparent 0%, black calc(var(--spotlight-fullscreen-vertical) * 2), black calc(100% - calc(var(--spotlight-fullscreen-vertical) * 2)), transparent 100% ); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; } /* Dark gradient overlays at top and bottom (like left-side overlay): graceful fade and better visibility when content overlaps */ .spotlight-section[data-full-screen="true"] .spotlight-banner-container::before, .spotlight-section[data-full-screen="true"] .spotlight-banner-container::after { content: ''; position: absolute; left: 0; right: 0; width: 100%; height: 22%; pointer-events: none; z-index: 2; } .spotlight-section[data-full-screen="true"] .spotlight-banner-container::before { top: 0; background: linear-gradient( to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100% ); } .spotlight-section[data-full-screen="true"] .spotlight-banner-container::after { bottom: 0; background: linear-gradient( to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100% ); } .spotlight-section[data-full-screen="true"] .spotlight-items-container, .spotlight-section[data-full-screen="true"] .spotlight-item { /* Full bleed: fill banner so background extends to edges (and past negative margin) */ left: 0; right: 0; width: 100%; } /* Full-screen: base scale so image extends past edges even before animation starts */ .spotlight-section[data-full-screen="true"] .spotlight-background-single img, .spotlight-section[data-full-screen="true"] .spotlight-background-layer img { transform: scale(1.08); } /* Full-screen: use pre-scaled animations so image never shows hard edge at top */ .spotlight-section[data-full-screen="true"] .spotlight-background-single img.animate { animation: kenBurnsZoomInFullscreen 20s ease-out forwards; } .spotlight-section[data-full-screen="true"] .spotlight-background-layer-left img.animate { animation: kenBurnsZoomOutFullscreen 20s ease-out forwards; } .spotlight-section[data-full-screen="true"] .spotlight-background-layer-right img.animate { animation: kenBurnsZoomInFullscreen 20s ease-out forwards; } /* Overlay stays left: 0 so the dark gradient still covers the image; only content is inset via padding. z-index above top/bottom gradient pseudo-elements so title and buttons stay readable. */ .spotlight-section[data-full-screen="true"] .spotlight-overlay { left: 0; z-index: 3; padding: calc(var(--spotlight-fullscreen-vertical) * 2) var(--spotlight-fullscreen-horizontal) calc(var(--spotlight-fullscreen-vertical) * 2) var(--spotlight-fullscreen-horizontal); } .spotlight-section[data-full-screen="true"] .spotlight-overlay.has-title { padding: calc(var(--spotlight-fullscreen-vertical) * 2) var(--spotlight-fullscreen-horizontal) calc(var(--spotlight-fullscreen-vertical) * 2) var(--spotlight-fullscreen-horizontal); } .spotlight-section[data-full-screen="true"] .spotlight-section-title { left: var(--spotlight-fullscreen-horizontal); top: calc(var(--spotlight-fullscreen-vertical) * 2.5); } .spotlight-section[data-full-screen="true"] .spotlight-item-logo { width: auto; max-width: none; min-height: 35% !important; height: 35% !important; margin-bottom: 40px; } .spotlight-section[data-full-screen="true"] .spotlight-item-title { width: auto; max-width: none; height: 35% !important; margin-bottom: 40px; font-size: 4rem; } .spotlight-section[data-full-screen="true"] .spotlight-clearart { right: var(--spotlight-fullscreen-horizontal); bottom: var(--spotlight-fullscreen-vertical); } .spotlight-section[data-full-screen="true"] .spotlight-nav-container { right: var(--spotlight-fullscreen-horizontal); top: calc(var(--spotlight-fullscreen-vertical) * 2.5); } .spotlight-section[data-full-screen="true"] .spotlight-dots { bottom: calc(var(--spotlight-fullscreen-vertical) * 2.5); } .spotlight-section[data-full-screen="true"] img { object-position: center 0%; } .spotlight-section[data-full-screen="true"] .spotlight-clearart { display: none; } :has(.spotlight-section[data-full-screen="true"]) .homeSectionsContainer > *:not(.spotlight-section) { z-index: 1; } .spotlight-section[data-full-screen="true"] .spotlight-tagline { max-height: 150px !important; -webkit-line-clamp: 6; font-style: normal; font-size: 1.05em; margin-bottom: 0; } /* Full-screen: modern stream-site metadata styles */ .spotlight-section[data-full-screen="true"] .metadata-container { gap: 10px; } .spotlight-section[data-full-screen="true"] .spotlight-metadata-row { font-size: 15px; gap: 10px; } /* Pill-style for year, duration, genres, director/writer/series, end time */ .spotlight-section[data-full-screen="true"] .spotlight-metadata-row > span { padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); } .spotlight-section[data-full-screen="true"] .spotlight-end-time { display: inline-flex; align-items: center; gap: 6px; } .spotlight-section[data-full-screen="true"] .spotlight-end-time .material-icons { font-size: 1.1em; opacity: 0.9; } .spotlight-section[data-full-screen="true"] .spotlight-genre-link { display: inline-block; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.2s, border-color 0.2s; } .spotlight-section[data-full-screen="true"] .spotlight-genre-link:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.35); } /* Director/writer/series info: pill-style container */ .spotlight-section[data-full-screen="true"] .spotlight-truncated-list:has(>*) { font-size: 15px; padding: 6px 14px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); display: inline-block; max-width: fit-content; } .spotlight-section a:not(:hover) { text-decoration: none !important; } .spotlight-section[data-full-screen="true"] span.spotlight-end-time::after { content: 'schedule'; position: absolute; left: 10px; font-family: 'Material Icons'; top: calc(50% + 1px); transform: translateY(-50%); } .spotlight-section[data-full-screen="true"] span.spotlight-end-time { padding-left: 30px !important; position: relative; } .spotlight-section[data-full-screen="true"] .spotlight-buttons-container { margin-top: 40px; } .spotlight-section[data-full-screen="true"] .spotlight-item-logo { width: 95%; } .layout-mobile .spotlight-section[data-full-screen="true"] .spotlight-section-title { left: var(--spotlight-fullscreen-horizontal); top: var(--spotlight-fullscreen-vertical); }