
.uycx-card,
.uycx-card * {
    box-sizing: border-box;
}

.uycx-card {
    position: relative;
    min-width: 0;
}

/* მთავარი ბმული */

.uycx-card > .uycx-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    color: #fff;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* ==================================================
   პოსტერი
   ================================================== */

.uycx-card .uycx-poster {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    isolation: isolate;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.09);
    background: #0f1624;

    box-shadow:
        0 6px 18px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.02);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.uycx-card .uycx-poster::before,
.uycx-card .uycx-poster::after {
    content: none;
    display: none;
}

.uycx-card .uycx-poster > .uycx-image {
    display: block;
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    border: 0;
    border-radius: 0;

    transition: transform .35s ease;
}

/* ==================================================
   გამოშვების წელი
   ================================================== */

.uycx-card .uycx-year {
    display: block;
    position: absolute;
    z-index: 5;

    top: 10px;
    right: 10px;

    margin: 0;
    padding: 6px 10px;

    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(8,13,24,.94);

    color: #ffd21a !important;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;

    box-shadow: 0 4px 10px rgba(0,0,0,.28);
}

/* ==================================================
   ენები — GEO / ENG / RUS
   ================================================== */

.uycx-card .uycx-langs {
    position: absolute;
    z-index: 5;

    left: 10px;
    right: 10px;
    bottom: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin: 0;
    padding: 0;

    pointer-events: none;
}

.uycx-card .uycx-lang {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 36px;
    margin: 0;
    padding: 5px 8px;

    border-radius: 8px;
    border: 1px solid transparent;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .35px;
    white-space: nowrap;

    box-shadow: 0 3px 8px rgba(0,0,0,.34);
}

/* ქართული */

.uycx-card .uycx-lang-geo {
    color: #a7f3d0 !important;
    background: rgba(7,56,38,.96);
    border-color: rgba(74,222,128,.40);
}

/* ინგლისური */

.uycx-card .uycx-lang-eng {
    color: #bfdbfe !important;
    background: rgba(18,44,87,.96);
    border-color: rgba(96,165,250,.42);
}

/* რუსული */

.uycx-card .uycx-lang-rus {
    color: #fecdd3 !important;
    background: rgba(74,24,35,.96);
    border-color: rgba(251,113,133,.42);
}

/* ==================================================
   პოსტერის HOVER OVERLAY
   ================================================== */

.uycx-card .uycx-overlay {
    position: absolute;
    z-index: 3;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    margin: 0;
    padding: 42px 12px 50px;

    overflow: hidden;

    background: linear-gradient(
        180deg,
        rgba(3,7,15,.30) 0%,
        rgba(3,7,15,.72) 45%,
        rgba(3,7,15,.98) 100%
    );

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease;
}

/* ==================================================
   PLAY ღილაკი
   ================================================== */

.uycx-card .uycx-play {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    width: 60px;
    height: 60px;

    margin: auto auto 12px;
    padding: 0;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.85);

    background: rgba(10,16,28,.92);
    color: #fff !important;

    transform: scale(.85);

    box-shadow:
        0 0 26px rgba(0,0,0,.40),
        inset 0 0 16px rgba(255,255,255,.04);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.uycx-card .uycx-play svg {
    display: block;

    width: 28px;
    height: 28px;

    margin-left: 3px;
}

/* ==================================================
   ჟანრისა და აღწერის კონტეინერი
   ================================================== */

.uycx-card .uycx-details {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;

    gap: 9px;

    width: 100%;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    transform: translateY(5px);

    transition: transform .25s ease;
}

/* ==================================================
   ჟანრი — მკვეთრი ოქროსფერი
   ================================================== */

.uycx-card .uycx-genre {
    display: block;
    flex-shrink: 0;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 8px 7px;

    border-radius: 8px;
    border: 1px solid rgba(255,210,26,.30);

    background: #080c15;
    color: #ffd21a !important;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-shadow: 0 1px 3px #000;

    box-shadow: 0 4px 12px rgba(0,0,0,.30);

    overflow-wrap: break-word;
}

.uycx-card .uycx-genre a {
    color: #ffd21a !important;
    text-decoration: none !important;
}

/* ==================================================
   მოკლე აღწერა
   ================================================== */

.uycx-card .uycx-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;

    min-height: 0;
    overflow: hidden;

    margin: 0;
    padding: 0 2px;

    color: #f1f5f9 !important;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.85);
}

/* ==================================================
   სათაურების საერთო ჩარჩო
   ================================================== */

.uycx-card .uycx-caption {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    gap: 4px;

    width: 100%;
    min-height: 58px;

    margin: 0;
    padding: 10px 9px;

    background: linear-gradient(
        145deg,
        #172133 0%,
        #101726 56%,
        #0d1420 100%
    );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;

    box-shadow:
        0 4px 12px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.035);

    overflow: hidden;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

/* ჩარჩოს ზედა განათება */

.uycx-card .uycx-caption::before {
    content: "";

    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(147,170,212,.36),
        transparent
    );

    pointer-events: none;
}

.uycx-card .uycx-caption::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.015);

    pointer-events: none;
}

/* ==================================================
   ქართული დასახელება
   ================================================== */

.uycx-card .uycx-title {
    display: block;
    width: 100%;

    margin: 0;
    padding: 0;

    color: #f7f9fd !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.34;

    text-align: center;
    text-decoration: none;

    overflow-wrap: anywhere;

    transition: color .25s ease;
}

/* ==================================================
   ორიგინალი დასახელება
   ================================================== */

.uycx-card .uycx-original {
    display: block;
    width: 100%;

    margin: 0;
    padding: 0;

    color: #a9b6ca !important;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;

    text-align: center;
    text-decoration: none;
    letter-spacing: .08px;

    overflow-wrap: anywhere;

    transition: color .25s ease;
}

/* ==================================================
   HOVER ეფექტები — კომპიუტერი
   ================================================== */

@media (hover: hover) and (pointer: fine) {

    .uycx-card:hover .uycx-poster {
        transform: translateY(-3px);

        border-color: rgba(255,210,26,.40);

        box-shadow:
            0 10px 26px rgba(0,0,0,.42),
            0 0 14px rgba(255,210,26,.06);
    }

    .uycx-card:hover .uycx-image {
        transform: scale(1.045);
    }

    .uycx-card:hover .uycx-overlay {
        opacity: 1;
    }

    .uycx-card:hover .uycx-play {
        transform: scale(1);

        background: #111827;
        border-color: rgba(255,255,255,.95);

        box-shadow:
            0 0 30px rgba(0,0,0,.45),
            inset 0 0 20px rgba(255,255,255,.05);
    }

    .uycx-card:hover .uycx-details {
        transform: translateY(0);
    }

    .uycx-card:hover .uycx-caption {
        transform: translateY(-1px);

        border-color: rgba(255,210,26,.30);

        background: linear-gradient(
            145deg,
            #1c2739 0%,
            #111827 58%,
            #0f1520 100%
        );

        box-shadow:
            0 6px 16px rgba(0,0,0,.22),
            inset 0 1px 0 rgba(255,255,255,.04);
    }

    .uycx-card:hover .uycx-caption::before {
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255,210,26,.56),
            transparent
        );
    }

    .uycx-card:hover .uycx-title {
        color: #ffd21a !important;
    }

    .uycx-card:hover .uycx-original {
        color: #e2e8f0 !important;
    }
}

/* ==================================================
   კლავიატურით ნავიგაცია
   ================================================== */

.uycx-card > .uycx-link:focus-visible {
    outline: 2px solid #ffd21a;
    outline-offset: 4px;
    border-radius: 16px;
}

.uycx-card .uycx-link:focus-visible .uycx-overlay {
    opacity: 1;
}

.uycx-card .uycx-link:focus-visible .uycx-play {
    transform: scale(1);
}

.uycx-card .uycx-link:focus-visible .uycx-details {
    transform: translateY(0);
}

/* ==================================================
   მობილური ვერსია
   ================================================== */

@media (max-width: 768px) {

    .uycx-card > .uycx-link {
        gap: 6px;
    }

    .uycx-card .uycx-poster {
        border-radius: 12px;
    }

    .uycx-card .uycx-year {
        top: 7px;
        right: 7px;

        padding: 4px 7px;

        font-size: 10px;
        border-radius: 7px;
    }

    .uycx-card .uycx-langs {
        left: 6px;
        right: 6px;
        bottom: 7px;

        gap: 3px;
    }

    .uycx-card .uycx-lang {
        min-width: 27px;
        padding: 4px 5px;

        font-size: 9px;
        border-radius: 6px;
        letter-spacing: 0;
    }

    .uycx-card .uycx-overlay {
        padding: 32px 7px 38px;
    }

    .uycx-card .uycx-play {
        width: 40px;
        height: 40px;

        margin-bottom: 7px;
    }

    .uycx-card .uycx-play svg {
        width: 20px;
        height: 20px;
    }

    .uycx-card .uycx-details {
        gap: 5px;
    }

    .uycx-card .uycx-genre {
        padding: 5px 4px;

        font-size: 10px;
        line-height: 1.35;

        border-radius: 6px;
    }

    .uycx-card .uycx-description {
        font-size: 10px;
        line-height: 1.4;

        -webkit-line-clamp: 3;
    }

    .uycx-card .uycx-caption {
        min-height: 48px;
        padding: 8px 6px;

        border-radius: 10px;
        gap: 3px;
    }

    .uycx-card .uycx-title {
        font-size: 13px;
        line-height: 1.32;
    }

    .uycx-card .uycx-original {
        font-size: 11px;
        line-height: 1.28;
    }
}

/* ==================================================
   ანიმაციების შემცირება
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .uycx-card,
    .uycx-card * {
        transition: none !important;
        animation: none !important;
    }
}    