@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.video-frame {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.video-frame:hover {
    transform: scale(1.05);
}

.control-btn {
    background-color: #fc0a0a;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.control-btn:hover {
    color: #fc0a0a;
}

#error-message {
    animation: fadeIn 1s ease-out;
}

#copy-id {
    margin-top: 8px;
    font-size: 1rem;
}

.control-btn {
    background: #fc0a0a;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}

.control-btn:hover {
    transform: scale(1.1);
}

.text-red-500 {
    color: red;
}

.video-wrapper {
    position: relative;
    display: inline-block;
}

.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Skeuomorphic effect */
.control-btn {
    background: linear-gradient(145deg, #fc0a0a, #fff);
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.3), inset -3px -3px 5px rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
}

.control-btn:active {
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5), inset -1px -1px 3px rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* Fullscreen button */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 20, 20, 0.8);
    color: white;
    border: none;
    padding: 8px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-btn:active {
    transform: scale(0.9);
}

/* Animated glow effect for active buttons */
.text-red-500 {
    color: red;
    text-shadow: 0px 0px 8px rgba(255, 0, 0, 0.8);
}

.video-frame {
    border-radius: 16px;
    background: rgba(50, 50, 50, 0.5);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4), -6px -6px 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.video-frame:hover {
    transform: scale(1.02);
}

/* Floating fullscreen exit button */
.exit-fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.exit-fullscreen-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

.control-btn.disabled {
    background: red !important;
    color: white !important;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.8)
}