* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.movie-card {
    background: rgba(25, 25, 35, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: white;
    transition: transform 0.3s ease;
    margin-bottom: 25px;
}

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

.movie-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.genre-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 0, 100, 0.85);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.quality-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #222;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.quality-tag a{
	color:white;
	font-weight: 600;
}


.movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

    .single-movie-image {
	position: relative;
    height: 220px;
    overflow: hidden;
}
.single-movie-card:hover .single-movie-image img {
    transform: scale(1.05);
}

.single-genre-tag {
    padding: 0px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.single-quality-tag {
    color: black;
    padding: 0px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wishlist-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    color: #fff;
    transition: background 0.3s ease;
}

.wishlist-btn:hover {
    background: rgba(255,0,0,0.8);
}

.wishlist-btn.active i {
    color: #ff0000;
}
.single-wishlist-btn{
	FONT-VARIANT: JIS78;
    background: #42323c;
    width: 140px;
    height: 35px;
    border-radius: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    color: #ccc;
    padding: 5px 8px;
}
.wishlist-action-btn {
    background: transparent !important;
    color: white !important;
}


.movie-info {
    padding: 8px;
}

.movie-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    /*white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-title a{
	padding: 12px 12px 12px 0px;
}

.movie-meta {
    display: flex;
    margin-bottom: 10px;
    color: #aaa;
}
.single-movie-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.single-movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #aaa;
}

.movie-description {
    font-size: 14px;
    line-height: 1.4;
    color: #ccc;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #aaa;
}

.size, .rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: gold;
}
.single-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 215, 0, 0.2);
    padding: 0px 5px;
    border-radius: 20px;
    color: gold;
    font-size: 14px;
}
.single-movie-meta span {
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}
.download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #ff0080, #ff6a4d);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: linear-gradient(to right, #ff6a4d, #ff0080);
    transform: translateY(-2px);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #333;
}

.language-tag {
    background: rgba(100, 100, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #aaa;
}

.view-count {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hero {
    margin-bottom: 0px !important;
}

.hero.hero-archive {
    margin-bottom: 0px;
}

/* Movie Grid Layout */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
@media (min-width: 1025px) and (max-width: 1600px) {
.movie-grid {   
display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .movie-image {
        height: 220px;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .movie-title {
        font-size: 16px;
    }
    
    .download-btn {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }
    
    .movie-card {
        margin-bottom: 15px;
    }
    
    .movie-image {
        height: 220px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
@media (max-width: 375px) {
    .movie-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }
    div#movies-container{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
    }
}

/* Additional Styles for Different Contexts */
.movie-card.featured {
    border: 2px solid #ff6a4d;
}

.movie-card.trending {
    position: relative;
}

.movie-card.trending::before {
    content: "🔥";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff6a4d;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
}

.movie-card.new-release {
    position: relative;
}

.movie-card.new-release::before {
    content: "NEW";
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff0080, #ff6a4d);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
}

/* Loading State */
.movie-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.movie-card.loading .movie-image {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Wishlist Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.wishlist-btn.added i {
    animation: heartBeat 0.5s ease-in-out;
}