.drama-header { 
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    min-height: 400px;
    will-change: transform;
    contain: layout style paint;
}

.drama-poster {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    will-change: transform;
    contain: layout style paint;
}

.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    will-change: background-position;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* User info card styles */
.group:hover .user-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.user-card {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure cards are not blocked */
.relative.group {
    z-index: auto;
    contain: layout style;
}

.relative.group:hover {
    z-index: 1001;
}

/* Share button styles */
.share-platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.share-platform-btn:hover {
    transform: scale(1.1) translateZ(0);
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.share-platform-btn:active {
    transform: scale(0.95) translateZ(0);
}

.share-platform-btn:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
    ring-color: #3b82f6;
}

/* Toast styles */
.share-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 24rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%) translateZ(0);
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.share-toast.show {
    transform: translateX(0) translateZ(0);
}

.share-toast.success {
    border-color: #d1fae5;
    background-color: #ecfdf5;
}

.share-toast.error {
    border-color: #fee2e2;
    background-color: #fef2f2;
}

/* Trending Dramas custom styles */
.trending-dramas .swiper-slide {
    transition: all 0.3s ease;
    aspect-ratio: 2/3;
}

.trending-dramas .swiper-slide:hover {
    transform: translateY(-8px);
}

.trending-dramas .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation button hover effects */
.trending-dramas .swiper-button-prev:hover,
.trending-dramas .swiper-button-next:hover {
    transform: scale(1.1);
}

/* Unified image aspect ratio */
.trending-dramas .swiper-slide {
    aspect-ratio: 2/3;
}

.trending-dramas .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 