@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #fff;
    --text-secondary: #94a3b8;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --font: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 20%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #c084fc, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Search Bar */
.search-bar {
    position: relative;
}

.search-bar input {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.75rem 1.5rem;
    color: white;
    width: 300px;
    font-family: var(--font);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    width: 320px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
}

.search-bar button:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Request Banner */
.request-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 4rem auto 2rem;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Most Accessed List */
.top-songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.top-song-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-song-item:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateX(5px);
}

.rank-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-secondary);
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
    width: 40px;
}

.top-song-item:hover .rank-number {
    color: var(--accent);
    -webkit-text-stroke: 0;
    opacity: 1;
}

.song-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.song-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Song Page */
.song-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.song-header {
    text-align: left;
    margin: 2rem 0 3rem 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.song-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.song-header h2 {
    color: var(--accent);
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
}

.lyrics-container {
    background: transparent;
    border: none;
    padding: 0;
    max-width: none;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    white-space: pre-wrap;
    box-shadow: none;
    color: #e2e8f0;
}

.lyrics-container br {
    display: block;
    content: "";
    margin-top: 5px;
}

.video-container {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .song-layout {
        grid-template-columns: 1fr;
    }

    .video-container {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
    color: var(--text-secondary);
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    height: 1px;
    background: var(--border);
    flex: 1;
}