@tailwind utilities;

@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .text-shadow-lg {
        text-shadow: 0 4px 8px rgba(0,0,0,0.25);
    }
    
    .backdrop-blur-md {
        backdrop-filter: blur(12px);
    }
    
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
        100% { transform: translateY(0px); }
    }
}

/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #e53e3e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c53030;
}

/* 加载动画 */
.loader {
    transition: opacity 0.5s ease;
}

/* 卡片悬停效果 */
.movie-card {
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
}

/* 按钮效果 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.95);
}

/* 图片加载动画 */
img {
    transition: opacity 0.5s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 字体 */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}    