img.no-drag,
.no-drag-img {
    pointer-events: none;
    user-select: none;
}

.no-select {
    user-select: none;
}

.hidden {
    display: none;
}

html {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    justify-content: center;
    background: #0D0D0D; 
    color: white;
}

body.login {
    align-items: center;
    min-height: 100vh;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    color: white;
}
#backToTop.show {
    opacity: 0.5;
    pointer-events: auto;
}
#backToTop:hover {
    opacity: 0.8; 
}

.wrapper {
    width: 95%;
    max-width: 1700px;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
}

/* Hiệu ứng xuất hiện */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Hiệu ứng xuất hiện */

/* NAVBAR */
.wrapper-navbar {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
}

.wrapper-navbar .navbar-brand {
    color: #5EEAFF;
    font-weight: bold;
}

.menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item {
    display: block;
    text-align: center;
    padding: 0 8px;
    text-decoration: none;
    margin: 0;
}

/* MAIN */
.wrapper-content {
    /* border: 1px solid white; */
    flex: 1;
    height: 100%;
}

.wrapper-content > .row {
    --bs-gutter-x: 0;
    height: 100%;
    display: flex;
}

.wrapper-content > .row > .sidebar,
.wrapper-content > .row > .content {
    height: 100%; /* cho 2 cột cao full */
    display: flex; /* thêm flex để con bên trong có thể stretch */
    flex-direction: column; /* giữ bố cục cột */
}

.wrapper-content > .row > .sidebar > .neon-box,
.wrapper-content > .row > .content > .neon-box {
    flex: 1; /* để box chiếm hết chiều cao của cột */
    min-height: 0; /* tránh overflow flexbox */
}

/* MAIN --> SIDEBAR */
.wrapper-content > .row > .sidebar {
    padding: 5px 10px 5px 0;
}

/* MAIN --> CONTENT */
.wrapper-content > .row > .content {
    padding: 5px 0 5px 0;
}

/* FOOTER */
.wrapper-footer {
    margin-top: 20px;
    padding: 20px 40px;
    height: auto;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.footer-content p {
    margin: 0;
    font-size: 18px;
}

.footer-icons a {
    margin-left: 15px;
    font-size: 28px;
    text-decoration: none;
}

.footer-icons .fa-facebook-f {
    color: #00f6ff;
    text-shadow: 0 0 6px #00f6ff;
}

.footer-icons .fa-instagram {
    color: #ff00c8;
    text-shadow: 0 0 6px #ff00c8;
}

.footer-icons .fa-tiktok {
    color: #d400ff;
    text-shadow: 0 0 6px #e82aff;
}

.footer-icons .fa-github {
    color: #ffffff;
    text-shadow: 0 0 6px #fff;
}

.footer-icons .fa-youtube {
    color: #ff0000;
    text-shadow: 0 0 2px #ff0000,
}

.footer-icons a i {
    transition: transform 0.2s, text-shadow 0.2s;
}

.footer-icons a:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.footer-social-text {
    font-size: 18px;
    position: relative;
    bottom: 3px;
}

/* INDEX - CONTENT ELEMENTS */
.wallpaper {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.wallpaper > img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: white;
    padding: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0,7);
}

.overlay h4 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Hiệu ứng chữ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.overlay h4,
.overlay p {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}
.overlay h4 {
    animation-delay: 0.3s;
}
.overlay p {
    animation-delay: 0.6s;
}
/* Hiệu ứng chữ */

.home-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

.content-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 65%;
    margin: auto;
}

.content-box.reverse {
    flex-direction: row-reverse;
}

.content-box .image {
    flex: 1;
    max-width: 45%;
}

.content-box .image img {
    width: 100%;
    border-radius: 8px;
}

.content-box .text {
    flex: 1;
    max-width: 50%;
}

.content-box .text h3 {
    margin-bottom: 10px;
    font-size: 30px;
}

.content-box .text p {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.album {
    width: 75%;
    margin: auto;
}

.album-grid {
    column-count: 3;
    column-gap: 15px;
}

.album-grid .neon-box {
    margin-bottom: 15px;
    break-inside: avoid;
    padding: 6px;
    border-radius: 10px;
    transition: transform 0.25s;
}

.album-grid .neon-box:hover {
    transform: scale(1.05);
}

.album-grid img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s;
}

.album-grid img:hover {
    transform: scale(1.02); 
}

/* ABOUT */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    max-width: 30%;
}

.about-image img {
    width: 100%;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.about-text {
    flex: 2;
    max-width: 60%;
}

.about-text h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.about-text p {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.6;
}

/* MUSIC & BLOG LIST */
.music-container,
.blog-container {
    width: 75%;
    margin: auto;
}

.music-box,
.blog-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.music-image-wrapper,
.blog-image-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-image-wrapper img,
.blog-image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    padding: 10px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.music-box:hover img,
.blog-box:hover img {
    transform: scale(1.05);
}

.music-list-title,
.blog-list-title {
    padding: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* BLOG FILTER */
.blog-filter {
    padding: 10px;
}

.blog-filter .perPage,
.blog-filter .filter-catalogue .select2.select2-container {
    max-width: 100%;
}

/* BLOG CONTENT */
.blog-show {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.blog-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    margin-bottom: 20px;
}

.blog-title .outline-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    border: 3px solid #39FF14;
    box-shadow: 0 0 15px #39FF14;
}

.blog-title img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    padding: 2px;
    border-radius: 50%;
}

.blog-title h1 {
    flex: 1;
    margin: 0;
    text-align: center;
}

.blog-content {
    max-width: 100%;
    overflow: hidden;
}

.blog-content figcaption {
    font-size: 0.9em;
    color: #ddd3d3;
    text-align: center;
    margin-top: 0.5em
}

.blog-content figure {
    margin: 1em 0;
    padding: 0;
    border: none;
}

.blog-content figure img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
}

.blog-timestamp {
    font-size: 0.8em;
    color: #999;
    text-align: right;
}

.blog-timestamp > p {
    margin: 5px 0;
}

/* ================== TABLET =================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* NAVBAR / HEADER */
    .navbar-brand,
    .navbar-brand i {
        font-size: 1.1rem;
    }

    .menu-item {
        font-size: 0.95rem;
        padding: 0 6px;
    }

    .menu-list {
        gap: 8px;
    }

    /* FOOTER */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-content p,
    .footer-social-text {
        font-size: 16px;
        width: 100%;
    }

    .footer-icons a {
        font-size: 24px;
        margin-left: 10px;
    }

    /* WALLPAPER */
    .overlay h4 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1.1rem;
    }

    /* CONTENT */
    .content-box {
        width: 85%;
    }

    .content-box .text h3 {
        font-size: 24px;
    }

    .content-box .text p {
        font-size: 14px;
    }

    /* ALBUM */
    .album {
        width: 90%;
    }

    .album-grid {
        column-count: 2;
    }

    /* ABOUT PAGE */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image, .about-text {
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-text p {
        font-size: 15px;
    }

    /* BLOG LIST */
    .blog-filter form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-wrapper-1,
    .filter-wrapper-2 {
        flex-direction: column;
        width: 48%;
        gap: 10px;
    }

    .blog-filter .form-select,
    .blog-filter .form-control,
    .blog-filter button {
        font-size: 0.95rem;
        width: 100%;
    }

    .blog-filter .select2.select2-container {
        min-width: unset !important;
    }

    .blog-list .row,
    .music-list .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-list .col-3,
    .music-list .col-3 {
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        margin-bottom: 12px;
    }

    .blog-box,
    .music-box {
        font-size: 0.85rem;
    }

    .blog-title h4,
    .music-title h4 {
        font-size: 1rem;
    }

    .blog-title p,
    .music-title p {
        font-size: 0.75rem;
    }

    /* SHOW BLOG */
    .blog-show {
        width: 90%;
        padding: 20px;
    }

    .blog-title .outline-avatar {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        position: absolute;
        left: 0;
        border: 3px solid #39FF14;
        box-shadow: 0 0 15px #39FF14;
    }

    .blog-title img {
        width: 60px;
        height: 60px;
    }

    .blog-content figure img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .blog-title h1 {
        font-size: 2rem;
    }

    .blog-content {
        font-size: 1.05rem;
        padding: 20px;
    }

    .blog-timestamp {
        font-size: 0.8em;
    }
}

/* ================== MOBILE =================== */
@media (max-width: 768px) {
    /* NAVBAR / HEADER */
    .navbar-brand,
    .navbar-brand i {
        font-size: 0.95rem;
    }

    .menu-item {
        font-size: 0.8rem;
        padding: 0 4px;
    }

    .menu-list {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    ul.menu-list li .title {
        display: none;
    }

    /* FOOTER */
    .wrapper-footer {
        padding: 15px 20px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-content p,
    .footer-social-text {
        font-size: 14px;
        width: 100%;
    }

    .footer-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-icons a {
        font-size: 22px;
        margin: 0;
    }

    .footer-icons .fa-arrow-right {
        display: none;
    }

    /* WALLPAPER */
    .overlay h4 {
        font-size: 0.65rem;
    }

    .overlay p {
        font-size: 0.4rem;
    }

    /* CONTENT */
    .content-box,
    .content-box.reverse {
        flex-direction: column !important;
        width: 95%;
    }

    .content-box .image,
    .content-box .text {
        max-width: 100%;
        text-align: center;
    }

    .content-box .text h3 {
        font-size: 20px;
    }

    .content-box .text p {
        font-size: 13px;
    }

    /* ALBUM */
    .album {
        width: 95%;
    }

    .album-grid {
        column-count: 2;
    }

    .album-grid .neon-box {
        padding: 4px;
    }

    .album-grid img {
        border-radius: 6px;
    }

    /* ABOUT PAGE */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 15px;
    }

    .about-image, .about-text {
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .about-image img {
        padding: 6px;
        border-radius: 10px;
    }

    /* BLOG LIST */
    .blog-filter form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-wrapper-1,
    .filter-wrapper-2 {
        flex-direction: column;
        width: 100%;
    }

    .blog-filter .form-select {
        max-width: 100%;
        font-size: 0.9 rem;
    }

    .blog-filter .select2.select2-container {
        min-width: unset !important;
    }

    .blog-filter .form-control,
    .blog-filter button {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .blog-list .row,
    .music-list .row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-list .col-3,
    .music-list .col-3 {
        flex: 0 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        margin-bottom: 12px;
    }

    .blog-box,
    .music-box {
        font-size: 0.85rem;
    }

    .blog-title h4,
    .music-title h4 {
        font-size: 1rem;
    }

    .blog-title p,
    .music-title p {
        font-size: 0.75rem;
    }

    /* SHOW BLOG */
    .blog-show {
        width: 95%;
        padding: 15px;
    }

    .blog-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-title .outline-avatar {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        position: static;
        margin-bottom: 10px;
        left: 0;
        border: 3px solid #39FF14;
        box-shadow: 0 0 15px #39FF14;
    }

    .blog-title img {
        width: 60px;
        height: 60px;
    }

    .blog-title h1 {
        font-size: 1.5rem;
    }

    .blog-content {
        padding: 15px;
        font-size: 1rem;
    }

    .blog-timestamp {
        font-size: 0.75em;
        text-align: center;
    }

    .blog-content figure img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/*  */
@media (max-width: 480px) {
    .blog-list .col-3,
    .music-list .col-3 {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .blog-title h4,
    .music-title h4 {
        font-size: 0.95rem;
    }

    .blog-title p,
    .music-title p {
        font-size: 0.7rem;
    }
}

.pagination-links {
    margin-top: 25px;
}

.pagination-links .small.text-muted {
    display: none;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.3;
}