/* Artists Management Plugin - Frontend Styles */

:root {
    --amp-primary-gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --amp-primary-color: #667EEA;
    --amp-secondary-color: #764BA2;
    --amp-text-dark: #2D3748;
    --amp-text-light: #718096;
    --amp-border-color: #E2E8F0;
    --amp-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --amp-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Artist Single Page */
.amp-artist-single {
    min-height: 100vh;
}

/* Layout se sidebarem */
.amp-artist-single.has-sidebar .artist-content-section .container {
    display: flex;
    gap: 40px;
}

.amp-artist-single.has-sidebar .artist-meta-content {
    flex: 1;
}

.amp-artist-single.has-sidebar .artist-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.amp-artist-single.has-sidebar.sidebar-left .artist-content-section .container {
    flex-direction: row-reverse;
}

.artist-hero-section {
    background: var(--amp-primary-gradient);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.artist-hero-section h1,
.artist-hero-section h2,
.artist-hero-section h3,
.artist-hero-section h4,
.artist-hero-section h5,
.artist-hero-section h6 {
    color: white !important;
}

.artist-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -30px) rotate(240deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.artist-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.artist-hero-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: white;
    position: relative;
}

.artist-hero-image .photo-source {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    text-align: center;
}

.artist-hero-image .photo-source a {
    color: white !important;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.artist-hero-image .photo-source a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.artist-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-hero-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--amp-primary-color);
}

.artist-hero-image .placeholder-image svg {
    width: 100px;
    height: 100px;
}

.artist-hero-info {
    flex: 1;
}

.artist-name {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.artist-alt-name {
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

.artist-birth-info-header {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.artist-birth-info-header .birth-date .label {
    font-weight: 600;
    margin-right: 5px;
}

.artist-birth-info-header .birth-place::before {
    content: "•";
    margin-right: 10px;
    opacity: 0.7;
}

.artist-categories {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.artist-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

/* Artist Favorite Info */
.artist-favorite-info {
    margin-top: 20px;
    margin-bottom: 15px;
}

.artist-favorite-info p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.artist-favorite-info strong {
    color: white;
    font-weight: 600;
}

/* Content Sections */
.artist-content-section {
    padding: 60px 0;
}

.artist-main-content {
    flex: 1;
    min-height: 400px;
}

.artist-biography {
    margin-bottom: 40px;
}

.artist-biography h2 {
    color: var(--amp-text-dark);
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.artist-biography h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--amp-primary-gradient);
}

.content-text {
    color: var(--amp-text-light);
    line-height: 1.8;
    font-size: 1.1em;
}

/* Artist Meta Info */
.artist-meta-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--amp-border-color);
}

.artist-meta-info > div {
    margin-bottom: 30px;
}

.artist-meta-info h3 {
    color: var(--amp-text-dark);
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.artist-meta-info h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--amp-border-color), transparent);
}

/* Performances List */
.artist-performances {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 30px;
    border-radius: 15px;
}

.performances-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.performances-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.performances-list li:last-child {
    border-bottom: none;
}

.performances-list li:hover {
    padding-left: 10px;
}

.performances-list a {
    color: var(--amp-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.performances-list a:hover {
    color: var(--amp-secondary-color);
}

.role-name {
    color: var(--amp-text-light);
    font-style: italic;
    margin-left: 10px;
}

/* More performances link */
.more-performances {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--amp-border-color);
}

.show-more-performances {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amp-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.show-more-performances:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(5px);
}

.show-more-performances .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Social Links */
.artist-social-links {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--amp-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Artists Archive Page */
.amp-artists-archive {
    min-height: 100vh;
}

.archive-hero-section {
    background: var(--amp-primary-gradient);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    z-index: 1;
}

.archive-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.archive-hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    z-index: 0;
}

.archive-hero-section .container {
    position: relative;
    z-index: 1;
}

/* Floating shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    top: -100px;
    left: -100px;
    animation: float-shape-1 30s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    bottom: -50px;
    right: -50px;
    animation: float-shape-2 25s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    top: 50%;
    left: 70%;
    animation: float-shape-3 35s ease-in-out infinite;
}

@keyframes float-shape-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

@keyframes float-shape-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.2); }
    66% { transform: translate(-40px, -100px) scale(0.8); }
}

@keyframes float-shape-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-100px, -50px) rotate(180deg); }
}

.archive-hero-section h1,
.archive-hero-section h2,
.archive-hero-section h3 {
    color: white !important;
}

.archive-title {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.archive-description {
    font-size: 1.4em;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: white !important;
}

/* Filters */
.artists-filter-section {
    background: white;
    padding: 40px 0;
    border-bottom: 2px solid var(--amp-border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* Search Bar */
.artists-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 35px;
}

.artists-search-bar input {
    width: 100%;
    padding: 18px 55px 18px 25px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--amp-border);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
}

.artists-search-bar input:focus {
    outline: none;
    border-color: var(--amp-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.artists-search-bar .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amp-gray);
    pointer-events: none;
}

.artists-filters {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--amp-text-dark);
}

.artist-filter {
    padding: 8px 15px;
    border: 2px solid var(--amp-border-color);
    border-radius: 8px;
    background: white;
    color: var(--amp-text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.artist-filter:hover,
.artist-filter:focus {
    border-color: var(--amp-primary-color);
    outline: none;
}

/* Alphabet Filter */
.artists-alphabet-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
}

.alphabet-filter-btn {
    width: 42px;
    height: 42px;
    border: 2px solid transparent;
    background: white;
    color: var(--amp-text-dark);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alphabet-filter-btn:hover {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.alphabet-filter-btn.active {
    background: var(--amp-primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Public Add Button */
.artists-public-add {
    text-align: center;
}

.artists-public-add .amp-button-primary {
    padding: 12px 30px;
    background: var(--amp-primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.artists-public-add .amp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Public Actions on Single Artist Page */
.artist-public-actions {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--amp-border);
    text-align: center;
}

.artist-public-actions button {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--amp-primary-gradient);
    color: white;
    border: none;
}

.artist-public-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.amp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.amp-modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amp-modal-header {
    padding: 25px;
    background: var(--amp-primary-gradient);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amp-modal-header h2 {
    margin: 0;
    color: white;
}

.amp-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.amp-modal-close:hover {
    transform: scale(1.2);
}

.amp-modal-body {
    padding: 30px;
}

.amp-modal-body .amp-form-field {
    margin-bottom: 20px;
}

.amp-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--amp-text-dark);
}

.amp-modal-body input,
.amp-modal-body textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--amp-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.amp-modal-body input:focus,
.amp-modal-body textarea:focus {
    outline: none;
    border-color: #667EEA;
}

.amp-modal-body small {
    display: block;
    margin-top: 5px;
    color: #718096;
}

.amp-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.amp-button-primary,
.amp-button-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.amp-button-primary {
    background: var(--amp-primary-gradient);
    color: white;
}

.amp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.amp-button-secondary {
    background: #E2E8F0;
    color: var(--amp-text-dark);
}

.amp-button-secondary:hover {
    background: #CBD5E0;
}

/* Artists Grid */
.artists-grid-section {
    padding: 60px 0;
}

.amp-artists-grid,
.amp-elementor-artists-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.amp-artists-grid.columns-2,
.amp-elementor-artists-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.amp-artists-grid.columns-3,
.amp-elementor-artists-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.amp-artists-grid.columns-4,
.amp-elementor-artists-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.amp-artists-grid.columns-5,
.amp-elementor-artists-grid.columns-5 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Artist Card */
.artist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--amp-card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--amp-primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--amp-hover-shadow);
}

.artist-card:hover::before {
    transform: scaleX(1);
}

.artist-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artist-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    position: relative;
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Default avatar for artists without photo */
.artist-default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--amp-primary-gradient);
    position: relative;
    overflow: hidden;
}

.artist-default-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.artist-default-avatar .avatar-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.artist-card-content {
    padding: 20px;
    padding-top: 25px;
}

.artist-card-title {
    color: var(--amp-text-dark);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.artist-card-excerpt {
    color: var(--amp-text-light);
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 0;
}

/* Artist Favorites Badge */
.artist-favorites-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: linear-gradient(135deg, #FF006E, #FB0085);
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    animation: badge-pulse 2s infinite;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 0, 110, 0.9);
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 0, 110, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    }
}

.artist-favorites-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5);
}

.artist-favorites-badge svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.artist-favorites-badge .favorites-count {
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Cast List Block */
.amp-cast-block,
.amp-elementor-cast-list {
    margin: 40px 0;
}

.cast-block-title,
.cast-list-title {
    color: var(--amp-text-dark);
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.cast-block-title::after,
.cast-list-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--amp-primary-gradient);
}

.cast-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.amp-elementor-cast-list.columns-2 .cast-members-grid {
    grid-template-columns: repeat(2, 1fr);
}

.amp-elementor-cast-list.columns-3 .cast-members-grid {
    grid-template-columns: repeat(3, 1fr);
}

.amp-elementor-cast-list.columns-4 .cast-members-grid {
    grid-template-columns: repeat(4, 1fr);
}

.cast-member-card,
.cast-member-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--amp-card-shadow);
    transition: all 0.3s ease;
}

.cast-member-card:hover,
.cast-member-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--amp-hover-shadow);
}

.cast-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cast-member-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.cast-member-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cast-member-image.placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

.cast-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-member-info {
    padding: 15px;
    text-align: center;
}

.cast-member-name {
    color: var(--amp-text-dark);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.cast-member-role {
    color: var(--amp-primary-color);
    font-size: 0.9em;
    font-style: italic;
}

/* Archivní obsazení styly */
.archive-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    margin-bottom: 20px;
}

.archive-badge {
    background: #6b7280;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cast-role-group.archive-role {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cast-role-group.archive-role .role-name {
    color: #6b7280;
}

.archive-artist,
.cast-member.archive-member {
    opacity: 0.7;
}

.archive-artist:hover {
    opacity: 1;
}

.archive-members .cast-member {
    position: relative;
    opacity: 0.8;
}

.archive-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6b7280;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Compact Cast View */
.cast-compact-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--amp-card-shadow);
    display: grid;
    gap: 30px;
}

.cast-compact-list.columns-1 {
    grid-template-columns: 1fr;
}

.cast-compact-list.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cast-compact-list.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cast-compact-list.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cast-role-item {
    padding-bottom: 20px;
}

.role-header {
    font-weight: 600;
    color: var(--amp-primary-color);
    font-size: 16px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--amp-primary-color);
}

.role-artists-list {
    line-height: 1.8;
    color: var(--amp-text);
}

/* Grid View */
.cast-members-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cast-members-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cast-members-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cast-members-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Roztažení posledních položek přes zbylé sloupce */
.cast-compact-list .cast-role-item:nth-last-child(1):nth-child(4n+3) {
    grid-column: span 2; /* Pokud je předposlední ve 4 sloupcích */
}

.cast-compact-list.columns-4 .cast-role-item:nth-last-child(1):nth-child(4n+2) {
    grid-column: span 3; /* Pokud je třetí od konce ve 4 sloupcích */
}

.cast-compact-list.columns-4 .cast-role-item:nth-last-child(1):nth-child(4n+1) {
    grid-column: span 4; /* Pokud je jediná na řádku ve 4 sloupcích */
}

.cast-compact-list.columns-3 .cast-role-item:nth-last-child(1):nth-child(3n+2) {
    grid-column: span 2; /* Pokud jsou 2 položky na posledním řádku ve 3 sloupcích */
}

.cast-compact-list.columns-3 .cast-role-item:nth-last-child(1):nth-child(3n+1) {
    grid-column: span 3; /* Pokud je jediná na řádku ve 3 sloupcích */
}

.cast-compact-list.columns-2 .cast-role-item:nth-last-child(1):nth-child(2n+1) {
    grid-column: span 2; /* Pokud je jediná na řádku ve 2 sloupcích */
}

.artist-hover-link {
    color: var(--amp-text-dark);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.artist-hover-link:hover {
    background: var(--amp-primary-gradient);
    color: white;
}

.artist-no-link {
    color: #718096;
    font-style: italic;
}

/* Artist Tooltip */
.artist-tooltip,
.amp-global-tooltip {
    position: fixed !important;
    z-index: 2147483647 !important; /* Maximální z-index */
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    max-width: 350px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
    opacity: 0;
    display: none;
    visibility: hidden;
}

.tooltip-content {
    display: flex;
    padding: 15px;
    gap: 15px;
}

.tooltip-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--amp-primary-gradient);
}

.tooltip-photo[src=""] {
    display: none;
}

.tooltip-info {
    flex: 1;
}

.tooltip-name {
    display: block;
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--amp-text-dark);
    line-height: 1.2;
}

.tooltip-bio {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--amp-text);
    line-height: 1.4;
}

.tooltip-link {
    font-size: 12px;
    color: var(--amp-primary-color);
    font-weight: 600;
}

/* Gutenberg Editor Styles */
.amp-cast-list-editor {
    padding: 20px;
    border: 1px solid var(--amp-border-color);
    border-radius: 10px;
}

.cast-members-list {
    margin-bottom: 20px;
}

.cast-member-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 15px;
    background: #F7FAFC;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cast-member-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.artist-autocomplete {
    position: relative;
}

.artist-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--amp-border-color);
    border-radius: 8px;
    box-shadow: var(--amp-card-shadow);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.artist-suggestions li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.artist-suggestions li:hover {
    background: var(--amp-primary-gradient);
    color: white;
}

.no-cast-members {
    text-align: center;
    color: var(--amp-text-light);
    padding: 30px;
    background: #F7FAFC;
    border-radius: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 8px 15px;
    background: white;
    color: var(--amp-text-dark);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--amp-border-color);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--amp-primary-gradient);
    color: white;
    border-color: transparent;
}

/* Archive Sections */
.cast-archive-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed var(--amp-border-color);
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 30px;
    border-radius: 12px;
}

.cast-archive-section.archive-hidden .archive-cast-content {
    display: none;
}

.toggle-archive-btn {
    background: var(--amp-primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.toggle-archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.archive-cast-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-title {
    color: var(--amp-text-dark);
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

/* Odstraněno prázdné ::before - způsobovalo problémy */

.cast-role-item.archive-item,
.cast-member-item.archive-item {
    opacity: 0.9;
    position: relative;
}

.cast-role-item.archive-item::after,
.cast-member-item.archive-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23718096"><path d="M3 10H14V8H3V10ZM3 14H14V12H3V14ZM3 6H14V4H3V6ZM16 12V18H22V12H16ZM16 10H22L19 7L16 10Z"/></svg>') center/contain no-repeat;
    opacity: 0.5;
}

/* Artist Creative Positions */
.artist-creative-positions,
.artist-archive-creative {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.creative-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.creative-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.creative-list li:last-child {
    border-bottom: none;
}

.creative-list li:hover {
    padding-left: 10px;
}

.creative-list a {
    color: var(--amp-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.creative-list a:hover {
    color: var(--amp-secondary-color);
}

.position-name {
    color: var(--amp-text-light);
    font-weight: 600;
    margin-left: 10px;
}

.artist-archive-creative {
    background: linear-gradient(135deg, #F7FAFC, #EDF2F7);
}

.artist-archive-creative .creative-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.archive-position {
    opacity: 0.85;
}

/* Artist Page Archive Performances */
.artist-archive-performances {
    background: linear-gradient(135deg, #F7FAFC, #EDF2F7);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.artist-archive-performances h2 {
    color: var(--amp-text-dark);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.artist-archive-performances .archive-description,
.artist-archive-creative .archive-description {
    color: #000000 !important;
    font-size: 0.95em;
    margin-bottom: 20px;
    font-style: italic;
}

.performances-list.archive-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.archive-performance {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.archive-performance:hover {
    opacity: 1;
}

.archive-performance .archived-date {
    color: var(--amp-text-light);
    font-size: 0.85em;
    margin-left: 10px;
    font-style: italic;
}

/* Creative Team Archive Styles */
.creative-team-archive-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    border-top: 2px dashed var(--amp-border-color);
}

.creative-team-archive-section .archive-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.creative-team-archive-section .creative-team-item {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.creative-team-archive-section .creative-team-position {
    color: #6b7280;
}

.creative-team-archive-section .team-member-link.archive-member,
.creative-team-archive-section span.archive-member {
    color: #6b7280;
    opacity: 0.9;
}

.creative-team-archive-section .team-member-link.archive-member:hover {
    color: var(--amp-primary-color);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amp-artist-single.has-sidebar .artist-content-section .container {
        flex-direction: column;
    }
    
    .amp-artist-single.has-sidebar .artist-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .artist-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .artist-hero-image {
        width: 200px;
        height: 200px;
    }
    
    .artist-name {
        font-size: 2em;
    }
    
    .archive-title {
        font-size: 2.5em;
    }
    
    .amp-artists-grid,
    .amp-elementor-artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Cast List - kompaktní režim na tabletech */
    .cast-compact-list.columns-4,
    .cast-compact-list.columns-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .cast-compact-list.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Grid view na tabletech */
    .cast-members-grid.columns-4,
    .cast-members-grid.columns-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .cast-members-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .cast-member-fields {
        grid-template-columns: 1fr;
    }
    
    .cast-member-row {
        flex-direction: column;
    }
    
    /* Přepočítat roztažení pro 2 sloupce na tabletech */
    .cast-compact-list.columns-3 .cast-role-item:nth-last-child(1):nth-child(n),
    .cast-compact-list.columns-4 .cast-role-item:nth-last-child(1):nth-child(n),
    .cast-compact-list.columns-5 .cast-role-item:nth-last-child(1):nth-child(n) {
        grid-column: auto; /* Reset */
    }
    
    .cast-compact-list .cast-role-item:nth-last-child(1):nth-child(2n+1) {
        grid-column: span 2; /* Jediná položka na řádku ve 2 sloupcích */
    }
}

@media (max-width: 480px) {
    .amp-artists-grid,
    .amp-elementor-artists-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cast List - vždy 1 sloupec na mobilech */
    .cast-compact-list,
    .cast-compact-list.columns-2,
    .cast-compact-list.columns-3,
    .cast-compact-list.columns-4,
    .cast-compact-list.columns-5 {
        grid-template-columns: 1fr !important;
    }
    
    /* Grid view - vždy 1 sloupec na mobilech */
    .cast-members-grid,
    .cast-members-grid.columns-2,
    .cast-members-grid.columns-3,
    .cast-members-grid.columns-4,
    .cast-members-grid.columns-5 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Reset roztažení na mobilech */
    .cast-compact-list .cast-role-item {
        grid-column: auto !important;
    }
    
    /* Upravit velikosti fontů na mobilech */
    .role-header {
        font-size: 16px;
    }
    
    .role-artists-list {
        font-size: 14px;
    }
    
    .cast-member-card {
        padding: 15px;
    }
    
    .artists-alphabet-filter {
        display: none;
    }
    
    /* Menší padding na mobilech */
    .amp-elementor-cast-list {
        padding: 10px;
    }
    
    .cast-list-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}