/* ========================================
   📱 RESPONSIVE - PERFECT FIX
   ======================================== */

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger-btn span {
    width: 24px;
    height: 2.5px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

body.dark-mode .hamburger-btn span {
    background-color: #fff;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Mobile Header Optimization - 480px-ზე */
@media (max-width: 480px) {
    /* Body overflow fix */
    body {
        overflow-x: hidden !important;
    }

    /* Container padding შემცირება */
    .header .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Logo-ს "ფილმების სამყარო" დამალვა */
    .logo-text .logo-geo {
        display: none;
    }
    
    /* Logo icon-ის შემცირება */
    .logo svg {
        width: 30px;
        height: 30px;
    }

    /* Logo text padding */
    .logo a {
        gap: 8px !important;
    }

    /* Nav actions-ის gap შემცირება */
    .nav-actions {
        gap: 6px;
    }

    /* Action ღილაკების შემცირება */
    .nav-actions .btn-icon {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    /* Saved badge-ის შემცირება */
    .saved-badge {
        font-size: 9px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
    }

    /* Logo text font size შემცირება */
    .logo-eng {
        font-size: 14px;
    }
}

/* ===== CLOSE BUTTON (OUTSIDE MENU) ===== */
.mobile-close-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 320px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.9);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.dark-mode .mobile-close-btn {
    background: rgba(255,255,255,0.95);
}

.mobile-close-btn:hover {
    background: rgba(0,111,242,1);
    transform: scale(1.1);
}

.mobile-close-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 3;
}

body.dark-mode .mobile-close-btn svg {
    stroke: #333;
}

.mobile-close-btn.active {
    display: flex;
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}


/* ========================================
   📱 MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    
    .hamburger-btn {
        display: flex;
    }
    
    /* Hide hamburger when menu active */
    .hamburger-btn.active {
        opacity: 0;
        pointer-events: none;
    }
    
    /* === MOBILE MENU === */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    body.dark-mode .nav-menu {
        background-color: #141414;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Add padding at the end for scroll */
    .nav-menu::after {
        content: '';
        display: block;
        height: 50vh;
        flex-shrink: 0;
    }
    
    /* === NAV ITEMS === */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
        flex-shrink: 0;
    }
    
    body.dark-mode .nav-item {
        border-bottom-color: #333;
    }
    
    /* First item top spacing */
    .nav-item:first-child {
        margin-top: 20px;
    }
    
    /* Nav Link */
    .nav-link {
        padding: 16px 20px;
        font-size: 16px;
        width: 100%;
        justify-content: space-between;
        display: flex;
        align-items: center;
        min-height: 52px;
        cursor: pointer;
        user-select: none;
        background-color: inherit;
    }
    
    /* === DROPDOWN FIX === */
    .dropdown {
        position: relative;
    }
    
    /* Sticky dropdown header when active */
    .dropdown.active > .nav-link {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    body.dark-mode .dropdown.active > .nav-link {
        background-color: #141414;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background: #f5f5f5;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    body.dark-mode .dropdown-menu {
        background: #1a1a1a;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 2000px;
        opacity: 1;
        visibility: visible;
        padding: 8px 0;
    }
    
    .dropdown-grid {
        display: block;
    }
    
    .dropdown-column {
        display: block;
    }
    
    .dropdown-column a {
        padding: 12px 20px 12px 35px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    body.dark-mode .dropdown-column a {
        border-bottom-color: rgba(255,255,255,0.03);
    }
    
    /* Arrow rotation */
    .dropdown .arrow {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .arrow {
        transform: rotate(180deg);
    }
    
    /* === CAROUSEL === */
    .hero-carousel {
        min-height: 550px;
        position: relative;
    }
    
    .carousel-container {
        min-height: 550px;
    }
    
    .carousel-content {
        min-height: 550px;
        padding: 40px 0 100px;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .slide-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 0;
        flex: 1;
    }
    
    .slide-poster img {
        width: 200px;
        height: 300px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-meta {
        justify-content: center;
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .slide-genres {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .slide-description {
        max-width: 100%;
        font-size: 14px;
    }
    
    /* CAROUSEL BUTTONS - FIXED POSITION */
    .slide-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        margin: 20px auto 0;
        align-items: stretch;
        position: relative;
        z-index: 10;
    }
    
    .btn-play,
    .btn-info {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        z-index: 1;
    }
    
    .btn-info svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
    
    /* === CAROUSEL ARROWS - FIXED POSITION === */
    .carousel-arrow {
        width: 45px;
        height: 45px;
        top: 35%;
        transform: translateY(-50%);
    }
    
    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* CAROUSEL DOTS - FIXED AT BOTTOM */
    .carousel-dots {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 50;
        pointer-events: auto;
        margin: 0;
        padding: 10px 16px;
        background: rgba(0,0,0,0.6);
        border-radius: 25px;
        backdrop-filter: blur(10px);
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255,255,255,0.6);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }
    
    .dot:hover {
        background-color: rgba(255,255,255,0.9);
        transform: scale(1.2);
    }
    
    .dot.active {
        background-color: #006ff2;
        width: 24px;
        border-radius: 4px;
    }
    
    
    .actor-card {
        font-size: 13px;
        min-width: 0;
        overflow: hidden;
    }
    
    .actor-image {
        height: 140px;
        width: 100%;
    }
    
    .actor-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .actor-info {
        padding: 8px 6px;
    }
    
/* IMDb ბეიჯის გასწორება - ზუსტი კლასით */
.imdb-badge {
    display: inline-flex !important; /* აქრობს გაწელვას */
    width: fit-content !important;   /* იკუმშება ტექსტის ზომამდე */
    min-width: 0 !important;         /* აუქმებს ნებისმიერ მინიმალურ სიგანეს */
    
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
}

/* შიდა SVG (IMDb ლოგო) */
.imdb-badge svg {
    width: 30px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* ქულა (ციფრი) */
.imdb-badge span {
    color: #f5c518 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
    
    .actor-name {
        font-size: 13px !important;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 32px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .actor-original {
        font-size: 11px !important;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* === SIMILAR MOVIES === */
    .similar-movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    /* === SECTIONS === */
    .section-title h2 {
        font-size: 24px;
    }
    
    .movie-description-popup {
        display: none !important;
    }
    
    /* === FOOTER === */
    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   📱 MOBILE SMALL (max-width: 576px)
   ======================================== */
@media (max-width: 576px) {
    
    .container {
        padding: 0 12px;
    }
    
    .nav-menu {
        width: 280px;
    }
    
    /* Close button adjustment for smaller menu */
    .mobile-close-btn {
        right: 300px;
    }
     
    .hero-carousel {
        min-height: 500px;
    }
    
    .carousel-container {
        min-height: 500px;
    }
    
    .carousel-content {
        min-height: 500px;
        padding: 30px 0 90px;
    }
    
    .slide-poster img {
        width: 180px;
        height: 270px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-buttons {
        margin-top: 15px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* === CAROUSEL ARROWS - SMALLER === */
    .carousel-arrow {
        width: 40px;
        height: 40px;
        top: 30%;
    }
    
    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-dots {
        bottom: 20px;
        gap: 8px;
        padding: 8px 14px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .actor-card {
        min-width: 0;
    }
    
    .actor-image {
        height: 130px;
        width: 100%;
    }
    
    .actor-info {
        padding: 8px 4px;
    }
    
    .actor-name {
        font-size: 12px !important;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .actor-original {
        font-size: 10px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mobile-close-btn {
        width: 44px;
        height: 44px;
        top: 15px;
    }
    
    .mobile-close-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   🖥️ DESKTOP (min-width: 769px)
   ======================================== */
@media (min-width: 769px) {
    .hamburger-btn,
    .mobile-close-btn {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
}

/* ========================================
   🖥️ LARGE DESKTOP (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

@media (max-width: 768px) {
    
    
    /* === SECTION HEADER === */
    .section-title h2 {
        font-size: 22px !important;
    }
    
    .section-title svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .view-all {
        font-size: 14px !important;
        gap: 5px !important;
    }
    
    .view-all svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ========================================
   📱 FULLSTORY RESPONSIVE
   ======================================== */

/* ========================================
   📱 FULLSTORY RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .details-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .details-sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .sidebar-poster {
        max-width: 180px;
        width: 100%;
    }
    
    .sidebar-poster img {
        width: 100%;
        display: block;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* მთავარი ფიქსი: ვაშორებთ სექციას ფლეიერისგან */
    .movie-details-section {
        margin-top: 60px !important; /* ეს დაწევს პოსტერს დაბლა */
        padding-top: 20px !important;
    }

        .vote-main-container.mini-version {
        padding: 8px !important;
        gap: 8px !important;
    }
    
    .vote-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        gap: 5px !important;
    }
    
    .vote-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .count-value {
        font-size: 13px !important;
    }

    .details-layout {
        display: flex !important; /* Grid-ის ნაცვლად Flex უფრო სტაბილურია მობილურზე */
        flex-direction: column !important;
        gap: 25px;
    }

    /* === POSTER === */
    .sidebar-poster {
        max-width: 180px;
        margin: 0 auto; /* ცენტრირება */
        position: relative;
        top: 0 !important; /* ვაუქმებთ ნებისმიერ აწევას */
    }
    
    /* === BUTTONS === */
.action-btn {
        padding: 12px 16px !important; /* ✏️ 14px 20px → 12px 16px */
        font-size: 13px !important; /* ✏️ 14px → 13px */
        width: 100%;
        justify-content: center;
        gap: 8px !important; /* ➕ დაამატე */
    }
        .action-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* === FULLSTORY - MOVIE TITLE === */
    .movie-details .movie-title {
        font-size: 22px !important;
        line-height: 1.3;
        text-align: center;
    }
    
    .movie-details .movie-title-original {
        font-size: 16px !important;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* === META ROW FIX === */
.movie-meta-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px !important; /* ✏️ 10px → 8px */
        margin-bottom: 15px !important; /* ✏️ 20px → 15px */
    }
    
    /* === BUTTONS === */
    .action-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
        width: 100%;
        justify-content: center;
    }
    
    /* === FULLSTORY - MOVIE TITLE === */
    .movie-details .movie-title {
        font-size: 22px !important;
        line-height: 1.3;
    }
    
    .movie-details .movie-title-original {
        font-size: 16px !important;
        margin-bottom: 15px;
    }
    
    /* === META ROW FIX === */
    .movie-meta-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .rating-badge,
    .views-badge,
    .imdb-badge-inline,
    .quality-badge { /* ➕ დაამატე quality-badge */
        font-size: 11px !important; /* ✏️ 13px → 11px */
        padding: 6px 10px !important; /* ✏️ 8px 12px → 6px 10px */
        justify-content: center;
    }
    
    /* ➕ დაამატე SVG შემცირება */
    .rating-badge svg,
    .views-badge svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .imdb-badge-inline svg {
        width: 30px !important;
        height: 14px !important;
    }
    
    /* === TABS === */
    .content-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
    }
    
    .tab {
        padding: 10px 20px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }
    
    /* === MOVIE INFO LIST === */
    .movie-info-list {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .info-row .info-label {
        font-size: 13px !important;
        min-width: auto;
    }
    
    .info-row .info-value {
        font-size: 14px !important;
    }
    
    /* === DESCRIPTION === */
    .movie-description h3 {
        font-size: 16px !important;
    }
    
    .movie-description p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    /* === SIMILAR MOVIES === */
    .similar-movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .similar-movie-title {
        font-size: 13px !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .similar-movie-original {
        font-size: 11px !important;
    }
}

@media (max-width: 576px) {
    
    .sidebar-poster {
        max-width: 160px;
    }
    
    .movie-details .movie-title {
        font-size: 20px !important;
    }
    
    .action-btn {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    .movie-meta-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   📱 HERO CAROUSEL - MOBILE OPTIMIZATION
   ========================================== */

@media (max-width: 768px) {
    /* 1. სლაიდერის ზომა */
    .hero-carousel, 
    .carousel-container, 
    .carousel-slide {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    /* 2. კონტენტის ატანა მაღლა */
    .carousel-content {
        height: 100% !important;
        padding: 0 !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; 
        align-items: center !important;
        padding-top: 25px !important; /* აქედან აკონტროლებ რამდენად მაღლა იყოს */
    }

    /* 3. სათაურები */
    .slide-title {
        font-size: 22px !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }

    .slide-original-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        display: block !important;
        opacity: 0.8;
    }

    /* 4. IMDb რეიტინგი */
    .slide-meta {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
    }

    .imdb-rating {
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 2px 8px !important;
        border: 1px solid #f5c518 !important;
        color: #f5c518 !important;
        font-size: 11px !important;
    }

    /* 5. ✅ ჟანრები - გამოჩენა და გასწორება */
    .slide-genres {
        display: flex !important; /* ვრთავთ გამოჩენას */
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    .genre-item {
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

    /* 6. ღილაკები */
    .slide-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .btn-play, .btn-info {
        flex: 1 !important;
        max-width: 130px !important;
        padding: 9px !important;
        font-size: 13px !important;
    }

    .btn-play { background: #007bff !important; color: #fff !important; }
    .btn-info { background: rgba(255,255,255,0.1) !important; border: 1px solid #fff !important; color: #fff !important; }

    /* 7. დამალვა რაც არ გვინდა */
    .slide-poster, .slide-description, .duration, .year, .carousel-arrow {
        display: none !important;
    }

    /* 8. ფონი და წერტილები */
    .slide-background::after {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%) !important;
    }

    .carousel-dots {
        bottom: 8px !important;
    }
}

/* 📱 პატარა ეკრანებისთვის (iPhone SE და ა.შ) */
@media (max-width: 480px) {
    .hero-carousel, .carousel-container {
        height: 400px !important;
    }
    .slide-title {
        font-size: 24px !important;
    }
}


@media (max-width: 768px) {
    /* გრიდის კონტეინერების სრული სიმეტრია */
    .movies-grid, 
    .category-movies-layout {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 12px !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    /* ბარათის შიდა ნაწილების ნულიზაცია */
    .movie-card, .category-movie-item {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ინფოს ბლოკი - აქ არის ხოლმე ზედმეტი padding, ამიტომ ვანულებთ */
    .movie-info, .category-item-info {
        padding: 8px 0 0 0 !important; /* მხოლოდ ზემოდან დაშორება პოსტერისგან */
        margin: 0 !important;
        text-align: left !important;
    }

    /* ფილმის სათაური - მკაცრი გასწორება */
    /* ორიგინალი სახელი ან წელი */
    .movie-original, .category-item-info p, .movie-year {
        font-size: 11.5px !important;
        opacity: 0.6 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    @media (max-width: 768px) {
    /* კონტეინერი, რომელიც აერთიანებს სათაურს და წელს/ორიგინალს */
    .movie-card .movie-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 1px !important; /* აქრობს დაშორებას ხაზებს შორის */
        padding-top: 5px !important;
        align-items: flex-start !important;
    }

    /* სათაური */
    .movie-card .movie-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        height: auto !important; /* აღარ აიძულებს 36px-ს */
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: inherit !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ორიგინალი სახელი ან წელი */
    .movie-card .movie-original {
        font-size: 11px !important;
        margin-top: 0px !important; /* თუ მაინც შორსაა, ჩაწერე -2px */
        color: #888 !important;
        line-height: 1 !important;
    }
}

    /* "ნაპოვნია X ერთეული" - სტილის გასწორება */
    .section-header span, .found-count {
        background: rgba(0, 111, 242, 0.05) !important;
        border: 1px solid rgba(0, 111, 242, 0.1) !important;
        color: #006ff2 !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        font-weight: 500 !important;
    }

    /* სექციის სათაური */
    .section-title h2 {
        font-size: 18px !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    /* კონტეინერი, რომელიც ფილმებს აჯგუფებს */
    .similar-movies-section .s-grid {
        display: grid !important;
        /* მობილურზე ყოველთვის იყოს 2 სვეტი თანაბრად */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
        padding: 0 10px;
    }

    /* თავად ფილმის ბარათი */
    .s-card {
        width: 100% !important; /* აუქმებს ძველ ფიქსირებულ სიგანეს */
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }

    /* პოსტერის ყუთი */
    .s-poster-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 3; /* ინარჩუნებს სწორ პროპორციას */
    }

    /* პოსტერის სურათი */
    .s-poster-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    /* ტექსტების სექცია პოსტერის ქვევით */
    .s-info h3 {
        font-size: 14px !important;
        line-height: 1.2;
        margin-top: 8px;
        /* თუ ტექსტი გრძელია, გადაიტანს შემდეგ ხაზზე */
        white-space: normal !important; 
    }
    
    .s-info p {
        font-size: 12px !important;
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    /* სათაურის ბლოკის კონტეინერი */
    .s-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    /* სათაურის ტექსტი და აიქონი */
    .s-title-block {
        display: flex;
        align-items: center;
        gap: 8px; /* დაშორება აიქონსა და ტექსტს შორის */
    }

    .s-title-block svg {
        width: 22px !important; /* აიქონის ზომა მცირდება */
        height: 22px !important;
    }

    .s-title-block h2 {
        font-size: 18px !important; /* სათაურის ზომა */
        font-weight: 700;
        margin: 0;
    }

    /* "ყველას ნახვა" ღილაკი */
    .s-view-all {
        font-size: 12px !important; /* ღილაკის ტექსტის ზომა */
        padding: 6px 12px !important;
        background: rgba(0, 111, 242, 0.1); /* მსუბუქი ფონი რომ ღილაკს დაემსგავსოს */
        border-radius: 20px;
        color: #006ff2 !important;
        text-decoration: none !important;
        white-space: nowrap; /* ტექსტი არ გადავიდეს მეორე ხაზზე */
    }
}