:root {
    --primary-color: #ff85a2;
    --primary-hover: #ff5c8a;
    --bg-dark: #120c10;
    --card-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 133, 162, 0.2);
    --text-main: #fff0f5;
    --text-muted: #e0b0bc;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Flowers & Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1e1218 0%, #120c10 100%);
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.3;
    animation: move 25s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #ff85a2;
    top: -150px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #7b2cbf;
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

/* Flower Animation */
.flower {
    position: absolute;
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
    animation: floatFlower 15s linear infinite;
}

@keyframes floatFlower {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    50% { opacity: 0.2; }
    100% { transform: translateY(10vh) rotate(360deg); opacity: 0; }
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(60px, 120px) scale(1.1); }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.heart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    margin-bottom: 20px;
}

.heart-svg {
    position: absolute;
    width: 380px;
    height: 380px;
    z-index: 0;
    filter: drop-shadow(0 0 25px rgba(255, 133, 162, 0.2));
    animation: heartPulse 4s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

.logo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: -10px;
}

.title-line {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff85a2, #ffffff, #ff85a2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    line-height: 0.9;
    text-shadow: 0 10px 30px rgba(255, 133, 162, 0.3);
}

.ampersand {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #fff;
    opacity: 0.9;
    margin: -10px 0;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

@keyframes shine {
    to { background-position: 200% center; }
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.4;
}

/* Input Area */
.input-area {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 1px var(--glass-border);
}

.input-group {
    display: flex;
    gap: 12px;
}

input[type="text"] {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 20px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    background: rgba(255, 133, 162, 0.05);
    box-shadow: 0 0 20px rgba(255, 133, 162, 0.1);
}

.btn-add {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 133, 162, 0.3);
}

.btn-add:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.05);
}

.links-queue {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.links-queue::-webkit-scrollbar {
    width: 4px;
}

.links-queue::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.queue-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 133, 162, 0.1);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    animation: slideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.queue-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 20px;
    color: var(--text-muted);
}

.btn-remove-item {
    background: transparent;
    color: #ff4d4d;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0 5px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    transform: scale(1.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff5c8a);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(255, 133, 162, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 133, 162, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #443c40;
    box-shadow: none;
}

/* Results */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    animation: popIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-status {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-download-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(255, 133, 162, 0.2);
}

.btn-download-small:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 133, 162, 0.15);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(40, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 133, 162, 0.3);
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    animation: modalPop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    white-space: pre-line;
    font-family: 'Dancing Script', cursive;
    text-align: left;
    padding: 10px;
}

.modal-footer button {
    width: 100%;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary {
    background: #7b2cbf;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

/* Loader */
.loader-inline {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.footer {
    text-align: center;
    padding: 20px 20px 40px;
    display: flex;
    justify-content: center;
}

.unified-love-card {
    background: rgba(255, 133, 162, 0.04);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 133, 162, 0.15);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 95%;
}

.footer-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.footer-card strong {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-love {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    animation: shake 5s ease-in-out infinite;
}

.btn-love:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@media (max-width: 600px) {
    .heart-container {
        padding: 40px 0;
    }
    .heart-svg {
        width: 260px;
        height: 260px;
    }
    .title-line { 
        font-size: 2.8rem; 
    }
    .ampersand {
        font-size: 2rem;
    }
    .container { 
        padding: 20px 10px; 
        gap: 20px;
        width: 100%;
        max-width: 100vw;
    }
    .input-area {
        padding: 15px;
        width: 100%;
        margin: 0 auto;
    }
    .input-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    input[type="text"] {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .btn-add {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.5rem;
    }
    .btn-primary {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}
