.font-custom1 {
    font-family: inherit;
}

.category-main-wrapper {
    width: 100%;
    min-height: 100vh;
    
    margin-top: 73.59px; /* Add space to avoid logo overlap */
}

@media (min-width: 1024px) {
    .category-main-wrapper {
        margin-top: 108px;
    }
}

.custom_height {
    min-height: calc(100vh - 108px);
}

.category-header {
    margin-top: 33px;
    
    height: 100px;
    padding-left: 32px;
    padding-right: 32px;
    border-top: 0.5px solid black;
    border-bottom: 0.5px solid black;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -2.96px;
    color: black;
    margin: 0;
    text-transform: uppercase;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14.65px;
}

.sort-controls-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-controls-mobile {
    display: none;
}

.sort-label {
    color: #666;
    font-weight: normal;
    letter-spacing: -0.08px;
}

.sort-link {
    color: black;
    text-decoration: none;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: 0.08px;
    cursor: pointer;
    text-transform: uppercase;
}

.sort-link.selected {
    font-weight: 600;
}

.sort-link:hover {
    text-decoration: underline;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    font-size: 14.65px;
    color: black;
    text-transform: uppercase;
    font-family: inherit;
}

.productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 40px;
    padding: 42px;
    margin-top: 24px;
    
}

.production-card {
    cursor: pointer;
    position: relative;
    background: white;
}

.production-image-container {
    position: relative;
    width: 100%;
    height: 315px; /* Much shorter height for rectangular aspect ratio */
    aspect-ratio: 16/9; /* Modern CSS property for consistent rectangular shape */
    overflow: hidden;
}

.production-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.production-details {
    padding: 13px 0;
}

/* Loading Animation */
.production-card {
    cursor: pointer;
    position: relative;
    background: white;
    animation: slideUpFade 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.production-card:nth-child(1) { animation-delay: 0.1s; }
.production-card:nth-child(2) { animation-delay: 0.2s; }
.production-card:nth-child(3) { animation-delay: 0.3s; }
.production-card:nth-child(4) { animation-delay: 0.4s; }
.production-card:nth-child(5) { animation-delay: 0.5s; }
.production-card:nth-child(6) { animation-delay: 0.6s; }
.production-card:nth-child(7) { animation-delay: 0.7s; }
.production-card:nth-child(8) { animation-delay: 0.8s; }
.production-card:nth-child(9) { animation-delay: 0.9s; }
.production-card:nth-child(n+10) { animation-delay: 1s; }

.production-year {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1;
}

.production-title {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin: 0;
    line-height: 1.2;
}

.production-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 55 95 / 70%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.production-card:hover .production-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.hover-links {
    display: flex;
    gap: 10px;
}

.hover-link-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.hover-crew-info {
    font-size: 13px;
    line-height: 1.5;
}

.hover-release-date {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .category-main-wrapper {
        margin-top: 73.59px;
    }
    
    .category-header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
        margin-top: 20px;
    }
    
    .category-title {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -1.5px;
    }
    
    .sort-controls-desktop {
        display: none;
    }
    
    .sort-controls-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        border-bottom: 1px solid #000;
    }
    
    .sort-dropdown {
        border:0px;
        flex: 1;
        max-width: 200px;
    }

    .sort-label {
        padding:0 18px;
    }

    .productions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
        margin-top: 10px;
    }
    
    .production-image-container {
        height: 180px; /* Shorter rectangular height for mobile too */
        aspect-ratio: 16/9; /* Maintain rectangular aspect ratio on mobile */
    }
    
    .production-title {
        font-size: 20px;
    }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}


/* Type Filter Dropdown Container */
.type-filter-container {
    position: relative;
    display: inline-block;
    max-width: 300px;
    width: 100%;
}

.type-filter-dropdown {
    position: relative;
    padding: 8px 12px;
    border: 0px solid #ddd;
    background: transparent;
    color: black;
    width: 100%;
    font-family: inherit;
    font-size: 44px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    
}

.type-filter-dropdown option {
    color:#000
}

.type-filter-dropdown option {
  padding: 10px;
  background-color: white;
  color: #333;
}

/* Hover effect for options (Firefox only) */
.type-filter-dropdown option:hover {
  background-color: #00375f !important;
  color: white !important;
}
.type-filter-bg {
    position: absolute;
    width: 0%;
    height: 100px;
    background-color: #00375f;
    transition: width 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.type-filter-container:hover .type-filter-bg {
    width: 115%;
}

.type-filter-container:hover .type-filter-dropdown {
    color: white;
}

.type-filter-dropdown:focus {
    outline: none !important;
    box-shadow: none !important;
}


.type-filter-dropdown:focus-visible {
    outline: 2px solid #00375f; /* Optional: custom focus indicator */
    outline-offset: 2px;
}

.type-filter-container::after {
    content: '↓';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    color: black;
    pointer-events: none;
    z-index: 3;
    transition: color 0.3s ease;
}

.type-filter-container:hover::after {
    color: white;
}
