* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(45deg, #010758, #490d61);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.app-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 2px solid rgba(255, 41, 99, 0.3);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo i {
    font-size: 24px;
    color: #ff2963;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 41, 99, 0.5);
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.logo h1 span {
    color: #ff2963;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
}


.main-content {
    flex: 1;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Hero Section - MOBILE FIRST */
.hero {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.hero h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.hero h2 span {
    color: #ff2963;
}


textarea {
    width: 100%;
    min-height: 180px;
    max-height: 250px;
    background-color: rgba(64, 61, 132, 0.9);
    color: #fff;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    outline: 0;
    padding: 15px;
    border-radius: 12px;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    font-size: 15px;
    line-height: 1.5;
}

textarea:focus {
    border-color: #ff2963;
    box-shadow: 0 0 10px rgba(255, 41, 99, 0.4);
}

/* Custom Scrollbar for textarea */
textarea::-webkit-scrollbar {
    width: 6px;
}

textarea::-webkit-scrollbar-track {
    background: #2d2b5e;
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff2963, #ff6b9d);
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b9d, #ff2963);
}

textarea::placeholder {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}


.row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}


select {
    width: 100%;
    color: #fff;
    background: rgba(64, 61, 132, 0.9);
    height: 50px;
    padding: 0 15px;
    outline: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    appearance: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgNkw4IDEwTDEyIDYiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-size: 14px;
    background-position-x: calc(100% - 15px);
    background-position-y: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #ff2963;
}

button {
    width: 100%;
    background: linear-gradient(45deg, #ff2963, #ff6b9d);
    color: #fff;
    font-size: 16px;
    padding: 15px 25px;
    border-radius: 25px;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(255, 41, 99, 0.3);
    min-height: 50px;
}

button:hover {
    background: linear-gradient(45deg, #ff6b9d, #ff2963);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #a01c40;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#play-icon {
    font-size: 14px;
}

.btn-text {
    font-weight: 500;
}

.controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(64, 61, 132, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-item label {
    color: white;
    font-weight: 500;
    min-width: 80px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-item label i {
    font-size: 14px;
    color: #ff6b9d;
}

.control-item input[type="range"] {
    flex: 1;
    min-width: 150px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff2963;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.control-item span {
    color: white;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
    font-size: 14px;
}


.app-footer {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 41, 99, 0.2);
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-content p {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-content p i {
    color: #ff2963;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff2963;
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .app-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
        text-align: left;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .main-content {
        padding: 30px;
    }
    
    .hero {
        max-width: 700px;
        padding: 20px;
    }
    
    .hero h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    textarea {
        min-height: 200px;
        max-height: 300px;
        padding: 20px;
        font-size: 16px;
    }
    
    textarea::placeholder {
        font-size: 15px;
    }
    
    .row {
        flex-direction: row;
        gap: 20px;
    }
    
    select {
        height: 55px;
        font-size: 15px;
    }
    
    button {
        width: auto;
        min-width: 160px;
        padding: 12px 35px;
    }
    
    .controls {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        padding: 20px;
    }
    
    .control-item label {
        min-width: 70px;
        font-size: 15px;
    }
    
    .control-item input[type="range"] {
        min-width: 120px;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .footer-content p {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .app-header {
        padding: 20px 50px;
    }
    
    .main-content {
        padding: 40px 20px;
    }
    
    .hero {
        max-width: 800px;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    textarea {
        min-height: 220px;
        max-height: 350px;
    }
    
    .controls {
        gap: 60px;
    }
    
    .control-item input[type="range"] {
        min-width: 150px;
    }
}

/* ==================== */
/* VERY SMALL MOBILE */
/* ==================== */
@media (max-width: 360px) {
    .app-header {
        padding: 12px 15px;
    }
    
    .logo i {
        font-size: 20px;
        padding: 6px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 11px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .hero {
        padding: 10px;
    }
    
    .hero h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    textarea {
        min-height: 150px;
        padding: 12px;
        font-size: 14px;
    }
    
    textarea::placeholder {
        font-size: 13px;
    }
    
    select {
        height: 45px;
        font-size: 13px;
        padding: 0 12px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .controls {
        padding: 12px;
    }
    
    .control-item label {
        min-width: 70px;
        font-size: 13px;
    }
    
    .control-item input[type="range"] {
        min-width: 120px;
        height: 5px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}