/* RESET */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    background:#141414;
    color:#fff;
    font-family: Arial, sans-serif;
    overflow-x:hidden;
}

/* ================= HEADER ================= */

.header {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:70px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 40px;
    background:rgba(0,0,0,0.85);
    z-index:9999;
    backdrop-filter: blur(10px);
}

.logo {
    font-weight:bold;
    color:#f5c518;
    font-size:20px;
}

/* NAV */
.nav {
    display:flex;
    gap:20px;
}

.nav a {
    color:#fff;
    text-decoration:none;
    font-size:14px;
}

/* RIGHT */
.header-right {
    display:flex;
    align-items:center;
    gap:15px;
}

/* SEARCH */
.search {
    background:#222;
    border:none;
    padding:8px 15px;
    color:#fff;
    border-radius:5px;
}

/* LANGUAGE */
.lang-switch span {
    cursor:pointer;
    opacity:0.5;
    font-size:13px;
}

.lang-switch .active {
    opacity:1;
    color:#f5c518;
}

/* ================= HERO ================= */

.hero {
    display:flex;
    margin-top:70px; /* FIX */
    height:calc(100vh - 70px); /* FIX */
}

/* LEFT */
.hero-main {
    width:75%;
    position:relative;
    overflow:hidden;
}

.hero-slide {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1s ease;
}

.hero-slide.active {
    opacity:1;
    z-index:1;
}

/* OVERLAY */
.overlay {
    position:absolute;
    width:100%;
    height:100%;
    background:linear-gradient(to right, rgba(0,0,0,0.9), transparent);
}

/* TEXT */
.hero-info {
    position:absolute;
    left:60px;
    top:50%;
    transform:translateY(-50%);
    max-width:500px;
    z-index:2;
}

.index {
    font-size:60px;
    opacity:0.5;
    margin-bottom:10px;
}

.hero-info h1 {
    font-size:48px;
    margin-bottom:15px;
}

.hero-info p {
    color:#ccc;
    margin-bottom:20px;
}

/* BUTTONS */
.buttons a {
    display:inline-block;
    margin-right:10px;
    padding:12px 20px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
}

.watch {
    background:#f5c518;
    color:#000;
}

.trailer {
    background:#333;
    color:#fff;
}

/* RIGHT SIDE FIX */
.hero-side {
    width:25%;
    height:100%;
    padding:15px;
    display:grid;

    /* 2 სვეტი */
    grid-template-columns:1fr 1fr;

    /* 3 რიგი (ზუსტად როგორც სქრინში) */
    grid-template-rows:1fr 1fr 1fr;

    gap:12px;
    background:#0c0c0c;
}

.small-card {
    position:relative;
    width:100%;
    height:100%; /* ეს არის მთავარი FIX */
    border-radius:10px;
    overflow:hidden;
    cursor:pointer;
}

/* სურათი აღარ გაიწელება */
.small-card img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* QUALITY BADGE */
.badge-quality{
    position:absolute;
    top:6px;
    left:6px;
    background:#f5c518;
    color:#000;
    font-size:10px;
    padding:3px 6px;
    border-radius:4px;
    font-weight:bold;
}

.badge-age{
    position:absolute;
    top:6px;
    right:6px;
    background:#111;
    font-size:10px;
    padding:3px 6px;
    border-radius:4px;
}

/* ACTIVE */
.small-card.active {
    outline:3px solid #f5c518;
    transform:scale(1.03);
    z-index:2;
}

/* HOVER */
.small-card:hover{
    transform:scale(1.05);
}

/* ================= LOGIN FIX ================= */

.login-block {
    position:relative;
}

.login-trigger {
    display:flex;
    align-items:center;
    gap:10px;
}

.avatar {
    width:35px;
    height:35px;
    border-radius:50%;
}

/* DROPDOWN */
.login-dropdown {
    position:absolute;
    top:60px;
    right:0;
    background:#1c1c1c;
    border-radius:8px;
    padding:15px;
    width:220px;
    display:none;
    flex-direction:column;
    gap:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.5);
    z-index:99999; /* FIX */
}

.login-block:hover .login-dropdown {
    display:flex;
}

/* ================= ROWS ================= */

.row {
    padding:40px 60px;
}

.movie-row {
    display:flex;
    gap:15px;
    overflow-x:auto;
}

.movie-card {
    min-width:180px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .nav {
        display:none;
    }

    .hero {
        flex-direction:column;
        height:auto;
    }

    .hero-main {
        width:100%;
        height:400px;
    }

    .hero-side {
        width:100%;
        flex-direction:row;
        overflow-x:auto;
    }

    .hero-info {
        left:20px;
    }
}