@use "@/styles/variables.scss" as *; /* Cinematic home hero: full-bleed artwork, integrated type, bottom rail. */ .cinema-hero { position: relative; height: calc(100vh - 16px); min-height: 620px; overflow: hidden; isolation: isolate; .hero-carousel-slide { position: absolute; inset: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; } .hero-carousel-background-container { position: absolute; inset: 0; z-index: 0; &::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient( 90deg, rgb(6 8 12 / 0.94) 0%, rgb(6 8 12 / 0.72) 28%, rgb(6 8 12 / 0.28) 52%, rgb(6 8 12 / 0) 72% ), linear-gradient( 0deg, rgb(6 8 12 / 0.96) 0%, rgb(6 8 12 / 0.55) 26%, rgb(6 8 12 / 0) 56% ); } } .hero-carousel-background-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; &.is-poster { filter: blur(42px) saturate(1.5) brightness(0.55); transform: scale(1.25); } } .hero-carousel-background-blurhash { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; filter: blur(40px) saturate(1.4); } .hero-carousel-background-icon-container { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, #12141a, #1d2028); .material-symbols-rounded { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 15em !important; opacity: 0.35; } } .hero-carousel-detail { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0.9rem; max-width: none; padding: 0 clamp(2rem, 5vw, 4.5rem) calc(var(--home-trending-space, 200px) + 4rem); background: none; } .hero-carousel-label { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 10px; background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.18); backdrop-filter: blur(14px); color: #fff; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; } .hero-carousel-text { display: block; overflow: visible; margin: 0; max-width: 16ch; font-size: clamp(2.4rem, 4.1vw, 4.4rem) !important; line-height: 0.98 !important; font-weight: 650 !important; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); } .hero-carousel-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9em !important; margin-top: 0.1em !important; color: rgb(255 255 255 / 0.78); font-size: 0.9rem; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6); .MuiTypography-root { font-size: 0.9rem; } .MuiChip-root { height: 24px; background: rgb(255 255 255 / 0.14); color: #fff; font-size: 0.75rem; backdrop-filter: blur(8px); } .hero-carousel-info-rating { gap: 0.2em; } } .hero-carousel-overview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; max-width: 34rem; margin: 0.15rem 0 0; color: rgb(255 255 255 / 0.82); font-size: 1rem; line-height: 1.55; text-shadow: 0 1px 3px rgb(0 0 0 / 0.55); } .hero-carousel-button-container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; width: auto; margin-top: 0.6rem; .MuiButton-root { min-height: 50px; padding: 0 24px; border-radius: 999px; text-transform: none; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; box-shadow: none; } .play-button .MuiButton-root, .MuiButton-contained { background: #f5f5f4; color: #101116; &:hover { background: #fff; } .material-symbols-rounded { color: #101116; } } .MuiButton-outlined { border-color: rgb(255 255 255 / 0.34); color: #fff; backdrop-filter: blur(10px); &:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.6); } } .MuiIconButton-root { color: rgb(255 255 255 / 0.75); &:hover { color: #fff; background: rgb(255 255 255 / 0.1); } } } /* Big cinematic arrows */ .cinema-arrow { position: absolute; top: 50%; z-index: 7; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18); background: rgb(14 16 21 / 0.36); backdrop-filter: blur(14px); color: #fff; cursor: pointer; transform: translateY(-50%); opacity: 0; transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease; &.right { right: 1.25rem; } .material-symbols-rounded { font-size: 1.7rem; } &:hover { background: #f5f5f4; color: #101116; } } &:hover .cinema-arrow, &.paused .cinema-arrow { opacity: 1; } /* Bottom rail */ .cinema-trending { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 2rem clamp(2rem, 5vw, 4.5rem) 1.5rem; background: linear-gradient( 0deg, rgb(7 8 12 / 0.98) 0%, rgb(7 8 12 / 0.9) 46%, rgb(7 8 12 / 0) 100% ); } .cinema-trending-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; h3 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; } } .cinema-dots { display: flex; align-items: center; gap: 6px; button { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.3); cursor: pointer; transition: background-color 0.2s ease, width 0.2s ease; &.active { width: 38px; background: #fff; } } } .cinema-trending-rail { display: flex; gap: 0.75rem; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; -ms-overflow-style: none; &::-webkit-scrollbar { width: 0; height: 0; display: none; } } .cinema-trending-card { position: relative; flex: 0 0 auto; width: clamp(200px, 21vw, 300px); aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 12px; background: rgb(255 255 255 / 0.05); cursor: pointer; opacity: 0.72; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease; img { width: 100%; height: 100%; object-fit: cover; display: block; } &::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.35), transparent 55%); } &:hover { opacity: 1; border-color: rgb(255 255 255 / 0.4); transform: translateY(-2px); } &.active { opacity: 1; border-color: rgb(255 255 255 / 0.7); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); } } .cinema-trending-chip { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: 8px; background: rgb(245 245 244 / 0.9); color: #131419; font-size: 0.75rem; font-weight: 500; line-height: 1.5; } .cinema-trending-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgb(255 255 255 / 0.5); .material-symbols-rounded { font-size: 2rem; } } } /* Reserve room for the floating player bar so the rail is never covered. */ body.has-player-bar .cinema-trending { padding-bottom: 116px; } /* With the player bar visible the hero has less vertical room, so keep the copy compact instead of pushing it under the header. */ body.has-player-bar .cinema-hero .hero-carousel-text { font-size: clamp(2.1rem, 3.6vw, 4rem) !important; } body.has-player-bar .cinema-hero .hero-carousel-overview { -webkit-line-clamp: 3; } @media (max-width: 1100px) { .cinema-hero { height: calc(100vh - 16px); min-height: 560px; .hero-carousel-detail { padding-left: 2rem; padding-right: 2rem; padding-bottom: calc(var(--home-trending-space, 200px) + 1.5rem); } .hero-carousel-text { font-size: 2.6rem !important; max-width: 14ch; } .hero-carousel-overview { -webkit-line-clamp: 3; max-width: 30rem; } .cinema-trending { padding-left: 2rem; padding-right: 2rem; } } } /* Short windows (and the player bar) leave little vertical room: drop the secondary copy instead of pushing the headline under the header. */ @media (max-height: 760px) { .cinema-hero { height: calc(100vh - 16px); min-height: 540px; .hero-carousel-detail { gap: 0.65rem; padding-bottom: calc(var(--home-trending-space, 200px) + 1rem); } .hero-carousel-overview, .hero-carousel-info { display: none; } .hero-carousel-text { max-width: 18ch; font-size: clamp(2rem, 3.2vw, 3rem) !important; } .cinema-trending { padding-top: 1rem; } .cinema-trending-head { margin-bottom: 0.6rem; } .cinema-trending-card { width: clamp(150px, 15vw, 220px); } } } @media (max-width: 700px) { .cinema-hero { min-height: 520px; .hero-carousel-text { font-size: 2.1rem !important; } .hero-carousel-info { display: none; } .hero-carousel-overview { display: none; } .cinema-arrow { display: none; } .cinema-trending-card { width: 160px; } } }