* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f9fafb;
    color: #333;
}

header {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 600;
    font-size: 18px;
}

.container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: sticky;
    top: 60px; /* chiều cao header */
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 15px;
}

.sidebar h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #6b7280;
}

.song-list {
    list-style: none;
    margin-bottom: 20px;
}

.song-list li {
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.song-list li:hover {
    background: #f3f4f6;
}

.content {
    *margin-left: 260px;
    padding: 20px;
    flex: 1;
}

.song-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.lyrics {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 15px;
    color: #444;
}

footer {
    height: 50px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #888;
}
    /* Home content styling */
.home-intro,
.home-features,
.home-mission,
.home-cta {
    margin-bottom: 30px;
    max-width: 800px;
}

.home-intro h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.home-features h2,
.home-mission h2,
.home-cta h2 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.home-intro p,
.home-mission p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}

.home-features ul {
    list-style: none;
    padding-left: 0;
}

.home-features li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.home-cta p {
    margin-bottom: 8px;
    font-size: 15px;
}
    /* Reset link */
a {
    text-decoration: none;
    color: inherit;
}

    /* Header logo */
header a {
    font-weight: 600;
    font-size: 18px;
    color: #111;
    transition: 0.2s;
}

header a:hover {
    opacity: 0.7;
}

    /* Sidebar link */
.song-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

    /* Hover effect */
.song-list li:hover {
    background: #f3f4f6;
    color: #111;
}

    /* Active (bài đang chọn) */
.song-list li.active {
    background: #f3f4f6;
    font-weight: 600;
}


/* Nút menu */
.menu-toggle {
    display: none;
    font-size: 20px;
    margin-right: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== SONG DETAIL PAGE ===== */
.song-detail {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

/* Title */
.song-detail .song-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

/* Meta info */
.song-detail .song-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.song-detail .song-meta p {
    margin-bottom: 5px;
}

/* Thumbnail */
.song-detail .song-thumbnail {
    margin-bottom: 20px;
}

.song-detail .song-thumbnail img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Video */
.song-detail .song-video {
    margin-bottom: 25px;
}

.song-detail .song-video iframe {
    width: 100%;
    border-radius: 10px;
}

/* Section title */
.song-detail h2 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #111;
}

/* Lyrics */
.song-detail .lyrics {
    white-space: pre-line;
    line-height: 1.7;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    padding: 15px;
    border-radius: 10px;
}
.song-detail .lyrics:hover {
    background: #f3f4f6;
}

/* Meaning / cảm nhận */
.song-detail .song-meaning p {
    line-height: 1.7;
    margin-bottom: 12px;
    color: #444;
}

/* Blockquote */
.song-detail blockquote {
    padding: 10px 15px;
    background: #f3f4f6;
    border-left: 4px solid #ddd;
    margin: 15px 0;
    font-style: italic;
    color: #555;
}

/* CTA */
.song-detail .song-cta {
    margin-top: 30px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.song-detail .song-cta p {
    margin-top: 5px;
    color: #444;
}
.song-detail .external-link {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f3f4f6;
    border-left: 4px solid #d1d5db;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Link bên trong */
.song-detail .external-link a {
    color: #08c !important;
    font-weight: 600;
    transition: 0.2s;
}

.song-detail .external-link a:hover {
    color: #000;
    opacity: 0.8;
}
.share-box-content {
    *display: flex;
    *flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.copy-share-wrapper{
    margin-top: 20px;
}
.share-box .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.3s;
}

.share-box .share-btn:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.share-btn.facebook   { background: #1877F2; }
.share-btn.twitter    { background: #000000; } /* X (Twitter) mới */
.share-btn.reddit     { background: #FF4500; }
.share-btn.whatsapp   { background: #25D366; }
.share-btn.linkedin   { background: #0077B5; }
.share-btn.email      { background: #555; }

.icon-fb { background-image: url('../images/facebook.svg'); }
.icon-tw { background-image: url('../images/x.svg'); }
.icon-zalo { background-image: url('../images/zalo.svg'); }
.icon-li { background-image: url('../images/linkedin.svg'); }
.icon-tg { background-image: url('../images/telegram.svg'); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .song-detail {
        max-width: 100%;
    }

    .song-detail .song-title {
        font-size: 22px;
    }

    .song-detail h2 {
        font-size: 18px;
    }

    .song-detail .lyrics {
        font-size: 14px;
        padding: 12px;
    }

    .song-detail .song-video iframe {
        height: 220px;
    }
}
/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -260px; /* ẩn */
        top: 60px;
        width: 260px;
        height: calc(100% - 60px);
        background: #fff;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0; /* xổ ra */
    }

    /* overlay nền mờ */
    .overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        background: rgba(0,0,0,0.3);
        display: none;
        z-index: 999;
    }

    .overlay.show {
        display: block;
    }
    /* Header gọn lại */
    header {
        padding: 0 15px;
        font-size: 16px;
    }

    /* Container về dạng block */
    .container {
        display: block;
    }

    /* Sidebar chuyển thành off-canvas */
    .sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        width: 260px;
        height: calc(100% - 60px);
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    }

    .sidebar.open {
        left: 0;
    }

    /* Content full width */
    .content {
        margin-left: 0;
        padding: 15px;
    }

    /* Text nhỏ lại cho dễ đọc mobile */
    .song-title {
        font-size: 20px;
    }

    .lyrics {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Home section co lại */
    .home-intro,
    .home-features,
    .home-mission,
    .home-cta {
        max-width: 100%;
    }

    .home-intro h1 {
        font-size: 22px;
    }

    .home-features h2,
    .home-mission h2,
    .home-cta h2 {
        font-size: 18px;
    }

    /* Footer gọn */
    footer {
        font-size: 12px;
        text-align: center;
        padding: 0 10px;
    }
}