/* =========================
   POST CARDS
========================= */

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.post-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.post-header {
    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    font-weight: 700;
}

.post-user h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.post-user p {
    font-size: 11px;
    color: var(--text-secondary);
}

.post-more {
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    background: var(--surface);
}

.post-content {
    padding: 15px 18px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 13px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;

    background: transparent;
    border: none;

    color: var(--text-secondary);
    font-size: 13px;
}

.post-action i {
    width: 21px;
    height: 21px;
}

.post-action.liked {
    color: #EF4444;
}

.post-action.saved {
    color: var(--purple);
}

.post-save {
    margin-left: auto;
}

.post-caption {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.post-caption strong {
    margin-right: 5px;
}

.post-comments {
    font-size: 12px;
    color: var(--text-secondary);
}


/* =========================
   CREATE POST MODAL
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(11, 16, 38, 0.65);

    display: none;
    align-items: center;
    justify-content: center;

    padding: 15px;

    z-index: 500;
}

.modal-overlay.show {
    display: flex;
}

.create-post-modal {
    width: 100%;
    max-width: 520px;

    background: white;
    border-radius: 16px;

    padding: 22px;

    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.modal-user {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 20px 0;
}

.modal-user h4 {
    font-size: 13px;
}

.modal-user p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

#createPostForm textarea {
    width: 100%;
    min-height: 130px;

    border: none;
    outline: none;
    resize: vertical;

    font-size: 15px;
    line-height: 1.6;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    background: var(--surface);
    border-radius: 9px;

    color: var(--purple);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.image-preview {
    display: none;
    margin: 15px 0;
}

.image-preview.show {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;

    border-radius: 10px;
    background: var(--surface);
}

#removeImage {
    margin-top: 8px;

    background: transparent;
    border: none;

    color: #EF4444;
    font-size: 12px;
}

.modal-footer {
    margin-top: 22px;
    padding-top: 16px;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-footer span {
    font-size: 12px;
    color: var(--text-secondary);
}

#publishPostBtn {
    border: none;
    border-radius: 9px;

    padding: 11px 22px;

    background: var(--purple);
    color: white;

    font-weight: 600;
}

#publishPostBtn:hover {
    background: var(--purple-dark);
}

#publishPostBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   EXPLORE PAGE
========================= */

.explore-page {
    padding: 30px;
}

.explore-header {
    margin-bottom: 25px;
}

.explore-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.explore-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.explore-search {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 650px;
    height: 48px;

    padding: 0 16px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;

    margin-bottom: 22px;
}

.explore-search input {
    width: 100%;
    border: none;
    outline: none;
}

.explore-topics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 25px;
}

.topic-btn {
    padding: 9px 17px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: white;
    color: var(--text-secondary);

    white-space: nowrap;
}

.topic-btn.active {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

.explore-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.explore-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.explore-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.explore-card-details {
    padding: 15px;
}

.explore-card-details h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.explore-card-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.explore-card-details .explore-caption {
    color: var(--text-primary);
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 40px 10px;
    color: var(--text-secondary);
}

@media (max-width: 900px) {

    .explore-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 550px) {

    .explore-page {
        padding: 20px 15px;
    }

    .explore-results {
        grid-template-columns: 1fr;
    }

    .explore-card img {
        height: 230px;
    }

}

/* POST DETAILS MODAL */

.post-details-modal {
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow-y: auto;
}

.post-details-content {
    padding: 20px;
}

.post-details-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 10px;
    margin: 15px 0;
}

.post-details-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-details-caption {
    margin: 15px 0;
    line-height: 1.6;
}

.post-details-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.post-details-actions button {
    display: flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.post-details-comments {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

@media (max-width: 600px) {
    .post-details-modal {
        width: 95%;
        max-height: 85vh;
    }
}

/* POST COMMENTS */

.post-details-comments {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 15px;
}

.post-details-comments h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.comment-item {
    padding: 10px;
    background: var(--background);
    border-radius: 10px;
}

.comment-item strong {
    font-size: 13px;
}

.comment-item p {
    font-size: 14px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.comment-form {
    display: flex;
    gap: 10px;
}

.comment-form input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.comment-form button {
    padding: 10px 18px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* PROFILE PAGE */

.profile-page {
    padding: 25px 35px;
}

.profile-cover {
    height: 220px;
    background: linear-gradient(120deg, #0B1026, #7C3AED);
    border-radius: 15px;
    position: relative;
}

.edit-cover-btn {
    position: absolute;
    right: 20px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.profile-main {
    max-width: 950px;
    margin: auto;
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px;
    margin-top: -65px;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    background: white;
}

.edit-avatar-btn {
    position: absolute;
    right: 5px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    cursor: pointer;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    cursor: pointer;
    font-weight: 600;
}

.profile-information {
    padding: 20px;
}

.profile-information h1 {
    font-size: 25px;
}

.profile-username {
    color: var(--text-secondary);
    margin: 5px 0 12px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
}

.profile-college {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.profile-stats {
    display: flex;
    gap: 35px;
    margin-top: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.profile-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-stats strong {
    font-size: 18px;
}

.profile-stats span {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-posts-section {
    padding: 20px;
}

.profile-posts-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-posts-heading h2 {
    font-size: 19px;
}

.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.profile-post-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.profile-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-empty-state {
    text-align: center;
    padding: 55px 20px;
    color: var(--text-secondary);
}

.profile-empty-state h3 {
    color: var(--text-primary);
    margin: 12px 0 6px;
}

#editProfileModal {
    display: none;
}

#editProfileModal .modal-content {
    max-width: 450px;
}

#editProfileForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#editProfileForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    resize: vertical;
    font-family: inherit;
}

@media (max-width: 600px) {
    .profile-page {
        padding: 15px;
    }

    .profile-cover {
        height: 150px;
    }

    .profile-avatar {
        width: 105px;
        height: 105px;
    }

    .profile-top {
        margin-top: -50px;
    }

    .profile-stats {
        gap: 25px;
    }

    .profile-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* EDIT PROFILE MODAL - FIXED POPUP */

#editProfileModal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(11, 16, 38, 0.65);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

#editProfileModal .modal-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: profileModalOpen 0.25s ease;
}


#editProfileModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#editProfileModal .modal-header h2 {
    font-size: 22px;
    color: var(--text-primary);
}

#editProfileModal .modal-header button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    font-size: 23px;
    cursor: pointer;
}

#editProfileModal .auth-field input,
#editProfileModal .auth-field textarea {
    box-sizing: border-box;
    width: 100%;
}

#editProfileModal .auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#editProfileModal .auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

#editProfileModal .auth-field input,
#editProfileModal .auth-field textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#editProfileModal .auth-field input:focus,
#editProfileModal .auth-field textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

#editProfileModal .auth-field input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

#editProfileModal #editProfileForm button[type="submit"] {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: var(--purple);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#editProfileModal #editProfileForm button[type="submit"]:hover {
    background: var(--purple-dark);
}

#editProfileModal .modal-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

#editProfileModal .modal-header h2 {
    font-size: 21px;
    font-weight: 700;
}

#editProfileModal .modal-header button:hover {
    background: #e5e7eb;
}

#editProfileModal #editProfileForm {
    gap: 18px;
}

@media (max-width: 480px) {
    #editProfileModal .modal-content {
        padding: 22px 17px;
        border-radius: 14px;
    }
}

@keyframes profileModalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =================================
   GLOBAL MOBILE RESPONSIVENESS
================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* TABLETS */

@media (max-width: 768px) {

    main {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .profile-page,
    .explore-page,
    .saved-page {
        width: 100%;
        max-width: 100%;
        padding: 18px 15px;
    }

    .profile-cover {
        width: 100%;
    }

    .profile-main {
        width: 100%;
    }

    .profile-information {
        padding: 18px 5px;
    }

    .profile-posts-section {
        padding: 18px 5px;
    }

    .explore-results,
    .saved-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-layout {
        display: block;
        width: 100%;
    }

    .feed {
        width: 100%;
        min-width: 0;
    }

    .right-panel {
        display: none;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
    }
}

/* MOBILE PHONES */

@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    main {
        padding-bottom: 85px;
    }

    .profile-page,
    .explore-page,
    .saved-page {
        padding: 15px 12px;
    }

    .profile-cover {
        height: 135px;
    }

    .profile-top {
        padding: 0 8px;
    }

    .profile-avatar {
        width: 95px;
        height: 95px;
    }

    .profile-information h1 {
        font-size: 21px;
    }

    .profile-stats {
        gap: 22px;
    }

    .profile-stats strong {
        font-size: 16px;
    }

    .profile-posts-grid,
    .explore-results,
    .saved-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .profile-post-card {
        border-radius: 7px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-right {
        width: 100%;
        padding: 18px 12px;
    }

    #editProfileModal {
        padding: 12px;
    }

    #editProfileModal .modal-content {
        padding: 22px 17px;
        max-height: 90dvh;
    }

    .modal {
        padding: 12px;
    }

    .post-card {
        width: 100%;
        min-width: 0;
    }

    .mobile-bottom-nav {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* MOBILE NAVIGATION FIX */

@media (max-width: 768px) {

    /* Hide desktop sidebar */
    .sidebar {
        display: none !important;
    }

    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70px;
        z-index: 9999;
        background: #ffffff;
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
    }

    /* Remove desktop sidebar spacing */
    main,
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* DESKTOP NAVIGATION */

@media (min-width: 769px) {

    .sidebar {
        display: flex !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}

.post-details-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-details-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.post-details-author-info {
    display: flex;
    flex-direction: column;
}

.post-details-author-info h3,
.post-details-author-info p {
    margin: 0;
}

/* =========================================
   CONNECTION RECOMMENDATIONS
========================================= */

.recommendations-section {
    width: 100%;
    margin: 30px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(20, 25, 50, 0.04);
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.recommendations-header h2 {
    margin: 0 0 6px;
    color: #171b35;
    font-size: 22px;
    font-weight: 700;
}

.recommendations-header p {
    margin: 0;
    color: #777d91;
    font-size: 14px;
}

#refreshRecommendations {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #dedcff;
    border-radius: 10px;
    background: #f4f2ff;
    color: #6552d9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

#refreshRecommendations:hover {
    background: #6552d9;
    color: #ffffff;
    border-color: #6552d9;
}

#refreshRecommendations:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Recommendation cards */

.recommendations-grid .student-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 20px;
    background: #fafaff;
    border: 1px solid #e9e7f5;
    border-radius: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recommendations-grid .student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(40, 35, 90, 0.09);
}

.recommendations-grid .student-card-info {
    text-align: center;
}

.recommendations-grid .request-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e0ff;
}

.recommendations-grid .student-card-info h3 {
    margin: 5px 0;
    color: #20233e;
    font-size: 17px;
    font-weight: 700;
}

.recommendations-grid .student-card-info p {
    margin: 5px 0;
    color: #777d91;
    font-size: 13px;
}

.recommendations-grid .student-card-info small {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    background: #eeecff;
    color: #6552d9;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.recommendations-grid .request-actions {
    margin-top: 18px;
}

.recommendations-grid .accept-request {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #7055e8, #4c6de8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.recommendations-grid .accept-request:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.recommendations-grid .accept-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#noRecommendationsFound {
    padding: 25px 10px;
    text-align: center;
    color: #777d91;
}

/* Mobile layout */

@media (max-width: 600px) {
    .recommendations-section {
        padding: 16px;
        margin: 20px 0;
    }

    .recommendations-header {
        align-items: flex-start;
    }

    .recommendations-header h2 {
        font-size: 18px;
    }

    .recommendations-header p {
        font-size: 12px;
        line-height: 1.5;
    }

    #refreshRecommendations {
        padding: 9px 11px;
        font-size: 12px;
        white-space: nowrap;
    }

    .recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .recommendations-grid .student-card {
        padding: 14px 10px;
    }

    .recommendations-grid .request-avatar {
        width: 62px;
        height: 62px;
    }

    .recommendations-grid .student-card-info h3 {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   ADD MUSIC TO IMAGE POST
================================= */

.post-music-section {
    margin: 14px 0;
}

.add-post-music-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.add-post-music-btn:hover {
    background: #f7f5ff;
    border-color: #8b5cf6;
    color: #7c3aed;
}

.add-post-music-btn i {
    width: 18px;
    height: 18px;
}

.post-music-picker {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

#postMusicSearch {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

#postMusicSearch:focus {
    border-color: #8b5cf6;
}

.post-music-results {
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.post-music-results p {
    color: #777;
    font-size: 13px;
}

.selected-post-music {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: #f5f3ff;
    border-radius: 10px;
}

.selected-post-music strong {
    display: block;
    color: #222;
    font-size: 14px;
}

.selected-post-music p {
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

#removePostMusicBtn {
    padding: 7px 11px;
    border: none;
    border-radius: 7px;
    background: #eee;
    color: #444;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}