@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Source+Sans+3:wght@300;400;600&display=swap');

/* Header */
.browse-creators-header {
    background-color: #1a1a1a;
    padding: 60px 40px 50px 40px;
    text-align: center;
    border-bottom: 1px solid #D4AF37;
}

.browse-creators-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    color: white;
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.browse-creators-header p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Controls */
.browse-creators-controls {
    background-color: #fafafa;
    padding: 15px 20px 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e4e4e4;
}

.browse-creators-search {
    margin-bottom: 18px;
}

.browse-creators-search input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1a1a1a;
    background: transparent;
    transition: border-color 0.3s;
    outline: none;
    letter-spacing: 0.3px;
}

.browse-creators-search input::placeholder {
    color: #bbb;
    font-style: italic;
    font-size: 13px;
}

.browse-creators-search input:focus {
    border-bottom-color: #D4AF37;
}

/* Genres wrapper */
.browse-creators-genres-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.browse-creators-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    overflow: hidden;
    max-height: 200px;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                padding-bottom 0.3s ease;
    opacity: 1;
    padding-bottom: 15px;
}

.browse-creators-genres.collapsed {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.genre-tag {
    padding: 5px 16px;
    border-radius: 0;
    border: 1px solid #d0d0d0;
    background-color: white;
    color: #888;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.genre-tag:hover {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.genre-tag.active {
    background-color: #D4AF37;
    color: white;
    border-color: #D4AF37;
}

/* Toggle arrow */
.genre-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #bbb;
    padding: 8px 20px;
    width: 100%;
    transition: color 0.2s;
    border-top: 1px solid #e4e4e4;
}

.genre-toggle:hover { color: #D4AF37; }
.genre-toggle:focus { outline: none; }

#creators-genre-toggle-icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Results count */
.browse-creators-results-count {
    text-align: center;
    padding: 15px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #aaa;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Grid */
.browse-creators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 40px;
    justify-content: flex-start;
    background-color: #fafafa;
}

/* Card */
.browse-creator-card {
    position: relative;
    flex: 0 0 calc(16.666% - 15px);
    max-width: calc(16.666% - 15px);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    animation: creatorCardFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    text-decoration: none;
    display: block;
}

.browse-creator-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.browse-creator-photo {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.browse-creator-no-image {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browse-creator-no-image p {
    font-family: 'Source Sans 3', sans-serif;
    color: #555;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Overlay */
.browse-creator-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 10px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.browse-creator-card:hover .browse-creator-overlay {
    opacity: 1;
}

.browse-creator-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
    display: block;
    margin-bottom: 3px;
}

.browse-creator-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Show poster filmstrip */
.browse-creator-shows {
    display: flex;
    gap: 3px;
}

.browse-creator-show-poster {
    width: 28px;
    height: 42px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}

.browse-creator-show-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes creatorCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* No results */
.browse-creators-no-results {
    width: 100%;
    text-align: center;
    padding: 60px;
    font-family: 'Source Sans 3', sans-serif;
    color: #aaa;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Loading spinner */
.browse-creators-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.browse-creators-loading.active {
    display: flex;
}

.browse-creators-spinner {
    width: 35px;
    height: 35px;
    border: 2px solid #e4e4e4;
    border-top: 2px solid #D4AF37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* End message */
.browse-creators-end {
    display: none;
    text-align: center;
    padding: 30px;
    font-family: 'Source Sans 3', sans-serif;
    color: #bbb;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.browse-creators-end.active {
    display: block;
}

#creators-scroll-trigger {
    height: 10px;
}

/* Mobile */
@media (max-width: 1200px) {
    .browse-creator-card {
        flex: 0 0 calc(20% - 15px);
        max-width: calc(20% - 15px);
    }
}

@media (max-width: 992px) {
    .browse-creator-card {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }

    .browse-creators-grid {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .browse-creators-header {
        padding: 40px 20px 35px 20px;
    }

    .browse-creators-header h1 {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .browse-creator-card {
        flex: 0 0 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }

    .browse-creators-grid {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .browse-creators-header {
        padding: 30px 15px 25px 15px;
    }

    .browse-creators-header h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .browse-creator-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .browse-creators-grid {
        gap: 10px;
        padding: 10px;
    }

    .genre-tag {
        font-size: 9px;
        padding: 5px 10px;
        letter-spacing: 1px;
    }
}