:root {
    /* 🌈 Background */
    --bg-gradient: #fafcfc;

    /* 🧱 Layout */
    --sidebar-bg: #E9F2FE;
    --card-bg: #FFFFFF;

    /* 🎯 Primary Theme (Playful Red) */
   
    --primary-color: #44d4f8;
    --primary-light: #FFE3E3;

    /* 🎨 Accent (Bright Blue) */
    --accent-color: #5478FF;
    --accent-light: #E1EDFF;

    /* 🌈 Extra Accent Colors (for categories) */
    --blue-accent: #4D96FF;
    --pink-accent: #FF8E9E;
    --yellow-accent: #FFD93D;
    --purple-accent: #9D94FF;

    /* ✍️ Text */
    --text-main: #2B2B2B;
    --text-muted: #5C5C5C;

    /* 🧩 Borders */
    --border-color: rgba(0, 0, 0, 0.05);

    /* 🌟 Shadows (softer & modern) */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.1);

    /* 🔘 Radius */
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-pill: 999px;
}

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

body {
    font-family: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

.app-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    backdrop-filter: blur(10px);
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 10;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
    text-decoration: none;
}

.logo:visited,
.logo:hover,
.logo:active,
.logo:focus {
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.2;
}

.mobile-menu-toggle {
    display: none;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-align: left;
}

.category-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(8px) scale(1.05);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.category-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

/* Content Area */
.content-wrapper {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
/* Popup Styling */
.copy-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4fccf2;
    color: rgb(15, 14, 14);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Show Popup */
.copy-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.view-section.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.view-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    /* background: url('/assets/images/bg.png') no-repeat center; */
    background-size: cover;
}

#homeView.active {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Home View */
.main-header {
    padding: 24px 32px 16px;
    z-index: 5;
    position: sticky;
    background: rgb(255, 255, 255);
    
    top: 0;
    border-radius: var(--radius-lg);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.index-toggle-btn {
    border: none;
    background: linear-gradient(135deg, #FFD93D, #FF8E9E);
    color: #2B2B2B;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-toggle-btn:hover,
.index-toggle-btn.active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.favorites-toggle-btn {
    border: none;
    background: linear-gradient(135deg, #FFD93D, #FF8E9E);;
    color: #2B2B2B;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s;
    border: 1px solid rgba(255, 142, 158, 0.2);
}

.favorites-toggle-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.favorites-toggle-btn.active {
    background: linear-gradient(135deg, #FFD93D, #FF8E9E);;
    color: #0c0c0c;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.3);
}

.alphabet-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 32px;
    width: min(760px, calc(100vw - 320px));
    padding: 18px 22px 22px;
    background:
        linear-gradient(rgba(255, 248, 214, 0.92), rgba(255, 248, 214, 0.92)),
        repeating-linear-gradient(90deg, rgba(141, 103, 39, 0.08) 0 1px, transparent 1px 5px);
    border: 2px solid rgba(255, 217, 61, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    z-index: 30;
    pointer-events: auto;
}

.alphabet-panel.open {
    display: block;
    animation: indexPop 0.18s ease-out;
}

.alphabet-panel-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
}

.alphabet-panel-head h2 {
    font-size: 28px;
    line-height: 1;
    color: var(--text-main);
}

.alphabet-close-btn {
    position: absolute;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(44px, 1fr));
    gap: 12px 18px;
}

.alphabet-letter-btn {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    color: #111827;
    cursor: pointer;
    font-family: 'Noto Sans Devanagari', 'Baloo 2', sans-serif;
    font-size: 25px;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.alphabet-letter-btn:hover,
.alphabet-letter-btn.active {
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    color: var(--accent-color);
    transform: translateY(-3px) scale(1.08);
}

@keyframes indexPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-bar:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    width: 100%;
    color: var(--text-main);
}

.seo-intro {
    padding: 0 32px 8px;
    max-width: 900px;
}

.seo-intro h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 4px;
}

.seo-intro p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-muted);
}

.site-footer {
    margin: 20px 32px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    overflow: hidden;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) minmax(140px, 0.8fr) minmax(280px, 1.7fr);
    gap: 16px;
    padding: 14px 18px;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-col h2 {
    font-size: 22px;
    line-height: 1.2;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.footer-col h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stat-badge {
    background: var(--primary-light);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(68, 212, 248, 0.2);
}

.stat-badge span {
    color: var(--accent-color);
    font-size: 15px;
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.links-col a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.yt-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FF0000;
    color: white;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.yt-icon {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #fff;
}

.yt-icon::before {
    content: '';
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #FF0000;
}

.yt-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255,0,0,0.4);
    color: white;
}

.jingle-videos a:hover img {
    transform: scale(1.05);
}

.jingle-videos {
    --jingle-item-width: 160px;
    --jingle-gap: 7px;
    display: flex;
    gap: var(--jingle-gap);
    margin-bottom: 8px;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.jingle-videos::-webkit-scrollbar {
    display: none;
}

.jingle-videos a {
    display: block;
    flex: 0 0 var(--jingle-item-width);
    min-width: 0;
    overflow: hidden;
    border: 2px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: jingleVideoMarquee 24s linear infinite;
}

.jingle-videos:hover a {
    animation-play-state: paused;
}

.jingle-videos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}

@keyframes jingleVideoMarquee {
    to {
        transform: translateX(calc(-6 * (var(--jingle-item-width) + var(--jingle-gap))));
    }
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: white;
}

.footer-bottom {
    background: rgba(0,0,0,0.02);
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.info-modal.show {
    display: flex;
}

.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.info-modal-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(78vh, 620px);
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.info-modal-panel h2 {
    padding-right: 36px;
    margin-bottom: 14px;
    color: var(--accent-color);
    font-size: 26px;
    line-height: 1.2;
}

.info-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.info-modal-content {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.55;
}

.info-modal-content ul {
    margin-left: 20px;
}

.info-modal-content li + li {
    margin-top: 6px;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .brand-col {
        grid-column: span 1;
    }
    .site-footer {
        margin: 6px 16px 10px;
    }

    .info-modal-panel {
        padding: 20px;
    }

    .info-modal-panel h2 {
        font-size: 22px;
    }

    .info-modal-content {
        font-size: 15px;
    }
}

.player-site-footer {
    grid-column: 1 / -1;
    margin: 4px 0 0;
}

.filter-heading-container {
    display: none;
    position: sticky;
    top: 92px;
    z-index: 4;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 5px 32px 22px;
    padding: 18px 20px 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 8px solid var(--primary-color);
    border-radius: var(--radius-lg);
    /* background:
        linear-gradient(135deg, rgba(255, 217, 61, 0.22), rgba(255, 142, 158, 0.14) 45%, rgba(68, 212, 248, 0.18)),
        rgba(255, 255, 255, 0.96); */
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    background: white;
}

.filter-heading-text {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-heading-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #FFD93D, #FF8E9E);
    color: #2B2B2B;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 7px 18px rgba(255, 142, 158, 0.24);
}

.filter-heading-value {
    min-width: 0;
    color: var(--text-main);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.filter-heading-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-heading-info {
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.filter-heading-info:empty {
    display: none;
}

.filter-clear-btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #44d4f8, #5478FF);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(84, 120, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-clear-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--shadow-md);
}

.song-grid {
    padding: 16px 32px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 10px;
    grid-auto-flow: dense;
    gap: 28px;
    overflow-y: auto;
    flex: 1;
}

#homeView .song-grid {
    overflow-y: visible;
    flex: 0 0 auto;
}

.song-grid.song-list-mode {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-auto-rows: auto;
    grid-auto-flow: row;
    align-items: start;
    gap: 24px;
    max-width: 1260px;
    padding-top: 8px;
}

.song-list-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-list-item {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border-color: var(--primary-color);
}

.song-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    
}

.song-list-category-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 13px 6px;
    border-radius: var(--radius-lg) 0 var(--radius-md) 0;
    background: linear-gradient(135deg, #FFD93D, #FF8E9E);
    color: #2B2B2B;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 5px 14px rgba(255, 142, 158, 0.28);
}

.song-list-title {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.song-list-meta {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.song-list-meta-stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    line-height: 1.35;
    text-align: right;
}

.popular-filter-panel {
    position: sticky;
    top: 200px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.popular-filter-panel h3 {
    font-size: 22px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 14px;
}

.popular-filter-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-filter-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popular-filter-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.popular-filter-card img {
    width: 86px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--accent-light);
}

.popular-filter-card span {
    color: var(--text-main);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 32px 24px;
    padding: 6px 0;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-nav-btn {
    min-width: 88px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
}

.pagination-ellipsis {
    min-width: 26px;
    text-align: center;
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 800;
    line-height: 42px;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 224, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 174, 192, 0.8);
}

.song-card {
    /* background-color: rgba(56, 197, 244, 0.985); */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    height: 100%;
    position: relative; /* ensure absolute positioning works for overlay elements */
    
    /* Playful fly-in animation on load */
    opacity: 1;
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: backwards;
}

/* Favorite button on song card */
.song-card-favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, opacity 0.2s;
    font-size: 18px;
    opacity: 0;
    outline: none;
}

/* If the song is favorited, always show the badge */
.song-card-favorite-btn.is-favorite {
    opacity: 1 !important;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
}

.song-card-favorite-btn:active {
    transform: scale(0.9);
}

/* Desktop hover interactions */
@media (hover: hover) {
    .song-card:hover .song-card-favorite-btn {
        opacity: 0.9;
    }
    .song-card:hover .song-card-favorite-btn:hover {
        opacity: 1;
        transform: scale(1.15);
        background: #ffffff;
    }
}

/* Touch devices layout: make badge slightly visible by default so it's discoverable */
@media (hover: none) {
    .song-card-favorite-btn {
        opacity: 0.6;
    }
}


.card-normal {
    grid-row: span 9;
}

.song-card:not(.no-image) {
    min-height: 0;
}

.card-tall {
    grid-row: span 18;
}

.card-wide {
    grid-column: span 2;
    grid-row: span 9;
}

.card-large {
    grid-column: span 2;
    grid-row: span 18;
}

.song-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);

}

.song-card.no-image {
    align-self: start;
    height: 100%;
    min-height: 0;
    position: relative;
    border: none;
    overflow: hidden;
}

.song-card.card-compact {
    grid-row: span 4;
    border-radius: var(--radius-lg);
}

.song-card.no-image .song-info {
    padding: 18px 18px 20px;
    min-height: 110%;
    justify-content: flex-end;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.32), transparent 26%),
        transparent;
}

.song-card.no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, var(--card-accent-1, #ffd86f), var(--card-accent-2, #ff9eb2)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.song-card.no-image::after {
    content: '';
    position: absolute;
    inset: auto -16px -22px auto;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(18deg);
}

.song-card.no-image .song-title {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(63, 45, 28, 0.22);
}

.song-card.no-image .song-badge {
    color: #5f3a16;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 8px 18px rgba(116, 79, 31, 0.15);
}

.song-card.no-image.theme-sunshine {
    --card-accent-1: #ffb347;
    --card-accent-2: #ff6f91;
}

.song-card.no-image.theme-sky {
    --card-accent-1: #5ec8ff;
    --card-accent-2: #6b8cff;
}

.song-card.no-image.theme-meadow {
    --card-accent-1: #4fc99b;
    --card-accent-2: #9ad94f;
}

.song-card.no-image.theme-berry {
    --card-accent-1: #ff7faa;
    --card-accent-2: #ffb257;
}

.song-img {
    width: 100%;
    flex: 1;
    min-height: 150px;
    object-fit: cover;
    background-color: var(--accent-light);
    transition: transform 0.5s ease;
}



.song-info {
    padding: 15px 15px 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    position: relative;
    z-index: 1;
}

.song-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.song-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f84d4d;
    background-color: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    font-weight: 700;
}

/* Player View */
.player-header {
    padding: 24px 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-6px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.player-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 36px;
}

.player-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 320px;
    gap: 32px;
    max-width: 1480px;
    margin: 28px auto 0;
}

.player-left-col,
.player-right-col,
.person-details-panel {
    min-width: 0;
}

.person-details-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
}

.person-panel-title {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0 0 2px;
}

.person-card,
.person-card-loading {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    backdrop-filter: blur(12px);
}

.player-youtube-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.player-youtube-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.person-card-empty {
    color: var(--text-muted);
}

.person-role {
    display: inline-flex;
    color: var(--primary-color);
    background: var(--accent-light);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.person-card h3 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 12px;
}

.person-name-link {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.person-name-link:hover,
.person-name-link:focus {
    color: var(--primary-color);
    /* text-decoration: underline; */
}

.person-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
}

.person-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-main);
    font-size: 15px;
}

.person-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.person-actions a,
.person-actions button,
.person-card button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 13px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.person-actions a {
    background: var(--accent-color);
}

.player-left-col {
    display: flex;
    flex-direction: column;
}

.player-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

/* YouTube Cover Link and Hover Overlay */
.player-cover-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    text-decoration: none;
}

.player-cover-link .player-cover {
    margin-bottom: 0;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.player-cover-link:hover .player-cover {
    transform: scale(1.06);
    filter: brightness(0.6) contrast(1.15);
}

.player-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    gap: 12px;
}

.player-cover-link:hover .player-cover-overlay {
    opacity: 1;
}

.play-yt-icon-wrapper {
    background: #ff0000;
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-cover-link:hover .play-yt-icon-wrapper {
    transform: scale(1);
}

.play-yt-btn {
    font-size: 24px;
    margin-left: 4px;
    color: #ffffff;
}

.play-yt-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(12px);
    transition: transform 0.3s ease;
}

.player-cover-link:hover .play-yt-text {
    transform: translateY(0);
}

.player-back-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    margin-bottom: 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #44d4f8, #5478FF);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-back-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.player-yt-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    margin-bottom: 12px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #FF0000, #E60000);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-yt-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 0, 0, 0.32);
    color: #fff;
}

.player-yt-link:active {
    transform: scale(0.98) translateY(0);
}

.player-yt-icon {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 16px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff;
}

.player-yt-icon::before {
    content: '';
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid #FF0000;
}

.player-meta {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 8px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.meta-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    mix-blend-mode: multiply;
}

.meta-icon-lyricist {
    box-shadow: 0 10px 22px rgba(255, 154, 118, 0.18);
}

.meta-icon-composer {
    box-shadow: 0 10px 22px rgba(94, 200, 255, 0.18);
}

.meta-icon-category {
    box-shadow: 0 10px 22px rgba(86, 197, 150, 0.18);
}

.meta-info {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 18px;
    color: var(--text-muted);
}

.meta-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.player-lyrics-sec {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    max-height: 880px;
}

.lyrics-language-toggle {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.lyrics-lang-btn {
    min-width: 82px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    padding: 7px 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lyrics-lang-btn:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

.lyrics-lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.player-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
     user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none; 
}

.lyrics-text {
    font-size: 23px;
    line-height: 2.15;
    color: var(--text-main);
    white-space: pre-line;
    font-weight: 500;
    
    flex: 1;
    overflow-y: auto;
    padding-right: 12px;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

.lyrics-text::-webkit-scrollbar {
    width: 6px;
}

.lyrics-text::-webkit-scrollbar-track {
    background: transparent;
}

.lyrics-text::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.lyrics-text::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Audio Player UI */
.audio-player-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #EDF2F7;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

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

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.control-btn:hover {
    color: var(--primary-color);
    transform: scale(1.2) rotate(-5deg);
}

.play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(248, 77, 77, 0.4);
    /* Used primary color */
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-icon,
.pause-icon {
    transition: opacity 0.2s ease;
}

.play-btn svg.hidden {
    display: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-icon { font-size: 20px; }
.stat-val { font-weight: 800; font-size: 16px; color: var(--primary-color); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.overall-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.progress-bar-bg {
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}
.progress-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
}

/* --- Word Meaning Toggle --- */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.word-meaning-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.word-meaning-btn.active {
    background: var(--primary-color);
    color: white;
}
.wm-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* --- Clickable Lyrics & Clouds --- */
.lyrics-text {
    position: relative;
}
.lyric-word {
    display: inline-block;
    padding: 0 2px;
    border-radius: 4px;
    transition: background 0.2s;
    position: relative;
}
.lyric-word.clickable {
    cursor: pointer;
}
.lyric-word.clickable:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}
.meaning-cloud {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 100;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.meaning-cloud::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}
@keyframes popIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
    100% { opacity: 1; transform: translateX(-50%) translateY(-10px) scale(1); }
}

/* --- Quick Actions --- */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.action-icon {
    width: 20px;
    height: 20px;
}

/* --- Activities Grid --- */
.activities-section {
    margin-top: 40px;
}
.activities-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.activity-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.activity-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.activity-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Related Songs --- */
.related-songs-sec {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px dashed rgba(0,0,0,0.1);
}
.related-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-main);
}


/* --- Header Activities --- */
.header-activities {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-activity-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.header-activity-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.header-activity-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet Portrait & Small Desktop */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 200px 1fr;
    }
    
    .player-layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 24px;
    }

    .person-details-panel {
        grid-column: 1 / -1;
        position: static;
    }
    
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        padding: 16px 24px 32px;
        gap: 20px;
    }
    
    .logo h1 {
        font-size: 26px;
    }
    
    .category-btn {
        font-size: 18px;
    }
    
    .main-header, .player-header {
        padding: 20px 24px;
    }

    .alphabet-panel {
        left: 24px;
        width: min(680px, calc(100vw - 280px));
    }
    
    .player-content-scroll {
        padding: 0 24px 24px;
    }
}

/* Tablet Landscape Viewport Adjustments */
@media (min-width: 768px) and (max-width: 1280px) and (orientation: landscape) {
    .player-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 16px;
    }
    
    .player-cover, .player-cover-link {
        max-width: 260px;
        margin: 0 auto 16px;
    }
    
    .player-content-scroll {
        padding: 0 16px 20px;
    }
    
    .player-lyrics-sec {
        max-height: 520px;
        padding: 20px 24px;
    }
    
    .lyrics-text {
        font-size: 20px;
        line-height: 1.85;
    }
    
    .player-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .quick-actions {
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 10px;
        font-size: 13px;
        gap: 4px;
    }

    .player-layout .person-details-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        grid-column: 1 / -1;
        width: 100%;
    }

    .player-layout .player-youtube-section {
        margin-top: 0;
    }
}


/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
    .player-youtube-section {
        display: none;
    }
    .app-container {
        display: flex;
        flex-direction: column;
    }
    
    .meta-label {
    font-size: 13px;
    
}

.meta-val {
    font-size: 15px;
    font-weight: 500;
    /* color: var(--text-main); */
}
    .sidebar {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .sidebar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .logo {
        margin-bottom: 0;
        padding: 0;
        margin-right: 20px;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo h1 {
        display: none;
    }
    
    .categories {
        flex-direction: row;
    }
    
    .category-btn {
        padding: 8px 16px;
        white-space: nowrap;
    }

    
    .content-wrapper {
        height: auto;
        flex: 1;
    }
    
    .main-header, .player-header {
        padding: 16px;
    }

    .header-controls {
        gap: 10px;
    }

    .search-bar {
        flex: 1 1 220px;
        max-width: none;
        padding: 12px 18px;
    }

    .index-toggle-btn {
        flex: 0 0 auto;
        padding: 11px 16px;
        font-size: 16px;
    }

    .alphabet-panel {
        left: 16px;
        right: 16px;
        width: auto;
        padding: 16px;
    }

    .alphabet-grid {
        grid-template-columns: repeat(7, minmax(34px, 1fr));
        gap: 10px;
    }

    .alphabet-letter-btn {
        min-height: 38px;
        font-size: 21px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .player-header > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-activities {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .word-meaning-btn {
        width: 100%;
        justify-content: center;
    }
    
    .player-layout {
        grid-template-columns: 1fr;
    }

    .player-right-col {
        display: contents;
    }

    .player-cover, .player-cover-link {
        order: 1;
    }

    .player-lyrics-sec {
        order: 2;
        max-height: none;
        height: auto;
    }

    .player-left-col {
        display: contents;
    }

    .player-back-link {
        order: 3;
    }

    #audioPlayerContainer {
        order: 4;
    }

    .quick-actions {
        order: 5;
    }

    .player-meta {
        order: 6;
    }

    .person-details-panel {
        order: 7;
    }

    .related-songs-sec {
        order: 8;
    }

    .player-site-footer {
        order: 9;
    }
    
    .player-cover, .player-cover-link {
        max-width: 320px;
        margin: 0 auto 24px;
    }
    
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .song-grid.song-list-mode {
        grid-template-columns: 1fr;
        padding: 8px 16px 16px;
    }

    .popular-filter-panel {
        position: static;
        padding: 16px;
    }

    .popular-filter-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

    .song-list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 34px 16px 16px;
    }

    .song-list-title {
        font-size: 19px;
    }

    .song-list-meta {
        white-space: normal;
        font-size: 15px;
    }

    .song-list-meta-stacked {
        align-items: flex-start;
        text-align: left;
    }

    .seo-intro {
        padding: 0 16px 4px;
    }

    .filter-heading-container {
        top: 76px;
        margin: 0 16px 16px;
        padding: 14px 14px 14px 18px;
        gap: 12px;
        border-left-width: 6px;
    }

    .filter-heading-text {
        gap: 9px;
    }

    .filter-heading-label {
        font-size: 15px;
        padding: 6px 11px;
    }

    .filter-heading-value {
        font-size: 23px;
    }

    .filter-heading-info {
        font-size: 15px;
    }

    .filter-clear-btn {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .seo-intro h2 {
        font-size: 22px;
    }

    .seo-intro p {
        font-size: 15px;
    }

    .site-footer {
        margin: 0 16px 12px;
        padding: 0;
    }

    .pagination {
        margin: 0 16px 18px;
        gap: 8px;
    }

    .pagination-btn {
        min-width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .player-content-scroll {
        padding: 0 16px 20px;
    }

    .player-site-footer {
        margin-top: 6px;
    }
    
    .player-title {
        font-size: 28px;
        text-align: center;
    }
    
    .player-lyrics-sec {
        padding: 24px;
    }

    .lyrics-language-toggle {
        display: flex;
        width: 100%;
    }

    .lyrics-lang-btn {
        flex: 1;
        min-width: 0;
    }
    
    .lyrics-text {
        font-size: 21px;
        text-align: center;
    }
    
    .audio-player-bar {
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 12px;
    }

    .song-card-favorite-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
        top: 10px;
        right: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .song-card.no-image .song-lyricist {
        display: none;
    }

    .jingle-videos {
        --jingle-item-width: 120px;
    }
    .player-youtube-card {
        align-items: stretch;
    }

    .yt-subscribe-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
    }
    

    .header-controls {
        align-items: stretch;
    }

    .index-toggle-btn {
        width: 100%;
    }

    .alphabet-grid {
        grid-template-columns: repeat(5, minmax(36px, 1fr));
    }
    
    .header-activity-btn span {
        display: none;
    }
    
    .header-activity-btn {
        padding: 8px;
    }
    
    .player-cover, .player-cover-link {
        max-width: 240px;
    }
    
    .player-title {
        font-size: 24px;
    }
    
    .lyrics-text {
        font-size: 16px;
    }
    
    .progress-container {
        gap: 8px;
    }
    
    .time {
        font-size: 12px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .app-container {
        display: grid;
        grid-template-columns: 80px 1fr;
        height: 100vh;
        height: 100dvh;
    }
    
    .sidebar {
        flex-direction: column;
        padding: 16px 8px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 24px;
        justify-content: center;
    }
    
    .logo h1 {
        display: none;
    }
    
    .categories {
        flex-direction: column;
    }
    
    .category-btn {
        flex-direction: column;
        padding: 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .category-btn span {
        display: none;
    }
    
    .player-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
        margin-bottom: 16px;
    }

    .person-details-panel {
        grid-column: 1 / -1;
        position: static;
    }
    
    .player-cover, .player-cover-link {
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .player-header {
        flex-direction: row;
        padding: 12px 16px;
    }
    
    .word-meaning-btn {
        width: auto;
    }

    .audio-player-bar {
        flex-direction: row;
        padding: 8px 16px;
    }
    .progress-container {
        flex: 1;
    }
}

/* Mobile & Tablet Dropdown Sidebar */
@media (max-width: 1024px) {
    .app-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }

    .sidebar {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
        gap: 12px;
        width: 100%;
        height: auto;
        padding: 10px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow: visible;
        z-index: 60;
    }

    .logo {
        min-width: 0;
        margin: 0;
        padding: 0;
        gap: 10px;
    }

    .logo-icon {
        flex: 0 0 auto;
        width: 52px;
        height: 52px;
    }

    .logo h1 {
        display: block;
        min-width: 0;
        font-size: 28px;
        line-height: 1.1;
        white-space: normal;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: none;
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        position: relative;
        z-index: 81;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background: var(--accent-color);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .sidebar.open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .sidebar.open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .sidebar.open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .categories {
        position: absolute;
        top: calc(100% + 6px);
        left: 12px;
        right: 12px;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-height: min(62vh, 430px);
        overflow-y: auto;
        padding: 12px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        z-index: 80;
        pointer-events: auto;
    }

    .sidebar.open .categories {
        display: grid;
    }

    .category-btn {
        width: 100%;
        min-height: 56px;
        padding: 8px 10px;
        gap: 8px;
        font-size: 18px;
        text-align: left;
        white-space: normal;
        transform: none;
    }

    .category-btn:hover,
    .category-btn.active {
        transform: none;
    }

    .category-btn span {
        display: inline;
        min-width: 0;
        line-height: 1.15;
    }

    .category-icon-img {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
    }

    .content-wrapper {
        flex: 1;
        min-height: 0;
        height: auto;
    }

    .song-badge {
        display: none;
    }

    .song-info {
        gap: 0;
        padding: 16px;
    }

    .song-title {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .categories {
        left: 8px;
        right: 8px;
        grid-template-columns: 1fr;
    }

    .category-btn {
        font-size: 17px;
    }

    .main-header {
        padding: 10px 12px;
    }

    .header-controls {
        position: relative;
        z-index: 40;
    }

    .filter-heading-container {
        top: 62px;
        margin: 0 12px 14px;
        align-items: flex-start;
    }

    .filter-heading-value {
        width: 100%;
        font-size: 21px;
    }

    .filter-heading-info {
        font-size: 14px;
    }

    .header-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .search-bar {
        min-width: 0;
        flex: none;
        padding: 8px 10px;
        gap: 7px;
    }

    .search-icon {
        width: 16px;
        height: 16px;
    }

    .search-bar input {
        min-width: 0;
        font-size: 14px;
    }

    .index-toggle-btn,
    .favorites-toggle-btn {
        width: auto;
        min-width: 0;
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap;
        position: relative;
        z-index: 41;
    }

    .favorites-toggle-btn span {
        display: none;
    }

    .alphabet-panel {
        z-index: 90;
    }

    .player-back-link {
        margin-bottom: 14px;
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #2B2B2B;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
    font-family: 'Baloo 2', sans-serif;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Attractive Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at center, #ffffff 0%, #eef7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: loaderContentEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.logo-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: logoPulse 2s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 10px rgba(68, 212, 248, 0.2));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 10px 25px rgba(68, 212, 248, 0.45));
    }
}

.music-notes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.note {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: floatNote 2.4s infinite ease-out;
}

.note-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.note-2 {
    top: 10%;
    right: 15%;
    animation-delay: 0.6s;
}

.note-3 {
    bottom: 25%;
    left: 5%;
    animation-delay: 1.2s;
}

.note-4 {
    bottom: 15%;
    right: 5%;
    animation-delay: 1.8s;
}

@keyframes floatNote {
    0% {
        transform: translateY(20px) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-60px) scale(1.2) rotate(30deg);
        opacity: 0;
    }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin-top: 10px;
}

.spinner-circle {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(68, 212, 248, 0.15);
    border-radius: 50%;
    border-top-color: #44d4f8;
    border-right-color: #ff6b81;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

.loader-text {
    font-family: 'Baloo 2', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #2F3542;
    margin: 8px 0 0;
    background: linear-gradient(135deg, #1ebbdc 0%, #44d4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.loader-subtext {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 15px;
    color: #747d8c;
    margin: 0;
    font-weight: 600;
    animation: textPulse 1.5s infinite ease-in-out;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* -------------------------------------------------------------
   🎬 PLAYFUL LOAD ANIMATION FOR SONG CARDS
   ------------------------------------------------------------- */

/* Animation Names by index (pattern repeat) */
.song-card:nth-child(4n+1) {
    animation-name: flyInLeft;
}
.song-card:nth-child(4n+2) {
    animation-name: flyInRight;
}
.song-card:nth-child(4n+3) {
    animation-name: flyInTop;
}
.song-card:nth-child(4n+4) {
    animation-name: flyInBottom;
}

/* Staggered delays for a sequential, cascading entrance */
.song-card:nth-child(1) { animation-delay: 0.05s; }
.song-card:nth-child(2) { animation-delay: 0.1s; }
.song-card:nth-child(3) { animation-delay: 0.15s; }
.song-card:nth-child(4) { animation-delay: 0.2s; }
.song-card:nth-child(5) { animation-delay: 0.25s; }
.song-card:nth-child(6) { animation-delay: 0.3s; }
.song-card:nth-child(7) { animation-delay: 0.35s; }
.song-card:nth-child(8) { animation-delay: 0.4s; }
.song-card:nth-child(9) { animation-delay: 0.45s; }
.song-card:nth-child(10) { animation-delay: 0.5s; }
.song-card:nth-child(11) { animation-delay: 0.55s; }
.song-card:nth-child(12) { animation-delay: 0.6s; }
.song-card:nth-child(13) { animation-delay: 0.65s; }
.song-card:nth-child(14) { animation-delay: 0.7s; }
.song-card:nth-child(15) { animation-delay: 0.75s; }
.song-card:nth-child(16) { animation-delay: 0.8s; }
.song-card:nth-child(17) { animation-delay: 0.85s; }
.song-card:nth-child(18) { animation-delay: 0.9s; }
.song-card:nth-child(19) { animation-delay: 0.95s; }
.song-card:nth-child(20) { animation-delay: 1.0s; }
.song-card:nth-child(21) { animation-delay: 1.05s; }
.song-card:nth-child(22) { animation-delay: 1.1s; }
.song-card:nth-child(23) { animation-delay: 1.15s; }
.song-card:nth-child(24) { animation-delay: 1.2s; }

/* Keyframe definitions with elastic overshoot (spring) */
@keyframes flyInLeft {
    0% {
        opacity: 0;
        transform: translateX(-200px) rotate(-8deg) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes flyInRight {
    0% {
        opacity: 0;
        transform: translateX(200px) rotate(8deg) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes flyInTop {
    0% {
        opacity: 0;
        transform: translateY(-200px) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flyInBottom {
    0% {
        opacity: 0;
        transform: translateY(200px) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
