/* =========================================
   მთავარი სტილები (Base Styles)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #0f0f11;
    color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ნავიგაცია და ჰედერი (Header)
   ========================================= */
.site-header {
    background-color: rgba(15, 15, 17, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2a2a2a;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 26px;
    font-weight: 900;
    color: #ff5500;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    font-weight: 500;
}

.main-nav a:hover { color: #ff5500; }

/* ძიება */
.search-bar form {
    display: flex;
    background: #232326;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid transparent;
}

.search-bar form:focus-within { border-color: #ff5500; }

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 18px;
    outline: none;
    width: 200px;
}

.search-bar button {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 0 15px;
    cursor: pointer;
}

/* =========================================
   ფილმების ბადე მთავარ გვერდზე (Shortstory)
   ========================================= */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.movie-card {
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.movie-poster {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.movie-poster img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

.movie-info { margin-top: 12px; }

.movie-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   ფილმის შიდა გვერდი (Fullstory)
   ========================================= */
.full-movie-page {
    background-color: #18181b;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column; /* უზრუნველყოფს, რომ ყველა ბლოკი ზემოდან ქვემოთ დალაგდეს */
}

/* ზედა ნაწილი: პოსტერი და ინფო */
.movie-header-info {
    display: flex;
    gap: 40px; /* დიდი დაშორება პოსტერსა და ტექსტს შორის */
    margin-bottom: 40px;
    align-items: flex-start; /* პოსტერი რომ არ გაიწელოს სიმაღლეში */
}

/* პოსტერის კონტეინერი მკაცრად ფიქსირებული სიგანით */
.movie-poster-large {
    flex-shrink: 0;
    width: 280px; 
}

.movie-poster-large img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: block;
}

/* ტექსტის ნაწილი (რომ დაიკავოს დარჩენილი სივრცე მარჯვნივ) */
.movie-details {
    flex-grow: 1;
    min-width: 0; 
}

.movie-details h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    word-wrap: break-word;
}

.movie-desc-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #b3b3b3;
}

/* ტეგების სექცია */
.movie-tags {
    margin-top: 15px;
    font-size: 14px;
    line-height: 2.8; /* დაშორება მწკრივებს შორის */
}

.movie-tags strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 16px;
}

/* DLE-ს გამოტანილი <a> ტეგების დიზაინი */
.movie-tags a {
    display: inline-block;
    background: #2a2a2f;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 6px 6px 0;
    transition: background 0.2s;
    white-space: nowrap; /* იცავს ტეგს შუაზე გადატეხვისგან */
    color: #ddd;
}

.movie-tags a:hover {
    background: #ff5500;
    color: #fff;
}

/* =========================================
   ფლეიერის ნაწილი
   ========================================= */
.player-area {
    width: 100%;
    margin-top: 20px;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 რესპონსივი */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   კომენტარების ბლოკი
   ========================================= */
.comments-area {
    margin-top: 50px;
    border-top: 1px solid #2a2a2a;
    padding-top: 30px;
    width: 100%;
}

/* =========================================
   ნავიგაცია (პაგინაცია)
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #232326;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover { background: #ff5500; transform: translateY(-2px); }
.pagination span { background: #ff5500; cursor: default; }

/* =========================================
   მობილურის ვერსია
   ========================================= */
@media (max-width: 768px) {
    .movie-header-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .movie-poster-large { width: 80%; }
    .movie-details { width: 100%; }
    .movie-tags a { white-space: normal; } /* მობილურზე ძალიან გრძელი ტეგი რომ ჩამოიშალოს */
}

/* =========================================
   მთავარი ბანერი (Hero Section Wink Style)
   ========================================= */
.hero-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    padding: 50px;
    /* ფონის სურათი დროებითია, შეგიძლია შეცვალო */
    background: linear-gradient(to right, #0f0f11 10%, rgba(15, 15, 17, 0.2) 100%), 
                linear-gradient(to top, #0f0f11 0%, rgba(15, 15, 17, 0) 40%), 
                url('https://wallpapers.com/images/hd/dune-2-movie-poster-r2q3y02npeevj83m.jpg') center/cover;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-btn {
    display: inline-block;
    background: #ff5500;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(255,85,0,0.4);
}

.hero-btn:hover {
    background: #ff7733;
    transform: translateY(-2px);
}

/* =========================================
   ჰორიზონტალური სლაიდერები (Swiper)
   ========================================= */
.section-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #fff;
}

.movie-slider-wrap {
    margin-bottom: 50px;
    position: relative;
}

.swiper-slide {
    height: auto;
}

.slider-movie-card {
    display: block;
    transition: transform 0.3s ease;
}

.slider-movie-card:hover {
    transform: scale(1.05);
}

.slider-poster {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 2 / 3;
}

.slider-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.slider-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff5500;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.slider-info {
    margin-top: 12px;
}

.slider-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Swiper-ის ისრები (გალამაზებული) */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(0,0,0,0.5);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}
