body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

p {
    color: #aaa;
}

.input-box {
    display: flex;
    margin-top: 20px;
    gap: 10px;
    align-items: center;
}

.input-box>button {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: #ff0050;
    color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 90px 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    flex: 1;
}

.paste-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}

.paste-btn:hover {
    background: #ff0050;
}

input {
    flex: 1;
    padding: 12px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
}

button {
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    border: none;
    background: #ff0050;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: 0.8;
}

.loading {
    margin: 20px auto;
    border: 4px solid #333;
    border-top: 4px solid #ff0050;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

.card {
    margin-top: 20px;
    background: #1e1e1e;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(255, 0, 80, 0.15);
    margin-top: 30px;
    animation: fadeIn 0.4s ease-in-out;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.4s ease forwards;
    position: relative;
    z-index: 10;
}

video {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.download-btn {
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 20;
    cursor: pointer;
}

.error {
    color: #ff4c4c;
    margin-top: 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    /* margin-top: 20px; */
}

.image-item img {
    width: 100%;
    border-radius: 12px;
}

.image-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 14px;
    transition: 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.3);
}

.stats {
    margin-top: 7px;
}

.zip-container {
    text-align: center;
    margin-bottom: 25px;
}

.zip-btn {
    width: 260px;
    background: linear-gradient(45deg, #ff0050, #ff3366);
    font-weight: bold;
    transition: 0.3s ease;
}

.zip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.6);
}

#topLoader {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #ff0050, #ff3366);
    z-index: 9999;
    transition: width 0.4s ease;
    /* pointer-events: none; */
}

.highlight {
    animation: glow 1.2s ease;
    /* pointer-events: none; */
}

.download-main-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(45deg, #ff0050, #ff3366);
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.download-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.6);
}

.paste-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.paste-btn i,
.download-main-btn i {
    font-size: 16px;
}

.card h5 {
    word-break: break-word;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0 rgba(255, 0, 80, 0);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 0, 80, 0.6);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 0, 80, 0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}