:root {
    --uk-home-accent: #ffc107;
    --uk-home-accent-soft: #ffd65a;
    --uk-home-text: #f5f7fa;
    --uk-home-muted: #aeb5c0;
    --uk-home-panel: rgba(14, 17, 22, 0.84);
    --uk-home-border: rgba(255, 255, 255, 0.11);
}

body.uk-home-page {
    color: var(--uk-home-text);
    background:
        linear-gradient(rgba(5, 8, 12, 0.90), rgba(5, 8, 12, 0.97)),
        url('/img/fonukrfilm.jpg') center top / cover fixed;
}

body.uk-home-page .ukr-navbar {
    position: relative;
}

.uk-home {
    display: block;
    padding: 0 0 64px;
}

.uk-home-shell {
    width: min(100% - 32px, 1380px);
    margin-inline: auto;
}

.uk-home-eyebrow {
    margin: 0 0 9px;
    color: var(--uk-home-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.uk-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    width: min(100% - 32px, 1480px);
    min-height: clamp(470px, 62vw, 690px);
    margin: 10px auto 0;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(4, 7, 11, 0.98) 0%,
            rgba(4, 7, 11, 0.84) 40%,
            rgba(4, 7, 11, 0.28) 72%,
            rgba(4, 7, 11, 0.58) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 7, 11, 0.97) 0%,
            rgba(4, 7, 11, 0.08) 55%
        ),
        var(--uk-home-hero-image, url('/img/fonukrfilm.jpg')) center / cover;
    border: 1px solid var(--uk-home-border);
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.uk-home-hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 45%;
    content: '';
    background: linear-gradient(transparent, rgba(5, 8, 12, 0.96));
    pointer-events: none;
}

.uk-home-hero__content {
    margin-inline: 0;
    padding: clamp(34px, 6vw, 84px);
}

.uk-home-hero h1 {
    max-width: 790px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.uk-home-hero__lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: #d4d9e1;
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.7;
}

.uk-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.uk-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.uk-home-button:hover,
.uk-home-button:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.uk-home-button--primary {
    color: #111111;
    background: linear-gradient(135deg, #ffd24a, #ffc107);
    border-color: #ffd24a;
    box-shadow: 0 14px 40px rgba(255, 193, 7, 0.22);
}

.uk-home-button--primary:hover,
.uk-home-button--primary:focus-visible {
    color: #111111;
    background: #ffdb6c;
}

.uk-home-button--glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.uk-home-button--glass:hover,
.uk-home-button--glass:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.24);
}

.uk-home-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.uk-home-section {
    padding-top: clamp(58px, 7vw, 96px);
}

.uk-home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
    align-items: end;
    gap: 28px;
    margin-bottom: 24px;
}

.uk-home-section-heading h2,
.uk-home-editorial h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 880;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.uk-home-section-heading > p {
    margin: 0;
    color: var(--uk-home-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.uk-home-fresh-wrap {
    position: relative;
}

.uk-home-fresh-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 17vw, 215px);
    gap: 14px;
    padding: 3px 2px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.uk-home-fresh-track::-webkit-scrollbar {
    display: none;
}

.uk-home-fresh-card {
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid var(--uk-home-border);
    border-radius: 17px;
    scroll-snap-align: start;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.uk-home-fresh-card:hover,
.uk-home-fresh-card:focus-within {
    border-color: rgba(255, 193, 7, 0.58);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    transform: translateY(-4px);
}

.uk-home-fresh-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.uk-home-fresh-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #14171c;
}

.uk-home-fresh-card div {
    padding: 14px;
}

.uk-home-fresh-card h3 {
    display: -webkit-box;
    min-height: 2.5em;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.uk-home-fresh-card p {
    margin: 8px 0 0;
    color: var(--uk-home-muted);
    font-size: 0.78rem;
}

.uk-home-scroll-button {
    position: absolute;
    top: 42%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 44px;
    height: 58px;
    color: #ffffff;
    font-size: 2.3rem;
    line-height: 1;
    cursor: pointer;
    background: rgba(9, 12, 17, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    transform: translateY(-50%);
}

.uk-home-scroll-button:hover,
.uk-home-scroll-button:focus-visible {
    color: #111111;
    background: var(--uk-home-accent);
    border-color: var(--uk-home-accent);
    outline: none;
}

.uk-home-scroll-button--left {
    left: -15px;
}

.uk-home-scroll-button--right {
    right: -15px;
}

.uk-home-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.uk-home-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.uk-home-card {
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--uk-home-border);
    border-radius: 18px;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.uk-home-card:hover,
.uk-home-card:focus-within {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 193, 7, 0.50);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
    transform: translateY(-5px);
}

.uk-home-card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.uk-home-card__poster {
    position: relative;
    overflow: hidden;
    background: #15181d;
}

.uk-home-card__poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    content: '';
    background: linear-gradient(transparent, rgba(6, 8, 12, 0.76));
    pointer-events: none;
}

.uk-home-card__poster img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.uk-home-card:hover .uk-home-card__poster img {
    transform: scale(1.035);
}

.uk-home-card__type,
.uk-home-card__rating {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 6px 8px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    background: rgba(7, 9, 13, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

.uk-home-card__type {
    left: 10px;
}

.uk-home-card__rating {
    right: 10px;
    color: #16110a;
    background: rgba(255, 193, 7, 0.94);
    border-color: rgba(255, 224, 129, 0.8);
}

.uk-home-card__body {
    padding: 14px;
}

.uk-home-card__body h3 {
    display: -webkit-box;
    min-height: 2.55em;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 820;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.uk-home-card__body p {
    margin: 8px 0 0;
    color: var(--uk-home-muted);
    font-size: 0.78rem;
}

.uk-home-editorial {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 7vw, 100px);
    margin-top: clamp(72px, 9vw, 124px);
    padding: clamp(30px, 5vw, 60px);
    background:
        linear-gradient(
            135deg,
            rgba(255, 193, 7, 0.12),
            rgba(255, 255, 255, 0.035)
        );
    border: 1px solid rgba(255, 193, 7, 0.20);
    border-radius: 26px;
}

.uk-home-editorial__copy p {
    margin: 0;
    color: #c5cad2;
    font-size: 1rem;
    line-height: 1.78;
}

.uk-home-editorial__copy p + p {
    margin-top: 18px;
}

.uk-home-empty {
    padding: clamp(34px, 6vw, 72px);
    text-align: center;
    background: var(--uk-home-panel);
    border: 1px solid var(--uk-home-border);
    border-radius: 24px;
}

.uk-home-empty h2 {
    margin: 0;
    color: #ffffff;
}

.uk-home-empty p {
    max-width: 640px;
    margin: 14px auto 24px;
    color: var(--uk-home-muted);
}

@media (max-width: 1180px) {
    .uk-home-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    body.uk-home-page {
        background-attachment: scroll;
    }

    .uk-home-shell,
    .uk-home-hero {
        width: min(100% - 24px, 1380px);
    }

    .uk-home-hero {
        min-height: 570px;
        background:
            linear-gradient(
                0deg,
                rgba(4, 7, 11, 0.98) 0%,
                rgba(4, 7, 11, 0.78) 52%,
                rgba(4, 7, 11, 0.18) 100%
            ),
            var(--uk-home-hero-image, url('/img/fonukrfilm.jpg')) center / cover;
        border-radius: 22px;
    }

    .uk-home-hero__content {
        padding: 32px 24px;
    }

    .uk-home-section-heading,
    .uk-home-editorial {
        grid-template-columns: 1fr;
    }

    .uk-home-section-heading {
        gap: 12px;
    }

    .uk-home-grid--featured,
    .uk-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .uk-home-editorial {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .uk-home {
        padding-bottom: 38px;
    }

    .uk-home-hero {
        min-height: 520px;
        margin-top: 4px;
    }

    .uk-home-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.55rem);
    }

    .uk-home-hero__lead {
        margin-top: 18px;
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .uk-home-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .uk-home-button {
        width: 100%;
    }

    .uk-home-section {
        padding-top: 56px;
    }

    .uk-home-section-heading h2,
    .uk-home-editorial h2 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .uk-home-section-heading > p {
        font-size: 0.9rem;
    }

    .uk-home-fresh-track {
        grid-auto-columns: minmax(148px, 46vw);
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .uk-home-scroll-button {
        display: none;
    }

    .uk-home-grid--featured,
    .uk-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .uk-home-card {
        border-radius: 15px;
    }

    .uk-home-card__body {
        padding: 12px;
    }

    .uk-home-card__body h3 {
        font-size: 0.9rem;
    }

    .uk-home-card__type,
    .uk-home-card__rating {
        top: 8px;
        padding: 5px 7px;
        font-size: 0.62rem;
    }

    .uk-home-card__type {
        left: 8px;
    }

    .uk-home-card__rating {
        right: 8px;
    }

    .uk-home-editorial {
        margin-top: 64px;
        padding: 26px 20px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uk-home *,
    .uk-home *::before,
    .uk-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
