@font-face {
    font-family: "BPGArial";
    src: url("/FiraGO-Regular.otf") format("opentype"); /* შეიცვალა opentype-ით */
    font-display: swap;
}

@font-face {
    font-family: "BPGBold";
    src: url("/bpg_nino_mtavruli_bold.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "BPGNormal";
    src: url("/bpg_nino_mtavruli_normal.ttf") format("truetype");
    font-display: swap;
}
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Georgian', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5; /* Light mode default */
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #0f0f0f !important;
    color: #e5e5e5 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo svg {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-geo {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.logo-eng {
    font-size: 18px;
    font-weight: 700;
    color: #006ff2;
    letter-spacing: -0.5px;
}

.logo-eng .net {
    color: #333;
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #006ff2;
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -50px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 25px;
    min-width: 800px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 30px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-column a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-column a:before {
    content: '›';
    font-size: 18px;
    color: #333;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease; /* დავამატე ფერის ტრანზიციაც */
    display: inline-block; /* აუცილებელია თრანსფორმისთვის */
}

.dropdown-column a {
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease; /* ტრანზიცია მთლიან ლინკზე */
    padding-left: 0; /* თავიდან იყოს 0 */
}

.dropdown-column a:hover {
    color: #006ff2;
    /* padding-left: 12px; <-- ეს წაშალე, ამის ნაცვლად ვიყენებთ transform-ს */
    transform: translateX(5px); /* მთლიანი ლინკი ნაზად გაიწევა მარჯვნივ */
}

.dropdown-column a:hover:before {
    transform: translateX(0); /* რადგან მთლიანი ლინკი იწევა, ბიფორი აღარ გვინდა ცალკე */
    color: #006ff2;
}

/* ===== RIGHT SIDE ACTIONS ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.btn-icon:hover {
    background-color: #006ff2;
    color: #fff;
}

.btn-icon svg {
    pointer-events: none;
}

/* ===== SEARCH CONTAINER (INLINE) ===== */
/* ===== SEARCH CONTAINER (INLINE) ===== */
.search-container {
    background-color: #1a1d23; /* შევცვალე მუქზე, რომ დიზაინს მოუხდეს */
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: visible; /* შევცვალე visible-ზე, რომ dropdown გამოჩნდეს! */
    opacity: 0;
    transition: all 0.3s ease;
    position: relative; 
    z-index: 90;
}

.search-container.active {
    max-height: 120px; /* ცოტა გავზარდეთ */
    opacity: 1;
    padding: 20px 0;
}

.search-bar-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #252830; /* ოდნავ ღია მუქი ფონი ინპუტისთვის */
    padding: 10px 20px;
    border-radius: 50px;
    max-width: 600px;
    margin: 0 auto;
    position: relative; /* აუცილებელია dropdown-ის პოზიციონირებისთვის */
}

.search-bar-inline svg {
    color: #999;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #fff; /* თეთრი ტექსტი */
    font-family: 'BPGArial';
    background-color: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-close {
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    flex-shrink: 0;
}

.search-close:hover {
    background-color: #e0e0e0;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-top: 8px;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid #252830;
    transition: 0.2s;
}

.search-item:hover {
    background: #252830;
}

.search-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.search-item-title {
    font-size: 15px;
    font-weight: 600;
        display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #006ff2;
    color: white;
    flex-shrink: 0;
}

.search-item-sub {
    font-size: 12px;
    color: #888;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.no-results {  /* ✅ ეს უნდა იყოს */
    padding: 20px;
    text-align: center;
    color: #fffefe !important; /* ✅ Light Mode */
}
/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 0;
    margin: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    background-color: transparent; /* ⬅️ გამჭვირვალე */
    overflow: hidden;
    min-height: 600px;
}
.carousel-container {
    position: relative;
    width: 100%;
    min-height: 600px;
}

/* თუ გინდა opacity დარეგულირო */
.slide-background {
    opacity: 0.15; /* wallpaper-ის გამჭვირვალობა */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* ✅ Background Image with Gradient */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    /* დავწიოთ ოფასითი კიდევ უფრო, რომ სურათი ძალიან ბნელი იყოს */
    opacity: 0.15; 
    z-index: 0;
    /* ფონი, რომელზეც სურათი დევს, აუცილებლად უნდა იყოს შავი */
    background-color: #000; 
}

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* გრადიენტი, რომელიც "ახრჩობს" სინათლეს ყველა მხრიდან */
    background: radial-gradient(circle, transparent 20%, #0f1115 100%),
                linear-gradient(to right, #0f1115 0%, transparent 20%, transparent 80%, #0f1115 100%),
                linear-gradient(to top, #0f1115 10%, transparent 90%);
}

.carousel-content {
    position: relative;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide-layout {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 50px;
    align-items: center;
    width: 100%;
}

/* Poster - მარცხნივ */
.slide-poster {
    flex-shrink: 0;
}

.slide-poster img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

/* Info - მარჯვნივ */
.slide-info {
    flex: 1;
    color: #fff;
    max-width: 700px;
}

/* ✅ 1. მთავარი სათაური */
.slide-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
    color: #fff;
    font-family: 'BPGArial', sans-serif;
}

/* ✅ 2. ორიგინალური სათაური (ლათინური) */
.slide-original-title {
    color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 25px;
    font-family: 'Arial', sans-serif;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year {
    color: #fff;
    font-weight: 600;
    background-color: rgba(255,255,255,0.15);
    padding: 6px 14px;
    font-family: 'BPGArial', sans-serif;
}

.imdb-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f5c518;
    font-family: 'Arial', sans-serif;
}

.duration {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'BPGArial', sans-serif;
}

/* ჟანრები */
.slide-genres {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.genre {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
    font-family: 'BPGArial', sans-serif;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.genre::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #006ff2;
    border-radius: 50%;
    flex-shrink: 0;
}

.genre:hover {
    color: #006ff2;
}

.slide-description {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    font-family: 'BPGArial', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* აქ წერია რამდენი ხაზი გინდა გამოჩნდეს */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* ეს დაამატებს ... ბოლოში */
    cursor: default !important;
pointer-events: none !important;
}

/* ✅ 3. ღილაკები - text-decoration: none */
.slide-buttons {
    display: flex;
    gap: 15px;
}

.btn-play,
.btn-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important; /* ✅ ხაზის წაშლა */
    font-family: 'BPGArial', sans-serif;
}

.btn-play {
    background-color: #006ff2;
    color: #fff;
}

.btn-play:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-info {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-info:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-play svg,
.btn-info svg {
    flex-shrink: 0;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background-color: rgba(0,111,242,0.9);
    transform: translateY(-50%) scale(1.15);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
    outline: none;
    padding: 0;
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.dot:active {
    transform: scale(0.9);
}

.dot:focus {
    outline: none;
    border: none;
}

.dot.active {
    background-color: #006ff2;
    width: 32px;
    border-radius: 6px;
}


/* ===== MOVIES SECTION ===== */
.movies-section {
    padding: 20px 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title svg {
    color: #006ff2;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'BPGArial';
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* დაშორება ტექსტსა და ისარს შორის */
    background: rgba(255, 255, 255, 0.05); /* ოდნავ შესამჩნევი ფონი */
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* ფონტები და ფერი */
    color: #a0a0a0 !important; 
    font-size: 14px;
    font-weight: 500;
    font-family: 'BPGArial', sans-serif;
    text-decoration: none;
    
    transition: all 0.3s ease;
    cursor: pointer;
}

/* მაუსის მიტანისას (Hover) ეფექტი */
.view-all:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #006ff2 !important;
    border-color: rgba(0, 111, 242, 0.3);
}

.view-all svg {
    transition: transform 0.3s ease;
}

.view-all:hover svg {
    transform: translateX(4px);
}

.movies-grid {
    display: grid;
    /* auto-fill-ის ნაცვლად ვწერთ ზუსტად 6-ს დესკტოპისთვის */
    grid-template-columns: repeat(6, 1fr); 
    /* gap განსაზღვრავს დაშორებას ბარათებს შორის */
    gap: 20px; 
    width: 100%;
    /* justify-content აღარ გვჭირდება, რადგან 1fr ბარათებს ბოლომდე გაშლის */
}

/* Movie Card */
.movie-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
    width: 100%;
    min-width: 0; /* Prevents flex/grid overflow */
}

.movie-card:hover {
    transform: translateY(-8px);
    z-index: 200;
}
.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

/* Overlay */
.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.movie-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    transform: scale(1.1) !important;
}

/* IMDB Badge */
.imdb-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0,0,0,0.85);
    padding: 6px 12px;
    border-radius: 4px;
}

.imdb-badge svg {
    width: 40px;
    height: 18px;
}

.imdb-badge span {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

/* ან თუ უფრო მსგავსი გინდა */
.imdb-badge-alt {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5c518;
    padding: 4px 10px;
    border-radius: 3px;
}

.imdb-badge-alt .imdb-logo {
    font-weight: 700;
    font-size: 13px;
    color: #000;
    font-family: 'Arial Black', sans-serif;
}

.imdb-badge-alt .imdb-rating {
    font-weight: 700;
    font-size: 15px;
    color: #000;
    font-family: 'Arial', sans-serif;
}

/* Movie Info */
.movie-info {
    padding: 12px 4px 0;
}

.movie-title {
    font-size: 15px;
    font-weight: 600;
    color: inherit !important; 
    
    /* 1. შევამცირეთ დაშორება ქვედა ტექსტამდე */
    margin-bottom: 0px !important; 
    margin-top: 0px !important;

    font-family: 'BPGArial';
    line-height: 1.2; 
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 2. სიმაღლე გავხადეთ ავტომატური, რომ მოკლე სახელმა ადგილი არ დაიკავოს */
    height: auto !important; 
    /* 3. მაქსიმალური სიმაღლე, რომ 2 ხაზს არ გასცდეს */
    max-height: 38px !important; 
    cursor: default !important;
pointer-events: none !important;
}
.movie-original {
    font-size: 13px;
    color: #999;
    font-family: 'Arial', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: default !important;
pointer-events: none !important;
}

.s-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(0, 111, 242, 0.1); /* მსუბუქი ლურჯი ფონი */
    color: #006ff2 !important; /* მთავარი ლურჯი ფერი */
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.s-view-all:hover {
    background-color: #006ff2;
    color: #ffffff !important;
    transform: translateX(5px); /* ოდნავ მარჯვნივ გაიწევა ჰოვერზე */
}

/* ისარი ღილაკში (თუ გაქვს <i> ან <span>) */
.s-view-all i {
    font-size: 12px;
}

.desc-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    font-family: 'BPGNormal';
}

.desc-header {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}
.desc-original {
    font-size: 14px;
    color: #999;
    font-family: 'BPGArial';
    margin-bottom: 15px;
}

.desc-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.desc-director,
.desc-year {
    font-size: 15px;
    color: #000;
    font-family: 'BPGArial';
}

.desc-director {
    font-weight: 500;
}

.desc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.desc-rating span {
    font-size: 13px;
    font-weight: 700;
    color: #f5c518;
    font-family: 'BPGArial';
}

.desc-quality {
    border-top: 1px solid rgba(88, 88, 88, 0.1);
    padding-top: 15px;
    display: flex !important; /* შევცვალოთ flex-ით უკეთესი კონტროლისთვის */
    flex-direction: column !important; /* ელემენტები ჩალაგდეს ერთმანეთის ქვეშ */
    align-items: flex-start !important; /* აიძულებს ყველაფერს მარცხნიდან დაწყებას */
    justify-content: flex-start !important; /* აიძულებს ყველაფერს მარცხნიდან დაწყებას */
    text-align: left !important;
    width: 100%;
}

.quality-text {
    display: block !important;
    background-color: #f4f4f4 !important; /* ნაცრისფერი ფონი */
    color: #444 !important;
    padding: 12px !important; /* თანაბარი დაშორება ყველა მხრიდან */
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    font-family: 'BPGArial';
    width: 100% !important;
    margin-top: 10px !important;
    margin-left: 0 !important; /* გარანტია, რომ მარჯვნივ არ გაიწევა */
    border: none !important; /* ბორდერის მოცილება */
    box-sizing: border-box !important;
}


/* ===== ACTORS SECTION ===== */
.actors-section {
    padding: 50px 0;
    background-color: #1a1a1a;
}

.actors-section .section-title svg {
    color: #006ff2;
}

.actors-section .section-title h2 {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    font-family: 'BPGArial';
}

.actors-section .view-all {
    color: #006ff2;
}


.actor-card:hover {
    transform: translateY(-8px);
}

.actor-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: #2d2d2d;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.actor-card:hover .actor-image {
    border-color: #006ff2;
}

.actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.actor-card:hover .actor-image img {
    transform: scale(1.1);
}

/* Actor Overlay */
.actor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actor-card:hover .actor-overlay {
    opacity: 1;
}

.actor-info-overlay {
    text-align: center;
}

.actor-films {
    font-size: 13px;
    font-weight: 600;
    color: #006ff2;
    margin: 0;
    font-family: 'BPGNormal';
}

/* Actor Info */
.actor-info {
    padding: 15px 8px 0;
    text-align: center;
}

.actor-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'BPGArial';
    line-height: 1.3;
}

.actor-original {
    font-size: 13px;
    color: #999;
    font-family: 'BPGArial';
}

/* მსახიობები */

/* Actors Grid - დესკტოპზე ერთი ხაზი */
.actors-grid {
    display: flex !important; /* Grid-ის ნაცვლად Flex, რომ ერთ ხაზზე გაიჭიმოს */
    flex-wrap: nowrap !important; /* არ გადავიდეს მეორე ხაზზე */
    justify-content: space-between !important;
    gap: 15px !important;
    padding: 10px 0 !important;
    overflow: hidden; /* ზედმეტი მსახიობი რომ არ გამოჩნდეს გვერდზე */
}

/* მსახიობის ბარათის ზომა */
.actor-card {
    flex: 0 0 calc(11.11% - 15px); /* 9 მსახიობი რომ ჩაეტიოს იდეალურად */
    min-width: 100px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* რესპონსივი მობილურისთვის */
@media (max-width: 768px) {
    .actors-grid {
        display: grid !important; /* მობილურზე ისევ Grid-ი გვინდა */
        grid-template-columns: repeat(2, 1fr) !important; /* 2 მსახიობი გვერდიგვერდ */
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    /* შენს EJS-ში დამატებული კლასის დახმარებით ვმალავთ მე-4-ის შემდეგ ყველას */
    .mobile-hide {
        display: none !important;
    }
    
    .actor-card {
        width: 100% !important;
    }
}

/* მსახიობების გრიდის გასწორება */
.actors-grid {
    display: grid !important;
    /* ეს ხაზი ავტომატურად ჩასვამს მსახიობებს 140px-დან 1fr-მდე ზომაში */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 20px !important;
    padding: 10px 0 !important;
}

@media (max-width: 480px) {
    .actors-grid {
        /* ძალიან პატარა ტელეფონებზე რომ 3 არ ჩაიჭედოს */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
    }
}

/* ყველაზე მთავარი: რომ მსახიობი მრგვალი დარჩეს! */
.actor-image {
    width: 100% !important;
    height: auto !important; /* წაშალე ფიქსირებული 140px */
    aspect-ratio: 1 / 1 !important; /* აიძულე იყოს კვადრატი */
    border-radius: 50% !important; /* გახადე წრე */
}

/* ===== COLLECTIONS SECTION ===== */
.collections-section {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.collections-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.collections-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collections-section .section-title svg {
    color: #006ff2;
}

.collections-section .section-title h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'BPGArial';
}

/* Collection Navigation Arrows */
.collection-arrows {
    display: flex;
    gap: 10px;
}

.collection-arrow {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.collection-arrow:hover {
    background-color: #d0d0d0;
}

/* Collections Wrapper */
.collections-wrapper {
    overflow: hidden;
    position: relative;
}

/* Collections Slider */
.collections-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Collection Card */
.collection-card {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
    cursor: pointer;
    background-color: #fff;
}

.collection-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Collection Overlay */
.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-play-btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Collection Info */
.collection-info {
    padding: 15px;
    background-color: #fff;
}

.collection-title {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-family: 'BPGArial';
}

.collection-subtitle {
    font-size: 13px;
    color: #999;
    font-family: 'BPGArial';
    margin: 0;
}

/* კოლექციების რესპონსივი */
@media (max-width: 1200px) {
    .collection-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .collection-card {
        min-width: unset !important; /* ვაუქმებთ ძველ გაწელვას */
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* მობილურზეც 2 სვეტი */
        gap: 10px !important;
    }

    .collection-info h3 {
        font-size: 14px !important; /* ტექსტის ზომის დაპატარავება */
    }

    .collection-arrows {
        display: none !important;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    position: relative;
}

/* Top Border Line */
.footer-top-border {
    height: 1px;
    background-color: #333;
    width: 100%;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-link {
    text-decoration: none;
    color: #ccc;
    font-size: 15px;
    font-weight: 400;
    font-family: 'BPGArial';
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #006ff2;
}

/* Scroll to Top Button */
.scroll-top-btn {
    width: 40px;
    height: 40px;
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #006ff2;
    border-color: #006ff2;
    color: #fff;
}

/* Middle Border Line */
.footer-middle-border {
    height: 1px;
    background-color: #333;
    width: 100%;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
}

/* Copyright */
.footer-copyright p {
    font-size: 14px;
    color: #999;
    font-family: 'BPGArial';
    margin: 0;
}

/* Developer Credit */
.footer-credit p {
    font-size: 14px;
    color: #999;
    font-family: 'BPGBold';
    margin: 0;
}

.credit-name {
    color: #006ff2;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* ===== FULLSTORY PAGE STYLES ===== */

/* Main Fullstory Layout */
.fullstory-main {
    background-color: #f5f5f5;
    padding: 0;
}

/* ===== VIDEO PLAYER SECTION ===== */
.video-player-section {
    background-color: #000;
    padding: 0;
}

.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    overflow: hidden;
}

.video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}

.big-play-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.big-play-btn:hover {
    transform: scale(1.1);
}

/* ===== MOVIE DETAILS SECTION ===== */
/* === MOVIE DETAILS SECTION === */
.movie-details-section {
    padding: 40px 0;
    background-color: #fff;
    /* დაამატე ეს ხაზი, რომ ფლეიერისგან დაიხიოს */
    margin-top: 20px; 
    position: relative;
    z-index: 1;
}

/* === LAYOUT === */
.details-layout {
    display: grid; /* დარწმუნდი რომ ეს გიწერია */
    grid-template-columns: 300px 1fr; /* დესკტოპზე დააბრუნე გვერდითა განლაგება */
    gap: 30px;
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-poster img {
    width: 100%;
    display: block;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: 'BPGBold';
    transition: all 0.3s ease;
}

.movie-title-original {
    font-size: 18px;
    font-weight: 400;
    color: #999;
    font-family: 'BPGArial', sans-serif;
    margin: 0 0 5px 0;
}

.action-btn.primary {
    background-color: hsl(0, 100%, 38%);
    color: #fff;
}

.action-btn.primary:hover {
    background-color: #cc0000;
}

.action-btn.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.action-btn.secondary:hover {
    background-color: #e0e0e0;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: #666;
    font-family: 'BPGArial';
}

.info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-family: 'BPGArial';
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Movie Info List (Below Description) */
.movie-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.info-row {
    display: flex;
    gap: 10px;
}

.info-row .info-label {
    font-size: 14px;
    color: #666;
    font-family: 'BPGNormal';
    font-weight: 600;
    min-width: 100px;
}

.info-row .info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-family: 'BPGArial';
}

/* Trailer Player */
.trailer-player {
    margin-top: 20px;
}

.trailer-player iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Main Details */
.details-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-title {
    font-size: 18px;
    font-weight: 550;
    color: #1a1a1a;
    font-family: 'BPGArial';
    margin: 0;
}
.details-main .movie-title {
    font-size: 35px !important;
    font-family: 'BPGNormal';
    font-weight: bold;
}
.movie-meta-row {
    display: flex;
    align-items: stretch; /* აიძულებს ყველას ერთი სიმაღლე ჰქონდეს */
    gap: 10px; /* 20px მობილურზე ძალიან ბევრია, 10px ჯობია */
    flex-wrap: wrap;
    margin-bottom: 15px;
}


/* Tabs */
.content-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    font-family: 'BPGArial';
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #006ff2;
    border-bottom-color: #006ff2;
}

.tab:hover:not(.active) {
    color: #333;
}

/* Description */
.movie-description {
    margin-top: 20px;
}

.movie-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'BPGArial';
    margin-bottom: 12px;
}

.movie-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    font-family: 'BPGArial';
}



/* ===== SIMILAR MOVIES UNIQUE STYLES - REFINED ===== */

.similar-movies-section {
    padding: 50px 0;
    background-color: #e6e6e6 !important; /* ღია ფონი light mode-სთვის */
    transition: background-color 0.3s ease;
}

.s-header {
    display: flex !important;
    flex-direction: row !important; /* აიძულებს ერთ ხაზზე ყოფნას */
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* არავითარ შემთხვევაში არ გადავა მეორე ხაზზე */
    margin-bottom: 20px !important;
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.s-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0; /* ეხმარება ტექსტის შეკუმშვას თუ ადგილი არ არის */
}

/* 6-სვეტიანი გრიდი, რომელიც ავსებს სივრცეს */
.s-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px !important;
    width: 100%;
}

.s-card {
    position: relative;
    width: 100%;
    text-decoration: none !important; /* ხაზგასმის მოშორება */
    display: block;
    transition: transform 0.3s ease;
}

.s-card:hover {
    transform: translateY(-8px);
}

.s-poster-box {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3; /* მკაცრი პროპორცია */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.s-poster-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.s-card:hover .s-poster-box img {
    transform: scale(1.1);
    opacity: 0.7;
}

/* ✅ ცენტრირებული Overlay */
.s-overlay {
    position: absolute;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.s-card:hover .s-overlay {
    opacity: 1;
}

.s-play-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.s-card:hover .s-play-btn {
    transform: scale(1.1); /* ოდნავ მეტი ზუმი ჰოვერზე */
}

.s-imdb {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #f5c518;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 11;
}

/* ტექსტების სტილი და ფერები */
.s-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 2px;
    color: #1a1a1a;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1000px) { .s-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .s-grid { grid-template-columns: repeat(2, 1fr); } }


/* Responsive */
@media (max-width: 992px) {
    .details-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-poster {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .info-blocks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .movie-title {
        font-size: 24px;
    }
    
    .movie-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* სექციის კონტეინერი */
.similar-movies-section {
    width: 100%;
    padding: 40px 0;
    clear: both; /* უზრუნველყოფს, რომ წინა სექციებმა ხელი არ შეუშალონ */
}

/* გრიდის გასწორება */
.similar-movies-grid {
    display: grid !important; /* აიძულებს grid-ის გამოყენებას */
    /* თუ ეკრანი პატარაა, ბარათის მინიმალური ზომა იქნება 160px */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.similar-movie-card {
    background: transparent; /* მოვაშოროთ თეთრი ფონი, თუ საიტის დიზაინი მუქია */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none; /* რომ ლინკმა ტექსტის ფერი არ შეცვალოს */
}

.similar-movie-card:hover {
    transform: translateY(-8px);
}

.similar-movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3; /* padding-top: 150%-ის ნაცვლად უფრო თანამედროვეა */
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

.similar-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ტექსტების გასწორება */
.similar-movie-info {
    padding: 12px 5px;
    text-align: left;
}

.similar-movie-title {
    font-size: 15px;
    font-weight: 600;
    color: #333; /* ან თეთრი, თუ მუქი თემა გაქვს */
    margin-bottom: 4px;
    line-height: 1.3;
}

.similar-movie-original {
    font-size: 12px;
    color: #888;
}
/* Responsive - Similar Movies Grid */
@media (max-width: 1200px) {
    .similar-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .similar-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.collections-slider {
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.collections-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}


/* ეფექტი გადატარებისას */
.view-all:hover {
    background: rgba(0, 111, 242, 0.1);
    border-color: rgba(0, 111, 242, 0.3);
    color: #006ff2 !important;
}

/* რიცხვის გამოყოფა (თუ გინდა რომ ციფრი უფრო მკვეთრი იყოს) */
.view-all strong {
    color: #fff;
    margin: 0 4px;
}


.slide-title {
    /* clamp(მინიმალური, ოპტიმალური, მაქსიმალური) */
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    font-family: 'BPGNormal';
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* უკეთესი კითხვადობისთვის */
    max-width: 800px; /* რომ ძალიან გრძელი სათაური არ გაიწელოს */
}

/* ორიგინალური სათაურის ზომის დასტაბილურება */
.slide-original-title {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* იკონების სტილი */
.icon-circle svg {
    transition: transform 0.3s ease;
    stroke: #ffffff; /* იკონის ხაზის ფერი */
}

.contact-card-item:hover .icon-circle svg {
    transform: scale(1.1) rotate(5deg);
}

/* თუ საიტზე Dark mode-ს იყენებ, დარწმუნდი რომ ფერები ცვლადებითაა */
.contact-card-item h3 {
    margin-top: 15px;
    font-size: 1.4rem;
    color: var(--contact-text);
}

/* --- კონტაქტის გვერდის სტილები --- */

/* ცვლადები ფერებისთვის */
:root {
    --contact-bg: #ffffff;
    --contact-text: #222222;
    --contact-subtext: #666666;
    --contact-border: #e0e0e0;
    --card-hover-bg: rgba(0, 111, 242, 0.05);
}


.contact-wrapper {
    padding: 120px 0 80px; /* ზედა padding გავზარდოთ header-ის გამო */
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: transparent;
}

.contact-box {
    background: var(--body-bg, #ffffff); 
    color: var(--main-text, #222);
    border: 1px solid var(--border-color, #eee);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 900px; /* ⬅️ ეს დავამატეთ - რომ ძალიან არ გაიჭიმოს */
    margin: 0 auto; /* ⬅️ ცენტრში მოვათავსოთ */
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 2.8rem;
    color: var(--main-text, #222); /* ⬅️ შევცვალეთ */
    margin-bottom: 15px;
    font-weight: 800;
}

.contact-header p {
    color: var(--secondary-text, #666); /* ⬅️ შევცვალეთ */
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* გრიდი ბარათებისთვის - ⬅️ ეს არის მთავარი! */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ⬅️ ზუსტად 2 სვეტი დესკტოპზე */
    gap: 30px;
    max-width: 700px; /* ⬅️ დავამატეთ */
    margin: 0 auto; /* ⬅️ ცენტრში */
}

.contact-card-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--border-color, #eee); /* ⬅️ შევცვალეთ */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card-item:hover {
    transform: translateY(-12px);
    background: var(--card-hover-bg, rgba(0, 111, 242, 0.05)); /* ⬅️ fallback */
    border-color: #006ff2;
    box-shadow: 0 10px 30px rgba(0, 111, 242, 0.2); /* ⬅️ დავამატეთ */
}

/* აიქონი */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #006ff2, #0056d2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.contact-card-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* სათაური და ტექსტი */
.contact-card-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-text, #222);
    margin-bottom: 8px;
}

.contact-card-item p {
    font-size: 0.95rem;
    color: var(--secondary-text, #666);
    margin-bottom: 15px;
}

.contact-link {
    color: #006ff2;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #0056d2;
    text-decoration: underline;
}

/* ⬅️ Responsive - Mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* ⬅️ მობილზე 1 სვეტი */
        gap: 20px;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-box {
        padding: 40px 20px;
    }
}

/* Scrollbar - Force Square Corners */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #006ff2;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #0088ff;
}

/* Scrollbar Buttons (ზედა/ქვედა ისრები) */
::-webkit-scrollbar-button {
    display: none; /* ⬅️ ამოშლის ისრებს თავსა და ბოლოში */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #006ff2 transparent;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #006ff2 transparent;
}

body {
    scrollbar-width: thin;
    scrollbar-color: #006ff2 transparent;
}

/* იკონების წრე */
.icon-circle {
    width: 70px;
    height: 70px;
    background: #006ff2;
    border-radius: 20px; /* ოდნავ მომრგვალებული კვადრატი უფრო თანამედროვეა */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 111, 242, 0.3);
}

.icon-circle svg {
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

.contact-card-item:hover .icon-circle svg {
    transform: scale(1.1) rotate(10deg);
}

.contact-card-item h3 {
    color: var(--contact-text);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.contact-card-item p {
    color: var(--contact-subtext);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-card-item a {
    color: #006ff2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

/* ლინკის ხაზის ეფექტი */
.contact-card-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #006ff2;
    transition: width 0.3s ease;
}

.contact-card-item a:hover::after {
    width: 100%;
}

/* მობილური ვერსია */
@media (max-width: 768px) {
    .contact-box {
        padding: 40px 20px;
    }
    .contact-header h1 {
        font-size: 2rem;
    }
}

/* --- სრულიად ახალი და დამოუკიდებელი სტილი --- */
.custom-page-wrapper {
    padding: 50px 0;
    min-height: 100vh;
}

.custom-page-title {
    text-align: center;
    margin-bottom: 40px;
}

.custom-page-title h1 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 8px;
}

body.dark-mode .custom-page-title h1 { color: #fff; }

.title-underline {
    width: 60px;
    height: 3px;
    background: #006ff2;
    margin: 0 auto;
}

/* გრიდი რომელიც არ იშლება */
.custom-actors-grid {
    display: grid;
    /* დესკტოპზე 5 სვეტი */
    grid-template-columns: repeat(5, 1fr); 
    gap: 25px;
}

.custom-actor-card {
    text-decoration: none !important; /* ხაზის მოცილება */
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: block;
}

body.dark-mode .custom-actor-card {
    background: #1a1a1a;
    border: 1px solid #262626;
}

.custom-actor-img {
    position: relative;
    aspect-ratio: 2/3;
}

.custom-actor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-count-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #006ff2;
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.custom-actor-info {
    padding: 15px;
    text-align: center;
}

.custom-actor-info h3 {
    font-size: 1rem;
    margin: 0;
    color: #222;
    text-decoration: none !important;
}



.custom-actor-info p {
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* --- რესპონსივი --- */

/* პლანშეტზე - 3 სვეტი */
@media (max-width: 1024px) {
    .custom-actors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* მობილურზე - 2 სვეტი */
@media (max-width: 768px) {
    .custom-actors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .custom-page-title h1 { font-size: 1.8rem; }
}

/* პატარა ეკრანზე - მაინც 2 სვეტი (რომ არ გაიწელოს) */
@media (max-width: 480px) {
    .custom-actors-grid {
        gap: 10px;
    }
}

.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

#load-more-btn {
    background: #006ff2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#load-more-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

body.dark-mode #load-more-btn {
    box-shadow: 0 4px 15px rgba(0, 111, 242, 0.3);
}

/* კონტეინერის დაშორებები */
.load-more-wrapper {
    text-align: center;
    margin: 40px 0 60px 0; /* ზედა და ქვედა დაშორება */
    padding: 0 20px; /* გვერდითა დაშორება მობილურისთვის */
}

/* თავად ღილაკის რესპონსივი */
#load-more-btn {
    background: #006ff2;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto; /* დესკტოპზე ზომას ტექსტის მიხედვით იღებს */
    min-width: 200px;
}

/* მობილური ვერსია (768px-ზე დაბლა) */
@media (max-width: 768px) {
    .load-more-wrapper {
        margin: 30px 0 40px 0;
    }

    #load-more-btn {
        width: 100%; /* მობილურზე ღილაკი იწელება მთელ სიგანეზე */
        max-width: 300px; /* რომ ძალიან არ გაიწელოს დიდ ტელეფონებზე */
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ეფექტი დაჭერისას (Active state) */
#load-more-btn:active {
    transform: scale(0.95);
}


/* ჩვეულებრივი მდგომარეობა (Light Mode) */
.custom-actor-info h3 {
    color: #222; /* შენი საწყისი ფერი */
    transition: color 0.3s ease; /* რბილი გადასვლისთვის */
}

/* ჰოვერი Light Mode-ისთვის */
.custom-actor-info h3:hover {
    color: #006ff2 !important; /* ლურჯი ფერი მაუსის მიტანისას */
    cursor: pointer;
}


.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* IMDb მთავარი კონტეინერი */
.imdb-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6); /* ოდნავ მუქი ფონი უკეთესი კითხვადობისთვის */
    padding: 4px 6px;
    z-index: 2;
}

/* IMDb ლოგოს ჩარჩო */
.imdb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff; /* თეთრი ჩარჩო */
    padding: 2px 4px;
    height: 18px;
}

.imdb-logo svg {
    height: 12px; /* ლოგოს ზომა ჩარჩოს შიგნით */
    width: auto;
}

/* IMDb ქულა */
.imdb-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ბარათის ინფორმაცია */
.movie-info {
    padding: 12px 0;
}

.movie-info h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.movie-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #94a3b8;
}

/* ლინკის გასუფთავება */
.custom-movie-card a {
    text-decoration: none !important;
}


/* --- ფერების სისტემა (ავტომატური Light/Dark) --- */
:root {
    /* Light Mode */
    --bg-body: #ffffff;
    --bg-section: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --border: #e5e7eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode */
        --bg-body: #0f172a;
        --bg-section: #1e293b;
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --accent: #38bdf8;
        --border: rgba(255, 255, 255, 0.1);
        --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }
}

/* --- ACTOR PAGE SPECIFIC (PROTECTED SCOPE) --- */

/* მთავარი ვრაპერი და ფონი */
.actor-profile-wrapper {
    background-color: #ffffff;
    color: #111827;
    padding: 40px 0;
    min-height: 100vh;
    font-family: 'BPGArial';
}

/* ბიოგრაფიის ბლოკი */
.actor-header-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 35px;
    margin-bottom: 50px;
}

.actor-layout-flex {
    display: flex;
    gap: 40px;
}

.actor-main-img img {
    width: 260px;
    height: 380px;
    object-fit: cover;
    border: 1px solid #eee;
}

.actor-title-name { font-size: 32px; font-weight: 800; margin: 0; }
.actor-sub-name { color: #2563eb; font-size: 18px; margin: 5px 0 20px; }

.actor-meta-info { padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.actor-meta-info p span { color: #6b7280; font-weight: 600; margin-right: 5px; }

/* გრიდის განლაგება */
.actor-custom-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 20px;
}

.actor-movie-card {
    transition: transform 0.3s ease;
}

.actor-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* პოსტერის კონტეინერი */
.actor-poster-box {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #000;
}

.actor-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* შავი ფენა და Play ღილაკი */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* ჩაშავების სიმუქრე */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* თავიდან დამალულია */
    transition: opacity 0.3s ease;
    z-index: 2;
}

.play-icon-circle {
    width: 55px;
    height: 55px;
    background: #006ff2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.5); /* თავიდან პატარაა */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0, 111, 242, 0.5);
}

.play-icon-circle svg {
    fill: white;
    margin-left: 3px;
}

/* Hover ეფექტები */
.actor-card-link:hover .poster-overlay {
    opacity: 1;
}

.actor-card-link:hover .play-icon-circle {
    transform: scale(1); /* ღილაკი დიდდება ჰოვერზე */
}

.actor-card-link:hover .actor-poster-box img {
    transform: scale(1.1); /* სურათი დიდდება */
    opacity: 0.7;
}

.actor-card-link:hover .actor-card-info h3 {
    color: #006ff2; /* სათაური ლურჯდება */
}

/* IMDb ბეიჯი (რომ ჰოვერმა არ გადაფაროს) */
.actor-imdb-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
}

.actor-imdb-logo {
    background: #f5c518;
    color: #000 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 1px 4px;
    border-radius: 2px;
}

.actor-imdb-score {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* ტექსტური ინფორმაცია */
.actor-card-info h3 {
    font-size: 15px;
    margin: 12px 0 4px;
    font-weight: 600;
    transition: color 0.3s ease;
    /* ტექსტის შემოკლება თუ გრძელია */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actor-card-info p {
    font-size: 13px;
    color: #9ca3af;
}

/* --- DARK MODE SUPPORT --- */
body.dark-mode .actor-profile-wrapper { background-color: #0f172a !important; color: #f1f5f9; }
body.dark-mode .actor-header-block { background: #1e293b; border-color: rgba(255,255,255,0.1); }
body.dark-mode .actor-film-title h2 { color: #fff !important; }
body.dark-mode .actor-card-info p { color: #94a3b8; }

/* --- CATEGORY GRID: NO-GAP FILL LAYOUT --- */

.category-movies-layout {
    display: grid !important;
    /* 6 სვეტი, რომლებიც ყოველთვის ავსებენ 100%-ს */
    grid-template-columns: repeat(6, 1fr) !important;
    /* მინიმალური დაშორება, რომ ერთმანეთს არ გადაებან (შეგიძლია 10px-მდე დაწიო) */
    gap: 15px !important; 
    padding: 20px 0;
    width: 100%;
}

.category-movie-item {
    width: 100%; /* ბარათი იკავებს სვეტის მთელ სიგანეს */
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* პოსტერის ვრაპერი - აქ ხდება "ზუმი" და შევსება */
.category-poster-wrapper {
    position: relative;
    width: 100%; /* ავსებს სვეტს */
    aspect-ratio: 2 / 3; /* მკაცრი პროპორცია */
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.category-poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* სურათი ავსებს მთელ კონტეინერს "ზუმით" */
    display: block;
    transition: transform 0.4s ease;
}

/* --- HOVER ეფექტი --- */
.category-movie-item:hover .category-poster-wrapper img {
    transform: scale(1.1); /* მაუსის მიტანისას კიდევ უფრო ზუმდება */
    opacity: 0.7;
}

.category-play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.category-movie-item:hover .category-play-overlay {
    opacity: 1;
}

/* ფლეი ღილაკი */
.category-play-overlay svg {
    width: 60px;
    height: 60px;
}

/* ტექსტების გასწორება */
.category-item-info {
    padding-top: 10px;
    text-decoration: none !important;
}

.category-item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-decoration: none !important;
    color: inherit;
    /* გრძელი სათაურის შემოკლება */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ხაზგასმების საბოლოო მოშორება */
.category-movie-item, 
.category-movie-item *, 
.category-movie-item:hover, 
.category-movie-item:active {
    text-decoration: none !important;
    outline: none !important;
}

.category-item-info {
    padding-top: 12px;
}

.category-item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a; /* ღია მოუდზე მუქი სახელი */
    text-decoration: none !important;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-movie-item:hover .category-item-info h3 {
    color: #006ff2; /* ჰოვერზე ლურჯი აქცენტი */
}

.category-item-info p {
    font-size: 13px;
    color: #666; /* მეორადი ტექსტი */
    margin-top: 4px;
    text-decoration: none !important;
}

.action-btn.secondary.saved {
    background-color: #ffd700 !important; /* ოქროსფერი ან სხვა ფერი */
    color: #000 !important;
}

/* რომ ღილაკები კარგად იჯდეს გვერდიგვერდ მობილურზე */
.sidebar-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1; /* თანაბარი ზომის ღილაკები */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}





.modal-overlay {
    display: none; /* დამალავს ელემენტს და მის ადგილს გაათავისუფლებს */
    position: fixed; /* ამოაგდებს საერთო სტრუქტურიდან და დასვამს ეკრანის თავზე */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999; /* ყველაფერზე მაღლა რომ იყოს */
    align-items: center;
    justify-content: center;
}

.modal-window {
    background: #1a1a1a; /* მუქი დიზაინი, როგორც საიტს უხდება */
    color: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-family: 'BPGArial';
}

.modal-body p {
    padding: 8px;
}

.submit-report-btn {
    width: 100%;
    background: #e31e24; /* წითელი, როგორც შენი ღილაკი */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-family: 'BPGArial';
}

.submit-report-btn:hover { background: #b3161b; }

.close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

.vote-main-container.mini-version {
    display: flex;
    background: #f8f9fa; /* ღია ფონი */
    overflow: hidden;
    border: 1px solid #eee;
}

.mini-version .vote-btn {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.mini-version .count-value {
    font-weight: 700;
    font-size: 14px;
}

.mini-version .vote-btn.like:hover { color: #27ae60; background: #ebf9f0; }
.mini-version .vote-btn.dislike:hover { color: #e74c3c; background: #fdf2f1; }
/* აქტიური ფერები */
.vote-btn.like:hover, .vote-btn.like.active { color: #2ecc71 !important; opacity: 1; }
.vote-btn.dislike:hover, .vote-btn.dislike.active { color: #e74c3c !important; opacity: 1; }

/* --- TOAST (შეტყობინება) --- */
#toast-msg {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3436;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    z-index: 999999;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-weight: 600;
    font-family: 'BPGArial';
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* მეტა რიგის საერთო სტილი */
.movie-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* ===== DESCRIPTION POPUP - საბოლოო შესწორება ===== */
.movie-description-popup {
    position: absolute;
    top: 0;
    left: calc(100% + 15px);
    width: 320px;
    /* სიმაღლე ავტომატური, რომ ყველაფერი დაეტიოს */
    height: auto; 
    min-height: 200px;
    background: #ffffff; /* აქ ჩაწერე შენი პოპაპის ფერის კოდი */
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease-out;
     z-index: 10000 !important; /* ⬅️ ეს მთავარია! */
    pointer-events: none;
    border-radius: 4px;
    text-align: left !important;
    overflow: visible; /* რომ არაფერი დაიჭრას */
}

.movie-card:hover .movie-description-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* პოპაპის მარცხნივ გადატანა მე-5 და მე-6 ბარათებისთვის */
.movie-card:nth-child(6n) .movie-description-popup,
.movie-card:nth-child(6n-1) .movie-description-popup {
    left: auto;
    right: calc(100% + 15px);
    transform: translateX(-10px);
}

/* ისარი (Arrow) - სკრინშოტის მიხედვით გასწორებული */
.movie-description-popup::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 100%;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent; /* თეთრი ისარი */
}

/* ისრის გადატანა მარჯვნივ მე-5 და მე-6 ბარათებისთვის */
.movie-card:nth-child(6n) .movie-description-popup::before,
.movie-card:nth-child(6n-1) .movie-description-popup::before {
    right: auto;
    left: 100%;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
}

/* შიდა ტექსტების სტილი - რომ "როლებში" გამოჩნდეს */
.desc-meta .meta-row {
    display: block !important;
    font-size: 14px;
    line-height: 1.3;
    font-family: 'BPGArial';
    color: #333;
    text-align: left !important;
}

.desc-meta strong {
    color: #000;
    font-weight: 600;
    margin-right: 5px;
    font-family: 'BPGNormal';
}

.desc-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.desc-quality .quality-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
}


.fm-item { position: relative; }

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: none; /* ჩვეულებრივ დამალულია */
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.fm-item:hover .delete-btn {
    display: block; /* მაუსის მიტანისას ჩნდება */
}

.delete-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}



/*სექციების გადამართველები*/

/* --- სექციის ჰედერის განლაგება --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-arrows {
    display: flex;
    gap: 8px;
}

/* --- ისრების დიზაინი --- */
.custom-nav {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    background: #e0e0e0 !important;
    border-radius: 50% !important;
    color: #333 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.custom-nav:hover {
    background: #bdbdbd !important;
}

.custom-nav::after {
    font-size: 12px !important;
    font-weight: bold;
}

/* --- სლაიდერის კონტეინერის გასწორება --- */
.swiper {
    overflow: visible !important;
    width: 100%;
}

.movies-slider {
    width: 100%;
    overflow: visible !important;
    position: relative;
    /* padding/margin რჩება როგორც გქონდა */
    padding-bottom: 60px !important; 
    margin-bottom: -60px !important;
}

/* აქ ვამატებთ მხოლოდ z-index-ის ლოგიკას არსებულ კლასზე */
.swiper-slide {
    position: relative;
    z-index: 1;
    transition: z-index 0.2s;
}

.swiper-slide:hover {
    z-index: 9999 !important;
}

/* Section Container - მე-7 ბარათის დასამალავად */
.movies-section .container {
    overflow: hidden;
    position: relative;
}

/* მობილურზე ისრების დამალვა */
@media (max-width: 768px) {
    .slider-arrows {
        display: none;
    }
}

/* === SWIPER & POPUP FIX === */

/* Swiper Container - overflow hidden რომ სლაიდერი იმუშაოს */
.movies-section .swiper-container,
.movies-section .swiper {
    overflow: hidden;
    position: relative;
}

.movies-section .swiper-wrapper {
    display: flex;
    overflow: hidden;
}

/* სლაიდების z-index */
/* სლაიდების z-index */
.swiper-slide {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.swiper-slide:hover {
    z-index: 100 !important;
    overflow: visible !important;
}

/* Movie Poster - ერთადერთი ვერსია */
.movie-poster {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 150%; /* 2:3 aspect ratio */
    background-color: #f0f0f0;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* პოპაპის ძირითადი სტილი */
.movie-description-popup {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% + 20px) !important;
    width: 300px !important;
    height: auto !important;
    min-height: 200px !important;
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 4px !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.movie-card:hover .movie-description-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* მე-5 და მე-6 სლაიდებისთვის - მარცხნივ გადატანა */
.swiper-slide:nth-child(6n) .movie-description-popup,
.swiper-slide:nth-child(6n-1) .movie-description-popup {
    left: auto !important;
    right: calc(100% + 20px) !important;
    transform: translateX(-10px);
}

.swiper-slide:nth-child(6n) .movie-card:hover .movie-description-popup,
.swiper-slide:nth-child(6n-1) .movie-card:hover .movie-description-popup {
    transform: translateX(0) !important;
}

/* ისრის მიმართულება */
.movie-description-popup::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 100%;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

.swiper-slide:nth-child(6n) .movie-description-popup::before,
.swiper-slide:nth-child(6n-1) .movie-description-popup::before {
    left: 100% !important;
    right: auto !important;
    border-width: 10px 0 10px 10px !important;
    border-color: transparent transparent transparent #ffffff !important;
}


/* ჰოვერის დროს ანიმაციის მიმართულებაც შევცვალოთ */
.swiper-slide-visible:nth-last-child(-n+2) .movie-card:hover .movie-description-popup {
    transform: translateX(-10px) !important;
}

.movies-section .swiper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.movies-section .swiper-wrapper {
    display: flex;
}

/* 2. თითოეულ სექციას ვაძლევთ იზოლირებულ კონტექსტს */
.movies-section {
    position: relative;
    z-index: 1;
}

/* 3. როცა მაუსს მივიტანთ სექციაზე, ის ხდება ყველაზე პრიორიტეტული */
.movies-section:hover {
    z-index: 100;
}

/* 4. თავად ბარათი და პოპაპი ყოველთვის ყველაზე მაღლა */
.movie-card:hover {
    z-index: 999;
}

.movie-description-popup {
    z-index: 9999 !important;
    /* დაამატე ესეც, რომ პოპაპი ძალიან მარცხნივ არ გაიქცეს */
    min-width: 260px;
}

/* === POPUP FINAL FIX === */
.swiper-wrapper {
    overflow: visible !important;
}

.swiper-slide {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    overflow: visible;
}

.swiper-slide:hover {
    z-index: 999 !important;
}

.swiper-button-lock {
    display: none !important;
}

/* style.css-ის ბოლოში დაამატე */

/* ძირითადი ისრების სტილი */
.movies-section .swiper-button-next, 
.movies-section .swiper-button-prev {
    display: flex !important;
    opacity: 1; /* აქ !important არ გინდა */
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* როცა Swiper-ი ამატებს ამ კლასს, ისარი უნდა გაფერმკრთალდეს და გაითიშოს */
.movies-section .swiper-button-disabled {
    opacity: 0.1 !important; /* ძალიან მკრთალი რომ გამოჩნდეს გათიშვა */
    pointer-events: none !important; /* კლიკი აღარ იმუშავებს */
    cursor: default !important;
}

/* 1. ზოგადი და ჰედერის დაშორება */
    .fullstory-main { padding-top: 50px !important; }
    .movie-info-list .info-link { color: #006ff2 !important; text-decoration: none !important; transition: 0.2s; }
    .movie-info-list .info-link:hover { color: #ff9d00 !important; }

    /* 2. ფლეერის სექცია */
    .player-section { 
        width: 100%; max-width: 1000px; margin: 0 auto 30px auto; 
        position: relative; background: #000; z-index: 5; font-family: 'BPGArial';
    }
    .video-container { 
        position: relative; padding-bottom: 56.25%; height: 0; 
        background: #000; overflow: hidden; border-radius: 8px;
    }
    .video-container iframe { 
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; 
        transition: opacity 0.5s ease;
    }
    /* ანიმაციის კლასი */
    .player-loading { opacity: 0; }

    /* ენების გადამრთველი */
    .language-switcher {
        display: flex; gap: 10px; margin-top: 15px;
        justify-content: center; padding-bottom: 10px;
    }
    .lang-btn {
        background: #1a1d23; color: #fff; border: 1px solid rgba(255,255,255,0.1);
        padding: 8px 20px; border-radius: 4px; cursor: pointer;
        font-weight: 600; font-family: 'Noto Sans Georgian'; transition: 0.3s;
        display: flex; align-items: center; gap: 6px;
        font-family: 'BPGArial';
    }
    .lang-btn.active { background: #006ff2; border-color: #006ff2; box-shadow: 0 0 15px rgba(0, 111, 242, 0.4); }
    .lang-btn:hover:not(.active) { background: #222; transform: translateY(-1px); }

    /* 3. ტაბლო (Sidebar) - Desktop */
    .player-sidebar {
        position: absolute; top: 0; right: -320px; width: 300px; height: 100%;
        background: rgba(15, 17, 21, 0.98); backdrop-filter: blur(15px);
        z-index: 2000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    .player-sidebar.open { right: 0; }

    .sidebar-header { 
        flex-shrink: 0; background: #006ff2; padding: 12px 15px; 
        display: flex; justify-content: space-between; align-items: center; 
        color: white; font-weight: bold; font-size: 14px;
    }
    .close-sidebar { background: rgba(255,255,255,0.2); border: none; color: white; font-size: 20px; cursor: pointer; width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }

    .sidebar-seasons { 
        flex-shrink: 0; display: flex; gap: 8px; padding: 10px; 
        background: #111; overflow-x: auto; border-bottom: 1px solid #222; scrollbar-width: none;
    }
    .side-season-btn { 
        flex-shrink: 0; background: #222; color: #aaa; border: none; 
        padding: 0 12px; height: 32px; border-radius: 4px; cursor: pointer; font-size: 13px;
    }
    .side-season-btn.active { background: #006ff2; color: white; font-weight: bold; }

    .sidebar-episodes-list { overflow-y: auto; flex-grow: 1; background: #0f1115; }
    
    .side-ep-grid { display: none; }
    .side-ep-grid.show { display: block; }

    .side-ep-item { 
        padding: 12px 20px; color: #ccc; border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
        cursor: pointer; transition: 0.2s; font-size: 14px;
    }
    .side-ep-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
    .side-ep-item.playing { background: rgba(0, 111, 242, 0.15); color: #006ff2; border-left: 3px solid #006ff2; font-weight: 600; }

    .toggle-episodes-btn {
        position: absolute; top: 15px; right: 15px; z-index: 100;
        background: #006ff2; color: white; border: none; padding: 8px 16px;
        border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px;
        font-family: 'BPGNormal'; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    @media (max-width: 768px) {
        .fullstory-main { padding-top: 50px !important; }
        .player-sidebar { width: 65% !important; right: -70% !important; font-size: 12px; }
        .player-sidebar.open { right: 0 !important; }
        .sidebar-header { padding: 10px; font-size: 12px; }
        .side-ep-item { padding: 12px 15px; font-size: 12px; }
        .toggle-episodes-btn { padding: 6px 10px; font-size: 11px; top: 10px; right: 10px; }
    }
    /* მობილური ვერსიის რესპონსივი */
@media screen and (max-width: 600px) {
    .language-switcher {
        display: flex;
        flex-wrap: wrap; 
        gap: 8px;           /* ღილაკებს შორის დაშორება */
        justify-content: center;
        padding: 0 10px;
        
        /* აი ეს დააშორებს ქვედა კონტენტს (პოსტერს) */
        margin-bottom: 20px; 
    }

    .lang-btn {
        flex: 1;           /* ღილაკები გაიშლება თანაბრად */
        min-width: 110px;  /* რომ ტექსტი "ქართულად" არ გაიჭედოს */
        padding: 10px 5px; /* სიმაღლეში ცოტა მეტი სივრცე */
        font-size: 12px;   
        justify-content: center;
    }

    .lang-btn img {
        width: 14px;
    }
}

/* დესკტოპისთვისაც რომ ჰქონდეს დაშორება ქვემოთ */
.language-switcher {
    margin-bottom: 25px; 
}

/* ==========================================
   PAGINATION STYLES (Gemovies Style)
   ========================================== */

.pagination-wrapper {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa; /* Light mode ფონი */
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Dark Mode-ისთვის */
body.dark-mode .pagination {
    background: #1a1d29;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pag-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #006ff2;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pag-btn svg {
    transition: transform 0.3s ease;
}

.pag-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 111, 242, 0.3);
}

.prev-btn:hover svg {
    transform: translateX(-3px);
}

.next-btn:hover svg {
    transform: translateX(3px);
}

.page-numbers {
    padding: 0 15px;
    font-size: 15px;
    color: #4a4a4a;
    font-weight: 500;
    letter-spacing: 0.5px;
}

body.dark-mode .page-numbers {
    color: #b0b3b8;
}

.page-numbers strong {
    color: #006ff2;
    font-weight: 800;
}

/* ==========================================
   RESPONSIVE (Mobile Optimization)
   ========================================== */

@media (max-width: 480px) {
    .pagination {
        gap: 8px;
        padding: 6px 8px;
        width: 100%;
        justify-content: space-between;
    }

    .pag-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-numbers {
        padding: 0 5px;
        font-size: 13px;
    }

    /* მობილურზე ტექსტი "უკან" და "წინ" შეგვიძლია დავმალოთ და მხოლოდ ისრები დავტოვოთ თუ ადგილი არ არის */
    /* .pag-btn span { display: none; } */
}

/* ძებნის "ყველა შედეგი" ღილაკის დიზაინიც */
.search-all-results {
    margin-top: 5px;
    padding: 12px;
    text-align: center;
    background: rgba(0, 111, 242, 0.08);
    color: #006ff2;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    transition: 0.2s;
}

body.dark-mode .search-all-results {
    background: rgba(0, 111, 242, 0.15);
}

.search-all-results:hover {
    background: #006ff2;
    color: #fff;
}