/* Gallery page styles */
.gallery-hero {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: 15px;
}

.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a2e;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.rank-1 {
    border: 3px solid #ffd700 !important;
}

.rank-2 {
    border: 3px solid #c0c0c0 !important;
}

.rank-3 {
    border: 3px solid #cd7f32 !important;
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2) !important;
}

.gallery-poster {
    aspect-ratio: 2 / 3;
    height: auto;
    overflow: hidden;
}

.gallery-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: #ffd700;
    font-size: 20px;
}

.rating-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .gallery-card .row {
        flex-direction: row;
    }

    .gallery-poster {
        height: auto;
        min-height: unset;
    }
}

/* Gallery page styles */
.gallery-section {
    padding: 20px 0;
}

.gallery-hero {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
    padding: 50px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.gallery-hero h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-hero p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Rank badges */
.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #1a1a2e;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #1a1a2e;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

/* Card styling by rank */
.rank-1 {
    border: 3px solid #ffd700;
}

.rank-2 {
    border: 3px solid #c0c0c0;
}

.rank-3 {
    border: 3px solid #cd7f32;
}

.gallery-poster {
    flex: 0 0 auto;
    aspect-ratio: 2 / 3;
    height: auto;
    overflow: hidden;
}

.gallery-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-title {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #1a1a2e;
}

.gallery-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-genre {
    background: #e8f4fd;
    color: #2196f3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.gallery-duration {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.gallery-duration::before {
    content: "⏱️";
    margin-right: 5px;
}

.gallery-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.stars {
    color: #ffd700;
    font-size: 22px;
}

.rating-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.gallery-price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-book-gallery {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 200px;
}

.btn-book-gallery:hover {
    background: linear-gradient(135deg, #ee5a5a, #dd4a4a);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 28px;
    }

    .gallery-card {
        flex-direction: column;
    }

    .gallery-poster {
        flex: none;
        width: 100%;
        height: auto;
    }

    .gallery-info {
        padding: 20px;
    }

    .gallery-title {
        font-size: 22px;
    }

    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: 30px 15px;
    }

    .gallery-hero h1 {
        font-size: 24px;
    }

    .gallery-poster {
        height: auto;
    }

    .gallery-meta {
        flex-direction: column;
        gap: 8px;
    }

    .btn-book-gallery {
        max-width: 100%;
    }
}
