body {
    min-height: 90vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
}

.hint-text {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    will-change: opacity;
}

.expand-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 8px;
}

.expand-btn:hover {
    color: #000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.01);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-container video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.audio-player {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    padding: 8px 15px;
    backdrop-filter: blur(4px);
    margin-top: 10px;
}

.play-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #111;
    cursor: pointer;
    padding: 0;
    width: 32px;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.volume-btn {
    border: none;
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 0 5px;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.volume-btn:hover {
    transform: scale(1.05);
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-range {
    height: 5px;
    width: 50px;
}

.form-range::-webkit-slider-thumb {
    background: #111;
}

@media (max-width: 576px) {
    .volume-group {
        display: none;
    }
}

.progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-width: 100px;
}

.progress-bar {
    background: linear-gradient(90deg, #ff8ab5, #8ab5ff);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.75rem;
    font-family: 'Raleway', sans-serif;
    color: #666;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.link-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.copy-btn {
    border: none;
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    border-left: 1.5px solid #111;
    transition: all 0.2s;
    background: transparent;
    flex-shrink: 0;
}

.copy-btn.copied {
    color: #28a745;
}

h1 {
    font: 800 clamp(2rem, 9vw, 4.8rem)/1.2 'Unbounded', sans-serif;
    letter-spacing: -0.02em;
    color: #111;
}

.music {
    background: linear-gradient(145deg, #ff8ab5, #8ab5ff, #b58aff, #ff9966);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: shimmer 10s ease-in-out infinite;
    display: inline-block;
    margin-left: 0.2rem;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.input-group-custom {
    max-width: 620px;
    border: 1.5px solid #111;
    border-radius: 70px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    overflow: hidden;
    position: relative;
}

.input-group-custom .form-control,
.input-group-custom .btn {
    border: none;
    background: transparent;
    box-shadow: none;
}

.input-group-custom .form-control {
    font-family: 'Raleway', sans-serif;
    padding-left: 1.5rem;
}

.input-group-custom .btn {
    border-left: 1.5px solid #111;
    border-radius: 0 60px 60px 0;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    white-space: nowrap;
}

.input-group-custom .btn i {
    margin-right: 0.5rem;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.3s ease;
}

.btn-shine:hover::after {
    left: 110%;
}

.result-block {
    max-width: 620px;
    width: 100%;
    font-family: 'Raleway', sans-serif;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.result-block.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.audio-player-container {
    max-width: 620px;
    width: 100%;
    font-family: 'Raleway', sans-serif;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
}

.audio-player-container.visible {
    opacity: 1;
    transform: translateY(0);
    margin-top: 15px;
    height: auto;
    overflow: visible;
    pointer-events: auto;
}

.error-block {
    color: #dc3545;
    padding: 8px 15px;
    text-align: center;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 20px 20px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    font-family: 'Raleway', sans-serif;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    background: white;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item .title {
    font-weight: 600;
    color: #111;
    font-size: 0.95rem;
}

.search-result-item .duration {
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
}

.full-text {
    display: inline;
}

.short-text {
    display: none;
}

@media (max-width: 576px) {
    .input-group-custom .btn span {
        display: none;
    }
    .input-group-custom .btn i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    .input-group-custom .btn {
        padding: 0.7rem 1.2rem;
    }
    .volume-group {
        display: none;
    }
    .time-display {
        min-width: 55px;
        font-size: 0.7rem;
    }
    .play-btn {
        width: 28px;
        font-size: 1.3rem;
    }
    .copy-btn {
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 768px) {
    .full-text {
        display: none;
    }
    .short-text {
        display: inline;
    }
}
