/* 用户中心页面样式 */
:root {
    --primary-color: #7FA298;
    --primary-dark: #688a80;
    --primary-light: #E6F2F0;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f8f8f8;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 用户菜单样式 */
.user-menu.logged-in {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu.logged-in:hover .user-avatar-small {
    border-color: rgba(255, 255, 255, 0.5);
}

.user-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

.user-menu.logged-in:hover .user-dropdown,
.user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.user-dropdown a.active {
    background-color: var(--primary-color);
    color: white;
}

#logoutBtn {
    border-top: 1px solid var(--border-color);
    color: #e74c3c;
}

#logoutBtn:hover {
    background-color: #ffeaea;
}

/* 用户主要内容区域 */
.user-main {
    padding: 40px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 180px);
}

.user-profile {
    display: flex;
    gap: 30px;
}

.user-sidebar {
    flex: 0 0 280px;
}

.user-content {
    flex: 1;
}

.user-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card .user-name {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    display: block;
}

.user-level {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.user-join-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.user-bio {
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.user-bio p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
}

.user-menu-mobile {
    display: none;
    flex-direction: column;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.user-menu-mobile a {
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    position: relative;
}

.user-menu-mobile a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.user-menu-mobile a:hover {
    color: var(--primary-color);
}

.user-menu-mobile a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.user-menu-mobile a:hover::after,
.user-menu-mobile a.active::after {
    width: 100%;
}

/* 用户导航卡片 */
.user-nav-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.user-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.user-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.2s;
    position: relative;
}

.user-nav-item i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    transition: color 0.2s;
}

.user-nav-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.user-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.user-nav-item.active i {
    color: white;
}

.user-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 0 0 5px 5px;
    opacity: 0;
}

.user-nav-item:hover::after {
    width: 100%;
    opacity: 0.7;
}

/* 内容区域样式 */
.content-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 25px;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header-flex h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.section-tabs {
    display: flex;
    gap: 10px;
}

.section-tabs .tab {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.section-tabs .tab:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.section-tabs .tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 表单样式 */
.profile-form {
    max-width: 600px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-form textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-form small {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-actions {
    margin-top: 30px;
}

.btn-save {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-save:hover {
    background-color: var(--primary-dark);
}

/* 评论卡片样式 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    grid-auto-rows: 1fr;
}

.user-content .featured-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.user-content .featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.user-content .card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.user-content .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.user-content .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.user-content .card-image:hover .card-overlay {
    opacity: 1;
}

.user-content .card-image:hover img {
    transform: scale(1.05);
}

.user-content .play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.user-content .play-button i {
    color: var(--primary-color);
    font-size: 20px;
}

.user-content .play-button:hover {
    transform: scale(1.1);
}

.user-content .card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.user-content .song-info {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.user-content .song-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.user-content .song-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-content .song-info-left {
    flex: 1;
}

.user-content .song-title-artist h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    border: none;
    padding: 0;
}

.user-content .artist {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.user-content .tag-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-content .card-tag {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 5px;
}

.user-content .play-count {
    font-size: 12px;
    color: var(--text-light);
}

.user-content .comment-text {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.user-content .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.user-content .meta-left {
    display: flex;
    gap: 10px;
}

.user-content .action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.user-content .action-btn:hover {
    color: var(--primary-color);
}

.user-content .action-btn.liked {
    color: #e74c3c;
}

.user-content .comment-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 收藏歌曲滑块样式 */
.user-collection-slider {
    margin: 20px 0 30px;
    position: relative;
}

.trending-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-track::-webkit-scrollbar {
    display: none;
}

.trending-card {
    flex: 0 0 auto;
    width: 160px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.trending-card:hover {
    transform: translateY(-5px);
}

.trending-image {
    height: 160px;
    position: relative;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.trending-image:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.play-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.trending-info {
    padding: 12px;
    background-color: white;
}

.trending-info .song-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-info .song-artist {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-prev {
    left: -18px;
}

.slider-next {
    right: -18px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 评论列表和查看更多样式 */
.view-all-container,
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn,
.load-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.view-all-btn:hover,
.load-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.load-more-btn {
    background: transparent;
}

/* 最近点赞的评论样式 */
.latest-grid {
    margin-top: 20px;
}

.comment-row {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comment-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.comment-content {
    padding: 15px;
}

.comment-header {
    display: flex;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-wrapper {
    flex: 1;
}

.user-info-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.user-info-line .user-name {
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    width: auto;
}

.user-level {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.song-name {
    font-size: 13px;
    color: var(--text-light);
}

.comment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.comment-tag {
    background-color: #f8f8f8;
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.actions {
    display: flex;
    gap: 15px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .user-profile {
        flex-direction: column;
    }
    
    .user-sidebar {
        flex: none;
        width: 100%;
    }
    
    .user-card {
        padding: 20px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .user-main {
        padding: 20px 0;
    }
    
    .content-section {
        padding: 20px 15px;
        margin-top: 20px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .user-menu-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-bottom: 15px;
    }
    
    .user-menu-mobile a {
        flex: 0 0 auto;
        padding: 8px 15px;
        background-color: var(--bg-light);
        border-radius: 20px;
        text-align: center;
    }
    
    .user-menu-mobile a.active {
        background-color: var(--primary-light);
        color: var(--primary-color);
    }
    
    .user-menu-mobile a::after {
        display: none;
    }
    
    .user-nav-card {
        display: none;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .checkbox-group label {
        flex: 0 0 calc(50% - 5px);
    }
    
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-content .meta-left {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .user-content .comment-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .user-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .user-name {
        font-size: 1.3rem;
    }
    
    .section-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .section-tabs .tab {
        flex: 1;
        text-align: center;
    }
    
    .checkbox-group label {
        flex: 0 0 100%;
    }
}

/* 发布内容区域样式 */
.publish-form {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.song-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.song-search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.song-search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-search-btn:hover {
    background-color: var(--primary-dark);
}

.song-search-results {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.song-result {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-result:last-child {
    border-bottom: none;
}

.song-result:hover {
    background-color: var(--primary-light);
}

.song-result-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.song-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-result-info {
    flex: 1;
}

.song-result-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.song-result-artist {
    font-size: 14px;
    color: var(--text-light);
}

.song-select-btn, .song-remove-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.song-select-btn:hover, .song-remove-btn:hover {
    background-color: rgba(127, 162, 152, 0.1);
}

.song-remove-btn {
    color: var(--error-color);
}

.song-remove-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.selected-song-container {
    background-color: var(--primary-light);
    border-radius: 6px;
    padding: 15px;
}

.selected-song {
    display: flex;
    align-items: center;
}

.selected-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.selected-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-song-info {
    flex: 1;
}

.selected-song-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.selected-song-artist {
    font-size: 14px;
    color: var(--text-light);
}

.word-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.tag-input-container {
    margin-top: 10px;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-suggestion {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-suggestion:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.tag-suggestion.selected {
    background-color: var(--primary-color);
    color: white;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 30px 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
}

.selected-tag .remove-tag {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.publish-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--primary-light);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.preview-container {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.comment-preview {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-user {
    display: flex;
    align-items: center;
}

.preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-username {
    font-weight: bold;
}

.preview-song {
    color: var(--primary-color);
    font-weight: 500;
}

.preview-content {
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-line;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tag {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.btn-preview, .btn-publish {
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preview {
    background-color: var(--bg-light);
    color: var(--text-color);
    margin-right: 15px;
}

.btn-preview:hover {
    background-color: #e6e6e6;
}

.btn-publish {
    background-color: var(--primary-color);
    color: white;
}

.btn-publish:hover {
    background-color: var(--primary-dark);
} 