/* ======== GLOBAL STYLES ======== */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    background-color: #000;
    color: #fff;
}
* {
    box-sizing: border-box;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: #fff;
}

/* ======== FLOATING BUTTONS ======== */
.buy-button, .back-to-top {
    position: fixed;
    bottom: 20px;
    color: white;
    border-radius: 50px;
    font-weight: 700;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}
.buy-button {
    background: linear-gradient(45deg, #00d9ff, #c32aff);
    padding: 10px 22px;
    left: 20px;
    box-shadow: 0 5px 20px rgba(195, 42, 255, 0.5);
    font-size: 14px;
}
.back-to-top {
    background: #e40056;
    right: 20px;
    width: 45px;
    height: 45px;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(228, 0, 86, 0.5);
}
.buy-button:hover, .back-to-top:hover {
    transform: scale(1.1);
}

/* ======== HEADER ======== */
#header-wrap {
    background-color: #000;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.header-logo img {
    max-height: 35px;
}
.header-icon {
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    border: 2px solid #fff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}
#search-container {
    display: none;
    padding: 15px;
}
.search-form {
    display: flex;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #fff;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #fff;
    color: #000;
}
.search-button {
    padding: 10px 20px;
    background-color: #f57f26;
    color: #fff;
    border: 2px solid #f57f26;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
}

/* ======== MOBILE MENU & OVERLAY ======== */
body.mobile-menu-active {
    overflow: hidden;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
body.mobile-menu-active #overlay {
    opacity: 1;
    visibility: visible;
}
#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #1c1c1c;
    z-index: 1002;
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
body.mobile-menu-active #mobile-nav {
    transform: translateX(0);
}
#mobile-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    font-size: 16px;
    font-weight: bold;
}
#mobile-nav a:hover {
    background-color: #333;
}
#close-menu-btn {
    color: #fff;
    font-size: 40px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    line-height: 1;
}

/* ======== CATEGORY AND TELEGRAM BAR ======== */
.category-bar {
    padding: 25px 0;
}
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.btn-grad {
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-grad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn-grad.style-1 { background-image: linear-gradient(to right, #00c6ff, #0072ff); }
.btn-grad.style-2 { background-image: linear-gradient(to right, #e100ff, #7a00ff); }
.btn-grad.style-3 { background-image: linear-gradient(to right, #ff416c, #ff4b2b); }
.btn-grad.style-4 { background-image: linear-gradient(to right, #ff9966, #ff5e62); }
.btn-grad.style-5, .btn-grad.style-6, .btn-grad.style-7, .btn-grad.style-8, .btn-grad.style-9, .btn-grad.style-10, .btn-grad.style-11 { background-image: linear-gradient(to right, #f7971e, #ffd200); }
.telegram-button-container {
    text-align: center;
    margin-top: 25px;
}
.telegram-button {
    background-color: #0088cc;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

/* ======== ALERT BAR ======== */
.alert-bar {
    background: rgba(80, 60, 90, 0.4);
    border: 1px solid rgba(180, 160, 190, 0.4);
    padding: 12px;
    margin: 0 15px 25px 15px;
    border-radius: 8px;
}
.alert-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alert-bar p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
}
.alert-bar a {
    color: #00c6ff;
    font-weight: bold;
}
.close-alert {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #aaa;
}

/* ======== SLIDER ======== */
.slider-section {
    padding: 0 15px;
    overflow: hidden;
    margin-bottom: 30px;
}
.swiper.auto-slider {
    width: 100%;
    height: 170px;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #444;
}

/* ======== MAIN MOVIE GRID ======== */
#content-wrapper {
    padding-top: 10px;
}
.section-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #fff;
    margin: 0 0 25px 0;
    font-weight: bold;
}
.section-title i {
    margin-right: 12px;
    color: #fff;
    background-color: #1a1a1a;
    padding: 8px;
    border-radius: 5px;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.movie-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #222;
}
.movie-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.movie-poster {
    width: 100%;
    height: 300px;
}
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.movie-info {
    padding: 15px;
}
.movie-title {
    font-size: 16px;
    margin: 0;
    line-height: 1.3;
    font-weight: bold;
    height: 42px;
    overflow: hidden;
}
.movie-quality {
    font-size: 13px;
    color: #aaa;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .movie-poster {
        height: 180px;
    }
    .movie-title {
        font-size: 13px;
        height: 34px;
    }
}
@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .movie-poster {
        height: 240px;
    }
}
