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

:root {
    --primary-color: #00f2ea;
    --primary-hover: #00c7c0;
    --secondary-color: #ff0050;
    --background: #050505;
    --surface: #121212;
    --surface-hover: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    --shadow-glow: 0 0 20px rgba(0, 242, 234, 0.3);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 120px;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 80, 0.08) 0%, transparent 25%);
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 500px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 242, 234, 0.2);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 500px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.btn-primary-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.6);
    background: #fff;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 1.1rem 2.5rem;
    border-radius: 500px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin-top: 2rem;
}

.equalizer-bar {
    width: 6px;
    background: var(--gradient-main);
    border-radius: 10px;
    animation: equalizer 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.equalizer-bar:nth-child(1) {
    height: 20%;
    animation-delay: 0s;
}

.equalizer-bar:nth-child(2) {
    height: 60%;
    animation-delay: 0.1s;
}

.equalizer-bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.2s;
}

.equalizer-bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.3s;
}

.equalizer-bar:nth-child(5) {
    height: 100%;
    animation-delay: 0.4s;
}

.equalizer-bar:nth-child(6) {
    height: 70%;
    animation-delay: 0.5s;
}

.equalizer-bar:nth-child(7) {
    height: 50%;
    animation-delay: 0.6s;
}

.equalizer-bar:nth-child(8) {
    height: 30%;
    animation-delay: 0.7s;
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.8;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

/* Player Bar */
.player-bar {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.player-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.player-bar-info {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.player-bar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon-small,
.btn-play-small {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.btn-play-small {
    width: 42px;
    height: 42px;
    background: var(--text-primary);
    color: #000;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-icon-small:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-play-small:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.player-bar-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 2;
    max-width: 500px;
}

.player-bar-progress span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 40px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.progress-bar-small {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.volume-slider-small {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider-small::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider-small:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* Featured Section */
.featured-section {
    background: var(--background);
    padding: 5rem 2rem 6rem;
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.featured-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.search-container-top {
    margin-bottom: 3rem;
    max-width: 600px;
    position: relative;
}

.search-container-top i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-container-top input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 500px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.search-container-top input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.1);
}

/* Songs Grid */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.song-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.song-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.song-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.15);
}

.song-artwork-large {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    position: relative;
    overflow: hidden;
}

.song-artwork-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .song-artwork-large img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 2rem;
    color: #000;
    background: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-left: 4px;
    /* Optical alignment */
}

.song-card:hover .play-overlay i {
    transform: scale(1);
}

.play-overlay:hover i {
    transform: scale(1.1);
    background: #fff;
}

.song-card-info {
    padding: 1.5rem;
}

.song-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.song-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.language-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.language-tag:hover {
    background: rgba(0, 242, 234, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 242, 234, 0.2);
}

/* Audio Player (Fixed Bottom) */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.audio-player.active {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.song-artwork {
    width: 64px;
    height: 64px;
    background: var(--gradient-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.song-details {
    min-width: 0;
    flex: 1;
}

.song-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.song-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.btn-icon,
.btn-play {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
}

.btn-play {
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: #000;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    padding-left: 4px;
}

.btn-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

.btn-play:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.4);
}

.player-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: height 0.2s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 10px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.progress-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-end;
}

.language-dropdown {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 140px;
}

.volume-control i {
    font-size: 1rem;
    color: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #121212;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.trim-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.trim-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trim-input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trim-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.trim-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .player-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .player-controls {
        order: -1;
    }

    .player-info {
        justify-content: center;
    }

    .player-actions {
        justify-content: center;
    }

    .player-bar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .player-bar-progress {
        width: 100%;
        max-width: none;
    }
}