.home-page {
    padding-top: 62px;
    padding-bottom: 60px;
}

.home-hero {
    position: relative;
    height: min(68vh, 720px);
    min-height: 500px;
    overflow: hidden;
    background: #181818;
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade,
.hero-skeleton {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.025);
    transition: transform 8s ease;
}

.hero-slide.active .hero-image {transform: scale(1.08);}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(15,15,15,.94) 0%, rgba(15,15,15,.65) 42%, rgba(15,15,15,.12) 75%),
        linear-gradient(0deg, var(--color-bg-primary) 0%, transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 78px;
    box-sizing: border-box;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.05;
    margin: 12px 0 18px;
    text-wrap: balance;
}

.hero-content > p {
    max-width: 680px;
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-secondary);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta span {
    padding: 6px 11px;
    border-radius: 30px;
    background: rgba(0,0,0,.38);
    border: 1px solid var(--color-modal-border);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.hero-meta .hero-rating {color: #fff9a3;}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.hero-watch,
.hero-bookmark {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 30px;
    border: 1px solid var(--color-btn-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.hero-watch {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    border-color: transparent;
}

.hero-bookmark {
    background: rgba(0,0,0,.35);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
}

.hero-bookmark:hover,
.hero-bookmark.active {background: var(--color-btn-bg-hov);}

.hero-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-btn-border);
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(8px);
    font-size: 32px;
    cursor: pointer;
}

.hero-prev {left: 24px;}
.hero-next {right: 24px;}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-text-muted);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-dots button.active {
    width: 28px;
    background: var(--color-text-primary);
}

.hero-skeleton {
    z-index: 1;
    background: linear-gradient(100deg, #202020 20%, #303030 40%, #202020 60%);
    background-size: 200% 100%;
    animation: heroShimmer 1.5s linear infinite;
}

@keyframes heroShimmer {
    to {background-position: -200% 0;}
}

.home-status {
    min-height: 24px;
    padding-top: 18px;
    color: var(--color-text-secondary);
}

.home-row {margin: 38px 0 8px;}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 14px;
}

.home-section-head h2 {
    font-size: clamp(20px, 2vw, 28px);
    margin-bottom: 7px;
}

.home-section-head p {
    color: var(--color-text-muted);
    font-size: 13px;
}

.row-controls {display: flex; gap: 8px;}

.row-controls button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-btn-border);
    background: var(--color-btn-box);
    font-size: 24px;
    cursor: pointer;
}

.row-controls button:hover {background: var(--color-btn-bg-hov);}

.home-row .movie-list {
    padding: 8px 5%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.home-row .movie-list::-webkit-scrollbar {display: none;}

.home-row .movie-item {
    width: clamp(155px, 15vw, 235px);
    scroll-snap-align: start;
}

.home-empty {
    width: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--color-text-muted);
    border: 1px dashed var(--color-modal-border);
    border-radius: 30px;
}

.hero-empty {
    height: 100%;
    display: grid;
    place-items: center;
}

@media (max-width: 768px) {
    .home-page {padding-top: 56px;}
    .home-hero {height: 70vh; min-height: 520px;}
    .hero-shade {
        background:
            linear-gradient(0deg, var(--color-bg-primary) 0%, rgba(15,15,15,.72) 58%, rgba(15,15,15,.12) 100%);
    }
    .hero-content {padding-bottom: 65px;}
    .hero-content h1 {font-size: 36px;}
    .hero-content > p {-webkit-line-clamp: 2;}
    .hero-nav {display: none;}
    .hero-meta span:nth-last-child(1) {display: none;}
    .home-section-head {align-items: center;}
    .row-controls {display: none;}
    .home-row .movie-list {
        padding-inline: 5%;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .home-row .movie-item {width: 160px;}
}

@media (max-width: 480px) {
    .hero-content h1 {font-size: 30px;}
    .hero-content > p {font-size: 13px;}
    .hero-watch,
    .hero-bookmark {padding: 0 16px; font-size: 12px;}
    .home-section-head p {display: none;}
    .home-row .movie-item {width: 142px;}
}
