.comments-section {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.comments-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    background: rgba(123, 136, 255, 0.15);
    color: #fff;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(123, 136, 255, 0.25);
    margin-left: 2px;
}

.comments-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

.comments-toggle.active {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(59, 142, 239, 0.1));
    border-color: rgba(74, 158, 255, 0.4);
    color: rgba(74, 158, 255, 0.9);
}

.comments-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.comments-container.expanded {
    max-height: 2000px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: visible;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    animation: commentSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

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

.comment-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-user-info h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin: 0;
}

.comment-actions {
    display: flex;
    gap: 4px;
}

.comment-action {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.8rem;
}

.comment-action:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.comment-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
}

.comment-content:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-content.expanded {
    display: block;
}

.comment-show-more {
    color: rgba(74, 158, 255, 0.9);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.comment-show-more:hover {
    text-decoration: underline;
}

.comment-show-replies {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comment-show-replies:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.comment-replies {
    margin-left: 40px;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, transform 0.3s ease;
}

.comment-replies.expanded {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
}

.comment-reply-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
}

.reply-content {
    flex: 1;
}

.reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.reply-banner.active {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 12px;
}

.reply-banner strong {
    color: rgba(74, 158, 255, 0.9);
}

.cancel-reply {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cancel-reply:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.reply-to-indicator {
    font-size: 0.8rem;
    color: rgba(74, 158, 255, 0.8);
    margin-bottom: 4px;
}

.reply-to-indicator strong {
    color: rgba(74, 158, 255, 1);
}

.pinned-badge {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(59, 142, 239, 0.1));
    border: 1px solid rgba(74, 158, 255, 0.4);
    color: rgba(74, 158, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
}

.comment-content img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin: 4px 0;
    display: block;
}

.comment-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.comment-like {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comment-like:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.comment-like.liked {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.comment-like-count {
    font-weight: 500;
}

.comment-reply {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comment-reply:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.comment-input-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.comment-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    overflow: visible;
}

.comment-input-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: 6px;
    align-self: flex-start;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
    overflow: visible;
}

.comment-gif-preview {
    width: 100%;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comment-gif-preview.active {
    max-height: 200px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

.comment-gif-preview .gif-preview-box {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 180px;
    overflow: visible;
}

.comment-gif-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.gif-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease;
    font-size: 10px;
    z-index: 10;
}

.gif-remove-btn:hover {
    transform: scale(1.06);
}

.comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-size: 0.9rem;
    resize: none;
    height: 44px;
    max-height: 120px;
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comment-input::-webkit-scrollbar {
    display: none;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.comment-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-submit {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.8), rgba(59, 142, 239, 0.7));
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 50px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    margin-top: 4px;
    align-self: flex-start;
}

.comment-submit .submit-icon {
    font-size: 12px;
}

.comment-submit .submit-text {
    font-size: 0.65rem;
}

.comment-submit.cooldown {
    background: rgba(107, 114, 128, 0.8);
    cursor: not-allowed;
}

.comment-submit.cooldown:hover {
    background: rgba(107, 114, 128, 0.8);
    transform: none;
    box-shadow: none;
}

.comment-gif-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    align-self: flex-start;
}

.comment-gif-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

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

.comment-submit:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.9), rgba(59, 142, 239, 0.8));
    border-color: rgba(74, 158, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.comment-submit.empty {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

.comment-submit:not(:disabled):active {
    transform: scale(0.95);
}

.comment-submit:not(:disabled):hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.comment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.comment-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(74, 158, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.comments-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
    color: rgba(74, 158, 255, 0.6);
    display: block;
}

.comments-empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.comments-empty-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .comments-container.expanded {
        max-height: none;
    }

    .comment-input-section {
        padding: 12px;
    }

    .comment-input-container {
        display: grid;
        grid-template-columns: 28px 1fr 32px 32px;
        gap: 8px;
        width: 100%;
    }

    .comment-input-avatar {
        grid-column: 1;
        width: 28px;
        height: 28px;
        margin-top: 4px;
    }

    .comment-input-wrapper {
        grid-column: 2;
    }

    .comment-input {
        font-size: 0.85rem;
        padding: 9px 14px;
    }

    .comment-gif-preview .gif-preview-box {
        max-width: 150px;
    }

    .comment-gif-preview img {
        max-width: 150px;
        max-height: 150px;
    }

    .comment-gif-btn {
        grid-column: 3;
        width: 32px;
        height: 32px;
        margin-top: 4px;
    }

    .comment-submit {
        grid-column: 4;
        width: 32px;
        height: 32px;
        margin-top: 4px;
    }

    .comment-submit .submit-icon {
        font-size: 11px;
    }
}

.com ment-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.comment-login-prompt svg {
    flex-shrink: 0;
}

.comment-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.comment-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.comment-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.comment-login-prompt svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
}

.comment-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.comment-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .comment-login-prompt {
        font-size: 11px;
        gap: 8px;
        padding: 12px;
    }

    .comment-login-prompt span {
        font-size: 11px;
    }

    .comment-login-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}