464 lines
No EOL
9.5 KiB
CSS
Executable file
464 lines
No EOL
9.5 KiB
CSS
Executable file
/* ============================================
|
|
KV-Stream - Hero Section
|
|
PIXEL-PERFECT NETFLIX BILLBOARD
|
|
============================================ */
|
|
|
|
/* ============================================
|
|
NETFLIX HERO BILLBOARD
|
|
============================================ */
|
|
.hero-container {
|
|
margin-bottom: -100px;
|
|
/* Overlap with rows */
|
|
}
|
|
|
|
.hero {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 80vh;
|
|
min-height: 500px;
|
|
max-height: 800px;
|
|
background: var(--netflix-bg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero__video-container {
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
.hero__backdrop {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
background-position: center 20%;
|
|
}
|
|
|
|
.hero__backdrop img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: center 20%;
|
|
}
|
|
|
|
/* ============================================
|
|
NETFLIX VIGNETTE GRADIENTS
|
|
============================================ */
|
|
.hero__gradient-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
/* Netflix's signature left-to-right + bottom vignette */
|
|
background:
|
|
linear-gradient(to right, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.5) 30%, transparent 60%),
|
|
linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.7) 15%, transparent 40%);
|
|
}
|
|
|
|
.hero__vignette {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hero__vignette--top {
|
|
top: 0;
|
|
height: 150px;
|
|
background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, transparent 100%);
|
|
}
|
|
|
|
.hero__vignette--bottom {
|
|
bottom: 0;
|
|
height: 50%;
|
|
background: linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.8) 20%, transparent 100%);
|
|
}
|
|
|
|
/* ============================================
|
|
HERO CONTENT
|
|
============================================ */
|
|
.hero__content {
|
|
position: absolute;
|
|
bottom: 30%;
|
|
left: var(--row-padding);
|
|
z-index: 2;
|
|
max-width: 45%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.hero__info-layer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
animation: fadeSlideUp 0.8s ease-out;
|
|
}
|
|
|
|
@keyframes fadeSlideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Netflix Title */
|
|
.hero__title {
|
|
font-family: var(--font-heading);
|
|
font-size: var(--font-size-hero);
|
|
font-weight: var(--font-weight-bold);
|
|
line-height: 1.1;
|
|
letter-spacing: -0.02em;
|
|
color: var(--netflix-text);
|
|
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Metadata (Match %, Year, Rating) */
|
|
.hero__metadata {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: var(--font-size-base);
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
|
|
.hero__match {
|
|
color: var(--netflix-green);
|
|
}
|
|
|
|
.hero__age,
|
|
.hero__quality {
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
padding: 0 4px;
|
|
font-size: var(--font-size-xs);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Description */
|
|
.hero__description {
|
|
font-size: var(--font-size-lg);
|
|
line-height: 1.4;
|
|
color: var(--netflix-text);
|
|
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ============================================
|
|
NETFLIX HERO BUTTONS
|
|
============================================ */
|
|
.hero__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.hero__btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 28px;
|
|
border-radius: var(--btn-radius);
|
|
border: none;
|
|
font-size: var(--font-size-lg);
|
|
font-weight: var(--font-weight-semibold);
|
|
cursor: pointer;
|
|
transition: all var(--transition-base);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hero__btn svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
/* Play Button - White */
|
|
.hero__btn--primary {
|
|
background: var(--netflix-text);
|
|
color: var(--netflix-bg);
|
|
}
|
|
|
|
.hero__btn--primary:hover {
|
|
background: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
/* More Info Button - Gray */
|
|
.hero__btn--secondary {
|
|
background: rgba(109, 109, 110, 0.7);
|
|
color: var(--netflix-text);
|
|
}
|
|
|
|
.hero__btn--secondary:hover {
|
|
background: rgba(109, 109, 110, 0.5);
|
|
}
|
|
|
|
/* ============================================
|
|
HERO SLIDER CONTROLS
|
|
============================================ */
|
|
.hero-slider-track {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
}
|
|
|
|
.hero-slide {
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
.hero-controls {
|
|
position: absolute;
|
|
bottom: 15%;
|
|
right: var(--row-padding);
|
|
display: flex;
|
|
gap: 4px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.hero-indicator {
|
|
width: 12px;
|
|
height: 2px;
|
|
border-radius: 0;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.hero-indicator.active {
|
|
background: var(--netflix-text);
|
|
width: 20px;
|
|
}
|
|
|
|
.hero-indicator:hover {
|
|
background: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.hero-arrow {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 50px;
|
|
height: 100px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: none;
|
|
color: var(--netflix-text);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
opacity: 0;
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.hero:hover .hero-arrow {
|
|
opacity: 1;
|
|
}
|
|
|
|
.hero-arrow:hover {
|
|
background: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.hero-arrow svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.hero-arrow--prev {
|
|
left: 0;
|
|
}
|
|
|
|
.hero-arrow--next {
|
|
right: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
SECTION BANNERS
|
|
============================================ */
|
|
.section-banner {
|
|
position: relative;
|
|
height: 180px;
|
|
margin: 24px var(--row-padding);
|
|
border-radius: var(--card-radius);
|
|
background: var(--netflix-bg-card);
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.section-banner:hover {
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.section-banner__bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-position: center;
|
|
transition: transform 0.6s ease;
|
|
}
|
|
|
|
.section-banner:hover .section-banner__bg {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.section-banner__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
|
|
}
|
|
|
|
.section-banner__content {
|
|
position: relative;
|
|
z-index: 2;
|
|
padding: 20px 24px;
|
|
width: 100%;
|
|
}
|
|
|
|
.section-banner__title {
|
|
font-size: var(--font-size-2xl);
|
|
font-weight: var(--font-weight-bold);
|
|
margin: 0;
|
|
color: var(--netflix-text);
|
|
}
|
|
|
|
.section-banner__subtitle {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--netflix-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* ============================================
|
|
CATEGORY SHORTCUTS
|
|
============================================ */
|
|
.category-shortcuts-section {
|
|
width: 100%;
|
|
margin-bottom: 24px;
|
|
overflow-x: auto;
|
|
display: flex;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.category-shortcuts-section::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.category-shortcuts-track {
|
|
display: inline-flex;
|
|
gap: 16px;
|
|
padding: 0 var(--row-padding);
|
|
}
|
|
|
|
.shortcut-card {
|
|
min-width: 240px;
|
|
height: 130px;
|
|
background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
|
|
border-radius: var(--card-radius);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 20px;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), background var(--transition-base);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.shortcut-card:hover {
|
|
transform: translateY(-4px);
|
|
background: linear-gradient(135deg, #333, #222);
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.shortcut-card h3 {
|
|
font-size: var(--font-size-xl);
|
|
font-weight: var(--font-weight-bold);
|
|
color: var(--netflix-text);
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.shortcut-card span {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--netflix-text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.shortcut-icon {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
font-size: 20px;
|
|
color: rgba(255, 255, 255, 0.2);
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.shortcut-card:hover .shortcut-icon {
|
|
transform: translateX(4px);
|
|
color: var(--netflix-red);
|
|
}
|
|
|
|
/* ============================================
|
|
SMALL HERO (Category Pages)
|
|
============================================ */
|
|
.hero--small {
|
|
height: 50vh !important;
|
|
min-height: 350px !important;
|
|
max-height: 450px !important;
|
|
}
|
|
|
|
/* ============================================
|
|
POSTER FLOAT (Portrait Mode)
|
|
============================================ */
|
|
.hero__poster-float {
|
|
position: absolute;
|
|
right: 8%;
|
|
bottom: 15%;
|
|
height: 65%;
|
|
aspect-ratio: 2/3;
|
|
z-index: 5;
|
|
display: none;
|
|
animation: posterFloat 1s ease-out;
|
|
}
|
|
|
|
@keyframes posterFloat {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(40px) scale(0.95);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.hero__poster-float img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: var(--card-radius);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.hero--portrait-mode .hero__poster-float {
|
|
display: block;
|
|
}
|
|
|
|
.hero--portrait-mode .hero__content {
|
|
max-width: 40%;
|
|
} |