:root {
    --primary-color: #e50914;
    --secondary-color: #221f1f;
    --accent-color: #f5c518;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --bg-dark: #141414;
    --bg-light: #1f1f1f;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


header {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    width: 300px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-color);
    width: 100%;
    padding: 5px 10px;
    font-size: 1rem;
    outline: none;
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-container button:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-color);
}

/* Main Layout */
.main-content {
    display: flex;
    padding: 30px 0;
    gap: 30px;
}

/* Sidebar Categories */
.sidebar {
    flex: 0 0 250px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    height: fit-content;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar h3 {
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    flex: 1;
    margin-bottom:10px;
}

.sidebar h3 i {
    margin-right: 10px;
}

.close-sidebar {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 3em;
    cursor: pointer;
    margin-left: 15px;
    position: absolute;
    z-index: 10;
    top: 10px;
    right: 10px;
}

.categories-list li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.categories-list a {
    display: block;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.categories-list a:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

.categories-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.categories-list a:hover::before {
    left: 100%;
}

.categories-list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-tag {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: capitalize;
}

.sidebar-tag:hover {
    background-color: rgba(229, 9, 20, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}
/* Content Area */
.content-area {
    flex: 1;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    text-transform: capitalize;
}

.section-title i {
    margin-right: 10px;
    color: var(--accent-color);
}


.movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.movie-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.movie-card:hover {
    transform: none; 
}

.movie-card > a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.movie-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.movie-card:hover::after {
    opacity: 1;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 14/9;
    object-fit: cover;
    transition: var(--transition);
}

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

.movie-info {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.movie-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.movie-title b {
    color:#f5c518;
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.movie-meta span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.movie-release {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Featured Sections  */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.actor-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.actor-card:hover {
    transform: translateY(-5px);
}

.actor-image {
    width: 100%;
    aspect-ratio: 9/14;
    object-fit: cover;
}

.actor-name {
    padding: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.studio-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
}

.studio-card:hover {
    transform: scale(1.05);
    background-color: rgba(245, 197, 24, 0.1);
}

.studio-logo {
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
    border-radius: 8px;
    padding: 8px;

}

.studio-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(229, 9, 20, 0.3);
}


.detail-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.video-and-info {
    flex: 1;
}

.promo-sidebar {
    min-width: 350px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.promo-sidebar h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.promo-sidebar h3 i {
    margin-right: 10px;
}

.promo-box {

    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-box:hover {

}

.promo-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.promo-text {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.promo-desc {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.promo-tag {
    display: inline-block;
    background-color: rgba(245, 197, 24, 0.2);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(245, 197, 24, 0.3);
}


.video-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    position: relative;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.video-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.video-quality {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.quality-btn {
    padding: 6px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.quality-btn:hover, .quality-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


.movie-info-detail {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.movie-title-detail {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
    line-height: 2rem;
}

.movie-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.movie-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.movie-tag {
    background-color: rgba(229, 9, 20, 0.2);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.movie-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.movie-actors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.actor-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.actor-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.actor-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;  
    font-size: 14px;
    color: #ddd;
}

.actor-name::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #999;
}

/* Hover */
.actor-item:hover {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.08);
}

.actor-item:hover .actor-name {
    color: #ff6b6b;
}

.actor-item:hover .actor-name::before {
    color: #ff6b6b;
}


/* Breadcrumb */
.breadcrumb {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--accent-color);
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}


.lazyload, .lazyloading {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyloaded {
    opacity: 1;
}


.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 500;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #ff0a16;
    transform: translateY(-5px);
}


.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Mobile Responsive */
@media screen and (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.4s ease;
        border-radius: 0;
        padding-top: 60px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }
    
    .overlay.active {
        display: block;
    }
    
    .overlay-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 501;
}

.overlay-nav.active {
    display: block;
}


    .mobile-toggle {
        display: block;
        margin-left: 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .mobile-toggle {
        order: 2;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .search-container.active {
        display: flex;
    }
    
    nav {
        order: 4;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 12px 15px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
    }
}

@media screen and (max-width: 1150px) {
        .detail-layout {
        flex-direction: column;
    }
}
@media screen and (max-width: 700px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .video-and-info {
        order: 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .movie-card {
        max-width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .movie-title-detail {
        font-size: 1.8rem;
    }
    
    .movie-meta-detail {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 900px) {
    .sidebar-toggle {
        display: block;
    }
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    display: flex;
}

.page-link {
    padding: 10px 15px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(229, 9, 20, 0.3);
    border-color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.page-link.active:hover {
    transform: none;
    box-shadow: none;
}


@media screen and (max-width: 700px) {
    .page-link {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 0.9rem;
    }
    
    .pagination {
        gap: 3px;
    }
}

@media screen and (max-width: 480px) {
    .page-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.85rem;
    }
    
    .pagination {
        gap: 2px;
    }
}


.movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}


.movies-grid > .ad-after-row-1 {
    grid-column: 1 / -1;
    margin: 20px 0;
}


.movies-grid > .ad-after-row-2 {
    grid-column: 1 / -1;
    margin: 20px 0;
}


.movies-grid > .ad-after-row-3 {
    grid-column: 1 / -1;
    margin: 20px 0;
}


@media screen and (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    
    .movies-grid > .ad-after-row-1 { order: 4; }
    .movies-grid > .ad-after-row-2 { order: 8; }
    .movies-grid > .ad-after-row-3 { order: 12; }
    
    
    .movies-grid > * {
        order: initial;
    }
    
    
    .movie-card:nth-child(1) { order: 1; }
    .movie-card:nth-child(2) { order: 2; }
    .movie-card:nth-child(3) { order: 3; }
    
}


@media screen and (max-width: 700px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

    .movies-grid > .ad-after-row-1 { order: 3; }
    .movies-grid > .ad-after-row-2 { order: 6; }
    .movies-grid > .ad-after-row-3 { order: 9; }
}


@media screen and (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
    

    .movies-grid > .ad-after-row-1 { order: 2; }
    .movies-grid > .ad-after-row-2 { order: 4; }
    .movies-grid > .ad-after-row-3 { order: 6; }
}


.screenshot-section {
    margin-bottom: 40px;
}

.screenshot-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    background-color: #ff0a16;
    transform: translateY(-2px);
}

.screenshot-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}


.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 350px; 
    overflow: hidden;
    transition: all 0.5s ease;
}

.screenshot-grid .screenshot-item {
    cursor: pointer;
}


.screenshot-grid.expanded {
    grid-template-columns: 1fr !important; 
    max-height: 10000px; 
    gap: 25px;
}


.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: var(--transition);
    position: relative;
    background-color: #000; 
}


.screenshot-item:not(.expanded-item):hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}


.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: var(--transition);
}

.screenshot-item:not(.expanded-item):hover img {
    transform: scale(1.1);
}


.screenshot-item:not(.expanded-item)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.screenshot-item:not(.expanded-item):hover::after {
    opacity: 1;
}


.screenshot-item:not(.expanded-item)::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition);
}

.screenshot-item:not(.expanded-item):hover::before {
    transform: translate(-50%, -50%) scale(1);
}


.screenshot-grid.expanded .screenshot-item {
    aspect-ratio: unset !important; 
    height: auto !important; 
    max-height: 600px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: var(--transition);
}

.screenshot-grid.expanded .screenshot-item:hover {

}

.screenshot-grid.expanded .screenshot-item img {
    width: 100%;
    height: auto; 
    max-height: 600px; 
    object-fit: contain; 
    display: block;
    margin: 0 auto; 
}


@media screen and (max-width: 900px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        max-height: 300px;
    }
    
    .screenshot-grid.expanded .screenshot-item {
        max-height: 500px; 
    }
}

@media screen and (max-width: 700px) {
    .screenshot-section .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .toggle-btn {
        align-self: flex-end;
    }
}

@media screen and (max-width: 480px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        max-height: 250px;
    }
    
    .screenshot-grid.expanded {
        gap: 15px; 
    }
    
    .screenshot-grid.expanded .screenshot-item {
        max-height: 400px; 
    }
    
    .toggle-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.btn-more {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6a5af9, #8f44fd);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(106, 90, 249, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(106, 90, 249, 0.5);
}

.btn-more:active {
  transform: scale(0.96);
}


.btn-more::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-more:hover::after {
  left: 100%;
}