.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.category-list {
    max-height: 60vh;
    overflow-y: auto;
}
.image-card img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}
@media (max-width: 1024px) {
    .image-card img {
        height: 240px;
    }
}
@media (max-width: 640px) {
    .image-card img {
        height: 200px;
    }
    .mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .mobile-menu.active {
        max-height: 300px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .mobile-search-container {
        margin-bottom: 0.75rem !important;
    }
    .mobile-auth-container {
        gap: 0.75rem !important;
    }
}
.logo-img {
    height: 40px;
    object-fit: contain;
}
.video-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}
.video-stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e63946;
    cursor: pointer;
}
.user-info-container {
    cursor: pointer;
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
}
.big-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-container:hover .big-play-btn,
.video-player.paused + .video-overlay .big-play-btn {
    opacity: 1;
}
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 15px 20px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-container:hover .video-controls {
    opacity: 1;
}
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: #e63946;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}
.progress-handle {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.progress-bar:hover .progress-handle {
    opacity: 1;
}
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.control-btn:hover {
    background: rgba(255,255,255,0.2);
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.volume-control:hover .volume-slider {
    opacity: 1;
}
.volume-fill {
    height: 100%;
    background: #e63946;
    border-radius: 2px;
    width: 100%;
}
.speed-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.speed-select option {
    background: #333;
    color: #fff;
}
.time-display {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-direction: column;
}
.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}
.unlock-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.unlock-message {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}
.unlock-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.unlock-btn:hover {
    background: #d12f3c;
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}
.toast.show {
    display: block;
    animation: toast 2s ease forwards;
}
@keyframes toast {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width: 768px) {
    .big-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .volume-slider {
        width: 60px;
    }
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .speed-select {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    .unlock-title {
        font-size: 1.2rem;
    }
    .unlock-message {
        font-size: 0.9rem;
    }
    .unlock-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}